Home
last modified time | relevance | path

Searched refs:mAvailable (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DCarRadioManagerTest.java46 private Semaphore mAvailable; field in CarRadioManagerTest
77 if (mAvailable.availablePermits() != 0) { in onPropertySet()
80 mAvailable.release(); in onPropertySet()
108 if (mAvailable.availablePermits() != 0) { in onPropertySubscribe()
112 mAvailable.release(); in onPropertySubscribe()
127 if (mAvailable.availablePermits() != 0) { in onEvent()
132 mAvailable.release(); in onEvent()
139 mAvailable = new Semaphore(0); in setUp()
161 assertEquals("Lock should be freed by now.", 0, mAvailable.availablePermits()); in testSetAndGetPreset()
166 boolean success = mAvailable.tryAcquire(5L, TimeUnit.SECONDS); in testSetAndGetPreset()
[all …]
DCarHvacManagerTest.java47 private Semaphore mAvailable; field in CarHvacManagerTest
58 mAvailable = new Semaphore(0); in setUp()
150 assertEquals(0, mAvailable.availablePermits()); in testEvent()
153 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
161 assertEquals(0, mAvailable.availablePermits()); in testEvent()
164 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
172 assertEquals(0, mAvailable.availablePermits()); in testEvent()
175 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
222 mAvailable.release(); in onChangeEvent()
/packages/apps/TV/src/com/android/tv/util/
DPipInputManager.java194 if (!pipInput.isHidden() && (!availableOnly || pipInput.mAvailable)) { in getPipInputSize()
220 if (!pipInput.isHidden() && (!availableOnly || pipInput.mAvailable)) { in getPipInputList()
321 private boolean mAvailable; field in PipInputManager.PipInput
331 mAvailable = available; in PipInput()
347 return mAvailable; in isAvailable()
417 if (mAvailable != available) { in updateAvailability()
418 mAvailable = available; in updateAvailability()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java200 return mPlayController.mAvailable; in isAvailable()
481 return mPlayController.mAvailable in isNormalPlaying()
491 return mPlayController.mAvailable && mPlayController.mPlayStatus == PLAY_STATUS_PAUSED; in isPaused()
509 mProgramManager.onAvailabilityChanged(mPlayController.mAvailable, in onAvailabilityChanged()
521 if (mPlayController.mAvailable) { in onRecordTimeRangeChanged()
605 private boolean mAvailable; field in TimeShiftManager.PlayController
653 if (mAvailable == newAvailable) { in onAvailabilityChanged()
656 mAvailable = newAvailable; in onAvailabilityChanged()
679 if (mAvailable) { in onAvailabilityChanged()