Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 66) sorted by relevance

123

/system/core/libutils/include/utils/
DVectorImpl.h102 virtual void do_construct(void* storage, size_t num) const = 0;
103 virtual void do_destroy(void* storage, size_t num) const = 0;
104 virtual void do_copy(void* dest, const void* from, size_t num) const = 0;
105 virtual void do_splat(void* dest, const void* item, size_t num) const = 0;
106 virtual void do_move_forward(void* dest, const void* from, size_t num) const = 0;
107 virtual void do_move_backward(void* dest, const void* from, size_t num) const = 0;
113 inline void _do_construct(void* storage, size_t num) const;
114 inline void _do_destroy(void* storage, size_t num) const;
115 inline void _do_copy(void* dest, const void* from, size_t num) const;
116 inline void _do_splat(void* dest, const void* item, size_t num) const;
[all …]
DSortedVector.h145 virtual void do_construct(void* storage, size_t num) const;
146 virtual void do_destroy(void* storage, size_t num) const;
147 virtual void do_copy(void* dest, const void* from, size_t num) const;
148 virtual void do_splat(void* dest, const void* item, size_t num) const;
149 virtual void do_move_forward(void* dest, const void* from, size_t num) const;
150 virtual void do_move_backward(void* dest, const void* from, size_t num) const;
257 UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_construct(void* storage, size_t num) const { in do_construct() argument
258 construct_type( reinterpret_cast<TYPE*>(storage), num ); in do_construct()
262 void SortedVector<TYPE>::do_destroy(void* storage, size_t num) const { in do_destroy() argument
263 destroy_type( reinterpret_cast<TYPE*>(storage), num ); in do_destroy()
[all …]
DVector.h216 virtual void do_construct(void* storage, size_t num) const;
217 virtual void do_destroy(void* storage, size_t num) const;
218 virtual void do_copy(void* dest, const void* from, size_t num) const;
219 virtual void do_splat(void* dest, const void* item, size_t num) const;
220 virtual void do_move_forward(void* dest, const void* from, size_t num) const;
221 virtual void do_move_backward(void* dest, const void* from, size_t num) const;
399 UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_construct(void* storage, size_t num) const { in do_construct() argument
400 construct_type( reinterpret_cast<TYPE*>(storage), num ); in do_construct()
404 void Vector<TYPE>::do_destroy(void* storage, size_t num) const { in do_destroy() argument
405 destroy_type( reinterpret_cast<TYPE*>(storage), num ); in do_destroy()
[all …]
/system/netd/resolv/
Dsethostent.cpp69 size_t len, num, i; in _hf_gethtbyname2() local
92 for (num = 0; num < MAXADDRS; /**/) { in _hf_gethtbyname2()
113 if (num == 0) { in _hf_gethtbyname2()
126 if (num >= MAXADDRS) goto nospc; in _hf_gethtbyname2()
127 HENT_COPY(addr_ptrs[num], hp->h_addr_list[0], hp->h_length, ptr, len); in _hf_gethtbyname2()
129 num++; in _hf_gethtbyname2()
133 if (num == 0) { in _hf_gethtbyname2()
149 HENT_ARRAY(hp->h_addr_list, num, ptr, len); in _hf_gethtbyname2()
151 for (i = 0; i < num; i++) { in _hf_gethtbyname2()
159 hp->h_addr_list[num] = NULL; in _hf_gethtbyname2()
/system/core/storaged/include/
Dstoraged_diskstats.h131 void add(uint32_t num) { in add() argument
132 mSum += (double)num; in add()
133 mSquareSum += (double)num * (double)num; in add()
136 void evict(uint32_t num) { in evict() argument
137 if (mSum < num || mSquareSum < (double)num * (double)num) return; in evict()
138 mSum -= (double)num; in evict()
139 mSquareSum -= (double)num * (double)num; in evict()
/system/core/libmemunreachable/tests/
DAllocator_test.cpp63 const int num = 4096; in TEST_F() local
66 void* ptr[num]; in TEST_F()
67 for (int i = 0; i < num; i++) { in TEST_F()
73 for (int i = 0; i < num; i++) { in TEST_F()
74 for (int j = 0; j < num; j++) { in TEST_F()
81 for (int i = 0; i < num; i++) { in TEST_F()
96 const int num = 128; in TEST_F() local
99 void* ptr[num]; in TEST_F()
100 for (int i = 0; i < num; i++) { in TEST_F()
106 for (int i = 0; i < num; i++) { in TEST_F()
/system/core/liblog/
Dlog_time.cpp90 unsigned num = 0; in strptime() local
92 num = num * 10 + *e - '0'; in strptime()
106 if (num == 0) { in strptime()
107 num = INT_MAX; in strptime()
110 while (isdigit(*ret) && num && (mul > 1)) { in strptime()
111 --num; in strptime()
/system/sepolicy/tools/
Dversion_policy.c89 char *num = NULL; in main() local
118 num = strdup(optarg); in main()
137 if (num == NULL || base == NULL || (mapping == false && tgt_policy == NULL)) { in main()
143 dot = num; in main()
164 rc = cil_android_attrib_mapping(&out_db, base_db, num); in main()
174 rc = cil_android_attributize(out_db, base_db, num); in main()
187 free(num); in main()
/system/core/libdiskconfig/
Dconfig_mbr.c323 int num = 0; in find_mbr_part() local
327 for(num = 1; num <= dinfo->num_parts; ++num) { in find_mbr_part()
328 if (!strcmp(plist[num-1].name, name)) in find_mbr_part()
332 if (num > dinfo->num_parts) in find_mbr_part()
335 if (has_extended && (num >= PC_NUM_BOOT_RECORD_PARTS)) in find_mbr_part()
336 num++; in find_mbr_part()
343 num = snprintf(dev_name, MAX_NAME_LEN, "%s%d", dinfo->device, num); in find_mbr_part()
344 if (num >= MAX_NAME_LEN) { in find_mbr_part()
/system/chre/apps/chqts/src/general_test/
Dsend_event_test.cc79 uint32_t num = *(reinterpret_cast<uint32_t*>(data)); in completeCallback() local
82 switch (num) { in completeCallback()
100 sendFatalFailureToHost("completeCallback given bad data.", &num); in completeCallback()
108 uint8_t mask = static_cast<uint8_t>(1 << num); in completeCallback()
111 &num); in completeCallback()
Dsend_event_stress_test.cc120 uint32_t num) { in sanityCheck() argument
126 sendFatalFailureToHost("bad event data:", &num); in sanityCheck()
/system/apex/apexd/
Dapexd_loop.cpp92 Status preAllocateLoopDevices(size_t num) { in preAllocateLoopDevices() argument
109 for (size_t id = 0ul; id < num; ++id) { in preAllocateLoopDevices()
123 LOG(INFO) << "Pre-allocated " << num << " loopback devices"; in preAllocateLoopDevices()
136 int num = ioctl(ctl_fd.get(), LOOP_CTL_GET_FREE); in createLoopDevice() local
137 if (num == -1) { in createLoopDevice()
141 std::string device = StringPrintf("/dev/block/loop%d", num); in createLoopDevice()
/system/core/libunwindstack/tests/
DUnwinderTest.cpp172 EXPECT_EQ(0U, frame->num); in TEST_F()
187 EXPECT_EQ(1U, frame->num); in TEST_F()
202 EXPECT_EQ(2U, frame->num); in TEST_F()
237 EXPECT_EQ(0U, frame->num); in TEST_F()
252 EXPECT_EQ(1U, frame->num); in TEST_F()
267 EXPECT_EQ(2U, frame->num); in TEST_F()
297 EXPECT_EQ(0U, frame->num); in TEST_F()
327 EXPECT_EQ(0U, frame->num); in TEST_F()
357 EXPECT_EQ(0U, frame->num); in TEST_F()
388 EXPECT_EQ(0U, frame->num); in TEST_F()
[all …]
/system/nfc/src/nfc/nci/
Dnci_hmsgs.cc142 uint8_t num = 0, ulen, len, *pt; in nci_snd_core_set_config() local
160 num++; in nci_snd_core_set_config()
171 UINT8_TO_STREAM(pp, num); in nci_snd_core_set_config()
358 uint8_t nci_snd_discover_cmd(uint8_t num, tNCI_DISCOVER_PARAMS* p_param) { in nci_snd_discover_cmd() argument
364 size = num * sizeof(tNCI_DISCOVER_PARAMS) + 1; in nci_snd_discover_cmd()
378 UINT8_TO_STREAM(pp, num); in nci_snd_discover_cmd()
379 for (xx = 0; xx < num; xx++) { in nci_snd_discover_cmd()
469 uint8_t nci_snd_discover_map_cmd(uint8_t num, tNCI_DISCOVER_MAPS* p_maps) { in nci_snd_discover_map_cmd() argument
475 size = num * sizeof(tNCI_DISCOVER_MAPS) + 1; in nci_snd_discover_map_cmd()
490 UINT8_TO_STREAM(pp, num); in nci_snd_discover_map_cmd()
[all …]
/system/extras/tests/kernel.config/
Dsysvipc_test.cpp48 int semctl(int id, int num, int cmd, semid_ds* buf) { in semctl() argument
55 return syscall(SYS_semctl, id, num, cmd, buf); in semctl()
57 return syscall(SYS_ipc, SEMCTL, id, num, cmd, buf, 0); in semctl()
/system/core/debuggerd/libdebuggerd/test/
Dtombstone_test.cpp383 unwindstack::FrameData{.num = 0, .rel_pc = 0x1000, .pc = 0x301000, .sp = 0x2000}); in TEST_F()
467 unwindstack::FrameData{.num = 0, .rel_pc = 0x1000, .pc = 0x301000, .sp = 0x2000}); in TEST_F()
469 unwindstack::FrameData{.num = 0, .rel_pc = 0x1400, .pc = 0x301400, .sp = 0x2000}); in TEST_F()
557 unwindstack::FrameData{.num = 0, .rel_pc = 0x1000, .pc = 0x301000, .sp = 0x2000}); in TEST_F()
559 unwindstack::FrameData{.num = 0, .rel_pc = 0x1400, .pc = 0x301400, .sp = 0x2010}); in TEST_F()
561 unwindstack::FrameData{.num = 0, .rel_pc = 0x1400, .pc = 0x301400, .sp = 0x2100}); in TEST_F()
685 unwindstack::FrameData{.num = 0, .rel_pc = 0x1000, .pc = 0x301000, .sp = 0x2000}); in TEST_F()
687 unwindstack::FrameData{.num = 0, .rel_pc = 0x1400, .pc = 0x301400, .sp = 0x2010}); in TEST_F()
689 unwindstack::FrameData{.num = 0, .rel_pc = 0x1400, .pc = 0x301400, .sp = 0x1000}); in TEST_F()
691 unwindstack::FrameData{.num = 0, .rel_pc = 0x1400, .pc = 0x301400, .sp = 0x1030}); in TEST_F()
/system/core/libutils/
DVectorImpl.cpp523 void VectorImpl::_do_construct(void* storage, size_t num) const in _do_construct()
526 do_construct(storage, num); in _do_construct()
530 void VectorImpl::_do_destroy(void* storage, size_t num) const in _do_destroy()
533 do_destroy(storage, num); in _do_destroy()
537 void VectorImpl::_do_copy(void* dest, const void* from, size_t num) const in _do_copy()
540 do_copy(dest, from, num); in _do_copy()
542 memcpy(dest, from, num*itemSize()); in _do_copy()
546 void VectorImpl::_do_splat(void* dest, const void* item, size_t num) const { in _do_splat()
547 do_splat(dest, item, num); in _do_splat()
550 void VectorImpl::_do_move_forward(void* dest, const void* from, size_t num) const { in _do_move_forward()
[all …]
/system/update_engine/scripts/update_payload/
Dformat_utils.py20 def NumToPercent(num, total, min_precision=1, max_precision=5): argument
53 percent = num * 100 * factor / total
/system/bt/btif/src/
Dbtif_hf.cc404 p_data->val.num, &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt()
433 bt_hf_callbacks->VoiceRecognitionCallback((p_data->val.num == 1) in btif_hf_upstreams_evt()
441 (p_data->val.num == 1) ? BTHF_NREC_START : BTHF_NREC_STOP, in btif_hf_upstreams_evt()
456 p_data->val.hdr.status, p_data->val.num); in btif_hf_upstreams_evt()
457 if (p_data->val.num == BTA_AG_CODEC_CVSD) { in btif_hf_upstreams_evt()
460 } else if (p_data->val.num == BTA_AG_CODEC_MSBC) { in btif_hf_upstreams_evt()
499 BTIF_TRACE_DEBUG("AG Bitmap of peer-codecs %d", p_data->val.num); in btif_hf_upstreams_evt()
505 if (p_data->val.num & BTA_AG_CODEC_MSBC) { in btif_hf_upstreams_evt()
517 __func__, p_data->val.num); in btif_hf_upstreams_evt()
521 (p_data->val.num == BTA_AG_CODEC_CVSD) ? BTHF_WBS_NO : BTHF_WBS_YES, in btif_hf_upstreams_evt()
[all …]
/system/libhwbinder/vts/performance/
DBenchmark_throughput.cpp173 string generateServiceName(int num) { in generateServiceName() argument
174 string serviceName = "hwbinderService" + to_string(num); in generateServiceName()
197 int num, in worker_fx() argument
202 srand(num); in worker_fx()
237 cout << "thread " << num << " failed status: " in worker_fx()
272 Pipe make_worker(int num, int iterations, int service_count, bool get_stub) { in make_worker() argument
280 worker_fx(num, iterations, service_count, get_stub, in make_worker()
DLatency.cpp176 static void clientFx(int num, int server_count, int iterations, Pipe p) { in clientFx() argument
205 int target = num; in clientFx()
227 cout << "\"fifo_" + to_string(num) + "_data\": "; in clientFx()
239 static Pipe makeClientProcess(int num, int iterations, int no_pair) { in makeClientProcess() argument
248 clientFx(num, no_pair, iterations, move(get<1>(pipe_pair))); in makeClientProcess()
/system/bt/stack/a2dp/
Da2dp_api.cc367 uint8_t A2DP_BitsSet(uint64_t num) { in A2DP_BitsSet() argument
368 if (num == 0) return A2DP_SET_ZERO_BIT; in A2DP_BitsSet()
369 if ((num & (num - 1)) == 0) return A2DP_SET_ONE_BIT; in A2DP_BitsSet()
/system/nfc/src/nfc/include/
Dnci_hmsgs.h51 uint8_t nci_snd_discover_cmd(uint8_t num, tNCI_DISCOVER_PARAMS* p_param);
56 uint8_t nci_snd_discover_map_cmd(uint8_t num, tNCI_DISCOVER_MAPS* p_maps);
/system/core/logcat/tests/
Dlogcat_test.cpp157 size_t num = 0; in inject() local
161 if (++num >= (size_t)count) { in inject()
164 return num; in inject()
169 return num; in inject()
173 return num; in inject()
309 static void do_tail(int num) { in do_tail() argument
313 if (num > 10) ++tries; in do_tail()
314 if (num > 100) ++tries; in do_tail()
319 "ANDROID_PRINTF_LOG=long logcat -b all -t %d 2>/dev/null", num); in do_tail()
332 } while ((count < num) && --tries && inject(num - count)); in do_tail()
[all …]
/system/vold/
DLoop.cpp57 int num = ioctl(ctl_fd.get(), LOOP_CTL_GET_FREE); in create() local
58 if (num == -1) { in create()
63 out_device = StringPrintf("/dev/block/loop%d", num); in create()

123