Home
last modified time | relevance | path

Searched refs:lk (Results 1 – 13 of 13) sorted by relevance

/frameworks/av/media/mtp/
DPosixAsyncIO.cpp40 std::unique_lock<std::mutex> lk(gLock); in work_func() local
41 gWait.wait(lk, []{return gWorkQueue.size() > 0 || gSuspended;}); in work_func()
57 std::unique_lock<std::mutex> lk(aiocbp->lock); in work_func() local
72 std::unique_lock<std::mutex> lk(gLock); in aio_add() local
85 std::unique_lock<std::mutex> lk(gLock); in aiocb() local
99 std::unique_lock<std::mutex> lk(gLock); in ~aiocb() local
104 lk.unlock(); in ~aiocb()
107 lk.lock(); in ~aiocb()
135 std::unique_lock<std::mutex> lk(aiocbp[i]->lock); in aio_suspend() local
136 aiocbp[i]->cv.wait(lk, [aiocbp, i]{return !aiocbp[i]->queued;}); in aio_suspend()
/frameworks/native/services/sensorservice/
DSensorDeviceUtils.cpp46 std::lock_guard<std::mutex> lk(mLock); in onRegistration() local
54 std::lock_guard<std::mutex> lk(mLock); in reset() local
69 std::unique_lock<std::mutex> lk(mLock); in wait() local
70 return mCondition.wait_for(lk, std::chrono::milliseconds(TIMEOUT_MS), in wait()
DRecentEventLogger.cpp41 std::lock_guard<std::mutex> lk(mLock); in addEvent() local
51 std::lock_guard<std::mutex> lk(mLock); in setLastEventStale() local
56 std::lock_guard<std::mutex> lk(mLock); in dump() local
96 std::lock_guard<std::mutex> lk(mLock); in populateLastEventIfCurrent() local
DSensorList.cpp31 std::lock_guard<std::mutex> lk(mLock); in add() local
43 std::lock_guard<std::mutex> lk(mLock); in remove() local
65 std::lock_guard<std::mutex> lk(mLock); in isNewHandle() local
DSensorList.h115 std::lock_guard<std::mutex> lk(mLock); in forEachEntry()
126 std::lock_guard<std::mutex> lk(mLock); in getOne()
/frameworks/base/services/core/jni/BroadcastRadio/
DNativeCallbackThread.cpp54 unique_lock<mutex> lk(mQueueMutex); in threadLoop() local
59 mQueueCond.wait(lk); in threadLoop()
85 lock_guard<mutex> lk(mQueueMutex); in enqueue() local
101 lock_guard<mutex> lk(mQueueMutex); in stop() local
DTuner.cpp116 lock_guard<mutex> lk(gContextMutex); in nativeInit() local
129 lock_guard<mutex> lk(gContextMutex); in nativeFinalize() local
159 lock_guard<mutex> lk(gContextMutex); in assignHalInterfaces() local
189 lock_guard<mutex> lk(gContextMutex); in getHalTuner() local
194 lock_guard<mutex> lk(gContextMutex); in getHalTuner11() local
208 lock_guard<mutex> lk(gContextMutex); in nativeClose() local
230 lock_guard<mutex> lk(gContextMutex); in nativeSetConfiguration() local
285 lock_guard<mutex> lk(gContextMutex); in nativeTune() local
369 lock_guard<mutex> lk(gContextMutex); in nativeGetImage() local
DTunerCallback.cpp196 lock_guard<mutex> lk(mMut); in tuneComplete() local
276 lock_guard<mutex> lk(mMut); in newMetadata() local
359 lock_guard<mutex> lk(gContextMutex); in nativeInit() local
372 lock_guard<mutex> lk(gContextMutex); in nativeFinalize() local
380 lock_guard<mutex> lk(gContextMutex); in nativeDetach() local
389 lock_guard<mutex> lk(gContextMutex); in getNativeCallback() local
DBroadcastRadioService.cpp105 lock_guard<mutex> lk(gContextMutex); in nativeInit() local
114 lock_guard<mutex> lk(gContextMutex); in nativeFinalize() local
122 lock_guard<mutex> lk(gContextMutex); in nativeLoadModules() local
207 lock_guard<mutex> lk(gContextMutex); in nativeOpenTuner() local
/frameworks/native/libs/gui/tests/
DRegionSampling_test.cpp38 std::unique_lock<decltype(mutex_)> lk(mutex_); in notify() local
58 std::unique_lock<decltype(mutex_)> lk(mutex_); in wait_vsync_notify() local
59 cv_.wait(lk, [this] { return notification_arrived_; }); in wait_vsync_notify()
140 std::unique_lock<decltype(mutex)> lk(mutex); in onSampleCollected() local
146 std::unique_lock<decltype(mutex)> lk(mutex); in wait_event() local
147 return cv.wait_for(lk, timeout, [this] { return received; }); in wait_event()
151 std::unique_lock<decltype(mutex)> lk(mutex); in luma() local
156 std::unique_lock<decltype(mutex)> lk(mutex); in reset() local
/frameworks/base/cmds/statsd/src/shell/
DShellSubscriber.cpp57 std::unique_lock<std::mutex> lk(mMutex); in startNewSubscription() local
60 mShellDied.wait_for(lk, timeoutSec * 1s, in startNewSubscription()
63 mShellDied.wait(lk, [this, resultReceiver] { return mResultReceiver != resultReceiver; }); in startNewSubscription()
/frameworks/base/core/java/android/content/
DUriMatcher.java250 int lk = u.length();
251 for (int k=0; k<lk; k++) {
/frameworks/native/libs/binder/ndk/tests/
Dlibbinder_ndk_unit_test.cpp350 std::unique_lock<std::mutex> lk(dMutex); in TEST() local
351 cv.wait_for(lk, 1s, [] { return destroyed; }); in TEST()