/frameworks/native/libs/renderengine/skia/ |
D | GaneshVkRenderEngine.cpp | 47 static void unref_semaphore(void* semaphore) { in unref_semaphore() argument 49 reinterpret_cast<SkiaVkRenderEngine::DestroySemaphoreInfo*>(semaphore); in unref_semaphore() 88 VkSemaphore semaphore = vi.createExportableSemaphore(); in flushAndSubmit() local 89 GrBackendSemaphore backendSemaphore = GrBackendSemaphores::MakeVk(semaphore); in flushAndSubmit() 93 if (semaphore != VK_NULL_HANDLE) { in flushAndSubmit() 94 destroySemaphoreInfo = new DestroySemaphoreInfo(vi, semaphore); in flushAndSubmit() 103 if (semaphore != VK_NULL_HANDLE) { in flushAndSubmit() 105 drawFenceFd = vi.exportSemaphoreSyncFd(semaphore); in flushAndSubmit()
|
D | SkiaVkRenderEngine.h | 45 DestroySemaphoreInfo(VulkanInterface& vulkanInterface, VkSemaphore semaphore) in DestroySemaphoreInfo() argument 46 : DestroySemaphoreInfo(vulkanInterface, std::vector<VkSemaphore>(1, semaphore)) {} in DestroySemaphoreInfo() 51 for (VkSemaphore semaphore : mSemaphores) { in unref() local 52 mVulkanInterface.destroySemaphore(semaphore); in unref()
|
D | VulkanInterface.cpp | 80 VkSemaphore semaphore; in createExportableSemaphore() local 81 VkResult err = mFuncs.vkCreateSemaphore(mDevice, &semaphoreInfo, nullptr, &semaphore); in createExportableSemaphore() 87 return semaphore; in createExportableSemaphore() 97 VkSemaphore semaphore; in importSemaphoreFromSyncFd() local 98 VkResult err = mFuncs.vkCreateSemaphore(mDevice, &semaphoreInfo, nullptr, &semaphore); in importSemaphoreFromSyncFd() 107 importInfo.semaphore = semaphore; in importSemaphoreFromSyncFd() 114 mFuncs.vkDestroySemaphore(mDevice, semaphore, nullptr); in importSemaphoreFromSyncFd() 119 return semaphore; in importSemaphoreFromSyncFd() 122 int VulkanInterface::exportSemaphoreSyncFd(VkSemaphore semaphore) { in exportSemaphoreSyncFd() argument 128 getFdInfo.semaphore = semaphore; in exportSemaphoreSyncFd() [all …]
|
D | VulkanInterface.h | 55 int exportSemaphoreSyncFd(VkSemaphore semaphore); 56 void destroySemaphore(VkSemaphore semaphore);
|
D | GraphiteVkRenderEngine.cpp | 53 static void unref_semaphore(void* semaphore, skgpu::CallbackResult result) { in unref_semaphore() argument 58 reinterpret_cast<SkiaVkRenderEngine::DestroySemaphoreInfo*>(semaphore); in unref_semaphore()
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
D | UserSwitchWaiter.java | 83 final Semaphore semaphore = getSemaphoreSwitchComplete(userId); in runThenWaitUntilSwitchCompleted() local 84 semaphore.drainPermits(); in runThenWaitUntilSwitchCompleted() 86 waitForSemaphore(semaphore, onFail); in runThenWaitUntilSwitchCompleted() 91 final Semaphore semaphore = getSemaphoreBootComplete(userId); in runThenWaitUntilBootCompleted() local 92 semaphore.drainPermits(); in runThenWaitUntilBootCompleted() 94 waitForSemaphore(semaphore, onFail); in runThenWaitUntilBootCompleted() 97 private void waitForSemaphore(Semaphore semaphore, Runnable onFail) { in waitForSemaphore() argument 100 success = semaphore.tryAcquire(mTimeoutInSecond, TimeUnit.SECONDS); in waitForSemaphore()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserSwitchWaiter.java | 83 final Semaphore semaphore = getSemaphoreSwitchComplete(userId); in runThenWaitUntilSwitchCompleted() local 84 semaphore.drainPermits(); in runThenWaitUntilSwitchCompleted() 86 waitForSemaphore(semaphore, onFail); in runThenWaitUntilSwitchCompleted() 91 final Semaphore semaphore = getSemaphoreBootComplete(userId); in runThenWaitUntilBootCompleted() local 92 semaphore.drainPermits(); in runThenWaitUntilBootCompleted() 94 waitForSemaphore(semaphore, onFail); in runThenWaitUntilBootCompleted() 97 private void waitForSemaphore(Semaphore semaphore, Runnable onFail) { in waitForSemaphore() argument 100 success = semaphore.tryAcquire(mTimeoutInSecond, TimeUnit.SECONDS); in waitForSemaphore()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/ |
D | ExpandedAnimationControllerTest.java | 110 final Semaphore semaphore = new Semaphore(0); in testExpansionAndCollapse() local 111 Runnable afterCollapse = semaphore::release; in testExpansionAndCollapse() 113 assertThat(semaphore.tryAcquire(1, 2, TimeUnit.SECONDS)).isTrue(); in testExpansionAndCollapse() 155 final Semaphore semaphore = new Semaphore(0); in expand() local 156 Runnable afterExpand = semaphore::release; in expand() 159 assertThat(semaphore.tryAcquire(1, TimeUnit.SECONDS)).isTrue(); in expand() 189 final Semaphore semaphore = new Semaphore(0); in waitForAnimation() local 196 semaphore.release(); in waitForAnimation() 202 assertThat(semaphore.tryAcquire(1, 2, TimeUnit.SECONDS)).isTrue(); in waitForAnimation()
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanManager.cpp | 579 VkSemaphore semaphore; in dequeueNextBuffer() local 580 VkResult err = mCreateSemaphore(mDevice, &semaphoreInfo, nullptr, &semaphore); in dequeueNextBuffer() 589 importInfo.semaphore = semaphore; in dequeueNextBuffer() 597 mDestroySemaphore(mDevice, semaphore, nullptr); in dequeueNextBuffer() 601 GrBackendSemaphore beSemaphore = GrBackendSemaphores::MakeVk(semaphore); in dequeueNextBuffer() 627 VkSemaphore semaphore) in SharedSemaphoreInfo() argument 628 : mDestroyFunction(destroyFunction), mDevice(device), mSemaphore(semaphore) { in SharedSemaphoreInfo() 638 VkSemaphore semaphore() const { return mSemaphore; } in semaphore() function in android::uirenderer::renderthread::SharedSemaphoreInfo 664 VkSemaphore semaphore; in finishFrame() local 665 VkResult err = mCreateSemaphore(mDevice, &semaphoreInfo, nullptr, &semaphore); in finishFrame() [all …]
|
D | VulkanManager.h | 42 typedef void(VKAPI_PTR* PFN_vkFrameBoundaryANDROID)(VkDevice device, VkSemaphore semaphore,
|
/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/ |
D | BubbleStackViewTest.kt | 154 val semaphore = Semaphore(0) in <lambda>() constant 158 semaphore.release() in <lambda>() 170 assertThat(semaphore.tryAcquire(5, TimeUnit.SECONDS)).isTrue() in <lambda>() 192 val semaphore = Semaphore(0) in <lambda>() constant 196 semaphore.release() in <lambda>() 208 assertThat(semaphore.tryAcquire(5, TimeUnit.SECONDS)).isTrue() in <lambda>() 224 assertThat(semaphore.tryAcquire(5, TimeUnit.SECONDS)).isTrue() in <lambda>() 235 assertThat(semaphore.tryAcquire(5, TimeUnit.SECONDS)).isTrue() in <lambda>() 384 val semaphore = Semaphore(0) in <lambda>() constant 386 BubbleViewInfoTask.Callback { semaphore.release() } in <lambda>() [all …]
|
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/ |
D | VideoTrackTranscoderTests.cpp | 184 OneShotSemaphore semaphore; in TEST_F() local 195 [&samples, &semaphore](const std::shared_ptr<MediaSample>& sample) { in TEST_F() 202 semaphore.signal(); in TEST_F() 207 semaphore.wait(); in TEST_F()
|
/frameworks/native/vulkan/include/vulkan/ |
D | vk_android_native_buffer.h | 225 VkSemaphore semaphore, 273 VkSemaphore semaphore,
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/satellite/ |
D | SatelliteControllerTest.java | 1348 Semaphore semaphore = new Semaphore(0); in testRegisterForSatelliteProvisionStateChanged() local 1355 semaphore.release(); in testRegisterForSatelliteProvisionStateChanged() 1382 semaphore, 1, "testRegisterForSatelliteProvisionStateChanged")); in testRegisterForSatelliteProvisionStateChanged() 1388 semaphore, 1, "testRegisterForSatelliteProvisionStateChanged")); in testRegisterForSatelliteProvisionStateChanged() 2356 Semaphore semaphore = new Semaphore(0); in testRegisterForNtnSignalStrengthChangedWithFeatureFlagEnabled() local 2366 semaphore.release(); in testRegisterForNtnSignalStrengthChangedWithFeatureFlagEnabled() 2394 semaphore, 1, "testRegisterForNtnSignalStrengthChanged")); in testRegisterForNtnSignalStrengthChangedWithFeatureFlagEnabled() 2401 semaphore, 1, "testRegisterForNtnSignalStrengthChanged")); in testRegisterForNtnSignalStrengthChangedWithFeatureFlagEnabled() 2409 semaphore, 1, "testRegisterForNtnSignalStrengthChanged")); in testRegisterForNtnSignalStrengthChangedWithFeatureFlagEnabled() 2417 semaphore, 1, "testRegisterForNtnSignalStrengthChanged")); in testRegisterForNtnSignalStrengthChangedWithFeatureFlagEnabled() [all …]
|
/frameworks/native/vulkan/libvulkan/ |
D | swapchain.h | 38 … device, VkSwapchainKHR swapchain_handle, uint64_t timeout, VkSemaphore semaphore, VkFence fence, …
|
D | driver_gen.cpp | 59 …kDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, … in checkedAcquireNextImageKHR() argument 61 return AcquireNextImageKHR(device, swapchain, timeout, semaphore, fence, pImageIndex); in checkedAcquireNextImageKHR()
|
D | api_gen.cpp | 435 VKAPI_ATTR void DestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallback… 541 …kDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, … 581 VKAPI_ATTR VkResult GetSemaphoreCounterValue(VkDevice device, VkSemaphore semaphore, uint64_t* pVal… 1090 VKAPI_ATTR void DestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallback… in DestroySemaphore() argument 1091 GetData(device).dispatch.DestroySemaphore(device, semaphore, pAllocator); in DestroySemaphore() 1514 …kDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, … in AcquireNextImageKHR() argument 1515 …return GetData(device).dispatch.AcquireNextImageKHR(device, swapchain, timeout, semaphore, fence, … in AcquireNextImageKHR() 1674 VKAPI_ATTR VkResult GetSemaphoreCounterValue(VkDevice device, VkSemaphore semaphore, uint64_t* pVal… in GetSemaphoreCounterValue() argument 1675 return GetData(device).dispatch.GetSemaphoreCounterValue(device, semaphore, pValue); in GetSemaphoreCounterValue() 2071 VKAPI_ATTR void vkDestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallba… in vkDestroySemaphore() argument [all …]
|
D | swapchain.cpp | 2159 VkSemaphore semaphore, in AcquireNextImageKHR() argument 2178 device, swapchain.images[*image_index].image, -1, semaphore, vk_fence); in AcquireNextImageKHR() 2295 device, swapchain.images[idx].image, fence_clone, semaphore, vk_fence); in AcquireNextImageKHR() 2321 pAcquireInfo->timeout, pAcquireInfo->semaphore, in AcquireNextImage2KHR()
|
/frameworks/native/opengl/libs/GLES2/ |
D | gl2ext_api.in | 571 GLboolean API_ENTRY(glIsSemaphoreEXT)(GLuint semaphore) { 572 CALL_GL_API_RETURN(glIsSemaphoreEXT, semaphore); 574 void API_ENTRY(glSemaphoreParameterui64vEXT)(GLuint semaphore, GLenum pname, const GLuint64 *params… 575 CALL_GL_API(glSemaphoreParameterui64vEXT, semaphore, pname, params); 577 void API_ENTRY(glGetSemaphoreParameterui64vEXT)(GLuint semaphore, GLenum pname, GLuint64 *params) { 578 CALL_GL_API(glGetSemaphoreParameterui64vEXT, semaphore, pname, params); 580 void API_ENTRY(glWaitSemaphoreEXT)(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffer… 581 …CALL_GL_API(glWaitSemaphoreEXT, semaphore, numBufferBarriers, buffers, numTextureBarriers, texture… 583 void API_ENTRY(glSignalSemaphoreEXT)(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buff… 584 …CALL_GL_API(glSignalSemaphoreEXT, semaphore, numBufferBarriers, buffers, numTextureBarriers, textu… [all …]
|
/frameworks/native/opengl/include/GLES2/ |
D | gl2ext.h | 1721 typedef GLboolean (GL_APIENTRYP PFNGLISSEMAPHOREEXTPROC) (GLuint semaphore); 1722 typedef void (GL_APIENTRYP PFNGLSEMAPHOREPARAMETERUI64VEXTPROC) (GLuint semaphore, GLenum pname, co… 1723 typedef void (GL_APIENTRYP PFNGLGETSEMAPHOREPARAMETERUI64VEXTPROC) (GLuint semaphore, GLenum pname,… 1724 typedef void (GL_APIENTRYP PFNGLWAITSEMAPHOREEXTPROC) (GLuint semaphore, GLuint numBufferBarriers, … 1725 typedef void (GL_APIENTRYP PFNGLSIGNALSEMAPHOREEXTPROC) (GLuint semaphore, GLuint numBufferBarriers… 1729 GL_APICALL GLboolean GL_APIENTRY glIsSemaphoreEXT (GLuint semaphore); 1730 GL_APICALL void GL_APIENTRY glSemaphoreParameterui64vEXT (GLuint semaphore, GLenum pname, const GLu… 1731 GL_APICALL void GL_APIENTRY glGetSemaphoreParameterui64vEXT (GLuint semaphore, GLenum pname, GLuint… 1732 GL_APICALL void GL_APIENTRY glWaitSemaphoreEXT (GLuint semaphore, GLuint numBufferBarriers, const G… 1733 GL_APICALL void GL_APIENTRY glSignalSemaphoreEXT (GLuint semaphore, GLuint numBufferBarriers, const… [all …]
|
/frameworks/native/vulkan/nulldrv/ |
D | null_driver_gen.h | 73 VKAPI_ATTR void DestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallback… 214 …geANDROID(VkDevice device, VkImage image, int nativeFenceFd, VkSemaphore semaphore, VkFence fence); 220 VKAPI_ATTR VkResult GetSemaphoreCounterValue(VkDevice device, VkSemaphore semaphore, uint64_t* pVal…
|
D | null_driver.cpp | 1127 VkSemaphore* semaphore) { in CreateSemaphore() argument 1128 *semaphore = AllocHandle<VkSemaphore>(device, HandleType::kSemaphore); in CreateSemaphore() 1265 void DestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* allocato… in DestroySemaphore() argument 1615 VkResult GetSemaphoreCounterValue(VkDevice device, VkSemaphore semaphore, uint64_t* pValue) { in GetSemaphoreCounterValue() argument
|
/frameworks/native/opengl/libs/ |
D | entries.in | 438 GL_ENTRY(void, glGetSemaphoreParameterui64vEXT, GLuint semaphore, GLenum pname, GLuint64 *params) 497 GL_ENTRY(void, glImportSemaphoreFdEXT, GLuint semaphore, GLenum handleType, GLint fd) 524 GL_ENTRY(GLboolean, glIsSemaphoreEXT, GLuint semaphore) 820 GL_ENTRY(void, glSemaphoreParameterui64vEXT, GLuint semaphore, GLenum pname, const GLuint64 *params) 825 GL_ENTRY(void, glSignalSemaphoreEXT, GLuint semaphore, GLuint numBufferBarriers, const GLuint *buff… 1014 GL_ENTRY(void, glWaitSemaphoreEXT, GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffer…
|