Home
last modified time | relevance | path

Searched refs:DisabledReason (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/model/
DCommunalEnabledState.kt24 enum class DisabledReason(val loggingString: String) { class
41 private val disabledReasons: EnumSet<DisabledReason> =
42 EnumSet.noneOf(DisabledReason::class.java)
43 ) : Diffable<CommunalEnabledState>, Set<DisabledReason> by disabledReasons {
46 constructor(reason: DisabledReason) : this(EnumSet.of(reason))
53 for (reason in DisabledReason.entries) { in logDiffs()
65 for (reason in DisabledReason.entries) { in logFull()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/
DCommunalSettingsRepository.kt28 import com.android.systemui.communal.data.model.DisabledReason in <lambda>()
29 import com.android.systemui.communal.data.model.DisabledReason.DISABLED_REASON_DEVICE_POLICY in <lambda>()
30 import com.android.systemui.communal.data.model.DisabledReason.DISABLED_REASON_FLAG in <lambda>()
31 import com.android.systemui.communal.data.model.DisabledReason.DISABLED_REASON_INVALID_USER in <lambda>()
32 import com.android.systemui.communal.data.model.DisabledReason.DISABLED_REASON_USER_SETTING in <lambda>()
98 EnumSet.noneOf(DisabledReason::class.java) in getEnabledState()
171 private fun Flow<Boolean>.mapToReason(reason: DisabledReason) = map { enabled -> in DevicePolicyManager()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/
DCommunalSettingsRepositoryImplTest.kt36 import com.android.systemui.communal.data.model.DisabledReason
78 assertThat(enabledState).containsExactly(DisabledReason.DISABLED_REASON_INVALID_USER) in secondaryUserIsInvalid()
88 assertThat(enabledState).containsExactly(DisabledReason.DISABLED_REASON_FLAG) in classicFlagIsDisabled()
97 assertThat(enabledState).containsExactly(DisabledReason.DISABLED_REASON_FLAG) in communalHubFlagIsDisabled()
111 assertThat(enabledState).containsExactly(DisabledReason.DISABLED_REASON_USER_SETTING) in hubIsDisabledByUser()
137 assertThat(enabledState).containsExactly(DisabledReason.DISABLED_REASON_DEVICE_POLICY) in hubIsDisabledByDevicePolicy()
181 DisabledReason.DISABLED_REASON_DEVICE_POLICY, in hubIsDisabledByUserAndDevicePolicy()
182 DisabledReason.DISABLED_REASON_USER_SETTING, in hubIsDisabledByUserAndDevicePolicy()
/frameworks/native/services/sensorservice/
DSensorDevice.h200 enum DisabledReason : uint8_t { enum
209 static_assert(DisabledReason::DISABLED_REASON_MAX < sizeof(uint8_t) * CHAR_BIT);
214 void addDisabledReasonForIdentLocked(void* ident, DisabledReason reason);
215 void removeDisabledReasonForIdentLocked(void* ident, DisabledReason reason);
DSensorDevice.cpp673 void SensorDevice::addDisabledReasonForIdentLocked(void* ident, DisabledReason reason) { in addDisabledReasonForIdentLocked()
677 void SensorDevice::removeDisabledReasonForIdentLocked(void* ident, DisabledReason reason) { in removeDisabledReasonForIdentLocked()
689 removeDisabledReasonForIdentLocked(ident, DisabledReason::DISABLED_REASON_UID_IDLE); in setUidStateForConnection()
691 addDisabledReasonForIdentLocked(ident, DisabledReason::DISABLED_REASON_UID_IDLE); in setUidStateForConnection()
740 DisabledReason::DISABLED_REASON_SERVICE_RESTRICTED); in enableAllSensors()
781 DisabledReason::DISABLED_REASON_SERVICE_RESTRICTED); in disableAllSensors()
/frameworks/base/core/java/android/content/pm/
DShortcutInfo.java305 public @interface DisabledReason{} annotation in ShortcutInfo
311 public static String getDisabledReasonDebugString(@DisabledReason int disabledReason) { in getDisabledReasonDebugString()
341 @DisabledReason int disabledReason) { in getDisabledReasonForRestoreIssue()
365 public static boolean isDisabledForRestoreIssue(@DisabledReason int disabledReason) { in isDisabledForRestoreIssue()
1675 public void setDisabledReason(@DisabledReason int reason) { in setDisabledReason()
1682 @DisabledReason
DAppSearchShortcutInfo.java644 public Builder setDisabledReason(@ShortcutInfo.DisabledReason final int disabledReason) { in setDisabledReason()