/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/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/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/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/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/libs/gui/tests/ |
D | FrameWaiter.h | 33 mCondition.wait(mMutex); in waitForFrame() 41 mCondition.signal(); in onFrameAvailable() 47 Condition mCondition; variable
|
/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/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/av/services/mediametrics/ |
D | TimedAction.h | 47 mCondition.notify_one(); in postAt() 64 mCondition.notify_all(); in quit() 89 mCondition.wait_until(l, sleepUntilTime); in threadLoop() 94 std::condition_variable mCondition GUARDED_BY(mLock);
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | EventThread.cpp | 204 mCondition.notify_all(); in ~EventThread() 228 mCondition.notify_all(); in registerDisplayEventConnection() 233 mCondition.notify_all(); in registerDisplayEventConnection() 255 mCondition.notify_all(); in setVsyncRate() 268 mCondition.notify_all(); in requestNextVsync() 291 mCondition.notify_all(); in requestLatestConfig() 301 mCondition.notify_all(); in onScreenReleased() 311 mCondition.notify_all(); in onScreenAcquired() 320 mCondition.notify_all(); in onVSyncEvent() 327 mCondition.notify_all(); in onHotplugReceived() [all …]
|
D | OneShotTimer.cpp | 47 mCondition.notify_all(); in stop() 64 mCondition.wait(mMutex); in loop() 87 if (waitTime > zero) mCondition.wait_for(mMutex, waitTime); in loop() 109 mCondition.notify_all(); in reset()
|
D | EventControlThread.cpp | 50 mCondition.notify_all(); in ~EventControlThread() 58 mCondition.notify_all(); in setVsyncEnabled() 70 mCondition.wait(lock, [this, currentVsyncEnabled, keepRunning]() NO_THREAD_SAFETY_ANALYSIS { in threadMain()
|
/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/powermanager/ |
D | IThermalManagerTest.cpp | 47 std::condition_variable mCondition; member in IThermalServiceTest 67 mCondition.notify_all(); in onStatusChange() 95 EXPECT_NE(mCondition.wait_for(lock, 1s), std::cv_status::timeout); in SetUp() 118 EXPECT_NE(mCondition.wait_for(lock, 1s), std::cv_status::timeout); in TEST_P()
|
/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/base/cmds/statsd/src/metrics/ |
D | ValueMetricProducer.cpp | 172 mConditionTimer.onConditionChanged(mIsActive && mCondition == ConditionState::kTrue, in ValueMetricProducer() 205 if (mCondition != ConditionState::kTrue || !mIsActive) { in onStateChanged() 257 bool pullNeeded = mIsPulled && mCondition == ConditionState::kTrue; in onDumpReportLocked() 436 if (ConditionState::kTrue != mCondition) { in onActiveStateChangedLocked() 465 mCondition = isEventTooLate ? ConditionState::kUnknown : newCondition; in onConditionChangedLocked() 476 mCondition = ConditionState::kUnknown; in onConditionChangedLocked() 477 mConditionTimer.onConditionChanged(mCondition, eventTimeNs); in onConditionChangedLocked() 487 if (mCondition == ConditionState::kUnknown) { in onConditionChangedLocked() 502 (newCondition == ConditionState::kTrue || mCondition == ConditionState::kTrue)) { in onConditionChangedLocked() 510 (mCondition == ConditionState::kTrue && newCondition == ConditionState::kFalse)) { in onConditionChangedLocked() [all …]
|
/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/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/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/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDriver.cpp | 158 mCondition.wait(mLock); in setDataSource() 177 mCondition.wait(mLock); in setDataSource() 196 mCondition.wait(mLock); in setDataSource() 215 mCondition.wait(mLock); in setDataSource() 244 mCondition.wait(mLock); in setVideoSurfaceTexture() 291 mCondition.wait(mLock); in prepare_l() 302 mCondition.wait(mLock); in prepare_l() 713 mCondition.wait(mLock); in reset() 855 mCondition.broadcast(); in notifyResetComplete() 865 mCondition.broadcast(); in notifySetSurfaceComplete() [all …]
|
/frameworks/native/services/inputflinger/tests/ |
D | TestInputListener.cpp | 93 mCondition.wait_for(lock, mEventHappenedTimeout, in assertCalled() 112 mCondition.wait_for(lock, mEventDidNotHappenTimeout, in assertNotCalled() 125 mCondition.notify_all(); in notify()
|
/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()
|