/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarHvacManagerTest.java | 58 private Semaphore mAvailable; field in CarHvacManagerTest 84 mAvailable = new Semaphore(0); in setUp() 171 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent() 172 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent() 173 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent() 174 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent() 182 assertEquals(0, mAvailable.availablePermits()); in testEvent() 185 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent() 195 assertEquals(0, mAvailable.availablePermits()); in testEvent() 198 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent() [all …]
|
D | CarProjectionManagerTest.java | 52 private final Semaphore mAvailable = new Semaphore(0); field in CarProjectionManagerTest 61 mAvailable.release(); 85 assertEquals(0, mAvailable.availablePermits()); in testShortPressListener() 88 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testShortPressListener() 98 assertEquals(0, mAvailable.availablePermits()); in testLongPressListener() 101 assertEquals(0, mAvailable.availablePermits()); in testLongPressListener() 111 assertEquals(0, mAvailable.availablePermits()); in testMixedPressListener() 114 assertEquals(0, mAvailable.availablePermits()); in testMixedPressListener() 117 assertEquals(0, mAvailable.availablePermits()); in testMixedPressListener() 119 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testMixedPressListener()
|
D | CarCabinManagerTest.java | 56 private Semaphore mAvailable; field in CarCabinManagerTest 75 mAvailable = new Semaphore(0); in setUp() 147 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent() 148 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent() 156 assertEquals(0, mAvailable.availablePermits()); in testEvent() 159 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent() 169 assertEquals(0, mAvailable.availablePermits()); in testEvent() 172 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent() 229 mAvailable.release(); in onChangeEvent()
|
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/ |
D | CelluarTile.java | 37 private final boolean mAvailable; field in CelluarTile 48 mAvailable = mDataUsageController.isMobileDataSupported(); in CelluarTile() 49 mState = mAvailable && mDataUsageController.isMobileDataEnabled() ? State.ON : State.OFF; in CelluarTile() 50 mCarrierName = mAvailable ? manager.getNetworkOperatorName() : null; in CelluarTile() 65 return mAvailable; in isAvailable()
|
/packages/apps/TV/src/com/android/tv/ |
D | TimeShiftManager.java | 199 return mPlayController.mAvailable; in isAvailable() 472 return mPlayController.mAvailable in isNormalPlaying() 480 return mPlayController.mAvailable && mPlayController.mPlayStatus == PLAY_STATUS_PAUSED; in isPaused() 498 mPlayController.mAvailable, in onAvailabilityChanged() 510 if (mPlayController.mAvailable) { in onRecordTimeRangeChanged() 586 private boolean mAvailable; field in TimeShiftManager.PlayController 615 mAvailable, TAG, "Trick play is not available.")) { in PlayController() 674 if (mAvailable == newAvailable) { in onAvailabilityChanged() 677 mAvailable = newAvailable; in onAvailabilityChanged() 687 if (mAvailable) { in onAvailabilityChanged()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/ |
D | BasePreferenceControllerTest.java | 210 private int mAvailable; field in BasePreferenceControllerTest.FakeBasePreferenceController 214 mAvailable = AVAILABLE; in FakeBasePreferenceController() 219 return mAvailable; in getAvailabilityStatus() 223 mAvailable = availability; in setAvailability()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | VolumeSeekBarPreferenceControllerTest.java | 157 private boolean mAvailable; field in VolumeSeekBarPreferenceControllerTest.VolumeSeekBarPreferenceControllerTestable 163 mAvailable = available; in VolumeSeekBarPreferenceControllerTestable() 178 return mAvailable ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | OverlayCategoryPreferenceController.java | 59 private final boolean mAvailable; field in OverlayCategoryPreferenceController 72 mAvailable = overlayManager != null && !getOverlayInfos().isEmpty(); in OverlayCategoryPreferenceController() 82 return mAvailable; in isAvailable()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | OverlayCategoryPreferenceController.java | 59 private final boolean mAvailable; field in OverlayCategoryPreferenceController 72 mAvailable = overlayManager != null && !getOverlayInfos().isEmpty(); in OverlayCategoryPreferenceController() 82 return mAvailable; in isAvailable()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/ |
D | ConnectivityFragment.java | 124 public String mAvailable; field in ConnectivityFragment.NetworkItem 404 ni.mAvailable = "Available: " + (nInfo.isAvailable() ? "Yes" : "No"); in getNetworkItem()
|
D | NetworkListAdapter.java | 88 vh.available.setText(mNetworkList[position].mAvailable); in getView()
|