Home
last modified time | relevance | path

Searched refs:curr (Results 1 – 16 of 16) sorted by relevance

/system/chre/core/tests/
Dmemory_manager_test.cc79 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/
Dfec_read.cpp252 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/
Dstoraged.cpp45 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()
Dstoraged_utils.cpp112 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/
Dgatt_server.cc308 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/
DVectorImpl.cpp184 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/
Dstoraged_test.cpp96 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/
Dstoraged_utils.h30 struct disk_stats get_inc_disk_stats(struct disk_stats* prev, struct disk_stats* curr);
/system/core/fs_mgr/
Dfs_mgr_verity.cpp582 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/
DCodeCache.cpp203 char* curr = reinterpret_cast<char*>(base + assembly->size()); in cache() local
204 __builtin___clear_cache(base, curr); in cache()
/system/security/keystore/
Dauthorization_set.cpp100 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/
Devaluation_context.cc59 TimeDelta GetTimeout(Time curr, Time expires) { in GetTimeout() argument
62 return expires - curr; in GetTimeout()
/system/extras/tests/sdcard/
Dsdcard_perf_test.cpp647 FTSENT *curr; in testTraverse() local
648 while ((curr = fts_read(ftsp)) != NULL) { in testTraverse()
649 switch (curr->fts_info) { in testTraverse()
/system/core/logd/
DLogBuffer.cpp1135 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/
Dmips64_assembler_test.cpp367 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/
Darm64_assembler_test.cpp410 const long curr = base + long(instrMemSize); in flushcache() local
411 __builtin___clear_cache((char*)base, (char*)curr); in flushcache()