Home
last modified time | relevance | path

Searched refs:availablePermits (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarProjectionManagerTest.java85 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 …]
DCarHvacManagerTest.java201 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()
DCarCabinManagerTest.java156 assertEquals(0, mAvailable.availablePermits()); in testEvent()
169 assertEquals(0, mAvailable.availablePermits()); in testEvent()
/packages/apps/Camera2/src/com/android/camera/util/
DConcurrentSharedRingBuffer.java148 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/
DImagePreviewImageLoaderTest.kt222 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/
DJavaMockitoHelperTest.java62 assertThat(semaphore.availablePermits()).isEqualTo(0); in testAwait_Semaphore()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFledgeE2ETest.java763 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/
DCarPowerManagementTest.java390 assertEquals(mPowerStateHandler.getSetWaitSemaphore().availablePermits(), 0); in testInvalidPowerStateEvent()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsService.java2675 + mStatsProviderSem.availablePermits()