Home
last modified time | relevance | path

Searched refs:availability (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/panels/domain/interactor/
DNewTilesAvailabilityInteractorTest.kt60 val availability by collectLastValue(underTest.newTilesAvailable) in <lambda>() constant
62 assertThat(availability).isEqualTo( in <lambda>()
75 val availability by collectLastValue(underTest.newTilesAvailable) in <lambda>() constant
78 assertThat(availability).isEqualTo( in <lambda>()
93 val availability by collectLastValue(underTest.newTilesAvailable) in <lambda>() constant
95 assertThat(availability).isEmpty() in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/flashlight/domain/interactor/
DFlashlightTileDataInteractorTest.kt58 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>() constant
60 assertThat(availability).isTrue() in <lambda>()
67 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>() constant
69 assertThat(availability).isFalse() in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/qr/domain/interactor/
DQRCodeScannerTileDataInteractorTest.kt71 val availability by collectLastValue(underTest.availability(testUser)) in availability_matchesController_cameraNotAvailable() constant
73 assertThat(availability).isEqualTo(expectedAvailability) in availability_matchesController_cameraNotAvailable()
82 val availability by collectLastValue(underTest.availability(testUser)) in availability_matchesController_cameraIsAvailable() constant
84 assertThat(availability).isEqualTo(expectedAvailability) in availability_matchesController_cameraIsAvailable()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/work/domain/interactor/
DWorkModeTileDataInteractorTest.kt44 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>() constant
46 assertThat(availability).isFalse() in <lambda>()
49 assertThat(availability).isTrue() in <lambda>()
52 assertThat(availability).isFalse() in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/colorcorrection/domain/interactor/
DColorCorrectionTileDataInteractorTest.kt49 val availability = underTest.availability(TEST_USER).toCollection(mutableListOf()) in <lambda>() constant
51 assertThat(availability).hasSize(1) in <lambda>()
52 assertThat(availability.last()).isTrue() in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/inversion/domain/interactor/
DColorInversionTileDataInteractorTest.kt49 val availability = underTest.availability(TEST_USER).toCollection(mutableListOf()) in <lambda>() constant
51 assertThat(availability).hasSize(1) in <lambda>()
52 assertThat(availability.last()).isTrue() in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/airplate/domain/interactor/
DAirplaneModeTileDataInteractorTest.kt51 val availability = underTest.availability(TEST_USER).toCollection(mutableListOf()) in <lambda>() constant
53 assertThat(availability).hasSize(1) in <lambda>()
54 assertThat(availability.last()).isTrue() in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/reducebrightness/domain/interactor/
DReduceBrightColorsTileDataInteractorTest.kt59 val availability = underTest.availability(TEST_USER).toCollection(mutableListOf()) in alwaysAvailable() constant
61 assertThat(availability).hasSize(1) in alwaysAvailable()
62 assertThat(availability.last()).isEqualTo(isAvailable) in alwaysAvailable()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/battery/doman/interactor/
DBatterySaverTileDataInteractorTest.kt55 val availability = underTest.availability(testUser).toCollection(mutableListOf()) in availability_isTrue() constant
57 Truth.assertThat(availability).hasSize(1) in availability_isTrue()
58 Truth.assertThat(availability.last()).isTrue() in availability_isTrue()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/fontscaling/domain/interactor/
DFontScalingTileDataInteractorTest.kt63 val availability by collectLastValue(underTest.availability(testUser)) in <lambda>() constant
65 Truth.assertThat(availability).isTrue() in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/sensorprivacy/domain/interactor/
DSensorPrivacyToggleTileDataInteractorTest.kt68 val availability = underTest.availability(testUser).toCollection(mutableListOf()) in availability_isTrue() constant
71 assertThat(availability).hasSize(1) in availability_isTrue()
72 assertThat(availability.last()).isTrue() in availability_isTrue()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DMainInteractionService.java75 private void hotwordAvailabilityChangeHelper(int availability) { in hotwordAvailabilityChangeHelper() argument
76 Log.i(TAG, "Hotword availability = " + availability); in hotwordAvailabilityChangeHelper()
77 switch (availability) { in hotwordAvailabilityChangeHelper()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/base/interactor/
DQSTileDataInteractor.kt49 fun availability(user: UserHandle): Flow<Boolean> in tileData() method
53 override fun availability(user: UserHandle): Flow<Boolean> { in tileData() method
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/saver/domain/interactor/
DDataSaverTileDataInteractorTest.kt51 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>() constant
53 Truth.assertThat(availability).isTrue() in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/onehanded/domain/interactor/
DOneHandedModeTileDataInteractorTest.kt51 val availability by collectLastValue(underTest.availability(testUser)) in <lambda>() constant
53 assertThat(availability).isEqualTo(expectedAvailability) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/location/interactor/
DLocationTileDataInteractorTest.kt59 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>() constant
61 Truth.assertThat(availability).isTrue() in <lambda>()
/frameworks/base/services/core/jni/gnss/
DGnssGeofenceCallback.h54 binder::Status gnssGeofenceStatusCb(int availability,
114 static void gnssGeofenceStatusCb(int availability, const T& lastLocation);
139 void GnssGeofenceCallbackUtil::gnssGeofenceStatusCb(int availability, const T& lastLocation) { in gnssGeofenceStatusCb() argument
144 env->CallVoidMethod(mCallbacksObj, method_reportGeofenceStatus, availability, jLocation); in gnssGeofenceStatusCb()
DGnssGeofenceCallback.cpp67 Status GnssGeofenceCallbackAidl::gnssGeofenceStatusCb(int availability, in gnssGeofenceStatusCb() argument
69 GnssGeofenceCallbackUtil::gnssGeofenceStatusCb(availability, lastLocation); in gnssGeofenceStatusCb()
101 Return<void> GnssGeofenceCallbackHidl::gnssGeofenceStatusCb(GeofenceAvailability availability, in gnssGeofenceStatusCb() argument
103 GnssGeofenceCallbackUtil::gnssGeofenceStatusCb((int)availability, location); in gnssGeofenceStatusCb()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/screenrecord/domain/interactor/
DScreenRecordTileDataInteractorTest.kt55 val availability by collectLastValue(underTest.availability(TEST_USER)) in <lambda>() constant
57 assertThat(availability).isTrue() in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/alarm/domain/interactor/
DAlarmTileDataInteractorTest.kt122 val availability = underTest.availability(TEST_USER).toCollection(mutableListOf()) in <lambda>() constant
124 assertThat(availability).hasSize(1) in <lambda>()
125 assertThat(availability.last()).isTrue() in <lambda>()
/frameworks/base/services/core/java/com/android/server/notification/
DCalendarTracker.java140 final int availability = cursor.getInt(8); in checkEvent() local
146 availabilityToString(availability), eventId, name, owner, calendarId, in checkEvent()
154 final boolean meetsAvailability = availability != Instances.AVAILABILITY_FREE; in checkEvent()
253 private static String availabilityToString(int availability) {
254 switch (availability) {
258 default: return "AVAILABILITY_UNKNOWN_" + availability;
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/captioning/domain/
DCaptioningAvailabilityCriteria.kt40 private val availability = in <lambda>() constant
50 override fun isAvailable(): Flow<Boolean> = availability in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/night/domain/interactor/
DNightDisplayTileDataInteractorTest.kt93 val availability by collectLastValue(underTest.availability(testUser)) in <lambda>() constant
96 assertThat(availability).isEqualTo(expectedAvailability) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/rotation/domain/interactor/
DRotationLockTileDataInteractorTest.kt93 val availability = underTest.availability(testUser).toCollection(mutableListOf()) in availability_isTrue() constant
95 assertThat(availability).hasSize(1) in availability_isTrue()
96 assertThat(availability.last()).isTrue() in availability_isTrue()
/frameworks/base/core/java/android/service/voice/
DAlwaysOnHotwordDetector.java984 public void overrideAvailability(int availability) { in overrideAvailability() argument
986 mAvailability = availability; in overrideAvailability()
1610 private void updateAndNotifyStateChangedLocked(int availability) { in updateAndNotifyStateChangedLocked() argument
1611 updateAvailabilityLocked(availability); in updateAndNotifyStateChangedLocked()
1616 private void updateAvailabilityLocked(int availability) { in updateAvailabilityLocked() argument
1619 + " -> " + availability); in updateAvailabilityLocked()
1622 mAvailability = availability; in updateAvailabilityLocked()
1842 int availability = internalGetInitialAvailability(); in doInBackground() local
1845 if (availability == STATE_NOT_READY) { in doInBackground()
1848 availability = STATE_KEYPHRASE_ENROLLED; in doInBackground()
[all …]

123