/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/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/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() 313 check(curr <= max_hash_block); in verity_read() 315 uint8_t *hash = &f->verity.hash[curr * SHA256_DIGEST_LENGTH]; in verity_read() 316 uint64_t curr_offset = curr * FEC_BLOCKSIZE; in verity_read() 347 offset, offset + count, curr); in verity_read() [all …]
|
/system/bt/service/ |
D | gatt_server.cc | 310 const btgatt_db_element_t& curr = svc[i]; in ServiceAddedCallback() local 312 << " handle: " << curr.attribute_handle; in ServiceAddedCallback() 313 if (curr.type == BTGATT_DB_CHARACTERISTIC) { in ServiceAddedCallback() 314 service.characteristics().push_back({curr.attribute_handle, in ServiceAddedCallback() 315 Uuid(curr.uuid), in ServiceAddedCallback() 316 curr.properties, in ServiceAddedCallback() 317 curr.permissions, in ServiceAddedCallback() 319 } else if (curr.type == BTGATT_DB_DESCRIPTOR) { in ServiceAddedCallback() 321 {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/fs_mgr/ |
D | fs_mgr_verity.cpp | 550 uint8_t curr[SHA256_DIGEST_LENGTH]; in compare_last_signature() local 567 SHA256(verity.signature, sizeof(verity.signature), curr); in compare_last_signature() 592 *match = !memcmp(curr, prev, SHA256_DIGEST_LENGTH); in compare_last_signature() 596 if (TEMP_FAILURE_RETRY(pwrite64(fd, curr, sizeof(curr), in compare_last_signature() 597 offset)) != sizeof(curr)) { in compare_last_signature() 598 PERROR << "Failed to write " << sizeof(curr) << " bytes to " << entry.verity_loc in compare_last_signature()
|
/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/core/lmkd/ |
D | lmkd.c | 1273 struct adjslot_list *curr = head->next; in proc_get_heaviest() local 1276 while (curr != head) { in proc_get_heaviest() 1277 int pid = ((struct proc *)curr)->pid; in proc_get_heaviest() 1280 struct adjslot_list *next = curr->next; in proc_get_heaviest() 1282 curr = next; in proc_get_heaviest() 1286 maxprocp = (struct proc *)curr; in proc_get_heaviest() 1288 curr = curr->next; in proc_get_heaviest()
|
/system/core/logd/ |
D | LogBuffer.cpp | 1136 log_time curr = start; in flushTo() local 1188 curr = element->flushTo(reader, this, privileged, sameTid); in flushTo() 1190 if (curr == element->FLUSH_ERROR) { in flushTo() 1191 return curr; in flushTo() 1199 return curr; in flushTo()
|
/system/core/fastboot/fuzzy_fastboot/ |
D | main.cpp | 532 bool curr = resp == "yes"; in TEST_F() local 539 std::string action = !curr ? "unlock" : "lock"; in TEST_F() 541 SetLockState(!curr, false); in TEST_F() 543 ASSERT_EQ(resp, curr ? "yes" : "no") << "The locked/unlocked state of the bootloader " in TEST_F() 546 SetLockState(!curr, true); in TEST_F() 548 ASSERT_EQ(resp, !curr ? "yes" : "no") << "The locked/unlocked state of the bootloader " in TEST_F() 550 curr = !curr; in TEST_F()
|
/system/bt/bta/dm/ |
D | bta_dm_act.cc | 3383 const Uuid& curr = bta_dm_cb.custom_uuid[custom_uuid_idx]; in bta_dm_set_eir() local 3384 if (curr.GetShortestRepresentationSize() == Uuid::kNumBytes16) { in bta_dm_set_eir() 3386 UINT16_TO_STREAM(p, curr.As16Bit()); in bta_dm_set_eir() 3416 const Uuid& curr = bta_dm_cb.custom_uuid[custom_uuid_idx]; in bta_dm_set_eir() local 3417 if (curr.GetShortestRepresentationSize() == Uuid::kNumBytes32) { in bta_dm_set_eir() 3419 UINT32_TO_STREAM(p, curr.As32Bit()); in bta_dm_set_eir() 3445 const Uuid& curr = bta_dm_cb.custom_uuid[custom_uuid_idx]; in bta_dm_set_eir() local 3446 if (curr.GetShortestRepresentationSize() == Uuid::kNumBytes128) { in bta_dm_set_eir() 3448 ARRAY16_TO_STREAM(p, curr.To128BitBE().data()); in bta_dm_set_eir()
|
/system/core/libpixelflinger/tests/arch-mips64/assembler/ |
D | mips64_assembler_test.cpp | 367 const long curr = base + long(instrMemSize); in flushcache() local 368 __builtin___clear_cache((char*)base, (char*)curr); in flushcache()
|
/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()
|