Home
last modified time | relevance | path

Searched refs:mCondition (Results 1 – 25 of 81) sorted by relevance

1234

/frameworks/base/core/java/android/os/
DConditionVariable.java34 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/
DConditionTimer.h37 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/
DSoundPoolThread.cpp28 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/
DConditionTimer_test.cpp31 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/
DCloseableLock.java60 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/
DImsCallForwardInfo.java134 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/
DrsSignal.cpp29 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/
DALooper.cpp34 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/
DBufferQueueScheduler.cpp33 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/
DFrameWaiter.h33 mCondition.wait(mMutex); in waitForFrame()
41 mCondition.signal(); in onFrameAvailable()
47 Condition mCondition; variable
/frameworks/base/tests/JankBench/app/src/main/jni/
DWorkerPool.cpp36 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/
DEventThread.cpp202 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 …]
DIdleTimer.cpp46 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()
DEventControlThread.cpp46 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/
DValueMetricProducer.cpp171 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/
DBarrier.h35 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/
DAutoConditionLock.cpp34 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/
DAsyncCallRecorder.h95 mCondition.notify_all(); in recordCall()
113 mCondition.wait_for(lock, timeout,
138 std::condition_variable mCondition; variable
/frameworks/av/cmds/stagefright/
Dstream.cpp143 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/
DNuPlayerDriver.cpp157 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/
DCallbacks.cpp52 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/
DLogEventQueue.cpp33 mCondition.wait(lock, [this] { return !this->mQueue.empty(); }); in waitPop()
56 mCondition.notify_one(); in push()
/frameworks/native/services/sensorservice/
DSensorDeviceUtils.cpp49 mCondition.notify_all(); in onRegistration()
70 return mCondition.wait_for(lk, std::chrono::milliseconds(TIMEOUT_MS), in wait()
/frameworks/av/media/libstagefright/httplive/
DLiveDataSource.cpp100 mCondition.wait(mLock); in readAt_l()
151 mCondition.broadcast(); in queueBuffer()
160 mCondition.broadcast(); in queueEOS()
/frameworks/native/libs/renderengine/gl/
DImageManager.cpp51 mCondition.notify_all(); in ~ImageManager()
95 mCondition.notify_one(); in queueOperation()
109 mCondition.wait(mMutex, in threadMain()

1234