Searched refs:DisabledReason (Results 1 – 7 of 7) sorted by relevance
24 enum class DisabledReason(val loggingString: String) { class41 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()
28 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()
36 import com.android.systemui.communal.data.model.DisabledReason78 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()
200 enum DisabledReason : uint8_t { enum209 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);
673 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()
305 public @interface DisabledReason{} annotation in ShortcutInfo311 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
644 public Builder setDisabledReason(@ShortcutInfo.DisabledReason final int disabledReason) { in setDisabledReason()