/frameworks/native/services/surfaceflinger/ |
D | BackgroundExecutor.cpp | 47 LOG_ALWAYS_FATAL_IF(sem_init(&mSemaphore, 0, 0), "sem_init failed"); in BackgroundExecutor() 51 LOG_ALWAYS_FATAL_IF(sem_wait(&mSemaphore), "sem_wait failed (%d)", errno); in BackgroundExecutor() 70 LOG_ALWAYS_FATAL_IF(sem_post(&mSemaphore), "sem_post failed"); in ~BackgroundExecutor() 73 LOG_ALWAYS_FATAL_IF(sem_destroy(&mSemaphore), "sem_destroy failed"); in ~BackgroundExecutor() 79 LOG_ALWAYS_FATAL_IF(sem_post(&mSemaphore), "sem_post failed"); in sendCallbacks()
|
D | BackgroundExecutor.h | 51 sem_t mSemaphore; variable
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | OneShotTimer.cpp | 59 int result = sem_init(&mSemaphore, 0, 0); in start() 70 int result = sem_post(&mSemaphore); in stop() 75 result = sem_destroy(&mSemaphore); in stop() 96 int result = sem_wait(&mSemaphore); in loop() 123 int result = sem_wait(&mSemaphore); in loop() 141 int result = sem_clockwait(&mSemaphore, CLOCK_MONOTONIC, &ts); in loop() 193 LOG_ALWAYS_FATAL_IF(sem_post(&mSemaphore), "sem_post failed"); in reset() 203 LOG_ALWAYS_FATAL_IF(sem_post(&mSemaphore), "sem_post failed"); in resume()
|
D | OneShotTimer.h | 93 sem_t mSemaphore; variable
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | UserUnlockedBlockingReceiver.java | 34 private final Semaphore mSemaphore = new Semaphore(0); field in UserUnlockedBlockingReceiver 47 mSemaphore.release(); in onReceive() 53 return mSemaphore.tryAcquire( in waitForUserUnlocked()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | AbstractImsStatusPreferenceController.java | 132 mSemaphore = new Semaphore(0); in StateCallback() 135 private final Semaphore mSemaphore; field in AbstractImsStatusPreferenceController.StateCallback 140 mSemaphore.release(); in accept() 147 if (!mSemaphore.tryAcquire(MAX_THREAD_BLOCKING_TIME_MS, TimeUnit.MILLISECONDS)) { in waitUntilResult()
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanManager.cpp | 623 VkSemaphore mSemaphore; member in android::uirenderer::renderthread::SharedSemaphoreInfo 628 : mDestroyFunction(destroyFunction), mDevice(device), mSemaphore(semaphore) { in SharedSemaphoreInfo() 629 mGrBackendSemaphore = GrBackendSemaphores::MakeVk(mSemaphore); in SharedSemaphoreInfo() 632 ~SharedSemaphoreInfo() { mDestroyFunction(mDevice, mSemaphore, nullptr); } in ~SharedSemaphoreInfo() 638 VkSemaphore semaphore() const { return mSemaphore; } in semaphore()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/satellite/ |
D | DatagramReceiverTest.java | 523 private final Semaphore mSemaphore = new Semaphore(0); field in DatagramReceiverTest.TestSatelliteDatagramCallback 539 mSemaphore.release(); in onSatelliteDatagramReceived() 548 if (!mSemaphore.tryAcquire(1000, TimeUnit.MILLISECONDS)) { in waitForOnSatelliteDatagramReceived()
|
D | SatelliteSessionControllerTest.java | 1193 private final Semaphore mSemaphore = new Semaphore(0); field in SatelliteSessionControllerTest.TestSatelliteModemStateCallback 1205 mSemaphore.release(); in onSatelliteModemStateChanged() 1213 if (!mSemaphore.tryAcquire(EVENT_PROCESSING_TIME_MILLIS, TimeUnit.MILLISECONDS)) { in waitUntilResult() 1247 mSemaphore.drainPermits(); in clearSemaphorePermits()
|
/frameworks/native/libs/gui/ |
D | SurfaceComposerClient.cpp | 1132 LOG_ALWAYS_FATAL_IF(sem_post(&callbackContext->mSemaphore), "sem_post failed"); in getCallback() 1137 LOG_ALWAYS_FATAL_IF(sem_destroy(&mSemaphore), "sem_destroy failed"); in ~SyncCallback() 1144 LOG_ALWAYS_FATAL_IF(sem_init(&mSemaphore, 0, 0), "sem_init failed"); in init() 1148 int result = sem_clockwait(&mSemaphore, CLOCK_MONOTONIC, &mTimeoutTimespec); in wait() 1158 sem_t mSemaphore; member in android::SyncCallback
|