Home
last modified time | relevance | path

Searched refs:mSemaphore (Results 1 – 12 of 12) sorted by relevance

/cts/libs/deviceutil/src/android/cts/util/
DWatchDog.java32 private Semaphore mSemaphore; field in WatchDog
50 mSemaphore = new Semaphore(0); in start()
62 mSemaphore.release(); in stop()
69 mSemaphore = null; in stop()
75 mSemaphore.release(); in reset()
83 boolean success = mSemaphore.tryAcquire(mTimeoutInMilliSecs, TimeUnit.MILLISECONDS); in run()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DWatchDog.java31 private Semaphore mSemaphore; field in WatchDog
49 mSemaphore = new Semaphore(0); in start()
61 mSemaphore.release(); in stop()
68 mSemaphore = null; in stop()
74 mSemaphore.release(); in reset()
82 boolean success = mSemaphore.tryAcquire(mTimeoutInMilliSecs, TimeUnit.MILLISECONDS); in run()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileWidgetPrimaryUserTest.java113 private final Semaphore mSemaphore = new Semaphore(0); field in CrossProfileWidgetPrimaryUserTest.Result
124 mSemaphore.release(); in handleMessage()
132 if (mSemaphore.tryAcquire(120, TimeUnit.SECONDS)) { in waitForResult()
143 private final Semaphore mSemaphore = new Semaphore(0); field in CrossProfileWidgetPrimaryUserTest.Connection
148 mSemaphore.release(); in onServiceConnected()
158 if (mSemaphore.tryAcquire(5, TimeUnit.SECONDS)) { in waitForService()
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
DLauncherAppsTests.java196 private final Semaphore mSemaphore = new Semaphore(0); field in LauncherAppsTests.Connection
201 mSemaphore.release(); in onServiceConnected()
211 if (mSemaphore.tryAcquire(5, TimeUnit.SECONDS)) { in waitForService()
222 private final Semaphore mSemaphore = new Semaphore(0); field in LauncherAppsTests.Result
233 mSemaphore.release(); in handleMessage()
241 if (mSemaphore.tryAcquire(120, TimeUnit.SECONDS)) { in waitForResult()
254 private final Semaphore mSemaphore = new Semaphore(0); field in LauncherAppsTests.ActivityLaunchedReceiver
259 mSemaphore.release(); in onReceive()
265 if (mSemaphore.tryAcquire(5, TimeUnit.SECONDS)) { in waitForActivity()
/cts/suite/cts/deviceTests/opengl/src/com/android/cts/opengl/reference/
DGLReferenceActivity.java36 private Semaphore mSemaphore = new Semaphore(0); field in GLReferenceActivity
54 mSemaphore.acquire(); in waitForCompletion()
77 mSemaphore.release(); in onActivityResult()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DScreenCaptureDisabledTest.java84 private final Semaphore mSemaphore = new Semaphore(0); field in ScreenCaptureDisabledTest.ScreenCaptureBroadcastReceiver
89 mSemaphore.release(); in onReceive()
93 if (mSemaphore.tryAcquire(5, TimeUnit.SECONDS)) { in waitForBroadcast()
/cts/tests/tests/textureview/src/android/textureview/cts/
DTextureViewSnapshotTestActivity.java37 private final Semaphore mSemaphore = new Semaphore(0); field in TextureViewSnapshotTestActivity
53 success = mSemaphore.tryAcquire(mMaxWaitDelayMs, TimeUnit.MILLISECONDS); in waitForCompletion()
63 mShouldRender, 1000/48, mSemaphore); in onSurfaceTextureAvailable()
DTextureViewTestActivity.java38 private final Semaphore mSemaphore = new Semaphore(0); field in TextureViewTestActivity
81 success = mSemaphore.tryAcquire(addMargin(oneframeMs * mFrames), in waitForCompletion()
92 mFrames, mDelayMs, mSemaphore); in onSurfaceTextureAvailable()
DGLProducerThread.java40 private final Semaphore mSemaphore; field in GLProducerThread
63 mSemaphore = semaphore; in GLProducerThread()
161 mSemaphore.release(); in run()
/cts/suite/cts/hostTests/uihost/control/src/com/android/cts/taskswitching/control/
DTaskswitchingDeviceTest.java103 private final Semaphore mSemaphore = new Semaphore(0); field in TaskswitchingDeviceTest.AppBroadcastReceiver
106 return mSemaphore.tryAcquire(timeoutInSec, TimeUnit.SECONDS); in waitForBroadcast()
110 mSemaphore.release(); in onReceive()
/cts/suite/cts/deviceTests/opengl/src/com/android/cts/opengl/primitive/
DGLPrimitiveActivity.java37 private Semaphore mSemaphore = new Semaphore(0); field in GLPrimitiveActivity
87 mSemaphore.acquire(); in waitForCompletion()
95 mSemaphore.release(); in complete()
/cts/hostsidetests/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/
DSimpleAppWidgetHostService.java192 private Semaphore mSemaphore = new Semaphore(0); field in SimpleAppWidgetHostService.SimpleAppWidgetHost
207 mSemaphore.release(); in onProvidersChanged()
217 while (mSemaphore.tryAcquire(30, TimeUnit.SECONDS)) { in getProvider()
218 mSemaphore.drainPermits(); in getProvider()