Searched refs:swap (Results 1 - 25 of 44) sorted by relevance

12

/system/netd/libnetdutils/
H A DUniqueFd.cpp27 std::swap(fd, mFd);
/system/netd/libnetdutils/include/netdutils/
H A DUniqueFd.h49 UniqueFd(UniqueFd&& other) { std::swap(mFd, other.mFd); }
51 std::swap(mFd, other.mFd);
H A DMockSyscalls.h71 ScopedMockSyscalls() : mOld(sSyscalls.swap(*this)) { assert((mRefcount++) == 1); }
73 sSyscalls.swap(mOld);
/system/nvram/messages/
H A Dblob.cpp35 swap(*this, other);
39 swap(*this, other);
43 void swap(Blob& first, Blob& second) { function in namespace:nvram
44 // This does not use std::swap since it needs to work in environments that are
/system/chre/util/include/chre/util/
H A Dheap_impl.h38 container.swap(parent, current);
64 // over it, swap and continue.
67 container.swap(current, child);
89 container.swap(0, container.size() - 1);
98 container.swap(index, container.size() - 1);
H A Dfixed_size_vector.h154 void swap(size_t index0, size_t index1);
H A Ddynamic_vector.h255 void swap(size_type index0, size_type index1);
/system/libvintf/
H A DKernelConfigTypedValue.cpp35 std::swap(mStringValue, s);
45 std::swap(mRangeValue, v);
/system/libufdt/sysdeps/
H A Dlibufdt_sysdeps_vendor.c82 #define swap(a, b) \ macro
109 swap(pl, pl - es);
124 swap(a, pm);
132 swap(pa, pb);
140 swap(pc, pd);
146 swap(pb, pc);
154 swap(pl, pl - es);
/system/extras/libpagemap/
H A Dpm_memusage.c32 /* We use an array of int to store the references to a given offset in the swap
33 1 GiB swap means 512KiB size array: offset are the index */
41 mu->vss = mu->rss = mu->pss = mu->uss = mu->swap = 0;
55 a->swap += b->swap;
65 fprintf(stderr, "Error allocating proportional swap.\n");
70 fprintf(stderr, "Error allocating proportional swap offset array.\n");
93 fprintf(stderr, "SWAP offset %d is out of swap bounds.\n", offset);
H A Dpm_map.c73 usage.swap += map->proc->ker->pagesize;
/system/nvram/messages/include/nvram/messages/
H A Dblob.h45 friend void swap(Blob& first, Blob& second);
H A Dvector.h54 swap(*this, other);
57 swap(*this, other);
60 friend void swap(Vector<ElementType>& first, Vector<ElementType>& second) { function in class:nvram::Vector
61 // This does not use std::swap since it needs to work in environments that
/system/update_engine/payload_generator/
H A Dtarjan.cc46 out->swap(components_[0]);
78 component.swap(components_.back());
H A Dgraph_utils_unittest.cc86 graph[2].out_edges[1].write_extents.swap(graph[2].out_edges[1].extents);
/system/extras/showmap/
H A Dshowmap.cpp22 unsigned swap; member in struct:mapinfo
114 mi->swap = size;
150 current->swap += map->swap;
227 printf("%s size RSS PSS clean dirty clean dirty swap swapPSS", addr2);
259 mi->private_clean, mi->private_dirty, mi->swap, mi->swap_pss);
285 total.swap += mi->swap;
/system/libhidl/base/
H A DStatus.cpp157 std::swap(mStatus, other.mStatus);
158 std::swap(mCheckedStatus, other.mCheckedStatus);
/system/chre/util/tests/
H A Dfixed_size_vector_test.cc135 EXPECT_DEATH(vector.swap(0, 2), "");
142 EXPECT_DEATH(vector.swap(2, 3), "");
150 vector.swap(0, 1);
275 vector.swap(1, 3);
/system/update_engine/payload_consumer/
H A Dbzip_extent_writer.cc79 new_input_buffer.swap(input_buffer_);
/system/extras/librank/
H A Dlibrank.c64 declare_sort(swap); variable
250 {"swap", 0, 0, 's'},
371 if (map_usage.swap) {
412 printf("%6zdK ", mi->usage.swap / 1024);
433 " -s Sort processes by swap.\n"
440 " -C Only show non-cached (ram/swap backed) pages\n"
490 create_sort(swap, numcmp)
/system/extras/procrank/
H A Dprocrank.cpp54 declare_sort(swap); variable
284 if (ws != WS_RESET && procs[i].usage.swap) {
391 total_swap += proc.usage.swap;
418 printf("%6zuK ", proc.usage.swap / 1024);
491 printf("ZRAM: %" PRIu64 "K physical used for %" PRIu64 "K in swap "
492 "(%" PRIu64 "K total swap)\n",
510 " -s Sort by swap.\n"
514 " -C Only show non-cached (ram/swap backed) pages\n"
605 create_sort(swap, numcmp)
/system/bt/service/ipc/
H A Dipc_handler_linux.cc96 socket_.swap(server_socket);
/system/core/libmemunreachable/
H A DTarjan.h98 out.swap(components_);
/system/extras/libpagemap/include/pagemap/
H A Dpagemap.h47 size_t swap; member in struct:pm_memusage
48 /* if non NULL then use swap_offset_list to compute proportional swap */
63 /* Adds a swap offset */
65 /* Enable proportional swap computing. */
67 /* Computes and return the proportional swap */
70 /* Initialize a proportional swap computing handle:
71 assumes only 1 swap device, total swap size of this device in bytes to be given as argument */
/system/extras/zram-perf/
H A Dzram-perf.cpp9 #include <sys/swap.h>

Completed in 875 milliseconds

12