Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 157) sorted by relevance

1234567

/system/update_engine/update_manager/
Dboxed_value.cc45 const string* val = reinterpret_cast<const string*>(value); in ValuePrinter() local
46 return *val; in ValuePrinter()
51 const int* val = reinterpret_cast<const int*>(value); in ValuePrinter() local
52 return base::IntToString(*val); in ValuePrinter()
57 const unsigned int* val = reinterpret_cast<const unsigned int*>(value); in ValuePrinter() local
58 return base::UintToString(*val); in ValuePrinter()
63 const int64_t* val = reinterpret_cast<const int64_t*>(value); in ValuePrinter() local
64 return base::Int64ToString(*val); in ValuePrinter()
69 const uint64_t* val = in ValuePrinter() local
71 return base::Uint64ToString(static_cast<uint64_t>(*val)); in ValuePrinter()
[all …]
/system/extras/perfprofd/
Dmap_utils.h37 void Insert(const SymType& sym, const ValType& val) { in Insert() argument
38 auto aggr_it = GetLeqIterator(map_, val); in Insert()
43 CHECK_LT(val, map_.begin()->first); in Insert()
45 ExtendLeft(map_.begin(), val); in Insert()
50 map_.emplace(val, AggregatedSymbol(sym, val)); in Insert()
58 maybe_match.offsets.insert(val); in Insert()
63 if (*maybe_match.offsets.rbegin() < val) { in Insert()
67 ExtendLeft(aggr_it, val); in Insert()
72 map_.emplace(val, AggregatedSymbol(sym, val)); in Insert()
80 for (; *offset_it < val; ++offset_it) { in Insert()
[all …]
/system/libhwbinder/
DTextOutput.cpp46 TextOutput& operator<<(TextOutput& to, const TypeCode& val) in operator <<() argument
48 printTypeCode(val.typeCode(), textOutputPrinter, (void*)&to); in operator <<()
65 TextOutput& operator<<(TextOutput& to, const HexDump& val) in operator <<() argument
67 printHexData(0, val.buffer(), val.size(), val.bytesPerLine(), in operator <<()
68 val.singleLineCutoff(), val.alignment(), val.carrayStyle(), in operator <<()
DDebug.cpp61 static inline char makehexdigit(uint32_t val) in makehexdigit() argument
63 return "0123456789abcdef"[val&0xF]; in makehexdigit()
66 static char* appendhexnum(uint32_t val, char* out) in appendhexnum() argument
69 *out++ = makehexdigit( val>>i ); in appendhexnum()
239 const unsigned char val = *(pos+startIndex-index); in printHexData() local
240 *c++ = makehexdigit(val>>4); in printHexData()
241 *c++ = makehexdigit(val); in printHexData()
256 const unsigned char val = *(pos+startIndex-index); in printHexData() local
257 *c++ = makehexdigit(val>>4); in printHexData()
258 *c++ = makehexdigit(val); in printHexData()
[all …]
DParcel.cpp613 status_t Parcel::writeInt8(int8_t val) in writeInt8() argument
615 return write(&val, sizeof(val)); in writeInt8()
618 status_t Parcel::writeUint8(uint8_t val) in writeUint8() argument
620 return write(&val, sizeof(val)); in writeUint8()
623 status_t Parcel::writeInt16(int16_t val) in writeInt16() argument
625 return write(&val, sizeof(val)); in writeInt16()
628 status_t Parcel::writeUint16(uint16_t val) in writeUint16() argument
630 return write(&val, sizeof(val)); in writeUint16()
633 status_t Parcel::writeInt32(int32_t val) in writeInt32() argument
635 return writeAligned(val); in writeInt32()
[all …]
/system/extras/tests/sdcard/
Dtestcase.h61 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/bt/btcore/src/
Dproperty.cc28 static bt_property_t* property_new_(void* val, size_t len,
39 clone[i].val = osi_calloc(clone[i].len); in property_copy_array()
40 memcpy(clone[i].val, properties[i].val, clone[i].len); in property_copy_array()
73 return strlen((const char*)longer->val) == (size_t)shorter->len && in property_equals()
74 !memcmp(longer->val, shorter->val, shorter->len); in property_equals()
77 return p1->len == p2->len && !memcmp(p1->val, p2->val, p1->len); in property_equals()
128 osi_free(properties[i].val); in property_free_array()
177 return (const RawAddress*)property->val; in property_as_addr()
183 return (const bt_device_class_t*)property->val; in property_as_device_class()
188 return *(const bt_device_type_t*)property->val; in property_as_device_type()
[all …]
Ddevice_class.cc91 int val = 0; in device_class_to_int() local
92 memcpy(&val, dc, sizeof(*dc)); in device_class_to_int()
93 return static_cast<int>(le32toh(val) & 0xffffff); in device_class_to_int()
114 void device_class_set_major_device(bt_device_class_t* dc, int val) { in device_class_set_major_device() argument
116 DC(dc)->major_device = val; in device_class_set_major_device()
124 void device_class_set_minor_device(bt_device_class_t* dc, int val) { in device_class_set_minor_device() argument
126 DC(dc)->minor_device = val; in device_class_set_minor_device()
/system/core/toolbox/upstream-netbsd/lib/libc/stdlib/
Dstrsuftoll.c116 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/extras/tests/bootloader/
Dbootloadertest.py45 val = 0
48 val = int(varlist[varname], base)
51 return val
54 val = self.fastboot.getvar(varname)
55 self.assertIsNotNone(val)
56 return val
59 val = self.get_exists(varname)
60 self.assertIn(val, validlist)
61 return val
67 val = self.get_exists(varname)
[all …]
/system/keymaster/include/keymaster/
Dauthorization_set.h234 bool Contains(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, T val) const { in Contains() argument
235 return ContainsEnumValue(tag, val); in Contains()
242 bool Contains(TypedEnumTag<KM_ENUM, Tag, T> tag, T val) const { in Contains() argument
243 return ContainsEnumValue(tag, val); in Contains()
250 bool Contains(TypedTag<KM_UINT, Tag> tag, uint32_t val) const { in Contains() argument
251 return ContainsIntValue(tag, val); in Contains()
259 inline bool GetTagValue(TypedTag<KM_UINT, T> tag, uint32_t* val) const { in GetTagValue() argument
260 return GetTagValueInt(tag, val); in GetTagValue()
269 bool GetTagValue(TypedTag<KM_UINT_REP, Tag> tag, size_t instance, uint32_t* val) const { in GetTagValue() argument
270 return GetTagValueIntRep(tag, instance, val); in GetTagValue()
[all …]
/system/extras/tests/lib/testUtil/
DtestUtil.c44 double ts2double(const struct timespec *val) in ts2double() argument
48 rv = val->tv_sec; in ts2double()
49 rv += (double) val->tv_nsec / nSecsPerSec; in ts2double()
55 double tv2double(const struct timeval *val) in tv2double() argument
59 rv = val->tv_sec; in tv2double()
60 rv += (double) val->tv_usec / uSecsPerSec; in tv2double()
181 uint32_t val; in testRand() local
185 val = lrand48(); in testRand()
189 val ^= lrand48() << 1; in testRand()
191 return val; in testRand()
[all …]
/system/media/camera/docs/
Dndk_camera_metadata_tags.mako145 % for val in entry.enum.values:
146 % if val.ndk_hidden:
148 print " WARNING: {}_{} is marked as hidden".format(csym(ndk(entry.name)), val.name) + \
153 % if val.hidden or val.ndk_hidden:
154 % if val.id:
156 i = int(val.id, 0) + 1
166 % if (val.notes or val.deprecated):
168 % if val.notes:
169 ${val.notes | ndkdoc(metadata)}\
171 % if val.ndk_notes:
[all …]
/system/bt/btcore/test/
Dproperty_test.cc33 EXPECT_EQ(addr0.address[0], ((uint8_t*)property->val)[0]); in TEST_F()
34 EXPECT_EQ(addr0.address[1], ((uint8_t*)property->val)[1]); in TEST_F()
35 EXPECT_EQ(addr0.address[2], ((uint8_t*)property->val)[2]); in TEST_F()
36 EXPECT_EQ(addr0.address[3], ((uint8_t*)property->val)[3]); in TEST_F()
37 EXPECT_EQ(addr0.address[4], ((uint8_t*)property->val)[4]); in TEST_F()
38 EXPECT_EQ(addr0.address[5], ((uint8_t*)property->val)[5]); in TEST_F()
52 EXPECT_EQ(dc0._[0], ((uint8_t*)property->val)[0]); in TEST_F()
53 EXPECT_EQ(dc0._[1], ((uint8_t*)property->val)[1]); in TEST_F()
54 EXPECT_EQ(dc0._[2], ((uint8_t*)property->val)[2]); in TEST_F()
69 EXPECT_EQ((int)dt0, *(int*)property->val); in TEST_F()
[all …]
/system/bt/bta/ag/
Dbta_ag_cmd.cc600 tBTA_AG_VAL val = {}; in bta_ag_at_hsp_cback() local
601 val.hdr.handle = bta_ag_scb_to_idx(p_scb); in bta_ag_at_hsp_cback()
602 val.hdr.app_id = p_scb->app_id; in bta_ag_at_hsp_cback()
603 val.num = (uint16_t)int_arg; in bta_ag_at_hsp_cback()
605 if ((p_end - p_arg + 1) >= (long)sizeof(val.str)) { in bta_ag_at_hsp_cback()
611 strlcpy(val.str, p_arg, sizeof(val.str)); in bta_ag_at_hsp_cback()
614 (*bta_ag_cb.p_cback)(command_id, (tBTA_AG*)&val); in bta_ag_at_hsp_cback()
680 static bool bta_ag_parse_bind_set(tBTA_AG_SCB* p_scb, tBTA_AG_VAL val) { in bta_ag_parse_bind_set() argument
681 char* p_token = strtok(val.str, ","); in bta_ag_parse_bind_set()
789 static bool bta_ag_parse_biev_response(tBTA_AG_SCB* p_scb, tBTA_AG_VAL* val) { in bta_ag_parse_biev_response() argument
[all …]
/system/keymaster/tests/
Dauthorization_set_test.cpp260 uint32_t val; in read_uint32() local
261 memcpy(&val, buf, sizeof(val)); in read_uint32()
262 return val; in read_uint32()
266 uint32_t val; in add_to_uint32() local
267 memcpy(&val, buf, sizeof(val)); in add_to_uint32()
268 val += delta; in add_to_uint32()
269 memcpy(buf, &val, sizeof(val)); in add_to_uint32()
438 uint32_t val; in TEST() local
439 EXPECT_TRUE(set.GetTagValue(TAG_USER_ID, &val)); in TEST()
440 EXPECT_EQ(7U, val); in TEST()
[all …]
/system/chre/apps/chqts/src/general_test/
Dcell_info_base.cc32 uint32_t val = static_cast<uint32_t>(value); in sendFatalFailureInt32() local
33 nanoapp_testing::sendFatalFailureToHost(message, &val); in sendFatalFailureInt32()
37 uint32_t val = value; in sendFatalFailureUint8() local
38 nanoapp_testing::sendFatalFailureToHost(message, &val); in sendFatalFailureUint8()
/system/netd/server/
DInterfaceControllerTest.cpp61 MOCK_CONST_METHOD2(set, Status(const std::string& key, const std::string& val));
91 void expectGetProperty(const std::string& key, const std::string& val) { in expectGetProperty() argument
93 .WillOnce(Invoke([val](const std::string&, const std::string&) { return val; })); in expectGetProperty()
96 void expectSetProperty(const std::string& key, const std::string& val, Status status) { in expectSetProperty() argument
97 EXPECT_CALL(mProperties, set(key, val)).WillOnce(Return(status)); in expectSetProperty()
100 void expectWriteToFile(const Fd fd, const std::string& val, int err) { in expectWriteToFile() argument
102 .WillOnce(Invoke([val, err](Fd, const Slice buf) -> StatusOr<size_t> { in expectWriteToFile()
103 EXPECT_EQ(val, toString(buf)); in expectWriteToFile()
107 return val.size(); in expectWriteToFile()
123 [this](const std::string& key, const std::string& val) { in __anon5160b4d60702() argument
[all …]
/system/libhwbinder/include/hwbinder/
DParcel.h84 status_t writeInt8(int8_t val);
85 status_t writeUint8(uint8_t val);
86 status_t writeInt16(int16_t val);
87 status_t writeUint16(uint16_t val);
88 status_t writeInt32(int32_t val);
89 status_t writeUint32(uint32_t val);
90 status_t writeInt64(int64_t val);
91 status_t writeUint64(uint64_t val);
92 status_t writeFloat(float val);
93 status_t writeDouble(double val);
[all …]
DTextOutput.h70 TextOutput& operator<<(TextOutput& to, const T& val)
73 strbuf << val;
93 TextOutput& operator<<(TextOutput& to, const TypeCode& val);
122 TextOutput& operator<<(TextOutput& to, const HexDump& val);
137 inline TextOutput& operator<<(TextOutput& to, const bool &val)
139 if (val) to.print("true", 4);
144 inline TextOutput& operator<<(TextOutput& to, const String16& val)
146 to << String8(val).string();
/system/extras/alloc-stress/
Dalloc-stress.cpp74 bool val = true; in signal() local
75 int error = write(m_writeFd, &val, sizeof(val)); in signal()
76 ASSERT_TRUE(error == sizeof(val)); in signal()
79 bool val = false; in wait() local
80 int error = read(m_readFd, &val, sizeof(val)); in wait()
81 ASSERT_TRUE(error == sizeof(val)); in wait()
84 bool val = false; in wait_ret_error() local
85 int error = read(m_readFd, &val, sizeof(val)); in wait_ret_error()
/system/core/libcutils/tests/
DPropertiesTest.cpp233 bool val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/false); in TEST_F() local
234 EXPECT_TRUE(val) << "Property should've been TRUE for value: '" << valuesTrue[i] << "'"; in TEST_F()
243 bool val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/true); in TEST_F() local
244 … EXPECT_FALSE(val) << "Property shoud've been FALSE For string value: '" << valuesFalse[i] << "'"; in TEST_F()
258 bool val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/true); in TEST_F() local
259 …EXPECT_TRUE(val) << "Property should've been NEITHER (true) for string value: '" << valuesNeither[… in TEST_F()
261 val = property_get_bool(PROPERTY_TEST_KEY, /*default_value*/false); in TEST_F()
262 …EXPECT_FALSE(val) << "Property should've been NEITHER (false) for string value: '" << valuesNeithe… in TEST_F()
308 int64_t val = property_get_int64(PROPERTY_TEST_KEY, DEFAULT_VALUE); in TEST_F() local
309 …EXPECT_PRED_FORMAT2(AssertEqualHex, getValues[i], val) << "Property was set to '" << setValues[i] … in TEST_F()
[all …]
Dandroid_get_control_socket_test.cpp60 char val[32]; in TEST() local
61 snprintf(val, sizeof(val), "%d", fd); in TEST()
62 EXPECT_EQ(setenv(key, val, true), 0); in TEST()
/system/libufdt/
Dufdt_overlay.c60 uint32_t val; in fdt_increase_u32() local
62 dto_memcpy(&val, pos, sizeof(val)); in fdt_increase_u32()
63 val = cpu_to_fdt32(fdt32_to_cpu(val) + offset); in fdt_increase_u32()
64 dto_memcpy(pos, &val, sizeof(val)); in fdt_increase_u32()
209 uint32_t val; in ufdt_do_one_fixup() local
211 val = cpu_to_fdt32(phandle); in ufdt_do_one_fixup()
216 dto_memcpy(fixup_pos, &val, sizeof(val)); in ufdt_do_one_fixup()
326 const void *val; in ufdt_overlay_get_target() local
329 val = ufdt_node_get_fdt_prop_data_by_name(frag_node, "target", NULL); in ufdt_overlay_get_target()
330 if (val) { in ufdt_overlay_get_target()
[all …]
/system/bt/osi/include/socket_utils/
Dsockets.h41 const char* val = getenv(key); in osi_android_get_control_socket() local
42 if (!val) { in osi_android_get_control_socket()
47 int fd = strtol(val, NULL, 10); in osi_android_get_control_socket()

1234567