/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/ |
D | TestAction.java | 51 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()
|
D | CarConnectionListenerTest.java | 71 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForConnection() 80 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForDisconnect()
|
D | CarAppContextManagerTest.java | 202 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForContextChangeAndAssert() 224 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
|
D | CarApiTestBase.java | 63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarPackageManagerTest.java | 67 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarTest.java | 65 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
/packages/services/Car/tests/carservice_test/src/com/android/support/car/test/ |
D | CarConnectionListenerInMockingTest.java | 72 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()
|
D | AppContextTest.java | 70 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/ |
D | AudioRoutingPolicyTest.java | 112 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()
|
D | CarRadioManagerTest.java | 166 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()
|
D | CarHvacManagerTest.java | 153 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()
|
D | CarPowerManagementTest.java | 210 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()
|
D | MockedCarTestBase.java | 89 assertTrue(mConnectionWaitForCar.tryAcquire(DEFAULT_WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS) in setUp() 132 return mConnectionWaitForSupportCar.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarAudioFocusTest.java | 485 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/ |
D | DynamicRingBuffer.java | 122 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/ |
D | TicketProvider.java | 30 public Ticket tryAcquire(); in tryAcquire() method
|
D | TicketPool.java | 68 public Ticket tryAcquire(); in tryAcquire() method
|
/packages/services/Car/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/ |
D | VehicleNetworkMockedTest.java | 391 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/ |
D | CarAppContextManagerTest.java | 202 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForContextChangeAndAssert() 225 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
|
D | CarApiTestBase.java | 63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarPackageManagerTest.java | 59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarSensorManagerTest.java | 59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarTest.java | 56 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | ConcurrentSharedRingBuffer.java | 245 if (mCapacitySemaphore.tryAcquire()) { in swapLeast() 359 if (mPinSemaphore.tryAcquire()) { in tryPin()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ |
D | TicketRequiredFilter.java | 44 Ticket ticket = mTicketProvider.tryAcquire(); in update()
|