Home
last modified time | relevance | path

Searched refs:STATE_ENABLED (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DWorkProfileManager.java89 } else if (page == WORK && getCurrentState() == STATE_ENABLED) { in updateWorkFAB()
106 updateCurrentState(isEnabled ? STATE_ENABLED : STATE_DISABLED); in reset()
122 if (getCurrentState() == STATE_ENABLED) { in updateCurrentState()
191 } else if (getCurrentState() == WorkProfileManager.STATE_ENABLED && !isEduSeen()) { in addWorkItems()
202 if (getCurrentState() == STATE_ENABLED && mWorkModeSwitch.isEnabled()) { in onWorkFabClicked()
DUserProfileManager.java44 public static final int STATE_ENABLED = 1; field in UserProfileManager
50 STATE_ENABLED,
94 return mCurrentState == STATE_ENABLED; in isEnabled()
DPrivateProfileManager.java215 int updatedState = isEnabled ? STATE_ENABLED : STATE_DISABLED; in reset()
222 if (previousState == STATE_DISABLED && updatedState == STATE_ENABLED) { in reset()
224 } else if (previousState == STATE_ENABLED && updatedState == STATE_DISABLED){ in reset()
264 if (updatedState == STATE_ENABLED) { in addPrivateSpaceDecorator()
384 case STATE_ENABLED -> { in updateView()
DBaseAllAppsAdapter.java26 import static com.android.launcher3.allapps.UserProfileManager.STATE_ENABLED;
279 && privateProfileManager.getCurrentState() == STATE_ENABLED in onBindViewHolder()
DAlphabeticalAppsList.java347 case PrivateProfileManager.STATE_ENABLED: in addPrivateSpaceItems()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DThreadNetworkShellCommandTest.java20 import static android.net.thread.ThreadNetworkController.STATE_ENABLED;
76 assertThat(mController.getEnabledState()).isEqualTo(STATE_ENABLED); in enable_threadStateIsEnabled()
115 assertThat(mController.getEnabledState()).isEqualTo(STATE_ENABLED); in forceStopOtDaemon_forceStopDisabled_canEnableThread()
/packages/apps/Settings/tests/unit/src/com/android/settings/connecteddevice/threadnetwork/
DFakeThreadNetworkController.kt51 ThreadNetworkController.STATE_ENABLED in setEnabled()
66 … if (isEnabled) ThreadNetworkController.STATE_ENABLED else ThreadNetworkController.STATE_DISABLED in registerStateCallback()
/packages/apps/Launcher3/tests/src/com/android/launcher3/allapps/
DPrivateSpaceHeaderViewTest.java23 import static com.android.launcher3.allapps.UserProfileManager.STATE_ENABLED;
169 when(privateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED); in privateProfileEnabled_psHeaderContainsUnlockedView()
211 when(privateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED); in privateProfileEnabledAndNoSettingsIntent_psHeaderContainsUnlockedView()
282 when(privateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED); in scrollForViewToBeVisibleInContainer_withHeader()
317 when(privateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED); in scrollForViewToBeVisibleInContainer_withHeaderNoTabs()
352 when(privateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED); in scrollForViewToBeVisibleInContainer_withHeaderAndLessAppRowSpace()
387 when(privateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED); in scrollForViewToBeVisibleInContainer_withNoHeader()
DPrivateProfileManagerTest.java22 import static com.android.launcher3.allapps.UserProfileManager.STATE_ENABLED;
160 assertEquals("Profile State is not Disabled", STATE_ENABLED, in quietModeFlagPresent_privateSpaceIsResetToDisabled()
195 when(privateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED); in transitioningToLocked_resetCallsExecuteLock()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/display/
DThemePreferenceControllerTest.java73 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_ENABLED, 0, 0, true); in testUpdateState()
109 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_ENABLED, 0, 0, true); in testUpdateState_withStaticOverlay()
111 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_ENABLED, 0, 0, true); in testUpdateState_withStaticOverlay()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DAutomaticOnOffKeepaliveTracker.java138 private static final int STATE_ENABLED = 0; field in AutomaticOnOffKeepaliveTracker
143 STATE_ENABLED,
222 mAutomaticOnOffState = STATE_ENABLED; in AutomaticOnOffKeepalive()
284 case STATE_ENABLED: in getAutomaticOnOffStateName()
396 if (ki.mAutomaticOnOffState == STATE_ENABLED) { in handleMonitorTcpConnections()
418 if (autoKi.mAutomaticOnOffState == STATE_ENABLED) return; in handleMaybeResumeKeepalive()
429 autoKi.mAutomaticOnOffState = STATE_ENABLED; in handleMaybeResumeKeepalive()
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkControllerServiceTest.java21 import static android.net.thread.ThreadNetworkController.STATE_ENABLED;
389 assertThat(mFakeOtDaemon.getEnabledState()).isEqualTo(STATE_ENABLED); in userRestriction_initWithUserNotRestricted_threadIsEnabled()
420 assertThat(mFakeOtDaemon.getEnabledState()).isEqualTo(STATE_ENABLED); in userRestriction_userBecomesNotRestricted_stateIsEnabled()
454 assertThat(mFakeOtDaemon.getEnabledState()).isEqualTo(STATE_ENABLED); in airplaneMode_initWithAirplaneModeOff_threadIsEnabled()
484 assertThat(mFakeOtDaemon.getEnabledState()).isEqualTo(STATE_ENABLED); in airplaneMode_changesFromOnToOff_stateIsEnabled()
504 assertThat(mFakeOtDaemon.getEnabledState()).isEqualTo(STATE_ENABLED); in airplaneMode_setEnabledWhenAirplaneModeIsOn_WillNotAutoDisableSecondTime()
/packages/modules/Permission/SafetyCenter/Config/tests/java/com/android/safetycenter/config/
DParserConfigOverlayTest.kt125 private const val STATE_ENABLED = "STATE_ENABLED" constant
142 waitForWithTimeout { getStateForOverlay(OVERLAY_PACKAGE) == STATE_ENABLED } in install()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/allapps/
DAlphabeticalAppsListTest.java27 import static com.android.launcher3.allapps.UserProfileManager.STATE_ENABLED;
100 when(mPrivateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED); in privateProfileEnabled_allPrivateProfileViewsArePresent()
129 when(mPrivateProfileManager.getCurrentState()).thenReturn(STATE_ENABLED); in privateProfileEnabled_privateProfileAppsShownWithSeparator()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DTaplWorkProfileTest.java165 && manager.getCurrentState() == WorkProfileManager.STATE_ENABLED in toggleWorks()
193 return manager.getCurrentState() == WorkProfileManager.STATE_ENABLED; in toggleWorks()
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DThreadNetworkControllerTest.java32 import static android.net.thread.ThreadNetworkController.STATE_ENABLED;
178 listener.expectThreadEnabledState(STATE_ENABLED); in subscribeThreadEnableState_getActiveDataset_onThreadEnableStateChangedNotCalled()
206 listener.expectThreadEnabledState(STATE_ENABLED); in registerStateCallback_returnsUpdatedEnabledStates()
209 listener.expectThreadEnabledState(STATE_ENABLED); in registerStateCallback_returnsUpdatedEnabledStates()
768 listener.expectThreadEnabledState(STATE_ENABLED);
1043 return enabled ? STATE_ENABLED : STATE_DISABLED;
/packages/apps/Settings/src/com/android/settings/connecteddevice/threadnetwork/
DThreadNetworkFragmentController.kt101 threadEnabled = enabledState == ThreadNetworkController.STATE_ENABLED in <lambda>()
DThreadNetworkToggleController.kt66 threadEnabled = enabledState == ThreadNetworkController.STATE_ENABLED in <lambda>()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/drivemode/
DDriveModeThemeSwitcherTest.java97 /* state = */ enabled ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED, in createOverlayInfo()
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DThreadNetworkController.java77 public static final int STATE_ENABLED = 1; field in ThreadNetworkController
97 value = {STATE_DISABLED, STATE_ENABLED, STATE_DISABLING})
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DThemeOverlayManagerTest.java212 enabled ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED, 0, 0, false); in createOverlayInfo()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplPrivateSpaceTest.java190 togglePrivateSpaceWithRetry(PrivateProfileManager.STATE_ENABLED, homeAllApps); in testPrivateSpaceLockingBehaviour()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DThemePreferenceControllerTest.java149 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_ENABLED, 0, 0, true); in getCurrentTheme_withEnabledState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DOverlayCategoryPreferenceControllerTest.java240 final int state = (enabled) ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED; in createFakeOverlay()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkControllerService.java31 import static android.net.thread.ThreadNetworkController.STATE_ENABLED;
1492 return STATE_ENABLED;

12