Searched refs:val (Results 1 - 25 of 125) sorted by relevance

12345

/system/connectivity/shill/test-scripts/
H A Dmonitor-services15 val = "["
17 val = val + " " + i[i.rfind("/") + 1:]
18 val = val + " ]"
20 val = int(value)
22 val = str(value)
23 print "{%s} [%s] %s = %s" % (iface, ipath, name, val)
H A Dmonitor-flimflam11 val = int(value)
13 val = str(value)
14 print "{%s} [%s] %s = %s" % (iface, path, name, val)
H A Dtest-manager30 val = "true"
32 val = "false"
34 val = int(properties[key])
36 val = str(properties[key])
38 print " %s = %s" % (key, val)
/system/update_engine/update_manager/
H A Dboxed_value.cc41 const string* val = reinterpret_cast<const string*>(value); local
42 return *val;
47 const int* val = reinterpret_cast<const int*>(value); local
48 return base::IntToString(*val);
53 const unsigned int* val = reinterpret_cast<const unsigned int*>(value); local
54 return base::UintToString(*val);
59 const int64_t* val = reinterpret_cast<const int64_t*>(value); local
60 return base::Int64ToString(*val);
65 const uint64_t* val = local
67 return base::Uint64ToString(static_cast<uint64_t>(*val));
72 const bool* val = reinterpret_cast<const bool*>(value); local
78 const double* val = reinterpret_cast<const double*>(value); local
84 const base::Time* val = reinterpret_cast<const base::Time*>(value); local
90 const base::TimeDelta* val = reinterpret_cast<const base::TimeDelta*>(value); local
115 const ConnectionType* val = reinterpret_cast<const ConnectionType*>(value); local
122 const set<ConnectionType>* val = local
135 const ConnectionTethering* val = local
153 const Stage* val = reinterpret_cast<const Stage*>(value); local
180 const UpdateRequestStatus* val = local
[all...]
/system/extras/tests/sdcard/
H A Dtestcase.h61 void setNproc(size_t val) { mNproc = val; } argument
64 void setDataSize(size_t val) { mDataSize = val; } argument
67 void setChunkSize(size_t val) { mChunkSize = val; } argument
70 void setTreeDepth(size_t val) { mTreeDepth = val; } argument
73 void setNewFairSleepers(bool val) { argument
74 mNewFairSleepers = val;
79 setNormalizedSleepers(bool val) argument
[all...]
/system/connectivity/shill/net/
H A Dbyte_string.cc64 ByteString ByteString::CreateFromCPUUInt32(uint32_t val) { argument
65 return ByteString(reinterpret_cast<unsigned char*>(&val), sizeof(val));
69 ByteString ByteString::CreateFromNetUInt32(uint32_t val) { argument
70 return CreateFromCPUUInt32(ntohl(val));
82 bool ByteString::ConvertToCPUUInt32(uint32_t* val) const {
83 if (val == nullptr || GetLength() != sizeof(*val)) {
86 memcpy(val, GetConstData(), sizeof(*val));
107 T val; local
[all...]
H A Dbyte_string.h68 static ByteString CreateFromCPUUInt32(uint32_t val);
70 static ByteString CreateFromNetUInt32(uint32_t val);
81 bool ConvertToCPUUInt32(uint32_t* val) const;
84 bool ConvertToNetUInt32(uint32_t* val) const;
/system/core/toolbox/upstream-netbsd/lib/libc/stdlib/
H A Dstrsuftoll.c116 strsuftoll(const char *desc, const char *val,
122 result = strsuftollx(desc, val, min, max, errbuf, sizeof(errbuf));
134 __strsuftollx(const char *desc, const char *val, argument
141 _DIAGASSERT(val != NULL);
149 while (isspace((unsigned char)*val)) /* Skip leading space */
150 val++;
153 num = strtoll(val, &expr, 10);
157 if (expr == val) /* No digits */
224 snprintf(ebuf, ebuflen, "%s `%s': illegal number", desc, val);
244 strsuftollx(const char *desc, const char *val, argument
[all...]
/system/bt/btcore/src/
H A Dproperty.c27 static bt_property_t *property_new_(void *val, size_t len, bt_property_type_t type);
35 clone[i].val = osi_calloc(clone[i].len);
36 memcpy(clone[i].val, properties[i].val, clone[i].len);
69 return strlen((const char *)longer->val) == (size_t)shorter->len && !memcmp(longer->val, shorter->val, shorter->len);
72 return p1->len == p2->len && !memcmp(p1->val, p2->val, p1->len);
120 osi_free(properties[i].val);
208 property_new_(void *val, size_t len, bt_property_type_t type) argument
[all...]
/system/media/camera/docs/
H A Dndk_camera_metadata_tags.mako132 % for val in entry.enum.values:
133 % if val.ndk_hidden:
135 print " WARNING: {}_{} is marked as hidden".format(csym(ndk(entry.name)), val.name) + \
140 % if val.hidden or val.ndk_hidden:
141 % if val.id:
143 i = int(val.id, 0) + 1
153 % if (val.notes or val.deprecated):
155 % if val
[all...]
/system/bt/osi/include/socket_utils/
H A Dsockets.h45 const char *val = getenv(key); local
46 if (!val) {
51 int fd = strtol(val, NULL, 10);
/system/extras/tests/workloads/
H A Dpowerave.py33 val = float(line.split(" ")[1]) # xxx take 2nd arg in line variable
34 val -= offset
41 totalpower += val/hz
/system/vold/
H A DKeymaster.h97 const std::string& val) {
98 return params.Authorization(tag, val.data(), val.size());
103 const std::string& val) {
104 params->Authorization(tag, val.data(), val.size());
95 addStringParam(AuthorizationSetBuilder&& params, TypedTag<KM_BYTES, Tag> tag, const std::string& val) argument
102 addStringParam(AuthorizationSetBuilder* params, TypedTag<KM_BYTES, Tag> tag, const std::string& val) argument
/system/extras/tests/lib/testUtil/
H A DtestUtil.c47 double ts2double(const struct timespec *val) argument
51 rv = val->tv_sec;
52 rv += (double) val->tv_nsec / nSecsPerSec;
58 double tv2double(const struct timeval *val) argument
62 rv = val->tv_sec;
63 rv += (double) val->tv_usec / uSecsPerSec;
184 uint32_t val; local
188 val = lrand48();
192 val ^= lrand48() << 1;
194 return val;
211 uint32_t val = (mod <= lrand48maxVal) ? (uint32_t) lrand48() : testRand(); local
[all...]
/system/keymaster/include/keymaster/
H A Dauthorization_set.h221 bool Contains(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, T val) const {
222 return ContainsEnumValue(tag, val);
229 bool Contains(TypedEnumTag<KM_ENUM, Tag, T> tag, T val) const {
230 return ContainsEnumValue(tag, val);
237 bool Contains(TypedTag<KM_UINT, Tag> tag, uint32_t val) const {
238 return ContainsIntValue(tag, val);
242 * If the specified integer-typed \p tag exists, places its value in \p val and returns true.
243 * If \p tag is not present, leaves \p val unmodified and returns false.
246 inline bool GetTagValue(TypedTag<KM_UINT, T> tag, uint32_t* val) const {
247 return GetTagValueInt(tag, val);
374 push_back(TypedEnumTag<Type, Tag, KeymasterEnum> tag, KeymasterEnum val) argument
413 push_back(TypedTag<Type, Tag> tag, typename TypedTag<Type, Tag>::value_type val) argument
[all...]
/system/connectivity/shill/
H A Dconnection_health_checker.h115 void set_num_connection_failures(int16_t val) { argument
116 num_connection_failures_ = val;
121 void set_num_tx_queue_polling_attempts(int16_t val) { argument
122 num_tx_queue_polling_attempts_ = val;
127 void set_num_congested_queue_detected(int16_t val) { argument
128 num_congested_queue_detected_ = val;
131 void set_num_successful_sends(int16_t val) { argument
132 num_successful_sends_ = val;
134 void set_old_transmit_queue_value(uint64_t val) { argument
135 old_transmit_queue_value_ = val;
[all...]
/system/extras/tests/include/
H A DtestUtil.h30 double ts2double(const struct timespec *val);
31 double tv2double(const struct timeval *val);
/system/update_engine/common/
H A Derror_code.h130 inline std::ostream& operator<<(std::ostream& os, ErrorCode val) { argument
131 return os << static_cast<int>(val);
/system/core/init/
H A Dinit.h42 int add_environment(const char* key, const char* val);
/system/core/include/cutils/
H A Dsockets.h63 const char* val = getenv(key); local
64 if (!val) {
69 int fd = strtol(val, NULL, 10);
/system/core/libcutils/tests/
H A DPropertiesTest.cpp182 bool val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/false); local
183 EXPECT_TRUE(val) << "Property should've been TRUE for value: '" << valuesTrue[i] << "'";
192 bool val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/true); local
193 EXPECT_FALSE(val) << "Property shoud've been FALSE For string value: '" << valuesFalse[i] << "'";
207 bool val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/true); local
208 EXPECT_TRUE(val) << "Property should've been NEITHER (true) for string value: '" << valuesNeither[i] << "'";
210 val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/false);
211 EXPECT_FALSE(val) << "Property should've been NEITHER (false) for string value: '" << valuesNeither[i] << "'";
257 int64_t val = property_get_int64(PROPERTY_TEST_KEY, DEFAULT_VALUE); local
258 EXPECT_PRED_FORMAT2(AssertEqualHex, getValues[i], val) << "Propert
304 int32_t val = property_get_int32(PROPERTY_TEST_KEY, DEFAULT_VALUE); local
[all...]
/system/bt/btcore/test/
H A Dproperty_test.cpp33 EXPECT_EQ(addr0.address[0], ((uint8_t*)property->val)[0]);
34 EXPECT_EQ(addr0.address[1], ((uint8_t*)property->val)[1]);
35 EXPECT_EQ(addr0.address[2], ((uint8_t*)property->val)[2]);
36 EXPECT_EQ(addr0.address[3], ((uint8_t*)property->val)[3]);
37 EXPECT_EQ(addr0.address[4], ((uint8_t*)property->val)[4]);
38 EXPECT_EQ(addr0.address[5], ((uint8_t*)property->val)[5]);
52 EXPECT_EQ(dc0._[0], ((uint8_t*)property->val)[0]);
53 EXPECT_EQ(dc0._[1], ((uint8_t*)property->val)[1]);
54 EXPECT_EQ(dc0._[2], ((uint8_t*)property->val)[2]);
69 EXPECT_EQ((int)dt0, *(int*)property->val);
[all...]
/system/bt/bta/sys/
H A Dutl.c44 INT32 val = 0; local
54 val += (INT32) (*p_s++ - '0');
56 if (val > 32767) return -1;
60 return (INT16) val;
64 val *= 10;
/system/extras/alloc-stress/
H A Dalloc-stress.cpp66 bool val = true; local
67 int error = write(m_writeFd, &val, sizeof(val));
68 ASSERT_TRUE(error == sizeof(val));
71 bool val = false; local
72 int error = read(m_readFd, &val, sizeof(val));
73 ASSERT_TRUE(error == sizeof(val));
76 bool val = false; local
77 int error = read(m_readFd, &val, sizeo
[all...]
/system/core/libutils/
H A DLinearTransform.cpp43 uint64_t val,
62 // compute M = val * N (a 96 bit int)
64 // tmp2 = U32(val) * N (a 64 bit int)
65 // tmp1 = L32(val) * N (a 64 bit int)
67 // M = val * N = (tmp2 << 32) + tmp1
68 tmp2 = (val >> 32) * N;
69 tmp1 = (val & UINT32_MAX) * N;
73 // = (U32(val) * N) + U32(L32(val) * N)
91 // tmp1 = L32(val) *
42 scale_u64_to_u64( uint64_t val, uint32_t N, uint32_t D, uint64_t* res, bool round_up_not_down) argument
127 linear_transform_s64_to_s64( int64_t val, int64_t basis1, int32_t N, uint32_t D, bool invert_frac, int64_t basis2, int64_t* out) argument
[all...]

Completed in 2461 milliseconds

12345