/cts/common/device-side/util-axt/src/com/android/compatibility/common/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 | 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/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/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | ClearApplicationDataTest.java | 30 private static final Semaphore mSemaphore = new Semaphore(0); field in ClearApplicationDataTest 56 mSemaphore.release(); in clearApplicationDataTest() 59 mSemaphore.tryAcquire(CLEAR_APPLICATION_DATA_TIMEOUT_S, TimeUnit.SECONDS)); in clearApplicationDataTest()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | DeviceIdleControllerTest.java | 42 final Semaphore mSemaphore = new Semaphore(0); in testAddWhiteList() local 52 mSemaphore.release(); in testAddWhiteList() 58 mSemaphore.acquire(); in testAddWhiteList()
|
/cts/tests/openglperf2/src/android/opengl2/cts/reference/ |
D | GLReferenceActivity.java | 35 private Semaphore mSemaphore = new Semaphore(0); field in GLReferenceActivity 53 mSemaphore.acquire(); in waitForCompletion() 76 mSemaphore.release(); in onActivityResult()
|
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/ |
D | LauncherAppsTests.java | 370 private final Semaphore mSemaphore = new Semaphore(0); field in LauncherAppsTests.Connection 375 mSemaphore.release(); in onServiceConnected() 385 if (mSemaphore.tryAcquire(5, TimeUnit.SECONDS)) { in waitForService() 396 private final Semaphore mSemaphore = new Semaphore(0); field in LauncherAppsTests.Result 407 mSemaphore.release(); in handleMessage() 415 if (mSemaphore.tryAcquire(120, TimeUnit.SECONDS)) { in waitForResult() 428 private final Semaphore mSemaphore = new Semaphore(0); field in LauncherAppsTests.ActivityLaunchedReceiver 433 mSemaphore.release(); in onReceive() 439 if (mSemaphore.tryAcquire(5, TimeUnit.SECONDS)) { in waitForActivity()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewSnapshotTestActivity.java | 41 private final Semaphore mSemaphore = new Semaphore(0); field in TextureViewSnapshotTestActivity 57 success = mSemaphore.tryAcquire(mMaxWaitDelayMs, TimeUnit.MILLISECONDS); in waitForCompletion() 67 mShouldRender, 1000 / 48, mSemaphore); in onSurfaceTextureAvailable()
|
D | TextureViewStressTestActivity.java | 42 private final Semaphore mSemaphore = new Semaphore(0); field in TextureViewStressTestActivity 85 success = mSemaphore.tryAcquire(addMargin(oneframeMs * mFrames), in waitForCompletion() 96 mFrames, mDelayMs, mSemaphore); in onSurfaceTextureAvailable()
|
D | GLProducerThread.java | 35 private final Semaphore mSemaphore; field in GLProducerThread 58 mSemaphore = semaphore; in GLProducerThread() 159 mSemaphore.release(); in run()
|
/cts/hostsidetests/ui/control/src/android/taskswitching/control/cts/ |
D | TaskSwitchingDeviceTest.java | 45 private final Semaphore mSemaphore = new Semaphore(0); field in TaskSwitchingDeviceTest 89 .putExtra("callback", new RemoteCallback(b -> mSemaphore.release()))); in startActivityAndWait() 90 mSemaphore.tryAcquire(TASK_SWITCHING_WAIT_TIME, TimeUnit.SECONDS); in startActivityAndWait()
|
/cts/tests/openglperf2/src/android/opengl2/cts/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 | 195 private Semaphore mSemaphore = new Semaphore(0); field in SimpleAppWidgetHostService.SimpleAppWidgetHost 210 mSemaphore.release(); in onProvidersChanged() 222 while ((nextTimeout > 0) && mSemaphore.tryAcquire(nextTimeout, TimeUnit.MILLISECONDS)) { in getProvider() 223 mSemaphore.drainPermits(); in getProvider()
|
/cts/tests/tests/graphics/jni/ |
D | VulkanTestHelpers.h | 68 VkSemaphore semaphore() { return mSemaphore; } in semaphore() 78 VkSemaphore mSemaphore = VK_NULL_HANDLE; variable
|
D | VulkanPreTransformTestHelpers.h | 103 VkSemaphore mSemaphore; variable
|
D | VulkanPreTransformTestHelpers.cpp | 357 mSemaphore(VK_NULL_HANDLE), in Renderer() 366 vkDestroySemaphore(mDeviceInfo->device(), mSemaphore, nullptr); in ~Renderer() 839 VK_CALL(vkCreateSemaphore(mDeviceInfo->device(), &semaphoreCreateInfo, nullptr, &mSemaphore)); in init() 847 mSemaphore, VK_NULL_HANDLE, &nextIndex)); in drawFrame() 856 .pWaitSemaphores = &mSemaphore, in drawFrame()
|
D | VulkanTestHelpers.cpp | 394 &mSemaphore)); in init() 400 .semaphore = mSemaphore, in init() 439 if (mSemaphore != VK_NULL_HANDLE) { in ~VkAHardwareBufferImage() 440 vkDestroySemaphore(mInit->device(), mSemaphore, nullptr); in ~VkAHardwareBufferImage() 441 mSemaphore = VK_NULL_HANDLE; in ~VkAHardwareBufferImage()
|