Home
last modified time | relevance | path

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

/cts/common/device-side/util-axt/src/com/android/compatibility/common/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.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/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/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DClearApplicationDataTest.java30 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/
DDeviceIdleControllerTest.java42 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/
DGLReferenceActivity.java35 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/
DLauncherAppsTests.java370 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/
DTextureViewSnapshotTestActivity.java41 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()
DTextureViewStressTestActivity.java42 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()
DGLProducerThread.java35 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/
DTaskSwitchingDeviceTest.java45 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/
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.java195 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/
DVulkanTestHelpers.h68 VkSemaphore semaphore() { return mSemaphore; } in semaphore()
78 VkSemaphore mSemaphore = VK_NULL_HANDLE; variable
DVulkanPreTransformTestHelpers.h103 VkSemaphore mSemaphore; variable
DVulkanPreTransformTestHelpers.cpp357 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()
DVulkanTestHelpers.cpp394 &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()