Home
last modified time | relevance | path

Searched refs:tryAcquire (Results 1 – 25 of 34) sorted by relevance

12

/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DTestAction.java51 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in assertTestRun()
60 if (!mWaitSemaphore.tryAcquire(waitMs, TimeUnit.MILLISECONDS)) { in assertNotRun()
71 if (mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForTest()
DCarConnectionListenerTest.java71 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForConnection()
80 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForDisconnect()
DCarAppContextManagerTest.java202 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForContextChangeAndAssert()
224 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
DCarApiTestBase.java63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarPackageManagerTest.java67 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarTest.java65 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
/packages/services/Car/tests/carservice_test/src/com/android/support/car/test/
DCarConnectionListenerInMockingTest.java72 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
121 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForConnection()
131 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForDisconnect()
DAppContextTest.java70 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForContextChangeAndAssert()
92 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DAudioRoutingPolicyTest.java112 assertTrue(mWaitSemaphore.tryAcquire(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in checkPolicy0()
133 assertTrue(mWaitSemaphore.tryAcquire(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in checkPolicy1()
134 assertTrue(mWaitSemaphore.tryAcquire(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in checkPolicy1()
DCarRadioManagerTest.java166 boolean success = mAvailable.tryAcquire(5L, TimeUnit.SECONDS); in testSetAndGetPreset()
179 boolean success = mAvailable.tryAcquire(5L, TimeUnit.SECONDS); in testSubscribe()
193 success = mAvailable.tryAcquire(5L, TimeUnit.SECONDS); in testSubscribe()
DCarHvacManagerTest.java153 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
164 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
175 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
DCarPowerManagementTest.java210 if (!mSubscriptionWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForSubscription()
218 if (!mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForStateSetAndGetAll()
252 if (!mDisplayWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForDisplayState()
DMockedCarTestBase.java89 assertTrue(mConnectionWaitForCar.tryAcquire(DEFAULT_WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS) in setUp()
132 return mConnectionWaitForSupportCar.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarAudioFocusTest.java485 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitAndGetFocusChange()
493 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocus()
531 if (!mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForAudioFocusRequest()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ringbuffer/
DDynamicRingBuffer.java122 return mTicketPool.tryAcquire(); in tryAcquireLowPriorityTicket()
179 public Ticket tryAcquire() { in tryAcquire() method in DynamicRingBuffer
185 return mTicketPool.tryAcquire(); in tryAcquire()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/
DTicketProvider.java30 public Ticket tryAcquire(); in tryAcquire() method
DTicketPool.java68 public Ticket tryAcquire(); in tryAcquire() method
/packages/services/Car/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/
DVehicleNetworkMockedTest.java391 if (!mErrorWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForHalErrorAndAssert()
408 if (!mRestartWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForHalRestartAndAssert()
417 if (!mEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForEvent()
/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/
DCarAppContextManagerTest.java202 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForContextChangeAndAssert()
225 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
DCarApiTestBase.java63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarPackageManagerTest.java59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarSensorManagerTest.java59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarTest.java56 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
/packages/apps/Camera2/src/com/android/camera/util/
DConcurrentSharedRingBuffer.java245 if (mCapacitySemaphore.tryAcquire()) { in swapLeast()
359 if (mPinSemaphore.tryAcquire()) { in tryPin()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/
DTicketRequiredFilter.java44 Ticket ticket = mTicketProvider.tryAcquire(); in update()

12