Home
last modified time | relevance | path

Searched refs:swap (Results 1 – 25 of 76) sorted by relevance

1234

/system/nvram/messages/
Dblob.cpp35 swap(*this, other); in Blob()
39 swap(*this, other); in operator =()
43 void swap(Blob& first, Blob& second) { in swap() function
/system/chre/util/include/chre/util/
Dheap_impl.h38 container.swap(parent, current); in siftUp()
67 container.swap(current, child); in siftDown()
89 container.swap(0, container.size() - 1); in pop_heap()
98 container.swap(index, container.size() - 1); in remove_heap()
Dfixed_size_vector.h162 void swap(size_t index0, size_t index1);
/system/memory/libmeminfo/include/meminfo/
Dmeminfo.h35 uint64_t swap; member
48 swap(0), in MemUsage()
58 vss = rss = pss = uss = swap = swap_pss = 0; in clear()
/system/libufdt/sysdeps/
Dlibufdt_sysdeps_vendor.c82 #define swap(a, b) \ macro
109 swap(pl, pl - es); in qsort()
124 swap(a, pm); in qsort()
132 swap(pa, pb); in qsort()
140 swap(pc, pd); in qsort()
146 swap(pb, pc); in qsort()
154 swap(pl, pl - es); in qsort()
/system/memory/libmeminfo/tools/
Dlibrank.cpp82 to->swap += from.swap; in add_mem_usage()
213 if (!g_has_swap && map.usage.swap) { in scan_libs_per_process()
267 + (g_has_swap ? "," + std::to_string(usage.swap/1024) : ""); in to_csv()
316 + (g_has_swap ? ",\"Swap\":" + std::to_string(usage.swap/1024) : "") in to_json()
354 return g_reverse_sort ? a.usage().swap < b.usage().swap : a.usage().swap > b.usage().swap; in main()
466 printf("%6" PRIu64 "K ", usage.swap / 1024); in main()
Dwsstop.cpp74 v.usage.swap / 1024, v.usage.swap_pss / 1024); in print_vma()
101 res.usage.swap = cur.usage.swap > last.usage.swap ? cur.usage.swap - last.usage.swap : 0; in diff_vma_params()
Dshowmap.cpp115 it->vma.usage.swap += current.vma.usage.swap; in collect_vma()
175 v.vma.usage.swap, v.vma.usage.swap_pss); in print_vmainfo()
214 g_total.vma.usage.swap += v.vma.usage.swap; in showmap()
Dprocrank.cpp242 ss << ::android::base::StringPrintf("%6" PRIu64 "K ", proc.Usage().swap / 1024); in print_process_record()
259 total_swap += proc.Usage().swap; in print_processes()
364 return reverse_sort ? stats_a.swap < stats_b.swap : stats_a.swap > stats_b.swap; in main()
/system/netd/libnetdutils/include/netdutils/
DUniqueFd.h49 UniqueFd(UniqueFd&& other) { std::swap(mFd, other.mFd); } in UniqueFd()
51 std::swap(mFd, other.mFd);
DMockSyscalls.h76 ScopedMockSyscalls() : mOld(sSyscalls.swap(*this)) { assert((mRefcount++) == 1); } in ScopedMockSyscalls()
78 sSyscalls.swap(mOld); in ~ScopedMockSyscalls()
/system/memory/libmeminfo/
Dlibmeminfo_test.cpp55 EXPECT_EQ(usage.swap, 0); in TEST()
95 ASSERT_EQ(0, map.usage.swap); in TEST()
119 ASSERT_EQ(0, update_map.usage.swap); in TEST()
198 EXPECT_EQ(wss.swap, 0); in TEST()
421 EXPECT_EQ(vmas[0].usage.swap, 0); in TEST()
422 EXPECT_EQ(vmas[1].usage.swap, 0); in TEST()
423 EXPECT_EQ(vmas[2].usage.swap, 0); in TEST()
424 EXPECT_EQ(vmas[3].usage.swap, 0); in TEST()
425 EXPECT_EQ(vmas[4].usage.swap, 0); in TEST()
426 EXPECT_EQ(vmas[5].usage.swap, 0); in TEST()
[all …]
/system/libvintf/
DKernelConfigTypedValue.cpp35 std::swap(mStringValue, s); in KernelConfigTypedValue()
45 std::swap(mRangeValue, v); in KernelConfigTypedValue()
/system/nvram/messages/include/nvram/messages/
Dvector.h54 swap(*this, other); in Vector()
57 swap(*this, other);
60 friend void swap(Vector<ElementType>& first, Vector<ElementType>& second) { in swap() function
Dblob.h45 friend void swap(Blob& first, Blob& second);
/system/incremental_delivery/incfs/include/
DMountRegistry.h49 decltype(path)().swap(path); in clear()
50 decltype(binds)().swap(binds); in clear()
85 void swap(Mounts& other);
/system/netd/libnetdutils/
DUniqueFd.cpp27 std::swap(fd, mFd); in reset()
/system/chre/util/tests/
Dfixed_size_vector_test.cc157 EXPECT_DEATH(vector.swap(0, 2), ""); in TEST()
164 EXPECT_DEATH(vector.swap(2, 3), ""); in TEST()
172 vector.swap(0, 1); in TEST()
297 vector.swap(1, 3); in TEST()
/system/libbase/include/android-base/
Dexpected.h299 expected(std::in_place, std::forward<Args>(args)...).swap(*this); in emplace()
307 expected(std::in_place, il, std::forward<Args>(args)...).swap(*this); in emplace()
317 void swap(expected& rhs) noexcept( in swap() function
322 var_.swap(rhs.var_); in swap()
383 friend void swap(expected<T1, E1>&, expected<T1, E1>&) noexcept;
551 void swap(expected& rhs) noexcept(std::is_nothrow_move_constructible_v<E>) { in swap() function
552 var_.swap(rhs.var_); in swap()
573 friend void swap(expected<T1, E1>&, expected<T1, E1>&) noexcept;
703 void swap(unexpected& other) noexcept(std::is_nothrow_swappable_v<E>) { in swap() function
704 std::swap(val_, other.val_); in swap()
[all …]
/system/core/fs_mgr/liblp/
Dproperty_fetcher.cpp44 GetInstanceAllocation()->swap(fetcher); in OverrideForTesting()
/system/libhidl/base/
DStatus.cpp166 std::swap(mStatus, other.mStatus); in operator =()
167 std::swap(mCheckedStatus, other.mCheckedStatus); in operator =()
/system/core/logd/
DSerializedData.h43 data_.swap(new_data); in Resize()
/system/memory/lmkd/
DREADME.md67 ro.lmk.swap_free_low_percentage: level of free swap as a percentage of the
68 total swap space used as a threshold to consider
69 the system as swap space starved. Default for
/system/bt/gd/common/
Dblocking_queue.h67 std::swap(queue_, empty); in clear()
/system/update_engine/payload_consumer/
Dbzip_extent_writer.cc83 new_input_buffer.swap(input_buffer_); in Write()

1234