Home
last modified time | relevance | path

Searched refs:semaphore (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DUtilsTest.java53 final Semaphore semaphore = new Semaphore(0); in testListenerList() local
69 semaphore.release(); in testListenerList()
74 semaphore.tryAcquire(1 /* permits */, 1, TimeUnit.SECONDS)); in testListenerList()
81 semaphore.tryAcquire(1 /* permits */, 250, TimeUnit.MILLISECONDS)); in testListenerList()
/cts/tests/tests/view/src/android/view/cts/
DGLProducerThread.java54 int frames, int delayMs, Semaphore semaphore) { in GLProducerThread() argument
58 mSemaphore = semaphore; in GLProducerThread()
64 Semaphore semaphore) { in GLProducerThread() argument
65 this(surfaceTexture, renderer, null, frames, delayMs, semaphore); in GLProducerThread()
69 int delayMs, Semaphore semaphore) { in GLProducerThread() argument
70 this(surfaceTexture, renderer, shouldRender, 0, delayMs, semaphore); in GLProducerThread()
/cts/tests/tests/os/src/android/os/cts/
DPowerManager_WakeLockTest.java101 final Semaphore semaphore = new Semaphore(0); in testWakeLockCallback() local
106 semaphore.release(); in testWakeLockCallback()
110 assertTrue(semaphore.tryAcquire(5, SECONDS)); in testWakeLockCallback()
114 assertTrue(semaphore.tryAcquire(5, SECONDS)); in testWakeLockCallback()
118 assertTrue(semaphore.tryAcquire(5, SECONDS)); in testWakeLockCallback()
122 assertTrue(semaphore.tryAcquire(5, SECONDS)); in testWakeLockCallback()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBlockedNumberUtil.java74 final Semaphore semaphore = new Semaphore(0); in runBlockedNumberService() local
81 semaphore.release(); in runBlockedNumberService()
90 TestCase.assertTrue(semaphore.tryAcquire(TIMEOUT, TimeUnit.SECONDS)); in runBlockedNumberService()
/cts/tests/tests/graphics/jni/
DVulkanTestHelpers.h68 VkSemaphore semaphore() { return mSemaphore; } in semaphore() function
104 VkImageView view, VkSemaphore semaphore,
108 VkImageView view, VkSemaphore semaphore,
Dandroid_graphics_cts_CameraVulkanGpuTest.cpp84 vkImage.semaphore(), vkImage.isSamplerImmutable(), &imageData), in loadCameraAndVerifyFrameImport()
130 vkImage.semaphore(), vkImage.isSamplerImmutable(), &imageData), in loadCameraAndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888()
DVulkanTestHelpers.cpp455 .semaphore = mSemaphore, in init()
808 VkSemaphore semaphore, in renderImageAndReadback() argument
812 ASSERT(renderImageAndReadback(image, sampler, view, semaphore, in renderImageAndReadback()
826 VkSemaphore semaphore, in renderImageAndReadback() argument
1146 .waitSemaphoreCount = semaphore != VK_NULL_HANDLE ? 1u : 0u, in renderImageAndReadback()
1147 .pWaitSemaphores = semaphore != VK_NULL_HANDLE ? &semaphore : nullptr, in renderImageAndReadback()
1149 semaphore != VK_NULL_HANDLE ? &semaphoreWaitFlags : nullptr, in renderImageAndReadback()
Dandroid_graphics_cts_BasicVulkanGpuTest.cpp128 vkImage.view(), vkImage.semaphore(), in verifyBasicBufferImport()
Dandroid_graphics_cts_MediaVulkanGpuTest.cpp122 vkImage.semaphore(), vkImage.isSamplerImmutable(), &framePixels), in loadMediaAndVerifyFrameImport()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerTest.java3341 final Semaphore semaphore = new Semaphore(0); in testCallNotificationListener_callstyleNotificationPosted() local
3348 semaphore.release(); in testCallNotificationListener_callstyleNotificationPosted()
3352 semaphore.release(); in testCallNotificationListener_callstyleNotificationPosted()
3366 if (!semaphore.tryAcquire(5, TimeUnit.SECONDS)) { in testCallNotificationListener_callstyleNotificationPosted()
3374 semaphore.release(); in testCallNotificationListener_callstyleNotificationPosted()
3377 if (!semaphore.tryAcquire(5, TimeUnit.SECONDS)) { in testCallNotificationListener_callstyleNotificationPosted()
3389 final Semaphore semaphore = new Semaphore(0); in testCallNotificationListener_nonCallStyleNotificationPosted() local
3396 semaphore.release(); in testCallNotificationListener_nonCallStyleNotificationPosted()
3412 if (semaphore.tryAcquire(5, TimeUnit.SECONDS)) { in testCallNotificationListener_nonCallStyleNotificationPosted()
3422 final Semaphore semaphore = new Semaphore(0); in testCallNotificationListener_unregisterListener() local
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DMockSatelliteServiceManager.java1445 MockPointingUiActivityStatusReceiver(Semaphore semaphore) { in MockPointingUiActivityStatusReceiver() argument
1446 mSemaphore = semaphore; in MockPointingUiActivityStatusReceiver()