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

123456

/system/update_engine/update_manager/
H A Dboxed_value.cc45 const string* val = reinterpret_cast<const string*>(value); local
46 return *val;
51 const int* val = reinterpret_cast<const int*>(value); local
52 return base::IntToString(*val);
57 const unsigned int* val = reinterpret_cast<const unsigned int*>(value); local
58 return base::UintToString(*val);
63 const int64_t* val = reinterpret_cast<const int64_t*>(value); local
64 return base::Int64ToString(*val);
69 const uint64_t* val = local
71 return base::Uint64ToString(static_cast<uint64_t>(*val));
76 const bool* val = reinterpret_cast<const bool*>(value); local
82 const double* val = reinterpret_cast<const double*>(value); local
88 const base::Time* val = reinterpret_cast<const base::Time*>(value); local
94 const base::TimeDelta* val = reinterpret_cast<const base::TimeDelta*>(value); local
100 const ConnectionType* val = reinterpret_cast<const ConnectionType*>(value); local
107 const set<ConnectionType>* val = local
120 const ConnectionTethering* val = local
138 const Stage* val = reinterpret_cast<const Stage*>(value); local
165 const UpdateRequestStatus* val = local
[all...]
/system/libhwbinder/
H A DTextOutput.cpp46 TextOutput& operator<<(TextOutput& to, const TypeCode& val) argument
48 printTypeCode(val.typeCode(), textOutputPrinter, (void*)&to);
65 TextOutput& operator<<(TextOutput& to, const HexDump& val) argument
67 printHexData(0, val.buffer(), val.size(), val.bytesPerLine(),
68 val.singleLineCutoff(), val.alignment(), val.carrayStyle(),
H A DDebug.cpp60 static inline char makehexdigit(uint32_t val) argument
62 return "0123456789abcdef"[val&0xF];
65 static char* appendhexnum(uint32_t val, char* out) argument
68 *out++ = makehexdigit( val>>i );
234 const unsigned char val = *(pos+startIndex-index); local
235 *c++ = makehexdigit(val>>4);
236 *c++ = makehexdigit(val);
251 const unsigned char val = *(pos+startIndex-index); local
252 *c++ = makehexdigit(val>>4);
253 *c++ = makehexdigit(val);
269 const unsigned char val = pos[index]; 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/bt/osi/include/socket_utils/
H A Dsockets.h41 const char* val = getenv(key); local
42 if (!val) {
47 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/bt/btcore/src/
H A Dproperty.cc27 static bt_property_t* property_new_(void* val, size_t len,
38 clone[i].val = osi_calloc(clone[i].len);
39 memcpy(clone[i].val, properties[i].val, clone[i].len);
72 return strlen((const char*)longer->val) == (size_t)shorter->len &&
73 !memcmp(longer->val, shorter->val, shorter->len);
76 return p1->len == p2->len && !memcmp(p1->val, p2->val, p1->len);
128 osi_free(properties[i].val);
218 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/extras/tests/bootloader/
H A Dbootloadertest.py40 val = 0
43 val = int(varlist[varname], base)
46 return val
49 val = self.fastboot.getvar(varname)
50 self.assertIsNotNone(val)
51 return val
54 val = self.get_exists(varname)
55 self.assertIn(val, validlist)
56 return val
62 val
[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/extras/tests/lib/testUtil/
H A DtestUtil.c46 double ts2double(const struct timespec *val) argument
50 rv = val->tv_sec;
51 rv += (double) val->tv_nsec / nSecsPerSec;
57 double tv2double(const struct timeval *val) argument
61 rv = val->tv_sec;
62 rv += (double) val->tv_usec / uSecsPerSec;
183 uint32_t val; local
187 val = lrand48();
191 val ^= lrand48() << 1;
193 return val;
210 uint32_t val = (mod <= lrand48maxVal) ? (uint32_t) lrand48() : testRand(); local
[all...]
/system/keymaster/include/keymaster/
H A Dauthorization_set.h233 bool Contains(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, T val) const {
234 return ContainsEnumValue(tag, val);
241 bool Contains(TypedEnumTag<KM_ENUM, Tag, T> tag, T val) const {
242 return ContainsEnumValue(tag, val);
249 bool Contains(TypedTag<KM_UINT, Tag> tag, uint32_t val) const {
250 return ContainsIntValue(tag, val);
254 * If the specified integer-typed \p tag exists, places its value in \p val and returns true.
255 * If \p tag is not present, leaves \p val unmodified and returns false.
258 inline bool GetTagValue(TypedTag<KM_UINT, T> tag, uint32_t* val) const {
259 return GetTagValueInt(tag, val);
386 push_back(TypedEnumTag<Type, Tag, KeymasterEnum> tag, KeymasterEnum val) argument
425 push_back(TypedTag<Type, Tag> tag, typename TypedTag<Type, Tag>::value_type val) argument
[all...]
/system/core/libcutils/tests/
H A Dandroid_get_control_socket_test.cpp60 char val[32]; local
61 snprintf(val, sizeof(val), "%d", fd);
62 EXPECT_EQ(setenv(key, val, true), 0);
/system/extras/tests/include/
H A DtestUtil.h30 double ts2double(const struct timespec *val);
31 double tv2double(const struct timeval *val);
/system/libhwbinder/include/hwbinder/
H A DTextOutput.h70 TextOutput& operator<<(TextOutput& to, const T& val) argument
73 strbuf << val; local
93 TextOutput& operator<<(TextOutput& to, const TypeCode& val);
122 TextOutput& operator<<(TextOutput& to, const HexDump& val);
126 /*val*/) {
137 inline TextOutput& operator<<(TextOutput& to, const bool &val) argument
139 if (val) to.print("true", 4);
144 inline TextOutput& operator<<(TextOutput& to, const String16& val) argument
146 to << String8(val).string();
H A DParcel.h85 status_t writeInt8(int8_t val);
86 status_t writeUint8(uint8_t val);
87 status_t writeInt16(int16_t val);
88 status_t writeUint16(uint16_t val);
89 status_t writeInt32(int32_t val);
90 status_t writeUint32(uint32_t val);
91 status_t writeInt64(int64_t val);
92 status_t writeUint64(uint64_t val);
93 status_t writeFloat(float val);
94 status_t writeDouble(double val);
[all...]
/system/update_engine/common/
H A Derror_code.h131 inline std::ostream& operator<<(std::ostream& os, ErrorCode val) { argument
132 return os << static_cast<int>(val);
/system/core/init/
H A Dinit.h33 int add_environment(const char* key, const char* val);
/system/core/libcutils/
H A Dandroid_get_control_file.cpp61 const char* val = getenv(key); local
63 if (!val) return -1;
66 long fd = strtol(val, NULL, 10);
/system/bt/btcore/test/
H A Dproperty_test.cc31 EXPECT_EQ(addr0.address[0], ((uint8_t*)property->val)[0]);
32 EXPECT_EQ(addr0.address[1], ((uint8_t*)property->val)[1]);
33 EXPECT_EQ(addr0.address[2], ((uint8_t*)property->val)[2]);
34 EXPECT_EQ(addr0.address[3], ((uint8_t*)property->val)[3]);
35 EXPECT_EQ(addr0.address[4], ((uint8_t*)property->val)[4]);
36 EXPECT_EQ(addr0.address[5], ((uint8_t*)property->val)[5]);
50 EXPECT_EQ(dc0._[0], ((uint8_t*)property->val)[0]);
51 EXPECT_EQ(dc0._[1], ((uint8_t*)property->val)[1]);
52 EXPECT_EQ(dc0._[2], ((uint8_t*)property->val)[2]);
67 EXPECT_EQ((int)dt0, *(int*)property->val);
[all...]
/system/libufdt/
H A Dufdt_overlay.c60 uint32_t val; local
62 dto_memcpy(&val, pos, sizeof(val));
63 val = cpu_to_fdt32(fdt32_to_cpu(val) + offset);
64 dto_memcpy(pos, &val, sizeof(val));
203 uint32_t val; local
205 val = cpu_to_fdt32(phandle);
210 dto_memcpy(fixup_pos, &val, sizeo
334 const void *val; local
[all...]
/system/bt/bta/sys/
H A Dutl.cc44 int32_t val = 0; local
54 val += (int32_t)(*p_s++ - '0');
56 if (val > 32767) return -1;
59 return (int16_t)val;
61 val *= 10;
/system/core/storaged/
H A Dstoraged_info.cpp160 uint16_t val; local
164 token, &val)) < 2) {
169 eol = val;
171 lifetime_a = val;
173 lifetime_b = val;
/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/keymaster/
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...]

Completed in 2191 milliseconds

123456