/system/bt/gd/storage/ |
D | config_cache_helper_test.cc | 52 uint64_t num = std::numeric_limits<int>::max(); in TEST() local 53 num = num * 10; in TEST() 54 ConfigCacheHelper(config).SetUint64("A", "B", num); in TEST() 56 ASSERT_THAT(ConfigCacheHelper(config).GetUint64("A", "B"), Optional(Eq(num))); in TEST() 70 uint64_t num = std::numeric_limits<uint32_t>::max(); in TEST() local 71 num *= 10; in TEST() 72 ConfigCacheHelper(config).SetUint64("A", "B", num); in TEST() 85 int64_t num = std::numeric_limits<int32_t>::max(); in TEST() local 86 num *= 10; in TEST() 87 ConfigCacheHelper(config).SetInt64("A", "B", num); in TEST() [all …]
|
/system/core/libutils/include/utils/ |
D | VectorImpl.h | 102 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 …]
|
D | SortedVector.h | 145 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 …]
|
D | Vector.h | 214 virtual void do_construct(void* storage, size_t num) const; 215 virtual void do_destroy(void* storage, size_t num) const; 216 virtual void do_copy(void* dest, const void* from, size_t num) const; 217 virtual void do_splat(void* dest, const void* item, size_t num) const; 218 virtual void do_move_forward(void* dest, const void* from, size_t num) const; 219 virtual void do_move_backward(void* dest, const void* from, size_t num) const; 397 UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_construct(void* storage, size_t num) const { in do_construct() argument 398 construct_type( reinterpret_cast<TYPE*>(storage), num ); in do_construct() 402 void Vector<TYPE>::do_destroy(void* storage, size_t num) const { in do_destroy() argument 403 destroy_type( reinterpret_cast<TYPE*>(storage), num ); in do_destroy() [all …]
|
/system/core/liblog/ |
D | log_time.cpp | 84 unsigned num = 0; in strptime() local 86 num = num * 10 + *e - '0'; in strptime() 100 if (num == 0) { in strptime() 101 num = INT_MAX; in strptime() 104 while (isdigit(*ret) && num && (mul > 1)) { in strptime() 105 --num; in strptime()
|
/system/core/storaged/include/ |
D | storaged_diskstats.h | 131 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/memory/libmemunreachable/tests/ |
D | Allocator_test.cpp | 63 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/sepolicy/tools/ |
D | version_policy.c | 90 char *num = NULL; in main() local 119 num = strdup(optarg); in main() 138 if (num == NULL || base == NULL || (mapping == false && tgt_policy == NULL)) { in main() 144 dot = num; in main() 165 rc = cil_android_attrib_mapping(&out_db, base_db, num); in main() 175 rc = cil_android_attributize(out_db, base_db, num); in main() 188 free(num); in main()
|
/system/core/libdiskconfig/ |
D | config_mbr.c | 323 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/media/audio_utils/fuzz/monoblend_fuzzer/ |
D | monoblend_fuzzer.cpp | 10 audio_format_t decideFormat(uint32_t num) { in decideFormat() argument 12 switch (num % 3) { in decideFormat() 18 return (audio_format_t) num; // default switch case in mono_blend() in decideFormat()
|
/system/chre/apps/chqts/src/general_test/ |
D | send_event_test.cc | 79 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()
|
D | send_event_stress_test.cc | 120 uint32_t num) { in sanityCheck() argument 126 sendFatalFailureToHost("bad event data:", &num); in sanityCheck()
|
/system/apex/apexd/ |
D | apexd_loop.cpp | 94 Result<void> preAllocateLoopDevices(size_t num) { in preAllocateLoopDevices() argument 111 for (size_t id = 0ul; id < num; ++id) { in preAllocateLoopDevices() 125 LOG(INFO) << "Pre-allocated " << num << " loopback devices"; in preAllocateLoopDevices() 137 int num = ioctl(ctl_fd.get(), LOOP_CTL_GET_FREE); in createLoopDevice() local 138 if (num == -1) { in createLoopDevice() 142 std::string device = StringPrintf("/dev/block/loop%d", num); in createLoopDevice()
|
/system/core/libunwindstack/tests/ |
D | UnwinderTest.cpp | 176 EXPECT_EQ(0U, frame->num); in TEST_F() 191 EXPECT_EQ(1U, frame->num); in TEST_F() 206 EXPECT_EQ(2U, frame->num); in TEST_F() 241 EXPECT_EQ(0U, frame->num); in TEST_F() 256 EXPECT_EQ(1U, frame->num); in TEST_F() 271 EXPECT_EQ(2U, frame->num); in TEST_F() 301 EXPECT_EQ(0U, frame->num); in TEST_F() 331 EXPECT_EQ(0U, frame->num); in TEST_F() 361 EXPECT_EQ(0U, frame->num); in TEST_F() 392 EXPECT_EQ(0U, frame->num); in TEST_F() [all …]
|
/system/nfc/src/nfc/nci/ |
D | nci_hmsgs.cc | 142 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/ |
D | sysvipc_test.cpp | 48 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/libutils/ |
D | VectorImpl.cpp | 523 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/ |
D | format_utils.py | 22 def NumToPercent(num, total, min_precision=1, max_precision=5): argument 55 percent = num * 100 * factor // total
|
/system/bt/btif/src/ |
D | btif_hf.cc | 440 p_data->val.num, &btif_hf_cb[idx].connected_bda); in btif_hf_upstreams_evt() 469 bt_hf_callbacks->VoiceRecognitionCallback((p_data->val.num == 1) in btif_hf_upstreams_evt() 477 (p_data->val.num == 1) ? BTHF_NREC_START : BTHF_NREC_STOP, in btif_hf_upstreams_evt() 492 p_data->val.hdr.status, p_data->val.num); in btif_hf_upstreams_evt() 493 if (p_data->val.num == BTA_AG_CODEC_CVSD) { in btif_hf_upstreams_evt() 496 } else if (p_data->val.num == BTA_AG_CODEC_MSBC) { in btif_hf_upstreams_evt() 535 BTIF_TRACE_DEBUG("AG Bitmap of peer-codecs %d", p_data->val.num); in btif_hf_upstreams_evt() 541 if (p_data->val.num & BTA_AG_CODEC_MSBC) { in btif_hf_upstreams_evt() 553 __func__, p_data->val.num); in btif_hf_upstreams_evt() 557 (p_data->val.num == BTA_AG_CODEC_CVSD) ? BTHF_WBS_NO : BTHF_WBS_YES, in btif_hf_upstreams_evt() [all …]
|
/system/libhwbinder/vts/performance/ |
D | Benchmark_throughput.cpp | 174 string generateServiceName(int num) { in generateServiceName() argument 175 string serviceName = "hwbinderService" + to_string(num); in generateServiceName() 198 int num, in worker_fx() argument 203 srand(num); in worker_fx() 238 cout << "thread " << num << " failed status: " in worker_fx() 273 Pipe make_worker(int num, int iterations, int service_count, bool get_stub) { in make_worker() argument 281 worker_fx(num, iterations, service_count, get_stub, in make_worker()
|
D | Latency.cpp | 176 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/ |
D | a2dp_api.cc | 367 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/ |
D | nci_hmsgs.h | 51 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/vold/ |
D | Loop.cpp | 61 int num = ioctl(ctl_fd.get(), LOOP_CTL_GET_FREE); in create() local 62 if (num == -1) { in create() 67 out_device = StringPrintf("/dev/block/loop%d", num); in create()
|
/system/core/logcat/tests/ |
D | logcat_test.cpp | 160 size_t num = 0; in inject() local 164 if (++num >= (size_t)count) { in inject() 167 return num; in inject() 172 return num; in inject() 176 return num; in inject() 302 static void do_tail(int num) { in do_tail() argument 306 if (num > 10) ++tries; in do_tail() 307 if (num > 100) ++tries; in do_tail() 312 "ANDROID_PRINTF_LOG=long logcat -b all -t %d 2>/dev/null", num); in do_tail() 325 } while ((count < num) && --tries && inject(num - count)); in do_tail() [all …]
|