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/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
DLauncherAppsTests.java382 private final Semaphore mSemaphore = new Semaphore(0); field in LauncherAppsTests.Connection
387 mSemaphore.release(); in onServiceConnected()
397 if (mSemaphore.tryAcquire(5, TimeUnit.SECONDS)) { in waitForService()
408 private final Semaphore mSemaphore = new Semaphore(0); field in LauncherAppsTests.Result
419 mSemaphore.release(); in handleMessage()
427 if (mSemaphore.tryAcquire(120, TimeUnit.SECONDS)) { in waitForResult()
440 private final Semaphore mSemaphore = new Semaphore(0); field in LauncherAppsTests.ActivityLaunchedReceiver
445 mSemaphore.release(); in onReceive()
451 if (mSemaphore.tryAcquire(5, TimeUnit.SECONDS)) { in waitForActivity()
/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/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/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/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/tests/tests/graphics/jni/
DVulkanTestHelpers.h68 VkSemaphore semaphore() { return mSemaphore; } in semaphore()
78 VkSemaphore mSemaphore = VK_NULL_HANDLE; variable
DVulkanPreTransformTestHelpers.cpp359 mSemaphore(VK_NULL_HANDLE), in Renderer()
368 vkDestroySemaphore(mDeviceInfo->device(), mSemaphore, nullptr); in ~Renderer()
841 VK_CALL(vkCreateSemaphore(mDeviceInfo->device(), &semaphoreCreateInfo, nullptr, &mSemaphore)); in init()
849 mSemaphore, VK_NULL_HANDLE, &nextIndex)); in drawFrame()
858 .pWaitSemaphores = &mSemaphore, in drawFrame()
DVulkanPreTransformTestHelpers.h103 VkSemaphore mSemaphore; variable
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()