Home
last modified time | relevance | path

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

/system/chre/platform/riscv/
Dnanoapp_loader.cc46 ElfRela *curr = &reloc[i]; in relocateTable() local
47 int relocType = ELFW_R_TYPE(curr->r_info); in relocateTable()
48 ElfAddr *addr = reinterpret_cast<ElfAddr *>(mMapping + curr->r_offset); in relocateTable()
53 static_cast<long unsigned int>(curr->r_offset)); in relocateTable()
57 *addr = reinterpret_cast<uintptr_t>(mMapping + curr->r_addend); in relocateTable()
62 static_cast<long unsigned int>(curr->r_offset)); in relocateTable()
63 size_t posInSymbolTable = ELFW_R_SYM(curr->r_info); in relocateTable()
101 ElfRela *curr = &reloc[i]; in resolveGot() local
102 int relocType = ELFW_R_TYPE(curr->r_info); in resolveGot()
107 static_cast<long unsigned int>(curr->r_offset), curr->r_addend); in resolveGot()
[all …]
/system/chre/platform/arm/
Dnanoapp_loader.cc43 ElfRel *curr = &reloc[i]; in relocateTable() local
44 int relocType = ELFW_R_TYPE(curr->r_info); in relocateTable()
45 ElfAddr *addr = reinterpret_cast<ElfAddr *>(mMapping + curr->r_offset); in relocateTable()
50 static_cast<long unsigned int>(curr->r_offset)); in relocateTable()
59 static_cast<long unsigned int>(curr->r_offset)); in relocateTable()
60 size_t posInSymbolTable = ELFW_R_SYM(curr->r_info); in relocateTable()
70 static_cast<long unsigned int>(curr->r_offset)); in relocateTable()
71 size_t posInSymbolTable = ELFW_R_SYM(curr->r_info); in relocateTable()
75 static_cast<long unsigned int>(curr->r_offset)); in relocateTable()
127 ElfRel *curr = &reloc[i]; in resolveGot() local
[all …]
/system/media/audio_utils/tests/
Dsample_tests.cpp55 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/
Dmemory_manager_test.cc81 node *curr = nullptr, *prev = head; in TEST() local
83 curr = static_cast<node *>(manager.nanoappAlloc(&app, sizeof(node))); in TEST()
84 EXPECT_NE(curr, nullptr); in TEST()
85 prev->next = curr; in TEST()
86 prev = curr; in TEST()
92 curr = head; in TEST()
94 node *temp = curr->next; in TEST()
95 manager.nanoappFree(&app, curr); in TEST()
96 curr = temp; in TEST()
/system/core/storaged/include/
Dstoraged_diskstats.h60 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 …]
Dstoraged_utils.h32 void get_inc_disk_stats(const struct disk_stats* prev, const struct disk_stats* curr, struct disk_s…
/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()
314 check(curr <= max_hash_block); in verity_read()
315 uint64_t curr_offset = curr * FEC_BLOCKSIZE; in verity_read()
336 if (likely(f->hashtree().check_block_hash_with_index(curr, data))) { in verity_read()
350 offset, offset + count, curr); in verity_read()
[all …]
/system/core/storaged/
Dstoraged_diskstats.cpp176 void get_inc_disk_stats(const struct disk_stats* prev, const struct disk_stats* curr, in get_inc_disk_stats() argument
179 *inc = *curr - *prev; in get_inc_disk_stats()
181 inc->end_time = curr->end_time; in get_inc_disk_stats()
182 inc->io_avg = curr->io_avg; in get_inc_disk_stats()
255 void disk_stats_monitor::update(struct disk_stats* curr) in update() argument
258 get_inc_disk_stats(&mPrevious, curr, &inc); in update()
293 mPrevious = *curr; in update()
297 disk_stats curr; in update() local
299 if (!get_disk_stats_from_health_hal(mHealth, &curr)) { in update()
303 if (!parse_disk_stats(DISK_STATS_PATH, &curr)) { in update()
[all …]
/system/tools/aidl/scripts/
Dvis_aidl_ver_errors.py39 curr = m.groups()[0] variable
40 graph += [(last, curr)]
41 last = curr
/system/core/trusty/storage/proxy/
Dstorage.c131 struct storage_mapping_node* curr = storage_mapping_head; in get_pending_symlink_mapping() local
132 for (; curr != NULL; curr = curr->next) { in get_pending_symlink_mapping()
133 if (curr->fd == handle) { in get_pending_symlink_mapping()
134 return curr; in get_pending_symlink_mapping()
341 struct storage_mapping_node* curr = storage_mapping_head; in get_storage_mapping_entry() local
342 for (; curr != NULL; curr = curr->next) { in get_storage_mapping_entry()
343 if (!strcmp(source, curr->file_name)) { in get_storage_mapping_entry()
344 ALOGI("Found backing file %s for %s\n", curr->backing_storage, source); in get_storage_mapping_entry()
345 return curr; in get_storage_mapping_entry()
352 const struct storage_mapping_node* curr = storage_mapping_head; in is_backing_storage_mapped() local
[all …]
Dproxy.c290 const struct storage_mapping_node* curr = storage_mapping_head; in parse_args() local
291 for (; curr != NULL; curr = curr->next) { in parse_args()
292 ALOGI("\t%s -> %s\n", curr->file_name, curr->backing_storage); in parse_args()
/system/core/libutils/binder/
DVectorImpl.cpp182 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()
604 const void* const curr = reinterpret_cast<const char *>(a) + (mid*s); in _indexOrderOf() local
605 const int c = do_compare(curr, item); in _indexOrderOf()
/system/core/storaged/tests/
Dstoraged_test.cpp110 struct disk_stats base = {}, tmp = {}, curr, acc = {}, inc[5]; in TEST() local
112 ASSERT_TRUE(parse_disk_stats(disk_stats_path, &curr)); in TEST()
114 base = curr; in TEST()
115 tmp = curr; in TEST()
119 get_inc_disk_stats(&tmp, &curr, &inc[i]); in TEST()
121 tmp = curr; in TEST()
125 get_inc_disk_stats(&base, &curr, &overall_inc); in TEST()
/system/keymint/ta/src/
Dkeys.rs723 fn upgrade(v: &mut u32, curr: u32, name: &str) -> Result<bool, Error> { in upgrade_key()
724 match (*v).cmp(&curr) { in upgrade_key()
726 *v = curr; in upgrade_key()
731 error!("refusing to downgrade {} from {} to {}", name, v, curr); in upgrade_key()
737 curr in upgrade_key()
Dlib.rs420 fn check(v: &u32, curr: u32, name: &str) -> Result<(), Error> { in keyblob_parse_decrypt()
421 match (*v).cmp(&curr) { in keyblob_parse_decrypt()
427 curr in keyblob_parse_decrypt()
435 curr in keyblob_parse_decrypt()
/system/memory/lmkd/
Dlmkd.cpp2387 struct adjslot_list *curr = adjslot_tail(&procadjslot_list[ADJTOSLOT(oomadj)]); in proc_adj_prev() local
2389 while (curr != head) { in proc_adj_prev()
2390 if (((struct proc *)curr)->pid == pid) { in proc_adj_prev()
2391 return (struct proc *)curr->prev; in proc_adj_prev()
2393 curr = curr->prev; in proc_adj_prev()
2402 struct adjslot_list *curr = head->next; in proc_get_heaviest() local
2405 while (curr != head) { in proc_get_heaviest()
2406 int pid = ((struct proc *)curr)->pid; in proc_get_heaviest()
2409 struct adjslot_list *next = curr->next; in proc_get_heaviest()
2411 curr = next; in proc_get_heaviest()
[all …]
/system/core/fastboot/fuzzy_fastboot/
Dmain.cpp527 bool curr = resp == "yes"; in TEST_F() local
534 std::string action = !curr ? "unlock" : "lock"; in TEST_F()
536 SetLockState(!curr, false); in TEST_F()
538 ASSERT_EQ(resp, curr ? "yes" : "no") << "The locked/unlocked state of the bootloader " in TEST_F()
541 SetLockState(!curr, true); in TEST_F()
543 ASSERT_EQ(resp, !curr ? "yes" : "no") << "The locked/unlocked state of the bootloader " in TEST_F()
545 curr = !curr; in TEST_F()