/system/media/audio_utils/tests/ |
D | sample_tests.cpp | 55 for (auto curr : fvec) { in TEST() local 57 ASSERT_LT(prev, curr); in TEST() 59 int signum_curr = signum(curr); in TEST() 63 float ratio = curr / prev; in TEST() 66 if (fabsf(curr) >= 0.001f) { in TEST() 74 ASSERT_GE(ratio, lower) << "prev " << prev << " curr " << curr; in TEST() 75 ASSERT_LE(ratio, upper) << "prev " << prev << " curr " << curr; in TEST() 77 prev = curr; in TEST()
|
/system/chre/core/tests/ |
D | memory_manager_test.cc | 79 node *curr = nullptr, *prev = head; in TEST() local 81 curr = static_cast<node*>(manager.nanoappAlloc(&app, sizeof(node))); in TEST() 82 EXPECT_NE(curr, nullptr); in TEST() 83 prev->next = curr; in TEST() 84 prev = curr; in TEST() 90 curr = head; in TEST() 92 node *temp = curr->next; in TEST() 93 manager.nanoappFree(&app, curr); in TEST() 94 curr = temp; in TEST()
|
/system/core/storaged/include/ |
D | storaged_diskstats.h | 60 friend disk_stats operator- (disk_stats curr, const disk_stats& prev) { 61 curr.read_ios -= prev.read_ios; 62 curr.read_merges -= prev.read_merges; 63 curr.read_sectors -= prev.read_sectors; 64 curr.read_ticks -= prev.read_ticks; 65 curr.write_ios -= prev.write_ios; 66 curr.write_merges -= prev.write_merges; 67 curr.write_sectors -= prev.write_sectors; 68 curr.write_ticks -= prev.write_ticks; 70 curr.io_ticks -= prev.io_ticks; [all …]
|
D | storaged_utils.h | 32 void get_inc_disk_stats(const struct disk_stats* prev, const struct disk_stats* curr, struct disk_s…
|
/system/extras/libfec/ |
D | fec_read.cpp | 252 uint64_t curr = offset / FEC_BLOCKSIZE; in ecc_read() local 253 size_t coff = (size_t)(offset - curr * FEC_BLOCKSIZE); in ecc_read() 260 if (__ecc_read(f, rs.get(), data, curr * FEC_BLOCKSIZE, false, in ecc_read() 276 ++curr; in ecc_read() 304 uint64_t curr = offset / FEC_BLOCKSIZE; in verity_read() local 305 size_t coff = (size_t)(offset - curr * FEC_BLOCKSIZE); in verity_read() 314 check(curr <= max_hash_block); in verity_read() 315 uint64_t curr_offset = curr * FEC_BLOCKSIZE; in verity_read() 332 if (likely(f->hashtree().check_block_hash_with_index(curr, data))) { in verity_read() 346 offset, offset + count, curr); in verity_read() [all …]
|
/system/core/storaged/ |
D | storaged_diskstats.cpp | 188 void get_inc_disk_stats(const struct disk_stats* prev, const struct disk_stats* curr, in get_inc_disk_stats() argument 191 *inc = *curr - *prev; in get_inc_disk_stats() 193 inc->end_time = curr->end_time; in get_inc_disk_stats() 194 inc->io_avg = curr->io_avg; in get_inc_disk_stats() 267 void disk_stats_monitor::update(struct disk_stats* curr) in update() argument 270 get_inc_disk_stats(&mPrevious, curr, &inc); in update() 305 mPrevious = *curr; in update() 309 disk_stats curr; in update() local 311 if (!get_disk_stats_from_health_hal(mHealth, &curr)) { in update() 315 if (!parse_disk_stats(DISK_STATS_PATH, &curr)) { in update() [all …]
|
/system/bt/service/ |
D | gatt_server.cc | 312 const btgatt_db_element_t& curr = svc[i]; in ServiceAddedCallback() local 314 << " handle: " << curr.attribute_handle; in ServiceAddedCallback() 315 if (curr.type == BTGATT_DB_CHARACTERISTIC) { in ServiceAddedCallback() 316 service.characteristics().push_back({curr.attribute_handle, in ServiceAddedCallback() 317 Uuid(curr.uuid), in ServiceAddedCallback() 318 curr.properties, in ServiceAddedCallback() 319 curr.permissions, in ServiceAddedCallback() 321 } else if (curr.type == BTGATT_DB_DESCRIPTOR) { in ServiceAddedCallback() 323 {curr.attribute_handle, Uuid(curr.uuid), curr.permissions}); in ServiceAddedCallback()
|
/system/core/libutils/ |
D | VectorImpl.cpp | 182 void* curr = reinterpret_cast<char*>(array) + mItemSize*(i-1); in sort() local 183 if (cmp(curr, item, state) > 0) { in sort() 192 curr = reinterpret_cast<char*>(array) + mItemSize*(i-1); in sort() 203 _do_copy(next, curr, 1); in sort() 204 next = curr; in sort() 206 curr = nullptr; in sort() 208 curr = reinterpret_cast<char*>(array) + mItemSize*(j); in sort() 210 } while (j>=0 && (cmp(curr, temp, state) > 0)); in sort() 606 const void* const curr = reinterpret_cast<const char *>(a) + (mid*s); in _indexOrderOf() local 607 const int c = do_compare(curr, item); in _indexOrderOf()
|
/system/core/libpixelflinger/codeflinger/ |
D | CodeCache.cpp | 207 char* curr = reinterpret_cast<char*>(base + assembly->size()); in cache() local 208 __builtin___clear_cache(base, curr); in cache()
|
/system/core/storaged/tests/ |
D | storaged_test.cpp | 104 struct disk_stats base = {}, tmp = {}, curr, acc = {}, inc[5]; in TEST() local 106 ASSERT_TRUE(parse_disk_stats(DISK_STATS_PATH, &curr)); in TEST() 108 base = curr; in TEST() 109 tmp = curr; in TEST() 113 get_inc_disk_stats(&tmp, &curr, &inc[i]); in TEST() 115 tmp = curr; in TEST() 119 get_inc_disk_stats(&base, &curr, &overall_inc); in TEST()
|
/system/update_engine/update_manager/ |
D | evaluation_context.cc | 57 TimeDelta GetTimeout(Time curr, Time expires) { in GetTimeout() argument 60 return expires - curr; in GetTimeout()
|
/system/bt/gd/l2cap/classic/internal/ |
D | signalling_manager.cc | 36 size_t curr = 0; in GetCommandsFromPacketView() local 39 while (curr < end) { in GetCommandsFromPacketView() 40 auto sub_view = packet.GetLittleEndianSubview(curr, end); in GetCommandsFromPacketView() 46 curr += 1 + 1 + 2 + control.GetPayload().size(); in GetCommandsFromPacketView()
|
/system/bt/vendor_libs/test_vendor_lib/model/controller/ |
D | link_layer_controller.cc | 1927 auto curr = le_connect_list_[i]; in LeResolvingListAddDevice() local 1928 if (std::get<0>(curr) == addr && std::get<1>(curr) == addr_type) { in LeResolvingListAddDevice() 2064 auto curr = le_connect_list_[i]; in LeResolvingListRemoveDevice() local 2065 if (std::get<0>(curr) == addr && std::get<1>(curr) == addr_type) { in LeResolvingListRemoveDevice() 2085 auto curr = le_connect_list_[i]; in LeResolvingListContainsDevice() local 2086 if (std::get<0>(curr) == addr && std::get<1>(curr) == addr_type) { in LeResolvingListContainsDevice()
|
/system/memory/lmkd/ |
D | lmkd.cpp | 1889 struct adjslot_list *curr = head->next; in proc_get_heaviest() local 1892 while (curr != head) { in proc_get_heaviest() 1893 int pid = ((struct proc *)curr)->pid; in proc_get_heaviest() 1896 struct adjslot_list *next = curr->next; in proc_get_heaviest() 1898 curr = next; in proc_get_heaviest() 1902 maxprocp = (struct proc *)curr; in proc_get_heaviest() 1904 curr = curr->next; in proc_get_heaviest()
|
/system/core/fastboot/fuzzy_fastboot/ |
D | main.cpp | 512 bool curr = resp == "yes"; in TEST_F() local 519 std::string action = !curr ? "unlock" : "lock"; in TEST_F() 521 SetLockState(!curr, false); in TEST_F() 523 ASSERT_EQ(resp, curr ? "yes" : "no") << "The locked/unlocked state of the bootloader " in TEST_F() 526 SetLockState(!curr, true); in TEST_F() 528 ASSERT_EQ(resp, !curr ? "yes" : "no") << "The locked/unlocked state of the bootloader " in TEST_F() 530 curr = !curr; in TEST_F()
|
/system/bt/bta/dm/ |
D | bta_dm_act.cc | 3390 const Uuid& curr = bta_dm_cb.custom_uuid[custom_uuid_idx]; in bta_dm_set_eir() local 3391 if (curr.GetShortestRepresentationSize() == Uuid::kNumBytes16) { in bta_dm_set_eir() 3393 UINT16_TO_STREAM(p, curr.As16Bit()); in bta_dm_set_eir() 3423 const Uuid& curr = bta_dm_cb.custom_uuid[custom_uuid_idx]; in bta_dm_set_eir() local 3424 if (curr.GetShortestRepresentationSize() == Uuid::kNumBytes32) { in bta_dm_set_eir() 3426 UINT32_TO_STREAM(p, curr.As32Bit()); in bta_dm_set_eir() 3452 const Uuid& curr = bta_dm_cb.custom_uuid[custom_uuid_idx]; in bta_dm_set_eir() local 3453 if (curr.GetShortestRepresentationSize() == Uuid::kNumBytes128) { in bta_dm_set_eir() 3455 ARRAY16_TO_STREAM(p, curr.To128BitBE().data()); in bta_dm_set_eir()
|
/system/core/libpixelflinger/tests/arch-arm64/assembler/ |
D | arm64_assembler_test.cpp | 410 const long curr = base + long(instrMemSize); in flushcache() local 411 __builtin___clear_cache((char*)base, (char*)curr); in flushcache()
|