Searched refs:VmLock (Results 1 – 8 of 8) sorted by relevance
41 class VmLock {42 DISALLOW_COPY_ASSIGN_AND_MOVE(VmLock);44 VmLock() = default;45 virtual ~VmLock();64 static VmLock* get();73 static VmLock* set(VmLock* vmLock);80 ScopedVmLock(VmLock* vmLock = VmLock::get()) : mVmLock(vmLock) { in mVmLock()89 VmLock* const mVmLock;97 RecursiveScopedVmLock(VmLock* vmLock = VmLock::get()) {113 VmLock* mVmLock;[all …]
76 using VmLock = android::VmLock; variable80 void init(VmLock* vmLock, TimerInterface timerInterface) { in init()168 VmLock* mVmLock = nullptr;
78 static void initThreading(VmLock* vmLock);80 static void initThreadingForTest(VmLock* lock, base::Looper* looper);
71 static void initThreading(VmLock* vmLock);
19 static VmLock* sInstance = nullptr;21 VmLock::~VmLock() = default;23 VmLock* VmLock::get() { in get()25 sInstance = new VmLock(); in get()30 bool VmLock::hasInstance() { in hasInstance()34 VmLock* VmLock::set(VmLock* vmLock) { in set()35 VmLock* result = sInstance; in set()
22 TEST(VmLock, Default) { in TEST() argument23 VmLock* vmLock = VmLock::get(); in TEST()29 TEST(VmLock, CustomVmLock) { in TEST() argument36 VmLock::get()->lock(); in TEST()41 VmLock::get()->unlock(); in TEST()46 VmLock::get()->lock(); in TEST()51 VmLock::get()->unlock(); in TEST()58 VmLock::get()->lock(); in TEST()63 VmLock::get()->unlock(); in TEST()
31 void GoldfishSyncCommandQueue::initThreading(VmLock* vmLock) { in initThreading()
66 using VmLock = android::VmLock; typedef466 void AndroidPipe::initThreading(VmLock* vmLock) { in initThreading()