Home
last modified time | relevance | path

Searched refs:enabledState (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/
DCommunalSettingsRepositoryImplTest.kt75 val enabledState by collectLastValue(underTest.getEnabledState(SECONDARY_USER)) in secondaryUserIsInvalid() constant
77 assertThat(enabledState?.enabled).isFalse() in secondaryUserIsInvalid()
78 assertThat(enabledState).containsExactly(DisabledReason.DISABLED_REASON_INVALID_USER) in secondaryUserIsInvalid()
86 val enabledState by collectLastValue(underTest.getEnabledState(PRIMARY_USER)) in classicFlagIsDisabled() constant
87 assertThat(enabledState?.enabled).isFalse() in classicFlagIsDisabled()
88 assertThat(enabledState).containsExactly(DisabledReason.DISABLED_REASON_FLAG) in classicFlagIsDisabled()
95 val enabledState by collectLastValue(underTest.getEnabledState(PRIMARY_USER)) in communalHubFlagIsDisabled() constant
96 assertThat(enabledState?.enabled).isFalse() in communalHubFlagIsDisabled()
97 assertThat(enabledState).containsExactly(DisabledReason.DISABLED_REASON_FLAG) in communalHubFlagIsDisabled()
109 val enabledState by collectLastValue(underTest.getEnabledState(PRIMARY_USER)) in hubIsDisabledByUser() constant
[all …]
/frameworks/base/core/tests/coretests/testdoubles/src/com/android/internal/util/
DFakeLatencyTracker.java174 public void waitForAllPropertiesEnableState(boolean enabledState) throws Exception { in waitForAllPropertiesEnableState() argument
175 Log.i(TAG, "waitForAllPropertiesEnableState: enabledState=" + enabledState); in waitForAllPropertiesEnableState()
181 + enabledState); in waitForAllPropertiesEnableState()
185 if (newProperties.get(i).isEnabled() != enabledState) { in waitForAllPropertiesEnableState()
214 public void waitForActionEnabledState(int action, boolean enabledState) throws Exception { in waitForActionEnabledState() argument
216 + " action=" + action + ", enabledState=" + enabledState); in waitForActionEnabledState()
222 + ", enabledState=" + enabledState); in waitForActionEnabledState()
226 return newProperties.get(action).isEnabled() == enabledState; in waitForActionEnabledState()
233 public void waitForGlobalEnabledState(boolean enabledState) throws Exception { in waitForGlobalEnabledState() argument
234 Log.i(TAG, "waitForGlobalEnabledState: enabledState=" + enabledState); in waitForGlobalEnabledState()
[all …]
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/preference/
DRadioPreferencesTest.kt78 val enabledState = mutableStateOf(true) in <lambda>() constant
83 override val enabled = { enabledState.value } in <lambda>()
100 val enabledState = mutableStateOf(true) in <lambda>() constant
105 override val enabled = { enabledState.value } in <lambda>()
127 val enabledState = mutableStateOf(true) in <lambda>() constant
132 override val enabled = { enabledState.value } in <lambda>()
142 enabledState.value = false in <lambda>()
DListPreferenceTest.kt171 val enabledState = mutableStateOf(true) in <lambda>() constant
176 override val enabled = { enabledState.value } in <lambda>()
188 enabledState.value = false in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/viewmodel/
DQSTileState.kt47 val enabledState: EnabledState, constant in com.android.systemui.qs.tiles.viewmodel.QSTileState
125 var enabledState: EnabledState = EnabledState.ENABLED variable in com.android.systemui.qs.tiles.viewmodel.QSTileState.Builder
139 enabledState,
DQSTileViewModelAdapter.kt257 disabledByPolicy = viewModelState.enabledState == QSTileState.EnabledState.DISABLED in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/saver/domain/interactor/
DDataSaverTileUserActionInteractorTest.kt160 val enabledState = true in <lambda>() constant
162 underTest.handleInput(QSTileInputTestKtx.longClick(DataSaverTileModel(enabledState))) in <lambda>()
173 val enabledState = false in <lambda>() constant
175 underTest.handleInput(QSTileInputTestKtx.longClick(DataSaverTileModel(enabledState))) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/night/domain/interactor/
DNightDisplayTileUserActionInteractorTest.kt141 val enabledState = true in handleLongClickWhenEnabled() constant
145 NightDisplayTileModel.AutoModeOff(enabledState, false), in handleLongClickWhenEnabled()
161 val enabledState = false in handleLongClickWhenDisabled() constant
165 NightDisplayTileModel.AutoModeOff(enabledState, false), in handleLongClickWhenDisabled()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/
DQSTileStateSubject.kt58 check("enabledState").that(actual.enabledState).isEqualTo(other.enabledState) in <lambda>()
/frameworks/base/services/core/java/com/android/server/pm/
DDeletePackageHelper.java299 int enabledState = priorUserState.enabledState; in deletePackageX() local
300 pkgSetting.setEnabled(enabledState, allUsers[i], in deletePackageX()
304 (enabledState == COMPONENT_ENABLED_STATE_DEFAULT && pkgEnabled) in deletePackageX()
305 || enabledState == COMPONENT_ENABLED_STATE_ENABLED)) { in deletePackageX()
953 public final int enabledState; field in DeletePackageHelper.TempUserState
958 private TempUserState(int enabledState, @Nullable String lastDisableAppCaller, in TempUserState() argument
960 this.enabledState = enabledState; in TempUserState()
DInstallPackageHelper.java3045 final int enabledState = ps.getEnabled(UserHandle.USER_SYSTEM); in installSystemStubPackages() local
3046 if (enabledState == PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER) { in installSystemStubPackages()
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/
DNoteTaskController.kt274 val enabledState = in setNoteTaskShortcutEnabled() constant
285 enabledState, in setNoteTaskShortcutEnabled()
289 debugLog { "setNoteTaskShortcutEnabled for user $user- completed: $enabledState" } in setNoteTaskShortcutEnabled()
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java151 boolean enabledState = mStorage.getBoolean(PREFIX + "enabledState", true); in getNextTimeMillis()
152 if (!enabledState) return Long.MAX_VALUE; in getNextTimeMillis()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayRegistrant.java72 final int enabledState = in registerOverlayService() local
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/base/logging/
DQSTileLogger.kt236 "enabled=$enabledState, " + in toLogString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/impl/work/ui/
DWorkModeTileMapperTest.kt136 enabledState = QSTileState.EnabledState.ENABLED, in createWorkModeTileState()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileMapperTest.kt68 enabledState: QSTileState.EnabledState = QSTileState.EnabledState.ENABLED, in createUiNightModeTileState()
81 enabledState, in createUiNightModeTileState()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationManagerApiTest.kt353 whenever(enabledState) { in <lambda>()
/frameworks/base/core/java/android/content/pm/
DPackageManager.java695 int enabledState = in.readInt(); in ComponentEnabledSetting() local
700 this.mEnabledState = enabledState; in ComponentEnabledSetting()
/frameworks/base/core/java/android/widget/
DAbsListView.java3039 final int enabledState = ENABLED_STATE_SET[0]; in getDrawableStateForSelector() local
3049 if (state[i] == enabledState) { in getDrawableStateForSelector()