/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | WorkProfileManager.java | 89 } 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()
|
D | UserProfileManager.java | 44 public static final int STATE_ENABLED = 1; field in UserProfileManager 50 STATE_ENABLED, 94 return mCurrentState == STATE_ENABLED; in isEnabled()
|
D | PrivateProfileManager.java | 215 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()
|
D | BaseAllAppsAdapter.java | 26 import static com.android.launcher3.allapps.UserProfileManager.STATE_ENABLED; 279 && privateProfileManager.getCurrentState() == STATE_ENABLED in onBindViewHolder()
|
D | AlphabeticalAppsList.java | 347 case PrivateProfileManager.STATE_ENABLED: in addPrivateSpaceItems()
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/ |
D | ThreadNetworkShellCommandTest.java | 20 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/ |
D | FakeThreadNetworkController.kt | 51 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/ |
D | PrivateSpaceHeaderViewTest.java | 23 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()
|
D | PrivateProfileManagerTest.java | 22 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/ |
D | ThemePreferenceControllerTest.java | 73 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/ |
D | AutomaticOnOffKeepaliveTracker.java | 138 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/ |
D | ThreadNetworkControllerServiceTest.java | 21 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/ |
D | ParserConfigOverlayTest.kt | 125 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/ |
D | AlphabeticalAppsListTest.java | 27 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/ |
D | TaplWorkProfileTest.java | 165 && 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/ |
D | ThreadNetworkControllerTest.java | 32 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/ |
D | ThreadNetworkFragmentController.kt | 101 threadEnabled = enabledState == ThreadNetworkController.STATE_ENABLED in <lambda>()
|
D | ThreadNetworkToggleController.kt | 66 threadEnabled = enabledState == ThreadNetworkController.STATE_ENABLED in <lambda>()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/drivemode/ |
D | DriveModeThemeSwitcherTest.java | 97 /* state = */ enabled ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED, in createOverlayInfo()
|
/packages/modules/Connectivity/thread/framework/java/android/net/thread/ |
D | ThreadNetworkController.java | 77 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/ |
D | ThemeOverlayManagerTest.java | 212 enabled ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED, 0, 0, false); in createOverlayInfo()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | TaplPrivateSpaceTest.java | 190 togglePrivateSpaceWithRetry(PrivateProfileManager.STATE_ENABLED, homeAllApps); in testPrivateSpaceLockingBehaviour()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | ThemePreferenceControllerTest.java | 149 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_ENABLED, 0, 0, true); in getCurrentTheme_withEnabledState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | OverlayCategoryPreferenceControllerTest.java | 240 final int state = (enabled) ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED; in createFakeOverlay()
|
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/ |
D | ThreadNetworkControllerService.java | 31 import static android.net.thread.ThreadNetworkController.STATE_ENABLED; 1492 return STATE_ENABLED;
|