Home
last modified time | relevance | path

Searched refs:prev (Results 1 – 25 of 42) sorted by relevance

12

/system/core/libcutils/include_outside_system/cutils/
Dlist.h28 struct listnode *prev; member
37 .prev = &(name), \
41 for ((node) = (list)->prev; (node) != (list); (node) = (node)->prev)
55 node->prev = node; in list_init()
61 item->prev = head->prev; in list_add_tail()
62 head->prev->next = item; in list_add_tail()
63 head->prev = item; in list_add_tail()
69 item->prev = head; in list_add_head()
70 head->next->prev = item; in list_add_head()
76 item->next->prev = item->prev; in list_remove()
[all …]
/system/core/libcutils/include/cutils/
Dlist.h28 struct listnode *prev; member
37 .prev = &(name), \
41 for ((node) = (list)->prev; (node) != (list); (node) = (node)->prev)
55 node->prev = node; in list_init()
61 item->prev = head->prev; in list_add_tail()
62 head->prev->next = item; in list_add_tail()
63 head->prev = item; in list_add_tail()
69 item->prev = head; in list_add_head()
70 head->next->prev = item; in list_add_head()
76 item->next->prev = item->prev; in list_remove()
[all …]
/system/chre/util/
Dintrusive_list_base.cc26 nextNode->prev = newNode; in doLinkFront()
28 newNode->prev = &mSentinelNode; in doLinkFront()
34 Node *prevNode = mSentinelNode.prev; in doLinkBack()
36 newNode->prev = prevNode; in doLinkBack()
38 mSentinelNode.prev = newNode; in doLinkBack()
43 node->prev->next = node->next; in doUnlinkNode()
44 node->next->prev = node->prev; in doUnlinkNode()
46 node->prev = nullptr; in doUnlinkNode()
53 newNode->prev = frontNode; in doLinkAfter()
55 backNode->prev = newNode; in doLinkAfter()
[all …]
/system/media/audio_utils/tests/
Dsample_tests.cpp54 float prev = -2.0f; in TEST() local
57 ASSERT_LT(prev, curr); in TEST()
58 int signum_prev = signum(prev); in TEST()
63 float ratio = curr / prev; 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()
79 ASSERT_LT(prev, 2.0f); 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/chre/util/include/chre/util/
Dintrusive_list_base.h29 Node *prev = nullptr; member
55 mSentinelNode.prev = &mSentinelNode; in IntrusiveListBase()
Dintrusive_list_impl.h62 return *reinterpret_cast<ListNode<ElementType> *>(mSentinelNode.prev); in back()
68 return *reinterpret_cast<const ListNode<ElementType> *>(mSentinelNode.prev); in back()
74 IntrusiveListBase::doUnlinkNode(mSentinelNode.prev); in unlink_back()
Dintrusive_list.h61 CHRE_ASSERT(node.prev == nullptr && node.next == nullptr); in ~ListNode()
120 mNode = mNode->prev;
/system/extras/simpleperf/
DCallChainJoiner.h100 CacheNode* prev = &nodes_[node->leaf_link_prev]; in RemoveNodeFromLRUList() local
102 prev->leaf_link_next = node->leaf_link_next; in RemoveNodeFromLRUList()
108 CacheNode* prev = &nodes_[next->leaf_link_prev]; in AppendNodeToLRUList() local
111 next->leaf_link_prev = prev->leaf_link_next = GetNodeIndex(node); in AppendNodeToLRUList()
/system/unwinding/libunwindstack/
DMapInfo.cpp49 for (auto prev = prev_map(); prev != nullptr; prev = prev->prev_map()) { in GetPrevRealMap() local
50 if (!prev->IsBlank()) { in GetPrevRealMap()
51 if (prev->name() == name()) { in GetPrevRealMap()
52 return prev; in GetPrevRealMap()
DMaps.cpp194 auto prev = new_map_info->prev_map(); in Reparse() local
196 info->set_prev_map(prev); in Reparse()
200 if (prev != nullptr) { in Reparse()
201 prev->set_next_map(info); in Reparse()
/system/unwinding/libunwindstack/tests/
DJitDebugTest.cpp178 void WriteEntry32Pack(uint64_t addr, uint32_t prev, uint32_t next, uint32_t elf_addr,
180 void WriteEntry32Pad(uint64_t addr, uint32_t prev, uint32_t next, uint32_t elf_addr,
182 void WriteEntry64(uint64_t addr, uint64_t prev, uint64_t next, uint64_t elf_addr,
215 void JitDebugTest::WriteEntry32Pack(uint64_t addr, uint32_t prev, uint32_t next, uint32_t elf_addr, in WriteEntry32Pack() argument
221 memory_->SetData32(addr + 4, prev); in WriteEntry32Pack()
228 void JitDebugTest::WriteEntry32Pad(uint64_t addr, uint32_t prev, uint32_t next, uint32_t elf_addr, in WriteEntry32Pad() argument
234 memory_->SetData32(addr + 4, prev); in WriteEntry32Pad()
243 void JitDebugTest::WriteEntry64(uint64_t addr, uint64_t prev, uint64_t next, uint64_t elf_addr, in WriteEntry64() argument
249 memory_->SetData64(addr + 8, prev); in WriteEntry64()
DDexFilesTest.cpp104 void WriteEntry32(uint64_t entry_addr, uint32_t next, uint32_t prev, uint32_t dex_file,
106 void WriteEntry64(uint64_t entry_addr, uint64_t next, uint64_t prev, uint64_t dex_file,
147 void DexFilesTest::WriteEntry32(uint64_t entry_addr, uint32_t next, uint32_t prev, in WriteEntry32() argument
153 memory_->SetData32(entry_addr + 4, prev); in WriteEntry32()
161 void DexFilesTest::WriteEntry64(uint64_t entry_addr, uint64_t next, uint64_t prev, in WriteEntry64() argument
167 memory_->SetData64(entry_addr + 8, prev); in WriteEntry64()
/system/chre/core/tests/
Dmemory_manager_test.cc81 node *curr = nullptr, *prev = head; in TEST() local
85 prev->next = curr; in TEST()
86 prev = curr; in TEST()
/system/libziparchive/incfs_support/include/incfs_support/
Dsignal_handling.h153 ScopedJmpBuf(const JmpBufState& prev) : mPrev(prev) {} in ScopedJmpBuf() argument
/system/core/fs_mgr/libfiemap/
Dfiemap_writer.cpp555 fiemap_extent* prev = &fiemap->fm_extents[0]; in FiemapToExtents() local
556 if (!IsValidExtent(prev, file_path)) return false; in FiemapToExtents()
576 if (prev->fe_physical + prev->fe_length == next->fe_physical && in FiemapToExtents()
577 next->fe_physical - prev->fe_physical == next->fe_logical - prev->fe_logical) { in FiemapToExtents()
578 prev->fe_length += next->fe_length; in FiemapToExtents()
580 extents->emplace_back(*prev); in FiemapToExtents()
581 prev = next; in FiemapToExtents()
584 extents->emplace_back(*prev); in FiemapToExtents()
/system/media/audio_utils/include/audio_utils/
DLinearMap.h178 const size_t prev = previousPosition(); in push() local
179 const int32_t xdiff2 = x - mX[prev]; in push()
180 const int32_t ydiff2 = y - mY[prev]; in push()
/system/extras/showslab/
Dshowslab.c62 struct slab_info *head = NULL, *p = NULL, *prev = NULL; in get_slabinfo() local
104 head = prev = p; in get_slabinfo()
141 prev->next = p; in get_slabinfo()
142 prev = p; in get_slabinfo()
/system/core/debuggerd/
Dcrash_test.h28 uintptr_t prev; member
/system/unwinding/libunwindstack/tests/fuzz/
DUnwinderComponentCreator.cpp203 void WriteEntry32Pack(MemoryFake* memory, uint64_t addr, uint32_t prev, uint32_t next, in WriteEntry32Pack() argument
209 memory->SetData32(addr + 4, prev); in WriteEntry32Pack()
216 void WriteEntry32Pad(MemoryFake* memory, uint64_t addr, uint32_t prev, uint32_t next, in WriteEntry32Pad() argument
222 memory->SetData32(addr + 4, prev); in WriteEntry32Pad()
231 void WriteEntry64(MemoryFake* memory, uint64_t addr, uint64_t prev, uint64_t next, in WriteEntry64() argument
237 memory->SetData64(addr + 8, prev); in WriteEntry64()
/system/chre/util/tests/
Dintrusive_list_test.cc95 EXPECT_EQ(node.node.prev, nullptr); in TEST()
139 EXPECT_EQ(nodeA.node.prev, &nodeB.node); in TEST()
/system/extras/ioshark/
Dcompile_ioshark.c108 get_delta_ts(char *buf, struct timeval *prev) in get_delta_ts() argument
114 if (prev->tv_sec == 0 && prev->tv_usec == 0) in get_delta_ts()
117 timersub(&op_tv, prev, &tv_res); in get_delta_ts()
118 *prev = op_tv; in get_delta_ts()
/system/logging/liblog/
Dpmsg_reader.cpp202 const char *prev = NULL, *last = NULL, *cp = prefix; in __android_log_pmsg_file_read() local
204 prev = last; in __android_log_pmsg_file_read()
208 if (prev) { in __android_log_pmsg_file_read()
209 prefix = prev + 1; in __android_log_pmsg_file_read()
/system/core/libcutils/
Dconfig_utils.cpp323 cnode *prev = cur; in config_free() local
326 free(prev); in config_free()

12