/frameworks/base/core/java/android/os/ |
D | ConditionVariable.java | 34 private volatile boolean mCondition; field in ConditionVariable 41 mCondition = false; in ConditionVariable() 52 mCondition = state; in ConditionVariable() 65 boolean old = mCondition; in open() 66 mCondition = true; in open() 82 mCondition = false; in close() 95 while (!mCondition) { in block() 126 while (!mCondition && now < end) { in block() 134 return mCondition; in block()
|
/frameworks/base/cmds/statsd/src/condition/ |
D | ConditionTimer.h | 37 explicit ConditionTimer(bool initCondition, int64_t bucketStartNs) : mCondition(initCondition) { in ConditionTimer() 52 bool mCondition = false; variable 55 if (mCondition) { in newBucketStart() 66 if (newCondition == mCondition) { in onConditionChanged() 69 mCondition = newCondition; in onConditionChanged()
|
/frameworks/base/media/jni/soundpool/ |
D | SoundPoolThread.cpp | 28 mCondition.wait(mLock); in write() 34 mCondition.signal(); in write() 41 mCondition.wait(mLock); in read() 45 mCondition.signal(); in read() 55 mCondition.signal(); in quit() 56 mCondition.wait(mLock); in quit()
|
/frameworks/base/cmds/statsd/tests/condition/ |
D | ConditionTimer_test.cpp | 31 EXPECT_EQ(false, timer.mCondition); in TEST() 39 EXPECT_EQ(true, timer.mCondition); in TEST() 43 EXPECT_EQ(true, timer.mCondition); in TEST() 48 EXPECT_EQ(true, timer.mCondition); in TEST() 52 EXPECT_EQ(true, timer.mCondition); in TEST()
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | CloseableLock.java | 60 private final Condition mCondition = mLock.newCondition(); field in CloseableLock 139 mCondition.signalAll(); in close() 192 mCondition.awaitUninterruptibly(); in acquireLock() 265 mCondition.awaitUninterruptibly(); in acquireExclusiveLock() 328 mCondition.signalAll(); in releaseLock() 331 mCondition.signalAll(); in releaseLock()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsCallForwardInfo.java | 134 public @CallForwardReasons int mCondition; field in ImsCallForwardInfo 162 mCondition = reason; in ImsCallForwardInfo() 182 out.writeInt(mCondition); in writeToParcel() 193 return super.toString() + ", Condition: " + mCondition in toString() 202 mCondition = in.readInt(); in readFromParcel() 227 return mCondition; in getCondition()
|
/frameworks/rs/ |
D | rsSignal.cpp | 29 pthread_cond_destroy(&mCondition); in ~Signal() 39 status = pthread_cond_init(&mCondition, nullptr); in init() 58 status = pthread_cond_signal(&mCondition); in set() 77 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
|
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/ |
D | ALooper.cpp | 34 mCondition.signal(); in signalSensorEvents() 40 mCondition.signal(); in wake() 63 mCondition.wait(mLock); in pollOnce() 65 mCondition.waitRelative(mLock, waitUntilNs - nowNs); in pollOnce()
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | BufferQueueScheduler.cpp | 33 mCondition.wait(lock, [&] { return (mSurfaceControl != nullptr); }); in startScheduling() 51 mCondition.wait(lock); in startScheduling() 58 mCondition.notify_one(); in addEvent() 64 mCondition.notify_one(); in stopScheduling() 72 mCondition.notify_one(); in setSurfaceControl()
|
/frameworks/native/libs/gui/tests/ |
D | FrameWaiter.h | 33 mCondition.wait(mMutex); in waitForFrame() 41 mCondition.signal(); in onFrameAvailable() 47 Condition mCondition; variable
|
/frameworks/base/tests/JankBench/app/src/main/jni/ |
D | WorkerPool.cpp | 36 pthread_cond_destroy(&mCondition); in ~Signal() 46 status = pthread_cond_init(&mCondition, NULL); in init() 67 status = pthread_cond_signal(&mCondition); in set() 90 status = pthread_cond_wait(&mCondition, &mMutex); in wait() 93 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000); in wait() 96 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | EventThread.cpp | 202 mCondition.notify_all(); in ~EventThread() 226 mCondition.notify_all(); in registerDisplayEventConnection() 231 mCondition.notify_all(); in registerDisplayEventConnection() 253 mCondition.notify_all(); in setVsyncRate() 266 mCondition.notify_all(); in requestNextVsync() 277 mCondition.notify_all(); in onScreenReleased() 287 mCondition.notify_all(); in onScreenAcquired() 295 mCondition.notify_all(); in onVSyncEvent() 302 mCondition.notify_all(); in onHotplugReceived() 309 mCondition.notify_all(); in onConfigChanged() [all …]
|
D | IdleTimer.cpp | 46 mCondition.notify_all(); in stop() 63 mCondition.wait(mMutex); in loop() 86 if (waitTime > zero) mCondition.wait_for(mMutex, waitTime); in loop() 108 mCondition.notify_all(); in reset()
|
D | EventControlThread.cpp | 46 mCondition.notify_all(); in ~EventControlThread() 54 mCondition.notify_all(); in setVsyncEnabled() 66 mCondition.wait(lock, [this, currentVsyncEnabled, keepRunning]() NO_THREAD_SAFETY_ANALYSIS { in threadMain()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | ValueMetricProducer.cpp | 171 if (mIsActive && mIsPulled && mCondition == ConditionState::kTrue && mUseDiff) { in prepareFirstBucketLocked() 172 pullAndMatchEventsLocked(mCurrentBucketStartTimeNs, mCondition); in prepareFirstBucketLocked() 175 mConditionTimer.onConditionChanged(mIsActive && mCondition == ConditionState::kTrue, in prepareFirstBucketLocked() 187 bool pullNeeded = mIsPulled && mCondition == ConditionState::kTrue; in dropDataLocked() 212 bool pullNeeded = mIsPulled && mCondition == ConditionState::kTrue; in onDumpReportLocked() 219 pullAndMatchEventsLocked(dumpTimeNs, mCondition); in onDumpReportLocked() 372 if (ConditionState::kTrue == mCondition && isEventTooLate) { in onActiveStateChangedLocked() 380 if (ConditionState::kTrue != mCondition) { in onActiveStateChangedLocked() 387 pullAndMatchEventsLocked(eventTimeNs, mCondition); in onActiveStateChangedLocked() 414 if (mCondition == ConditionState::kUnknown) { in onConditionChangedLocked() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | Barrier.h | 35 mCondition.notify_all(); in open() 49 mCondition.wait(lock, [this]() NO_THREAD_SAFETY_ANALYSIS { return mIsOpen; }); in wait() 53 mutable std::condition_variable mCondition; variable
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | AutoConditionLock.cpp | 34 mManager->mCondition.broadcast(); in ~AutoConditionLock() 54 status_t ret = manager->mCondition.waitRelative(*(manager->mMutex), waitTime); in waitAndAcquire() 81 status_t ret = manager->mCondition.wait(*(manager->mMutex)); in waitAndAcquire()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | AsyncCallRecorder.h | 95 mCondition.notify_all(); in recordCall() 113 mCondition.wait_for(lock, timeout, 138 std::condition_variable mCondition; variable
|
/frameworks/av/cmds/stagefright/ |
D | stream.cpp | 143 Condition mCondition; member 225 mCondition.wait(mLock); in writeData() 262 mCondition.signal(); in onBufferAvailable() 286 mCondition.signal(); in notify() 293 mCondition.wait(mLock); in waitForEOS() 303 Condition mCondition; member
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDriver.cpp | 157 mCondition.wait(mLock); in setDataSource() 176 mCondition.wait(mLock); in setDataSource() 195 mCondition.wait(mLock); in setDataSource() 214 mCondition.wait(mLock); in setDataSource() 243 mCondition.wait(mLock); in setVideoSurfaceTexture() 290 mCondition.wait(mLock); in prepare_l() 301 mCondition.wait(mLock); in prepare_l() 689 mCondition.wait(mLock); in reset() 826 mCondition.broadcast(); in notifyResetComplete() 836 mCondition.broadcast(); in notifySetSurfaceComplete() [all …]
|
/frameworks/ml/nn/runtime/ |
D | Callbacks.cpp | 52 mCondition.notify_all(); in notifyInternal() 77 mCondition.wait(lock, [this] { return mNotified; }); in wait() 119 mCondition.wait(lock, [this] { return mNotified; }); in wait() 252 mCondition.notify_all(); in notifyInternal()
|
/frameworks/base/cmds/statsd/src/logd/ |
D | LogEventQueue.cpp | 33 mCondition.wait(lock, [this] { return !this->mQueue.empty(); }); in waitPop() 56 mCondition.notify_one(); in push()
|
/frameworks/native/services/sensorservice/ |
D | SensorDeviceUtils.cpp | 49 mCondition.notify_all(); in onRegistration() 70 return mCondition.wait_for(lk, std::chrono::milliseconds(TIMEOUT_MS), in wait()
|
/frameworks/av/media/libstagefright/httplive/ |
D | LiveDataSource.cpp | 100 mCondition.wait(mLock); in readAt_l() 151 mCondition.broadcast(); in queueBuffer() 160 mCondition.broadcast(); in queueEOS()
|
/frameworks/native/libs/renderengine/gl/ |
D | ImageManager.cpp | 51 mCondition.notify_all(); in ~ImageManager() 95 mCondition.notify_one(); in queueOperation() 109 mCondition.wait(mMutex, in threadMain()
|