/cts/libs/deviceutil/src/android/cts/util/ |
D | WatchDog.java | 32 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/ |
D | WatchDog.java | 31 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/ |
D | CrossProfileWidgetPrimaryUserTest.java | 113 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/ |
D | LauncherAppsTests.java | 196 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/ |
D | GLReferenceActivity.java | 36 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/ |
D | ScreenCaptureDisabledTest.java | 84 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/ |
D | TextureViewSnapshotTestActivity.java | 37 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()
|
D | TextureViewTestActivity.java | 38 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()
|
D | GLProducerThread.java | 40 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/ |
D | TaskswitchingDeviceTest.java | 103 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/ |
D | GLPrimitiveActivity.java | 37 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/ |
D | SimpleAppWidgetHostService.java | 192 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()
|