Home
last modified time | relevance | path

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

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DProfileAvailabilityTest.kt44 val availability = ProfileAvailability(interactor, this, Dispatchers.IO) in <lambda>() constant
46 assertThat(availability.isAvailable(personalProfile)).isTrue() in <lambda>()
47 assertThat(availability.isAvailable(workProfile)).isTrue() in <lambda>()
49 availability.requestQuietModeState(workProfile, true) in <lambda>()
52 assertThat(availability.isAvailable(workProfile)).isFalse() in <lambda>()
54 availability.requestQuietModeState(workProfile, false) in <lambda>()
57 assertThat(availability.isAvailable(workProfile)).isTrue() in <lambda>()
62 val availability = ProfileAvailability(interactor, this, Dispatchers.IO) in <lambda>() constant
64 availability.requestQuietModeState(workProfile, true) in <lambda>()
65 assertThat(availability.waitingToEnableProfile).isFalse() in <lambda>()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/domain/interactor/
DUserInteractorTest.kt155 val availability by collectLastValue(interactor.availability) in <lambda>() constant
157 assertWithMessage("personalAvailable").that(availability?.get(personalProfile)).isTrue() in <lambda>()
158 assertWithMessage("workAvailable").that(availability?.get(workProfile)).isFalse() in <lambda>()
166 val availability by collectLastValue(interactor.availability) in <lambda>() constant
169 assertWithMessage("workAvailable").that(availability?.get(workProfile)).isTrue() in <lambda>()
173 assertWithMessage("workAvailable").that(availability?.get(workProfile)).isFalse() in <lambda>()
177 assertWithMessage("workAvailable").that(availability?.get(workProfile)).isTrue() in <lambda>()
181 assertWithMessage("workAvailable").that(availability?.get(workProfile)).isNull() in <lambda>()
195 val availability by collectLastValue(userRepo.availability) in updateState() constant
198 assertWithMessage("workAvailable").that(availability?.get(workUser)).isTrue() in updateState()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DDeviceStateAutoRotateOverviewControllerTest.java46 int availability = mController.getAvailabilityStatus(); in getAvailabilityStatus_rotationAndDeviceStateRotationEnabled_returnsAvailable() local
48 assertThat(availability).isEqualTo(AVAILABLE); in getAvailabilityStatus_rotationAndDeviceStateRotationEnabled_returnsAvailable()
56 int availability = mController.getAvailabilityStatus(); in getAvailabilityStatus_rotationNotSupported_returnsUnsupportedOnDevice() local
58 assertThat(availability).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_rotationNotSupported_returnsUnsupportedOnDevice()
66 int availability = mController.getAvailabilityStatus(); in getAvailabilityStatus_deviceStateRotationNotSupported_returnsUnsupportedOnDevice() local
68 assertThat(availability).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_deviceStateRotationNotSupported_returnsUnsupportedOnDevice()
DDeviceStateAutoRotateSettingControllerTest.java102 int availability = mController.getAvailabilityStatus(); in getAvailabilityStatus_rotationAndDeviceStateRotationEnabled_returnsAvailable() local
104 assertThat(availability).isEqualTo(AVAILABLE); in getAvailabilityStatus_rotationAndDeviceStateRotationEnabled_returnsAvailable()
112 int availability = mController.getAvailabilityStatus(); in getAvailabilityStatus_deviceStateRotationDisabled_returnsUnsupported() local
114 assertThat(availability).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_deviceStateRotationDisabled_returnsUnsupported()
122 int availability = mController.getAvailabilityStatus(); in getAvailabilityStatus_rotationDisabled_returnsUnsupported() local
124 assertThat(availability).isEqualTo(UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_rotationDisabled_returnsUnsupported()
DAutoRotatePreferenceControllerTest.java129 int availability = mController.getAvailabilityStatus(); in getAvailabilityStatus_deviceRotationDisabled_returnsAvailable() local
131 assertThat(availability).isEqualTo(BasePreferenceController.AVAILABLE); in getAvailabilityStatus_deviceRotationDisabled_returnsAvailable()
139 int availability = mController.getAvailabilityStatus(); in getAvailabilityStatus_deviceRotationEnabled_returnsUnsupported() local
141 assertThat(availability).isEqualTo(BasePreferenceController.UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_deviceRotationEnabled_returnsUnsupported()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DProfileAvailability.kt52 userInteractor.availability.map { it[profile] == true }.first() in isAvailable()
62 val availability = userInteractor.availability.first() in visibleProfileCount() constant
67 Profile.Type.PRIVATE -> availability[it] == true in visibleProfileCount()
91 userInteractor.availability.filter { it[profile] == true }.first() in requestQuietModeState()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/domain/interactor/
DUserInteractor.kt72 val availability: Flow<Map<Profile, Boolean>> = in <lambda>() constant in com.android.intentresolver.domain.interactor.UserInteractor
73 combine(profiles, userRepository.availability) { profiles, availability -> in <lambda>() method
74 profiles.associateWith { availability.getOrDefault(it.primary, false) } in <lambda>()
/packages/apps/Settings/src/com/android/settings/deviceinfo/hardwareinfo/
DDeviceModelPreferenceController.java31 final int availability = super.getAvailabilityStatus(); in getAvailabilityStatus() local
32 if (availability == AVAILABLE_UNSEARCHABLE) { in getAvailabilityStatus()
35 return availability; in getAvailabilityStatus()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/data/repository/
DFakeUserRepositoryTest.kt72 val available by collectLastValue(repo.availability) in <lambda>()
85 val available by collectLastValue(repo.availability) in <lambda>()
99 val available by collectLastValue(repo.availability) in <lambda>()
DUserRepositoryImplTest.kt86 val available by collectLastValue(repo.availability) in <lambda>()
120 val available by collectLastValue(repo.availability) in <lambda>()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/statusicon/ui/
DStatusBarSensorInfoController.java113 private void updateAvailability(Boolean availability) { in updateAvailability() argument
114 logIfDebug("Sensor availability = " + availability); in updateAvailability()
115 mSensorAvailability = availability; in updateAvailability()
/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/
DClusterHomeApplication.java320 byte[] availability = new byte[mClusterActivities.size()]; in buildUiAvailability()
326 availability[i] = UI_AVAILABLE; in buildUiAvailability()
332 availability[i] = resolveInfo == null ? UI_UNAVAILABLE : UI_AVAILABLE; in buildUiAvailability()
334 Log.d(TAG, "availability=" + availability[i] + ", activity=" + clusterActivity in buildUiAvailability()
338 return availability; in buildUiAvailability()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DBasePreferenceControllerTest.java232 private void setAvailability(int availability) { in setAvailability() argument
233 mAvailable = availability; in setAvailability()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/data/repository/
DUserRepository.kt68 val availability: Flow<Map<User, Boolean>> in <lambda>() constant
211 override val availability: Flow<Map<User, Boolean>> = constant
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/data/repository/
DFakeUserRepository.kt47 override val availability = in <lambda>() constant
/packages/modules/Uwb/
DNOTICE6 certification programs to promote the availability of compliant implementations
/packages/modules/Connectivity/framework-t/
DSources.bp38 "-Wno-unguarded-availability",
/packages/services/Car/libs/car-internal-dep-lib/
DAndroid.bp33 // The library cannot be directly included in android.car-module due to apex availability issue.
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapAppParams.java1532 public void setPresenceAvailability(int availability) { in setPresenceAvailability() argument
1533 if (availability < 0 || availability > 0x00FF) { in setPresenceAvailability()
1536 this.mPresenceAvailability = availability; in setPresenceAvailability()
/packages/modules/Connectivity/framework/
DAndroid.bp215 "-Wno-unguarded-availability",
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz