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

12

/system/core/include/cutils/
H A Dsockets.h50 const char *val; local
65 val = getenv(key);
66 if (!val)
70 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/keymaster/
H A Dopenssl_utils.h38 T* val __attribute__((unused)) = p.release(); local
H A Dgoogle_keymaster_test_utils.h45 KeymasterEnum val) {
47 return pos != -1 && set[pos].enumerated == val;
52 KeymasterEnum val) {
55 if (set[pos].enumerated == val)
61 bool contains(const AuthorizationSet& set, TypedTag<KM_INT, Tag> tag, uint32_t val) { argument
63 return pos != -1 && set[pos].integer == val;
67 bool contains(const AuthorizationSet& set, TypedTag<KM_INT_REP, Tag> tag, uint32_t val) { argument
70 if (set[pos].integer == val)
76 bool contains(const AuthorizationSet& set, TypedTag<KM_LONG, Tag> tag, uint64_t val) { argument
78 return pos != -1 && set[pos].long_integer == val;
44 contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM, Tag, KeymasterEnum> tag, KeymasterEnum val) argument
51 contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM_REP, Tag, KeymasterEnum> tag, KeymasterEnum val) argument
82 contains(const AuthorizationSet& set, TypedTag<KM_BYTES, Tag> tag, const std::string& val) argument
[all...]
H A Dauthorization_set_test.cpp254 uint32_t val; local
255 memcpy(&val, buf, sizeof(val));
256 return val;
260 uint32_t val; local
261 memcpy(&val, buf, sizeof(val));
262 val += delta;
263 memcpy(buf, &val, sizeof(val));
445 uint32_t val; local
465 uint32_t val; local
487 uint64_t val; local
507 keymaster_algorithm_t val; local
528 keymaster_purpose_t val; local
550 uint64_t val; local
570 keymaster_blob_t val; local
[all...]
/system/vold/
H A DCheckBattery.cpp70 BatteryProperty val; local
72 ->getProperty(android::BATTERY_PROP_CAPACITY, &val);
74 SLOGD("Capacity is %d", (int)val.valueInt64);
75 last_result = val.valueInt64;
/system/core/healthd/
H A DBatteryPropertiesRegistrar.cpp75 status_t BatteryPropertiesRegistrar::getProperty(int id, struct BatteryProperty *val) { argument
76 return healthd_get_property(id, val);
H A DBatteryMonitor.cpp45 int val; member in struct:android::sysfsStringEnumMap
52 return map[i].val;
279 status_t BatteryMonitor::getProperty(int id, struct BatteryProperty *val) { argument
282 val->valueInt64 = LONG_MIN;
287 val->valueInt64 =
297 val->valueInt64 =
307 val->valueInt64 =
317 val->valueInt64 =
327 ret = mHealthdConfig->energyCounter(&val->valueInt64);
H A Dhealthd.cpp172 status_t healthd_get_property(int id, struct BatteryProperty *val) { argument
173 return gBatteryMonitor->getProperty(id, val);
/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/core/toolbox/upstream-netbsd/bin/sleep/
H A Dsleep.c71 double fval, ival, val; local
111 val = atof(arg);
112 if (val <= 0)
114 ival = floor(val);
115 fval = (1000000000 * (val-ival));
/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/core/debuggerd/
H A Dutility.cpp193 char val = (data >> (j*8)) & 0xff; local
194 if (val >= 0x20 && val < 0x7f) {
195 *asc_out++ = val;
/system/core/libutils/
H A DLinearTransform.cpp30 uint64_t val,
49 // compute M = val * N (a 96 bit int)
51 // tmp2 = U32(val) * N (a 64 bit int)
52 // tmp1 = L32(val) * N (a 64 bit int)
54 // M = val * N = (tmp2 << 32) + tmp1
55 tmp2 = (val >> 32) * N;
56 tmp1 = (val & UINT32_MAX) * N;
60 // = (U32(val) * N) + U32(L32(val) * N)
78 // tmp1 = L32(val) *
29 scale_u64_to_u64( uint64_t val, uint32_t N, uint32_t D, uint64_t* res, bool round_up_not_down) argument
112 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/core/logd/
H A DLogReader.cpp73 int val = 0; local
75 val = val * 10 + *cp - '0';
78 logMask |= 1 << val;
/system/core/mkbootimg/
H A Dmkbootimg.c126 char *val = argv[1]; local
133 bootimg = val;
135 kernel_fn = val;
137 ramdisk_fn = val;
139 second_fn = val;
141 cmdline = val;
143 base = strtoul(val, 0, 16);
145 kernel_offset = strtoul(val, 0, 16);
147 ramdisk_offset = strtoul(val, 0, 16);
149 second_offset = strtoul(val,
[all...]
/system/core/toolbox/upstream-netbsd/sbin/chown/
H A Dchown.c278 id_t val; local
284 val = (id_t)strtoul(name, &ep, 10);
289 return (val);
/system/keymaster/include/keymaster/
H A Dauthorization_set.h113 * If the specified integer-typed \p tag exists, places its value in \p val and returns true.
114 * If \p tag is not present, leaves \p val unmodified and returns false.
117 inline bool GetTagValue(TypedTag<KM_INT, T> tag, uint32_t* val) const {
118 return GetTagValueInt(tag, val);
123 * in \p val and returns true. If \p tag is not present, leaves \p val unmodified and returns
127 bool GetTagValue(TypedTag<KM_INT_REP, Tag> tag, size_t instance, uint32_t* val) const {
128 return GetTagValueIntRep(tag, instance, val);
132 * If the specified long-typed \p tag exists, places its value in \p val and returns true.
133 * If \p tag is not present, leaves \p val unmodifie
213 push_back(TypedEnumTag<Type, Tag, KeymasterEnum> tag, KeymasterEnum val) argument
232 push_back(TypedTag<Type, Tag> tag, typename TypedTag<Type, Tag>::value_type val) argument
[all...]
H A Dserializable.h80 uint32_t val = static_cast<uint32_t>(value); local
81 return append_to_buf(buf, end, &val, sizeof(val));
144 uint32_t val; local
145 if (!copy_from_buf(buf_ptr, end, &val, sizeof(val)))
147 *value = static_cast<T>(val);
/system/core/libcutils/
H A Dstr_parms.c269 int str_parms_get_str(struct str_parms *str_parms, const char *key, char *val, argument
276 return strlcpy(val, value, len);
281 int str_parms_get_int(struct str_parms *str_parms, const char *key, int *val) argument
290 *val = (int)strtol(value, &end, 0);
298 float *val)
312 *val = out;
297 str_parms_get_float(struct str_parms *str_parms, const char *key, float *val) argument
/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/core/liblog/
H A Devent_tag_map.c336 unsigned long val; local
343 val = strtoul(startp, &endp, 10);
348 tag->tagIndex = val;
/system/core/libsparse/
H A Dbacked_block.c43 uint32_t val; member in struct:backed_block::__anon213::__anon217
106 return bb->fill.val;
219 if (a->fill.val != b->fill.val) {
299 bb->fill.val = fill_val;
/system/core/libutils/tests/
H A DLruCache_test.cpp195 const char *val = cache.get(key); local
196 if (val != NULL) {
197 EXPECT_EQ(strings[index], val);

Completed in 577 milliseconds

12