Home
last modified time | relevance | path

Searched refs:swap (Results 1 – 25 of 85) 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()
/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/include/meminfo/
Dmeminfo.h35 uint64_t swap; member
56 swap(0), in MemUsage()
72 vss = rss = pss = uss = swap = swap_pss = 0; in clear()
/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()
188 v.vma.usage.swap, v.vma.usage.swap_pss, v.vma.usage.anon_huge_pages, in print_vmainfo()
229 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/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.h53 decltype(path)().swap(path); in clear()
54 decltype(binds)().swap(binds); in clear()
89 void swap(Mounts& other);
/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()
382 friend void swap(expected<T1, E1>& x, expected<T1, E1>& y) noexcept(noexcept(x.swap(y)));
419 void swap(expected<T1, E1>& x, expected<T1, E1>& y) noexcept(noexcept(x.swap(y))) { in swap() function
420 x.swap(y); in swap()
555 void swap(expected& rhs) noexcept(std::is_nothrow_move_constructible_v<E>) { in swap() function
556 var_.swap(rhs.var_); in swap()
576 friend void swap(expected<T1, E1>& x, expected<T1, E1>& y) noexcept(noexcept(x.swap(y)));
[all …]
/system/libziparchive/incfs_support/include/incfs_support/
Dutil.h27 Container().swap(c); in clearAndFree()
/system/memory/libmeminfo/
Dlibmeminfo_test.cpp63 EXPECT_EQ(usage.swap, 0); in TEST()
103 ASSERT_EQ(0, map.usage.swap); in TEST()
127 ASSERT_EQ(0, update_map.usage.swap); in TEST()
206 EXPECT_EQ(wss.swap, 0); in TEST()
471 EXPECT_EQ(vmas[0].usage.swap, 0); in TEST()
472 EXPECT_EQ(vmas[1].usage.swap, 0); in TEST()
473 EXPECT_EQ(vmas[2].usage.swap, 0); in TEST()
474 EXPECT_EQ(vmas[3].usage.swap, 0); in TEST()
475 EXPECT_EQ(vmas[4].usage.swap, 0); in TEST()
476 EXPECT_EQ(vmas[5].usage.swap, 0); in TEST()
[all …]
/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/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/logging/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/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h893 swap(temp);
1037 void swap(vector_downward &other) {
1038 using std::swap;
1039 swap(allocator_, other.allocator_);
1040 swap(own_allocator_, other.own_allocator_);
1041 swap(initial_size_, other.initial_size_);
1042 swap(buffer_minalign_, other.buffer_minalign_);
1043 swap(reserved_, other.reserved_);
1044 swap(buf_, other.buf_);
1045 swap(cur_, other.cur_);
[all …]
/system/bt/gd/common/
Dblocking_queue.h67 std::swap(queue_, empty); in clear()

1234