/frameworks/av/media/mtp/ |
D | PosixAsyncIO.cpp | 40 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/surfaceflinger/Scheduler/ |
D | VSyncReactor.cpp | 90 std::lock_guard<std::mutex> lk(mMutex); in ~CallbackRepeater() local 95 std::lock_guard<std::mutex> lk(mMutex); in start() local 105 std::lock_guard<std::mutex> lk(mMutex); in setPeriod() local 113 std::lock_guard<std::mutex> lk(mMutex); in stop() local 120 std::lock_guard<std::mutex> lk(mMutex); in dump() local 129 std::lock_guard<std::mutex> lk(mMutex); in callback() local 136 std::lock_guard<std::mutex> lk(mMutex); in callback() local 172 std::lock_guard<std::mutex> lk(mMutex); in addPresentFence() local 210 std::lock_guard<std::mutex> lk(mMutex); in setIgnorePresentFences() local 252 std::lock_guard lk(mMutex); in setPeriod() local [all …]
|
D | VSyncPredictor.cpp | 72 std::lock_guard<std::mutex> lk(mMutex); in currentPeriod() local 77 std::lock_guard<std::mutex> lk(mMutex); in addVsyncTimestamp() local 180 std::lock_guard<std::mutex> lk(mMutex); in nextAnticipatedVSyncTimeFrom() local 182 auto const [slope, intercept] = getVSyncPredictionModel(lk); in nextAnticipatedVSyncTimeFrom() 218 std::lock_guard<std::mutex> lk(mMutex); in getVSyncPredictionModel() local 219 return VSyncPredictor::getVSyncPredictionModel(lk); in getVSyncPredictionModel() 230 std::lock_guard<std::mutex> lk(mMutex); in setPeriod() local 260 std::lock_guard<std::mutex> lk(mMutex); in needsMoreSamples() local 276 std::lock_guard<std::mutex> lk(mMutex); in resetModel() local 282 std::lock_guard<std::mutex> lk(mMutex); in dump() local
|
D | VSyncDispatchTimerQueue.cpp | 127 std::lock_guard<std::mutex> lk(mRunningMutex); in callback() local 133 std::lock_guard<std::mutex> lk(mRunningMutex); in callback() local 139 std::unique_lock<std::mutex> lk(mRunningMutex); in ensureNotRunning() local 140 mCv.wait(lk, [this]() REQUIRES(mRunningMutex) { return !mRunning; }); in ensureNotRunning() 144 std::lock_guard<std::mutex> lk(mRunningMutex); in dump() local 174 std::lock_guard<decltype(mMutex)> lk(mMutex); in ~VSyncDispatchTimerQueue() local 245 std::lock_guard<decltype(mMutex)> lk(mMutex); in timerCallback() local 272 std::lock_guard<decltype(mMutex)> lk(mMutex); in registerCallback() local 285 std::lock_guard<decltype(mMutex)> lk(mMutex); in unregisterCallback() local 302 std::lock_guard<decltype(mMutex)> lk(mMutex); in schedule() local [all …]
|
D | Timer.cpp | 92 std::lock_guard<decltype(mMutex)> lk(mMutex); in alarmIn() local 112 std::lock_guard<decltype(mMutex)> lk(mMutex); in alarmCancel() local 195 std::lock_guard<decltype(mMutex)> lk(mMutex); in dispatch() local 214 std::lock_guard lk(mMutex); in setDebugState() local 236 std::lock_guard lk(mMutex); in dump() local
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncDispatchRealtimeTest.cpp | 67 std::lock_guard<decltype(mMutex)> lk(mMutex); in nextAnticipatedVSyncTimeFrom() local 77 std::lock_guard<decltype(mMutex)> lk(mMutex); in set_interval() local 83 std::lock_guard<decltype(mMutex)> lk(mMutex); in currentPeriod() local 115 std::unique_lock<decltype(mMutex)> lk(mMutex); in repeatedly_schedule() local 116 mCv.wait(lk, [&] { return mCalled; }); in repeatedly_schedule() 119 lk.unlock(); in repeatedly_schedule() 127 std::unique_lock<decltype(mMutex)> lk(mMutex); in repeatedly_schedule() local 128 mCv.wait(lk, [&] { return mCalled; }); in repeatedly_schedule() 137 std::lock_guard<decltype(mMutex)> lk(mMutex); in callback_called() local
|
D | VSyncDispatchTimerQueueTest.cpp | 140 std::unique_lock<std::mutex> lk(mMutex); in pause() local 144 mCv.wait_for(lk, mPauseAmount, [this] { return !mPause; }); in pause() 150 std::unique_lock<std::mutex> lk(mMutex); in waitForPause() local 151 auto waiting = mCv.wait_for(lk, 10s, [this] { return mPause; }); in waitForPause() 160 std::unique_lock<std::mutex> lk(mMutex); in unpause() local
|
D | VSyncReactorTest.cpp | 139 std::lock_guard<std::mutex> lk(mMutex); in onDispSyncEvent() local 143 std::lock_guard<std::mutex> lk(mMutex); in lastCallTime() local
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | NativeCallbackThread.cpp | 54 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
|
D | Tuner.cpp | 116 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
|
D | TunerCallback.cpp | 196 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
|
D | BroadcastRadioService.cpp | 105 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/services/sensorservice/ |
D | RecentEventLogger.cpp | 43 std::lock_guard<std::mutex> lk(mLock); in addEvent() local 53 std::lock_guard<std::mutex> lk(mLock); in setLastEventStale() local 58 std::lock_guard<std::mutex> lk(mLock); in dump() local 98 std::lock_guard<std::mutex> lk(mLock); in dump() local 132 std::lock_guard<std::mutex> lk(mLock); in populateLastEventIfCurrent() local
|
D | SensorDeviceUtils.cpp | 117 std::lock_guard<std::mutex> lk(mLock); in onRegistration() local 125 std::lock_guard<std::mutex> lk(mLock); in reset() local 140 std::unique_lock<std::mutex> lk(mLock); in wait() local 141 return mCondition.wait_for(lk, std::chrono::milliseconds(TIMEOUT_MS), in wait()
|
D | SensorList.h | 116 std::lock_guard<std::mutex> lk(mLock); in forEachEntry() 127 std::lock_guard<std::mutex> lk(mLock); in getOne()
|
D | SensorList.cpp | 33 std::lock_guard<std::mutex> lk(mLock); in add() local 45 std::lock_guard<std::mutex> lk(mLock); in remove() local 67 std::lock_guard<std::mutex> lk(mLock); in isNewHandle() local
|
/frameworks/native/libs/gui/tests/ |
D | RegionSampling_test.cpp | 38 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/core/java/android/content/ |
D | UriMatcher.java | 250 int lk = u.length(); 251 for (int k=0; k<lk; k++) {
|
/frameworks/base/cmds/statsd/src/external/ |
D | StatsCallbackPuller.cpp | 67 lock_guard<mutex> lk(*cv_mutex); in PullInternal() local
|
/frameworks/native/libs/binder/ndk/test/ |
D | libbinder_ndk_unit_test.cpp | 304 std::unique_lock<std::mutex> lk(dMutex); in TEST() local 305 cv.wait_for(lk, 1s, [] { return destroyed; }); in TEST()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3OfflineSession.cpp | 205 std::unique_lock<std::mutex> lk(mOutputLock); in waitForNextFrame() local 208 auto st = mResultSignal.wait_for(lk, std::chrono::nanoseconds(timeout)); in waitForNextFrame()
|