Searched defs:val (Results 1 - 25 of 78) sorted by relevance

1234

/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...]
H A Dboxed_value_unittest.cc57 const DeleterMarker* val = reinterpret_cast<const DeleterMarker*>(value); local
59 *val->marker_ ? "true" : "false");
/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/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/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/keymaster/
H A Dopenssl_utils.h82 T* val __attribute__((unused)) = p.release(); local
H A Dauthorization_set_test.cpp251 uint32_t val; local
252 memcpy(&val, buf, sizeof(val));
253 return val;
257 uint32_t val; local
258 memcpy(&val, buf, sizeof(val));
259 val += delta;
260 memcpy(buf, &val, sizeof(val));
429 uint32_t val; local
449 uint64_t val; local
471 uint64_t val; local
491 keymaster_algorithm_t val; local
510 keymaster_purpose_t val; local
531 uint64_t val; local
549 keymaster_blob_t val; local
[all...]
/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/bt/osi/test/
H A Dhash_map_test.cpp76 char *val = (char *)hash_map_get(hash_map, data[i].key); local
77 EXPECT_STREQ(data[i].data, val);
108 char *val = (char *)hash_map_get(hash_map, data[i].key); local
109 EXPECT_STREQ(data[data_sz - 1].data, val);
144 char *val = (char *)hash_map_get(hash_map, data[i].key); local
145 EXPECT_TRUE(val != NULL);
146 EXPECT_STREQ(data[i].data, val);
/system/core/healthd/
H A DBatteryPropertiesRegistrar.cpp76 status_t BatteryPropertiesRegistrar::getProperty(int id, struct BatteryProperty *val) { argument
77 return healthd_get_property(id, 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/libsync/
H A Dsync_test.c64 printf(" val=%d\n", *(uint32_t *)pt_info->driver_data);
94 unsigned val = i + j * 3 + 1; local
96 int fd = sw_sync_fence_create(sync_timeline_fd, str, val);
98 printf("can't create sync pt %d: %s", val, strerror(errno));
142 void *val; local
143 pthread_join(threads[i], &val);
/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/bt/btcore/test/
H A Ddevice_class_test.cpp89 uint32_t *val = (uint32_t *)&dc; local
90 EXPECT_PRED_FORMAT2(check_bitfield, 0x00000000, *val & 0xffffff);
106 uint32_t *val = (uint32_t *)&dc; local
107 EXPECT_PRED_FORMAT2(check_bitfield, 0x00aa55aa, *val & 0xffffff);
123 uint32_t *val = (uint32_t *)&dc; local
124 EXPECT_PRED_FORMAT2(check_bitfield, 0x452301, *val & 0xffffff);
/system/extras/tests/sdcard/
H A Dstopwatch.cpp211 double val = double(time.tv_nsec) / 1.0e9 + double(time.tv_sec); local
212 return val < 0.0 ? -val : val; // sometimes 0.00 is -0.00
/system/media/audio_utils/
H A Dchannels.c35 inline int32_t uint8x3_to_int32(uint8x3_t val) { argument
37 int32_t temp = (val.c[0] << 24 | val.c[1] << 16 | val.c[2] << 8) >> 8;
39 int32_t temp = (val.c[2] << 24 | val.c[1] << 16 | val.c[0] << 8) >> 8;
/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_unittest.cc54 uint32_t val; local
60 EXPECT_FALSE(bs1.ConvertToNetUInt32(&val));
66 uint32_t val; local
74 EXPECT_FALSE(bs1.ConvertToNetUInt32(&val));
132 uint32_t val; local
136 EXPECT_TRUE(bs1.ConvertToNetUInt32(&val));
137 EXPECT_EQ(kTest2Uint32, val);
142 EXPECT_TRUE(bs2.ConvertToNetUInt32(&val));
143 EXPECT_EQ(kTest2Uint32, val);
148 EXPECT_TRUE(bs3.ConvertToCPUUInt32(&val));
216 unsigned char val = kTest1[i] ^ 0xff; local
[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...]
/system/extras/zram-perf/
H A Dzram-perf.cpp24 int val = rand() & 0xfff; local
26 page[i] = val;
/system/keymaster/include/keymaster/
H A Dserializable.h89 uint32_t val = static_cast<uint32_t>(value); local
90 return append_to_buf(buf, end, &val, sizeof(val));
157 uint32_t val; local
158 if (!copy_from_buf(buf_ptr, end, &val, sizeof(val)))
160 *value = static_cast<T>(val);
/system/update_engine/
H A Dp2p_manager_unittest.cc296 long long int val = strtoll(ea_value, &endp, 0); // NOLINT(runtime/int) local
302 if (val != expected_size_xattr) {
304 << " but size was " << val; local
/system/bt/bta/ag/
H A Dbta_ag_act.c914 tBTA_AG_VAL val; local
921 val.num = codec_type;
922 val.hdr.status = BTA_AG_FAIL_RESOURCES;
924 (*bta_ag_cb.p_cback)(BTA_AG_WBS_EVT, (tBTA_AG *) &val);
933 val.num = codec_type;
934 val.hdr.status = BTA_AG_SUCCESS;
939 val.num = codec_type;
940 val.hdr.status = BTA_AG_FAIL_RESOURCES;
944 (*bta_ag_cb.p_cback)(BTA_AG_WBS_EVT, (tBTA_AG *) &val);
/system/bt/btcore/src/
H A Ddevice_class.c107 void device_class_set_major_device(bt_device_class_t *dc, int val) { argument
109 DC(dc)->major_device = val;
117 void device_class_set_minor_device(bt_device_class_t *dc, int val) { argument
119 DC(dc)->minor_device = val;
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...]

Completed in 500 milliseconds

1234