/system/keymaster/include/keymaster/ |
D | authorization_set.h | 117 inline bool GetTagValue(TypedTag<KM_INT, T> tag, uint32_t* val) const { in GetTagValue() argument 118 return GetTagValueInt(tag, val); in GetTagValue() 127 bool GetTagValue(TypedTag<KM_INT_REP, Tag> tag, size_t instance, uint32_t* val) const { in GetTagValue() argument 128 return GetTagValueIntRep(tag, instance, val); in GetTagValue() 136 inline bool GetTagValue(TypedTag<KM_LONG, T> tag, uint64_t* val) const { in GetTagValue() argument 137 return GetTagValueLong(tag, val); in GetTagValue() 145 bool GetTagValue(TypedEnumTag<KM_ENUM, Tag, T> tag, T* val) const { in GetTagValue() argument 146 return GetTagValueEnum(tag, reinterpret_cast<uint32_t*>(val)); in GetTagValue() 155 bool GetTagValue(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, size_t instance, T* val) const { in GetTagValue() argument 156 return GetTagValueEnumRep(tag, instance, reinterpret_cast<uint32_t*>(val)); in GetTagValue() [all …]
|
D | serializable.h | 80 uint32_t val = static_cast<uint32_t>(value); in append_uint32_to_buf() local 81 return append_to_buf(buf, end, &val, sizeof(val)); in append_uint32_to_buf() 144 uint32_t val; in copy_uint32_from_buf() local 145 if (!copy_from_buf(buf_ptr, end, &val, sizeof(val))) in copy_uint32_from_buf() 147 *value = static_cast<T>(val); in copy_uint32_from_buf()
|
/system/extras/tests/sdcard/ |
D | testcase.h | 61 void setNproc(size_t val) { mNproc = val; } in setNproc() argument 64 void setDataSize(size_t val) { mDataSize = val; } in setDataSize() argument 67 void setChunkSize(size_t val) { mChunkSize = val; } in setChunkSize() argument 70 void setTreeDepth(size_t val) { mTreeDepth = val; } in setTreeDepth() argument 73 void setNewFairSleepers(bool val) { in setNewFairSleepers() argument 74 mNewFairSleepers = val; in setNewFairSleepers() 75 android::setNewFairSleepers(val); in setNewFairSleepers() 79 void setNormalizedSleepers(bool val) { in setNormalizedSleepers() argument 80 mNormalizedSleepers = val; in setNormalizedSleepers() 81 android::setNormalizedSleepers(val); in setNormalizedSleepers()
|
/system/core/toolbox/upstream-netbsd/lib/libc/stdlib/ |
D | strsuftoll.c | 116 strsuftoll(const char *desc, const char *val, in __weak_alias() 122 result = strsuftollx(desc, val, min, max, errbuf, sizeof(errbuf)); in __weak_alias() 134 __strsuftollx(const char *desc, const char *val, in __strsuftollx() argument 141 _DIAGASSERT(val != NULL); in __strsuftollx() 149 while (isspace((unsigned char)*val)) /* Skip leading space */ in __strsuftollx() 150 val++; in __strsuftollx() 153 num = strtoll(val, &expr, 10); in __strsuftollx() 157 if (expr == val) /* No digits */ in __strsuftollx() 224 snprintf(ebuf, ebuflen, "%s `%s': illegal number", desc, val); in __strsuftollx() 244 strsuftollx(const char *desc, const char *val, in strsuftollx() argument [all …]
|
/system/keymaster/ |
D | google_keymaster_test_utils.h | 45 KeymasterEnum val) { in contains() argument 47 return pos != -1 && set[pos].enumerated == val; in contains() 52 KeymasterEnum val) { in contains() argument 55 if (set[pos].enumerated == val) in contains() 61 bool contains(const AuthorizationSet& set, TypedTag<KM_INT, Tag> tag, uint32_t val) { in contains() argument 63 return pos != -1 && set[pos].integer == val; in contains() 67 bool contains(const AuthorizationSet& set, TypedTag<KM_INT_REP, Tag> tag, uint32_t val) { in contains() argument 70 if (set[pos].integer == val) in contains() 76 bool contains(const AuthorizationSet& set, TypedTag<KM_LONG, Tag> tag, uint64_t val) { in contains() argument 78 return pos != -1 && set[pos].long_integer == val; in contains() [all …]
|
D | authorization_set_test.cpp | 254 uint32_t val; in read_uint32() local 255 memcpy(&val, buf, sizeof(val)); in read_uint32() 256 return val; in read_uint32() 260 uint32_t val; in add_to_uint32() local 261 memcpy(&val, buf, sizeof(val)); in add_to_uint32() 262 val += delta; in add_to_uint32() 263 memcpy(buf, &val, sizeof(val)); in add_to_uint32() 445 uint32_t val; in TEST() local 446 EXPECT_TRUE(set.GetTagValue(TAG_USER_ID, &val)); in TEST() 447 EXPECT_EQ(7U, val); in TEST() [all …]
|
D | authorization_set.cpp | 446 bool AuthorizationSet::GetTagValueEnum(keymaster_tag_t tag, uint32_t* val) const { in GetTagValueEnum() 451 *val = elems_[pos].enumerated; in GetTagValueEnum() 456 uint32_t* val) const { in GetTagValueEnumRep() 466 *val = elems_[pos].enumerated; in GetTagValueEnumRep() 470 bool AuthorizationSet::GetTagValueInt(keymaster_tag_t tag, uint32_t* val) const { in GetTagValueInt() 475 *val = elems_[pos].integer; in GetTagValueInt() 480 uint32_t* val) const { in GetTagValueIntRep() 490 *val = elems_[pos].integer; in GetTagValueIntRep() 494 bool AuthorizationSet::GetTagValueLong(keymaster_tag_t tag, uint64_t* val) const { in GetTagValueLong() 499 *val = elems_[pos].long_integer; in GetTagValueLong() [all …]
|
/system/extras/tests/lib/testUtil/ |
D | testUtil.c | 46 double ts2double(const struct timespec *val) in ts2double() argument 50 rv = val->tv_sec; in ts2double() 51 rv += (double) val->tv_nsec / nSecsPerSec; in ts2double() 57 double tv2double(const struct timeval *val) in tv2double() argument 61 rv = val->tv_sec; in tv2double() 62 rv += (double) val->tv_usec / uSecsPerSec; in tv2double() 183 uint32_t val; in testRand() local 187 val = lrand48(); in testRand() 191 val ^= lrand48() << 1; in testRand() 193 return val; in testRand() [all …]
|
/system/core/mkbootimg/ |
D | mkbootimg.c | 126 char *val = argv[1]; in main() local 133 bootimg = val; in main() 135 kernel_fn = val; in main() 137 ramdisk_fn = val; in main() 139 second_fn = val; in main() 141 cmdline = val; in main() 143 base = strtoul(val, 0, 16); in main() 145 kernel_offset = strtoul(val, 0, 16); in main() 147 ramdisk_offset = strtoul(val, 0, 16); in main() 149 second_offset = strtoul(val, 0, 16); in main() [all …]
|
/system/core/toolbox/upstream-netbsd/bin/sleep/ |
D | sleep.c | 71 double fval, ival, val; in main() local 111 val = atof(arg); in main() 112 if (val <= 0) in main() 114 ival = floor(val); in main() 115 fval = (1000000000 * (val-ival)); in main()
|
/system/vold/ |
D | CheckBattery.cpp | 70 BatteryProperty val; in is_battery_ok() local 72 ->getProperty(android::BATTERY_PROP_CAPACITY, &val); in is_battery_ok() 74 SLOGD("Capacity is %d", (int)val.valueInt64); in is_battery_ok() 75 last_result = val.valueInt64; in is_battery_ok()
|
/system/core/libcutils/tests/ |
D | PropertiesTest.cpp | 182 bool val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/false); in TEST_F() local 183 EXPECT_TRUE(val) << "Property should've been TRUE for value: '" << valuesTrue[i] << "'"; in TEST_F() 192 bool val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/true); in TEST_F() local 193 … EXPECT_FALSE(val) << "Property shoud've been FALSE For string value: '" << valuesFalse[i] << "'"; in TEST_F() 207 bool val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/true); in TEST_F() local 208 …EXPECT_TRUE(val) << "Property should've been NEITHER (true) for string value: '" << valuesNeither[… in TEST_F() 210 val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/false); in TEST_F() 211 …EXPECT_FALSE(val) << "Property should've been NEITHER (false) for string value: '" << valuesNeithe… in TEST_F() 257 int64_t val = property_get_int64(PROPERTY_TEST_KEY, DEFAULT_VALUE); in TEST_F() local 258 …EXPECT_PRED_FORMAT2(AssertEqualHex, getValues[i], val) << "Property was set to '" << setValues[i] … in TEST_F() [all …]
|
/system/core/include/cutils/ |
D | sockets.h | 50 const char *val; in android_get_control_socket() local 65 val = getenv(key); in android_get_control_socket() 66 if (!val) in android_get_control_socket() 70 fd = strtol(val, NULL, 10); in android_get_control_socket()
|
/system/core/libutils/ |
D | LinearTransform.cpp | 30 uint64_t val, in scale_u64_to_u64() argument 55 tmp2 = (val >> 32) * N; in scale_u64_to_u64() 56 tmp1 = (val & UINT32_MAX) * N; in scale_u64_to_u64() 113 int64_t val, in linear_transform_s64_to_s64() argument 129 if (val < basis1) { in linear_transform_s64_to_s64() 131 abs_val = basis1 - val; in linear_transform_s64_to_s64() 134 abs_val = val - basis1; in linear_transform_s64_to_s64()
|
/system/netd/server/ |
D | List.h | 51 explicit _Node(const T& val) : mVal(val) {} in _Node() argument 57 inline void setVal(const T& val) { mVal = val; } in setVal() argument 208 void push_front(const T& val) { insert(begin(), val); } in push_front() argument 209 void push_back(const T& val) { insert(end(), val); } in push_back() argument 212 iterator insert(iterator posn, const T& val) in insert() argument 214 _Node* newNode = new _Node(val); // alloc & copy-construct in insert()
|
/system/core/include/sysutils/ |
D | List.h | 51 explicit _Node(const T& val) : mVal(val) {} in _Node() argument 57 inline void setVal(const T& val) { mVal = val; } in setVal() argument 208 void push_front(const T& val) { insert(begin(), val); } in push_front() argument 209 void push_back(const T& val) { insert(end(), val); } in push_back() argument 212 iterator insert(iterator posn, const T& val) in insert() argument 214 _Node* newNode = new _Node(val); // alloc & copy-construct in insert()
|
/system/core/include/utils/ |
D | List.h | 50 explicit _Node(const T& val) : mVal(val) {} in _Node() argument 56 inline void setVal(const T& val) { mVal = val; } in setVal() argument 207 void push_front(const T& val) { insert(begin(), val); } in push_front() argument 208 void push_back(const T& val) { insert(end(), val); } in push_back() argument 211 iterator insert(iterator posn, const T& val) in insert() argument 213 _Node* newNode = new _Node(val); // alloc & copy-construct in insert()
|
/system/media/audio_utils/tests/ |
D | primitives_tests.cpp | 102 } val; in TEST() local 106 val.f = 16.; in TEST() 107 res = clampq4_27_from_float(val.f); in TEST() 109 val.i--; in TEST() 110 res = clampq4_27_from_float(val.f); in TEST() 113 val.f = -16.; in TEST() 114 res = clampq4_27_from_float(val.f); in TEST() 116 val.i++; in TEST() 117 res = clampq4_27_from_float(val.f); in TEST() 124 val.f = 16.; in TEST() [all …]
|
/system/core/libsync/ |
D | sync_test.c | 94 unsigned val = i + j * 3 + 1; in main() local 96 int fd = sw_sync_fence_create(sync_timeline_fd, str, val); in main() 98 printf("can't create sync pt %d: %s", val, strerror(errno)); in main() 142 void *val; in main() local 143 pthread_join(threads[i], &val); in main()
|
/system/media/audio_utils/ |
D | channels.c | 35 inline int32_t uint8x3_to_int32(uint8x3_t val) { in uint8x3_to_int32() argument 37 int32_t temp = (val.c[0] << 24 | val.c[1] << 16 | val.c[2] << 8) >> 8; in uint8x3_to_int32() 39 int32_t temp = (val.c[2] << 24 | val.c[1] << 16 | val.c[0] << 8) >> 8; in uint8x3_to_int32()
|
/system/core/debuggerd/ |
D | utility.cpp | 193 char val = (data >> (j*8)) & 0xff; in dump_memory() local 194 if (val >= 0x20 && val < 0x7f) { in dump_memory() 195 *asc_out++ = val; in dump_memory()
|
/system/extras/tests/include/ |
D | testUtil.h | 30 double ts2double(const struct timespec *val); 31 double tv2double(const struct timeval *val);
|
/system/core/logd/ |
D | LogReader.cpp | 73 int val = 0; in onDataAvailable() local 75 val = val * 10 + *cp - '0'; in onDataAvailable() 78 logMask |= 1 << val; in onDataAvailable()
|
/system/core/libcutils/ |
D | str_parms.c | 269 int str_parms_get_str(struct str_parms *str_parms, const char *key, char *val, in str_parms_get_str() argument 276 return strlcpy(val, value, len); in str_parms_get_str() 281 int str_parms_get_int(struct str_parms *str_parms, const char *key, int *val) in str_parms_get_int() argument 290 *val = (int)strtol(value, &end, 0); in str_parms_get_int() 298 float *val) in str_parms_get_float() argument 312 *val = out; in str_parms_get_float()
|
/system/media/camera/docs/ |
D | camera_metadata_tags.mako | 100 % for val in entry.enum.values: 101 % if val.id is None: 102 ${entry.name | csym}_${val.name}, 104 ${'%s_%s'%(csym(entry.name), val.name) | pad(65)} = ${val.id},
|