/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/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/core/storaged/ |
D | storaged.cpp | 45 struct disk_stats curr; in update() local 46 if (parse_disk_stats(DISK_STATS_PATH, &curr)) { in update() 47 struct disk_stats inc = get_inc_disk_stats(&mPrevious, &curr); in update() 55 mPrevious = curr; in update() 145 struct disk_stats curr; in update() local 146 if (LIKELY(parse_disk_stats(DISK_STATS_PATH, &curr))) { in update() 147 update(&curr); in update()
|
D | storaged_utils.cpp | 112 struct disk_stats get_inc_disk_stats(struct disk_stats* prev, struct disk_stats* curr) { in get_inc_disk_stats() argument 120 *((uint64_t*)curr + i) - *((uint64_t*)prev + i); in get_inc_disk_stats() 123 inc.io_in_flight = curr->io_in_flight; in get_inc_disk_stats() 126 inc.end_time = curr->end_time; in get_inc_disk_stats() 127 inc.io_avg = curr->io_avg; in get_inc_disk_stats()
|
/system/bt/service/ |
D | gatt_server.cc | 308 const btgatt_db_element_t& curr = svc[i]; in ServiceAddedCallback() local 310 << " handle: " << curr.attribute_handle; in ServiceAddedCallback() 311 if (curr.type == BTGATT_DB_CHARACTERISTIC) { in ServiceAddedCallback() 312 service.characteristics().push_back({curr.attribute_handle, in ServiceAddedCallback() 313 UUID(curr.uuid), in ServiceAddedCallback() 314 curr.properties, in ServiceAddedCallback() 315 curr.permissions, in ServiceAddedCallback() 317 } else if (curr.type == BTGATT_DB_DESCRIPTOR) { in ServiceAddedCallback() 319 {curr.attribute_handle, UUID(curr.uuid), curr.permissions}); in ServiceAddedCallback()
|
/system/core/libutils/ |
D | VectorImpl.cpp | 184 void* curr = reinterpret_cast<char*>(array) + mItemSize*(i-1); in sort() local 185 if (cmp(curr, item, state) > 0) { in sort() 194 curr = reinterpret_cast<char*>(array) + mItemSize*(i-1); in sort() 205 _do_copy(next, curr, 1); in sort() 206 next = curr; in sort() 208 curr = NULL; in sort() 210 curr = reinterpret_cast<char*>(array) + mItemSize*(j); in sort() 212 } while (j>=0 && (cmp(curr, temp, state) > 0)); in sort() 607 const void* const curr = reinterpret_cast<const char *>(a) + (mid*s); in _indexOrderOf() local 608 const int c = do_compare(curr, item); in _indexOrderOf()
|
/system/core/storaged/tests/ |
D | storaged_test.cpp | 96 struct disk_stats base, tmp, curr, acc, inc[5]; in TEST() local 102 ASSERT_TRUE(parse_disk_stats(DISK_STATS_PATH, &curr)); in TEST() 104 base = curr; in TEST() 105 tmp = curr; in TEST() 109 inc[i] = get_inc_disk_stats(&tmp, &curr); in TEST() 111 tmp = curr; in TEST() 116 overall_inc= get_inc_disk_stats(&base, &curr); in TEST()
|
/system/core/storaged/include/ |
D | storaged_utils.h | 30 struct disk_stats get_inc_disk_stats(struct disk_stats* prev, struct disk_stats* curr);
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 582 uint8_t curr[SHA256_DIGEST_LENGTH]; in compare_last_signature() local 599 SHA256(verity.signature, sizeof(verity.signature), curr); in compare_last_signature() 626 *match = !memcmp(curr, prev, SHA256_DIGEST_LENGTH); in compare_last_signature() 630 if (TEMP_FAILURE_RETRY(pwrite64(fd, curr, sizeof(curr), in compare_last_signature() 631 offset)) != sizeof(curr)) { in compare_last_signature() 632 PERROR << "Failed to write " << sizeof(curr) << " bytes to " in compare_last_signature()
|
/system/core/libpixelflinger/codeflinger/ |
D | CodeCache.cpp | 203 char* curr = reinterpret_cast<char*>(base + assembly->size()); in cache() local 204 __builtin___clear_cache(base, curr); in cache()
|
/system/security/keystore/ |
D | authorization_set.cpp | 100 auto curr = data_.begin(); in Deduplicate() local 101 auto prev = curr++; in Deduplicate() 102 for (; curr != data_.end(); ++prev, ++curr) { in Deduplicate() 105 if (!keyParamEqual(*prev, *curr)) { in Deduplicate()
|
/system/update_engine/update_manager/ |
D | evaluation_context.cc | 59 TimeDelta GetTimeout(Time curr, Time expires) { in GetTimeout() argument 62 return expires - curr; in GetTimeout()
|
/system/extras/tests/sdcard/ |
D | sdcard_perf_test.cpp | 647 FTSENT *curr; in testTraverse() local 648 while ((curr = fts_read(ftsp)) != NULL) { in testTraverse() 649 switch (curr->fts_info) { in testTraverse()
|
/system/core/logd/ |
D | LogBuffer.cpp | 1135 log_time curr = start; in flushTo() local 1187 curr = element->flushTo(reader, this, privileged, sameTid); in flushTo() 1189 if (curr == element->FLUSH_ERROR) { in flushTo() 1190 return curr; in flushTo() 1198 return curr; in flushTo()
|
/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()
|