Home
last modified time | relevance | path

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

12

/cts/tests/tests/externalservice/src/android/externalservice/cts/
DSharedIsolatedServiceTest.java38 private ConditionVariable mCondition = new ConditionVariable(false); field in SharedIsolatedServiceTest
39 private Connection mConnection = new Connection(mCondition);
51 mCondition.close(); in testBasicConnection()
62 assertTrue(mCondition.block(RunningServiceInfo.CONDITION_TIMEOUT)); in testBasicConnection()
71 mCondition.close(); in testSharedIsolatedProcessNotAllowed()
88 mCondition.close(); in testMultipleServicesWithSingleInstance()
98 assertTrue(mCondition.block(RunningServiceInfo.CONDITION_TIMEOUT)); in testMultipleServicesWithSingleInstance()
104 Connection connection2 = new Connection(mCondition); in testMultipleServicesWithSingleInstance()
108 mCondition.close(); in testMultipleServicesWithSingleInstance()
119 assertTrue(mCondition.block(RunningServiceInfo.CONDITION_TIMEOUT)); in testMultipleServicesWithSingleInstance()
[all …]
DExternalServiceTest.java43 private ConditionVariable mCondition = new ConditionVariable(false); field in ExternalServiceTest
131 mCondition.close(); in testBindExternalService()
135 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalService()
159 mCondition.close(); in testBindExternalServiceWithRunningOwn()
161 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalServiceWithRunningOwn()
179 mCondition.open(); in testBindExternalServiceWithRunningOwn()
188 mCondition.close(); in testBindExternalServiceWithRunningOwn()
194 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalServiceWithRunningOwn()
207 mCondition.close(); in testBindExternalServiceWithRunningOwn()
210 assertTrue(mCondition.block(CONDITION_TIMEOUT)); in testBindExternalServiceWithRunningOwn()
[all …]
DPackagePrivateIsolatedServiceTest.java65 private final ConditionVariable mCondition = new ConditionVariable(false); field in PackagePrivateIsolatedServiceTest
66 private final Connection mConnection = new Connection(mCondition);
96 mCondition.close(); in testBasicConnection()
108 assertTrue(mCondition.block(RunningServiceInfo.CONDITION_TIMEOUT)); in testBasicConnection()
125 mCondition.close(); in testBindExportedServiceSharedProcessNotAllowed()
137 assertTrue(mCondition.block(RunningServiceInfo.CONDITION_TIMEOUT)); in testBindExportedServiceSharedProcessNotAllowed()
152 mCondition.close(); in testBindMultipleExportedServiceS()
164 assertTrue(mCondition.block(RunningServiceInfo.CONDITION_TIMEOUT)); in testBindMultipleExportedServiceS()
171 new PackagePrivateIsolatedServiceTest.Connection(mCondition); in testBindMultipleExportedServiceS()
177 mCondition.close(); in testBindMultipleExportedServiceS()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraContentJobService.java68 private ConditionVariable mCondition = new ConditionVariable(); field in CameraContentJobService.TestEnvironment
88 final boolean executed = mCondition.block(DEFAULT_TIMEOUT_MILLIS); in awaitExecution()
98 mCondition.open(); in notifyExecution()
104 mCondition.open(); in cancelWait()
109 mCondition.close(); in setUp()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecAsyncHandler.java45 protected final Condition mCondition = mLock.newCondition(); field in CodecAsyncHandler
85 mCondition.signalAll(); in onInputBufferAvailable()
98 mCondition.signalAll(); in onOutputBufferAvailable()
111 mCondition.signalAll(); in onError()
125 mCondition.signalAll(); in onCryptoError()
138 mCondition.signalAll(); in onOutputFormatChanged()
159 if (!mCondition.await(CodecTestBase.Q_DEQ_TIMEOUT_US, TimeUnit.MICROSECONDS)) { in waitOnFormatChange()
178 mCondition.await(); in getInput()
196 mCondition.await(); in getOutput()
214 mCondition.await(); in getWork()
DCodecAsyncHandlerMultiAccessUnits.java72 mCondition.signalAll(); in onOutputBuffersAvailable()
87 mCondition.signalAll(); in onOutputBufferAvailable()
100 mCondition.await(); in getOutputs()
119 mCondition.await(); in getWorkList()
DImageSurface.java47 private final Condition mCondition = mLock.newCondition(); field in ImageSurface
79 mCondition.signalAll(); in onImageAvailable()
94 if (!mCondition.await(timeout, TimeUnit.MILLISECONDS)) { in getImage()
DCodecTestActivity.java41 private final Condition mCondition = mLock.newCondition(); field in CodecTestActivity
85 mCondition.await(mWaitTimeMs, TimeUnit.MILLISECONDS); in waitTillSurfaceIsCreated()
/cts/tests/tests/media/audio/jni/
DGate.h69 mCondition.wait(l); in wait()
90 mCondition.notify_all(); in openGate()
101 mCondition.notify_all(); in terminate()
121 std::condition_variable mCondition; variable
/cts/tests/tests/externalservice/common/src/android/externalservice/common/
DRunningServiceInfo.java82 private final ConditionVariable mCondition; field in RunningServiceInfo.IdentifyHandler
87 mCondition = signalVariable; in IdentifyHandler()
99 mCondition.open(); in handleMessage()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DDirectActionsSession.java48 private final Condition mCondition = mLock.newCondition(); field in DirectActionsSession
134 mCondition.signalAll(); in onHandleAssist()
146 mCondition.signalAll(); in onDirectActionsInvalidated()
157 Utils.await(mCondition); in executeWithAssist()
245 Utils.await(mCondition); in detectDirectActionsInvalidated()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaStubActivity.java50 private final Condition mCondition = mLock.newCondition(); field in MediaStubActivity
98 mCondition.await(waitTimeMs, TimeUnit.MILLISECONDS); in waitTillSurfaceHolderIsCreated()
132 mCondition.signalAll(); in getSurface()
/cts/tests/video/src/android/video/cts/
DCodecTestActivity.java38 private final Condition mCondition = mLock.newCondition(); field in CodecTestActivity
77 mCondition.await(mWaitTimeMs, TimeUnit.MILLISECONDS); in waitTillSurfaceIsCreated()
DCodecEncoderPerformanceTestBase.java58 private final Condition mCondition = mLock.newCondition(); field in CodecEncoderPerformanceTestBase
162 mCondition.await(); in doWork()
300 mCondition.signal(); in configureCodec()
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DVideoEncoderTest.java286 protected final Object mCondition = new Object(); field in VideoEncoderTest.VideoProcessorBase
469 synchronized(mCondition) { in emptyEncoderOutputBuffer()
471 mCondition.notifyAll(); // condition is always satisfied in emptyEncoderOutputBuffer()
474 synchronized(mCondition) { in emptyEncoderOutputBuffer()
567 synchronized (mCondition) { in processLoop()
572 mCondition.wait(mEncodeOutputFormatUpdated ? in processLoop()
604 synchronized(mCondition) { in processLoop()
625 synchronized(mCondition) { in onInputBufferAvailableLocked()
629 mCondition.notifyAll(); in onInputBufferAvailableLocked()
652 synchronized(mCondition) { in onOutputBufferAvailableLocked()
[all …]
/cts/hostsidetests/packagemanager/installedloadingprogess/deviceside/src/com/android/tests/loadingprogress/device/
DLoadingProgressTest.java157 private final Predicate<Float> mCondition; field in LoadingProgressTest.LauncherAppsCallback
159 mCondition = progressCondition; in LauncherAppsCallback()
185 if (mCondition.test(progress)) { in onPackageLoadingProgressChanged()
/cts/tests/mediapc/src/android/mediapc/cts/
DTestActivity.java40 private final Condition mCondition = mLock.newCondition(); field in TestActivity
79 mCondition.await(mWaitTimeMs, TimeUnit.MILLISECONDS); in waitTillSurfaceIsCreated()
DPlaybackFrameDrop.java77 private final Condition mCondition = mLock.newCondition(); field in PlaybackFrameDrop.OutputHandler
85 mCondition.await(); in getOutput()
117 mCondition.signal(); in add()
127 mCondition.signal(); in stop()
DCodecTestBase.java69 private final Condition mCondition = mLock.newCondition(); field in CodecAsyncHandler
102 mCondition.signalAll(); in onInputBufferAvailable()
112 mCondition.signalAll(); in onOutputBufferAvailable()
120 mCondition.signalAll(); in onError()
145 mCondition.await(); in getOutput()
160 mCondition.await(); in getWork()
/cts/tests/tests/nativemedia/resourceobserver/src/
DResourceObserverNativeTest.cpp73 mCondition.notify_one(); in onStatusChanged()
81 mCondition.wait_for(lock, std::chrono::microseconds(timeoutUs)); in waitForEvent()
91 std::condition_variable mCondition; member
/cts/tests/media/jni/
DNativeCodecTestBase.cpp109 mCondition.notify_all(); in pushToInputList()
115 mCondition.notify_all(); in pushToOutputList()
123 mCondition.wait(lock); in getInput()
138 mCondition.wait(lock); in getOutput()
153 mCondition.wait(lock); in getWork()
189 mCondition.notify_all(); in setOutputFormat()
198 mCondition.wait_for(lock, std::chrono::microseconds(kQDeQTimeOutUs))) { in waitOnFormatChange()
219 mCondition.notify_all(); in setError()
DNativeCodecTestBase.h79 std::condition_variable mCondition; variable
/cts/tests/tests/gameframerate/src/
DGameFrameRateCtsActivity.java396 String mCondition; field in GameFrameRateCtsActivity.ChoreographerFrameRateObserver.ChoreographerThread
401 mCondition = condition; in ChoreographerThread()
434 mCondition, in verifyFrameRate()
439 mCondition, in verifyFrameRate()
/cts/tests/tests/graphics/src/android/graphics/cts/
DFrameRateOverrideCtsActivity.java352 String mCondition; field in FrameRateOverrideCtsActivity.ChoreographerFrameRateObserver.ChoreographerThread
357 mCondition = condition; in ChoreographerThread()
390 mCondition, in verifyFrameRate()
395 mCondition, mExpectedRefreshRate, fps), in verifyFrameRate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsUtils.java495 private final Object mCondition; field in ItsUtils.MediaCodecListener
501 mCondition = condition; in MediaCodecListener()
512 synchronized (mCondition) { in onOutputBufferAvailable()
519 mCondition.notifyAll(); in onOutputBufferAvailable()
536 synchronized (mCondition) { in onOutputFormatChanged()

12