Searched refs:availablePermits (Results 1 – 9 of 9) sorted by relevance
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarProjectionManagerTest.java | 85 assertEquals(0, mAvailable.availablePermits()); in testShortPressListener() 86 assertEquals(0, mLongAvailable.availablePermits()); in testShortPressListener() 89 assertEquals(0, mLongAvailable.availablePermits()); in testShortPressListener() 97 assertEquals(0, mLongAvailable.availablePermits()); in testLongPressListener() 98 assertEquals(0, mAvailable.availablePermits()); in testLongPressListener() 101 assertEquals(0, mAvailable.availablePermits()); in testLongPressListener() 110 assertEquals(0, mLongAvailable.availablePermits()); in testMixedPressListener() 111 assertEquals(0, mAvailable.availablePermits()); in testMixedPressListener() 114 assertEquals(0, mAvailable.availablePermits()); in testMixedPressListener() 116 assertEquals(0, mLongAvailable.availablePermits()); in testMixedPressListener() [all …]
|
D | CarHvacManagerTest.java | 201 assertEquals(0, mAvailable.availablePermits()); in testEvent() 214 assertEquals(0, mAvailable.availablePermits()); in testEvent() 227 assertEquals(0, mAvailable.availablePermits()); in testEvent() 255 assertEquals(0, mAvailable.availablePermits()); in testUnregisterCallback()
|
D | CarCabinManagerTest.java | 156 assertEquals(0, mAvailable.availablePermits()); in testEvent() 169 assertEquals(0, mAvailable.availablePermits()); in testEvent()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | ConcurrentSharedRingBuffer.java | 148 if (availablePermits() != 0) { in reducePermits() 259 if (mPinSemaphore.availablePermits() == 1) { in swapLeast() 363 acquiredLastPin = mPinSemaphore.availablePermits() <= 0; in tryPin() 405 if (mPinSemaphore.availablePermits() == 1) { in release() 558 || unpinnedReservedSlotCount >= mCapacitySemaphore.availablePermits()) { in reopenBuffer()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/ |
D | ImagePreviewImageLoaderTest.kt | 222 override val availablePermits: Int in invoke_semaphoreGuardsContentResolverCalls() constant 260 override val availablePermits: Int in invoke_semaphoreIsReleasedAfterContentResolverFailure() constant
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/ |
D | JavaMockitoHelperTest.java | 62 assertThat(semaphore.availablePermits()).isEqualTo(0); in testAwait_Semaphore()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | FledgeE2ETest.java | 763 impressionReportingSemaphore.availablePermits()); in testFledgeFlowSuccessWithMockServerWithDataVersionHeaderEnabled() 769 interactionReportingSemaphore.availablePermits()); in testFledgeFlowSuccessWithMockServerWithDataVersionHeaderEnabled() 848 impressionReportingSemaphore.availablePermits()); in testFledgeFlowSuccessWithMockServerWithDataVersionHeaderDisabled() 854 interactionReportingSemaphore.availablePermits()); in testFledgeFlowSuccessWithMockServerWithDataVersionHeaderDisabled() 2261 impressionReportingSemaphore.availablePermits()); in testFledgeFlowSuccessWithMockServer_DoesNotReportToBuyerWhenEnrollmentFails() 2265 interactionReportingSemaphore.availablePermits()); in testFledgeFlowSuccessWithMockServer_DoesNotReportToBuyerWhenEnrollmentFails() 4017 impressionReportingSemaphore.availablePermits()); in testFledgeFlowSuccessWithOneCAWithNegativeBidsWithMockServer() 4021 interactionReportingSemaphore.availablePermits()); in testFledgeFlowSuccessWithOneCAWithNegativeBidsWithMockServer() 4222 impressionReportingSemaphore.availablePermits()); in selectAdsAndReport() 4226 interactionReportingSemaphore.availablePermits()); in selectAdsAndReport()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/power/ |
D | CarPowerManagementTest.java | 390 assertEquals(mPowerStateHandler.getSetWaitSemaphore().availablePermits(), 0); in testInvalidPowerStateEvent()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsService.java | 2675 + mStatsProviderSem.availablePermits()
|