Home
last modified time | relevance | path

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

12345678

/system/update_engine/update_manager/
Dboxed_value.cc47 const string* val = reinterpret_cast<const string*>(value); in ValuePrinter() local
48 return *val; in ValuePrinter()
53 const int* val = reinterpret_cast<const int*>(value); in ValuePrinter() local
54 return base::NumberToString(*val); in ValuePrinter()
59 const unsigned int* val = reinterpret_cast<const unsigned int*>(value); in ValuePrinter() local
60 return base::NumberToString(*val); in ValuePrinter()
65 const int64_t* val = reinterpret_cast<const int64_t*>(value); in ValuePrinter() local
66 return base::NumberToString(*val); in ValuePrinter()
71 const uint64_t* val = reinterpret_cast<const uint64_t*>(value); in ValuePrinter() local
72 return base::NumberToString(*val); in ValuePrinter()
[all …]
/system/core/trusty/utils/rpmb_dev/
Drpmb_protocol.h89 static inline struct rpmb_u16 rpmb_u16(uint16_t val) { in rpmb_u16() argument
91 (uint8_t)(val >> 8), in rpmb_u16()
92 (uint8_t)(val >> 0), in rpmb_u16()
97 static inline struct rpmb_u32 rpmb_u32(uint32_t val) { in rpmb_u32() argument
99 (uint8_t)(val >> 24), in rpmb_u32()
100 (uint8_t)(val >> 16), in rpmb_u32()
101 (uint8_t)(val >> 8), in rpmb_u32()
102 (uint8_t)(val >> 0), in rpmb_u32()
109 uint16_t val; in rpmb_get_u16() local
111 val = 0; in rpmb_get_u16()
[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 …]
/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 …]
/system/libziparchive/
Dzip_cd_entry_map.cc27 static uint32_t RoundUpPower2(uint32_t val) { in RoundUpPower2() argument
28 val--; in RoundUpPower2()
29 val |= val >> 1; in RoundUpPower2()
30 val |= val >> 2; in RoundUpPower2()
31 val |= val >> 4; in RoundUpPower2()
32 val |= val >> 8; in RoundUpPower2()
33 val |= val >> 16; in RoundUpPower2()
34 val++; in RoundUpPower2()
36 return val; in RoundUpPower2()
/system/bt/gd/os/linux_generic/
Dhandler_unittest.cc53 int val = 0; in TEST_F() local
57 [](int* val, std::promise<void> closure_ran) { in TEST_F() argument
58 *val = *val + 1; in TEST_F()
61 common::Unretained(&val), in TEST_F()
65 ASSERT_EQ(val, 1); in TEST_F()
70 int val = 0; in TEST_F() local
76 [](int* val, std::promise<void> closure_started, std::future<void> can_continue_future) { in TEST_F() argument
78 *val = *val + 1; in TEST_F()
81 common::Unretained(&val), in TEST_F()
88 ASSERT_EQ(val, 1); in TEST_F()
Dreactive_semaphore.cc42 uint64_t val = 0; in Decrease() local
43 auto read_result = eventfd_read(fd_, &val); in Decrease()
48 uint64_t val = 1; in Increase() local
49 auto write_result = eventfd_write(fd_, val); in Increase()
Dhandler.cc65 uint64_t val = 1; in Post() local
66 auto write_result = eventfd_write(fd_, val); in Post()
79 uint64_t val; in Clear() local
80 while (eventfd_read(fd_, &val) == 0) { in Clear()
96 uint64_t val = 0; in handle_next_event() local
97 auto read_result = eventfd_read(fd_, &val); in handle_next_event()
/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/core/libutils/
DBitSet_fuzz.cpp28 [](T bs, uint32_t val) -> void { bs.markBit(val); }, in getOperationsForType()
29 [](T bs, uint32_t val) -> void { bs.valueForBit(val); }, in getOperationsForType()
30 [](T bs, uint32_t val) -> void { bs.hasBit(val); }, in getOperationsForType()
31 [](T bs, uint32_t val) -> void { bs.clearBit(val); }, in getOperationsForType()
32 [](T bs, uint32_t val) -> void { bs.getIndexOfBit(val); }, in getOperationsForType()
/system/keymaster/include/keymaster/
Dauthorization_set.h244 bool Contains(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, T val) const { in Contains() argument
245 return ContainsEnumValue(tag, val); in Contains()
252 bool Contains(TypedEnumTag<KM_ENUM, Tag, T> tag, T val) const { in Contains() argument
253 return ContainsEnumValue(tag, val); in Contains()
260 bool Contains(TypedTag<KM_UINT, Tag> tag, uint32_t val) const { in Contains() argument
261 return ContainsIntValue(tag, val); in Contains()
269 inline bool GetTagValue(TypedTag<KM_UINT, T> tag, uint32_t* val) const { in GetTagValue() argument
270 return GetTagValueInt(tag, val); in GetTagValue()
279 bool GetTagValue(TypedTag<KM_UINT_REP, Tag> tag, size_t instance, uint32_t* val) const { in GetTagValue() argument
280 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/core/fs_mgr/libdm/
Ddm_linear_fuzzer.cpp77 uint64_t val[6]; in LLVMFuzzerTestOneInput() local
79 if (size != sizeof(val)) { in LLVMFuzzerTestOneInput()
83 memcpy(&val, &data[0], sizeof(*val)); in LLVMFuzzerTestOneInput()
98 ASSERT_TRUE(table.Emplace<DmTargetLinear>(val[0], val[1], loop_a.device(), val[2])); in LLVMFuzzerTestOneInput()
99 ASSERT_TRUE(table.Emplace<DmTargetLinear>(val[3], val[4], loop_b.device(), val[5])); in LLVMFuzzerTestOneInput()
/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/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/bt/bta/ag/
Dbta_ag_cmd.cc593 tBTA_AG_VAL val = {}; in bta_ag_at_hsp_cback() local
594 val.hdr.handle = bta_ag_scb_to_idx(p_scb); in bta_ag_at_hsp_cback()
595 val.hdr.app_id = p_scb->app_id; in bta_ag_at_hsp_cback()
596 val.num = (uint16_t)int_arg; in bta_ag_at_hsp_cback()
598 if ((p_end - p_arg + 1) >= (long)sizeof(val.str)) { in bta_ag_at_hsp_cback()
604 strlcpy(val.str, p_arg, sizeof(val.str)); in bta_ag_at_hsp_cback()
607 (*bta_ag_cb.p_cback)(command_id, (tBTA_AG*)&val); in bta_ag_at_hsp_cback()
673 static bool bta_ag_parse_bind_set(tBTA_AG_SCB* p_scb, tBTA_AG_VAL val) { in bta_ag_parse_bind_set() argument
674 char* p_token = strtok(val.str, ","); in bta_ag_parse_bind_set()
782 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/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(std::move(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 __anonc8aa56590702() argument
[all …]
/system/libhwbinder/include/hwbinder/
DParcel.h90 status_t writeInt8(int8_t val);
91 status_t writeUint8(uint8_t val);
92 status_t writeInt16(int16_t val);
93 status_t writeUint16(uint16_t val);
94 status_t writeInt32(int32_t val);
95 status_t writeUint32(uint32_t val);
96 status_t writeInt64(int64_t val);
97 status_t writeUint64(uint64_t val);
98 status_t writeFloat(float val);
99 status_t writeDouble(double val);
[all …]
/system/linkerconfig/contents/context/
Dcontext.cc103 auto val = modules::Variables::GetValue(name); in Var() local
104 if (val.has_value()) { in Var()
105 return *val; in Var()
112 auto val = modules::Variables::GetValue(name); in Var() local
113 if (val.has_value()) { in Var()
114 return *val; in Var()
/system/netd/libnetdutils/
DLog.cpp116 LogEntry& LogEntry::arg(const std::string& val) { in arg() argument
117 mArgs.push_back(val.empty() ? "\"\"" : val); in arg()
122 LogEntry& LogEntry::arg<>(bool val) { in arg() argument
123 mArgs.push_back(val ? "true" : "false"); in arg()
127 LogEntry& LogEntry::arg(const std::vector<int32_t>& val) { in arg() argument
128 mArgs.push_back(StringPrintf("[%s]", Join(val, ", ").c_str())); in arg()
132 LogEntry& LogEntry::arg(const std::vector<uint8_t>& val) { in arg() argument
133 mArgs.push_back('{' + toHex(makeSlice(val)) + '}'); in arg()
137 LogEntry& LogEntry::arg(const std::vector<std::string>& val) { in arg() argument
138 mArgs.push_back(StringPrintf("[%s]", Join(val, ", ").c_str())); in arg()
/system/core/init/
Dfirst_stage_console.cpp94 int val = 0; in FirstStageConsole() local
95 if (sscanf(cmdline.c_str() + pos, "androidboot.first_stage_console=%d", &val) != 1) { in FirstStageConsole()
98 if (val <= FirstStageConsoleParam::MAX_PARAM_VALUE && val >= 0) { in FirstStageConsole()
99 return val; in FirstStageConsole()
/system/bpfprogs/test/
Dbpf_load_tp_prog.c39 uint32_t val; in tp_sched_switch() local
42 val = args->next_pid; in tp_sched_switch()
44 bpf_cpu_pid_map_update_elem(&key, &val, BPF_ANY); in tp_sched_switch()

12345678