Home
last modified time | relevance | path

Searched refs:wasEnabled (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/work/domain/interactor/
DWorkModeTileUserActionInteractorTest.kt51 val wasEnabled = true in <lambda>() constant
52 profileController.isWorkModeEnabled = wasEnabled in <lambda>()
55 QSTileInputTestKtx.click(WorkModeTileModel.HasActiveProfile(wasEnabled)) in <lambda>()
58 assertThat(profileController.isWorkModeEnabled).isEqualTo(!wasEnabled) in <lambda>()
63 val wasEnabled = false in <lambda>() constant
64 profileController.isWorkModeEnabled = wasEnabled in <lambda>()
67 QSTileInputTestKtx.click(WorkModeTileModel.HasActiveProfile(wasEnabled)) in <lambda>()
70 assertThat(profileController.isWorkModeEnabled).isEqualTo(!wasEnabled) in <lambda>()
75 val wasEnabled = false in <lambda>() constant
76 profileController.isWorkModeEnabled = wasEnabled in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/inversion/domain/interactor/
DColorInversionUserActionInteractorTest.kt52 val wasEnabled = true in <lambda>() constant
53 repository.setIsEnabled(wasEnabled, testUser) in <lambda>()
55 underTest.handleInput(QSTileInputTestKtx.click(ColorInversionTileModel(wasEnabled))) in <lambda>()
57 assertThat(repository.isEnabled(testUser).value).isEqualTo(!wasEnabled) in <lambda>()
62 val wasEnabled = false in <lambda>() constant
63 repository.setIsEnabled(wasEnabled, testUser) in <lambda>()
65 underTest.handleInput(QSTileInputTestKtx.click(ColorInversionTileModel(wasEnabled))) in <lambda>()
67 assertThat(repository.isEnabled(testUser).value).isEqualTo(!wasEnabled) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/colorcorrection/domain/interactor/
DColorCorrectionTileUserActionInteractorTest.kt52 val wasEnabled = true in <lambda>() constant
53 repository.setIsEnabled(wasEnabled, testUser) in <lambda>()
55 underTest.handleInput(QSTileInputTestKtx.click(ColorCorrectionTileModel(wasEnabled))) in <lambda>()
57 assertThat(repository.isEnabled(testUser).value).isEqualTo(!wasEnabled) in <lambda>()
62 val wasEnabled = false in <lambda>() constant
63 repository.setIsEnabled(wasEnabled, testUser) in <lambda>()
65 underTest.handleInput(QSTileInputTestKtx.click(ColorCorrectionTileModel(wasEnabled))) in <lambda>()
67 assertThat(repository.isEnabled(testUser).value).isEqualTo(!wasEnabled) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/reducebrightness/domain/interactor/
DReduceBrightColorsTileUserActionInteractorTest.kt52 val wasEnabled = true in <lambda>() constant
53 controller.isReduceBrightColorsActivated = wasEnabled in <lambda>()
55 underTest.handleInput(QSTileInputTestKtx.click(ReduceBrightColorsTileModel(wasEnabled))) in <lambda>()
57 assertThat(controller.isReduceBrightColorsActivated).isEqualTo(!wasEnabled) in <lambda>()
62 val wasEnabled = false in <lambda>() constant
63 controller.isReduceBrightColorsActivated = wasEnabled in <lambda>()
65 underTest.handleInput(QSTileInputTestKtx.click(ReduceBrightColorsTileModel(wasEnabled))) in <lambda>()
67 assertThat(controller.isReduceBrightColorsActivated).isEqualTo(!wasEnabled) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/rotation/domain/interactor/
DRotationLockTileUserActionInteractorTest.kt50 val wasEnabled = true in <lambda>() constant
51 controller.setRotationLocked(wasEnabled, null) in <lambda>()
53 underTest.handleInput(QSTileInputTestKtx.click(RotationLockTileModel(wasEnabled, false))) in <lambda>()
55 assertThat(controller.isRotationLocked).isEqualTo(!wasEnabled) in <lambda>()
60 val wasEnabled = false in <lambda>() constant
61 controller.setRotationLocked(wasEnabled, null) in <lambda>()
63 underTest.handleInput(QSTileInputTestKtx.click(RotationLockTileModel(wasEnabled, false))) in <lambda>()
65 assertThat(controller.isRotationLocked).isEqualTo(!wasEnabled) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/onehanded/domain/interactor/
DOneHandedModeTileUserActionInteractorTest.kt53 val wasEnabled = true in <lambda>() constant
54 repository.setIsEnabled(wasEnabled, testUser) in <lambda>()
57 QSTileInputTestKtx.click(OneHandedModeTileModel(wasEnabled), testUser) in <lambda>()
60 assertThat(repository.isEnabled(testUser).value).isEqualTo(!wasEnabled) in <lambda>()
65 val wasEnabled = false in <lambda>() constant
66 repository.setIsEnabled(wasEnabled, testUser) in <lambda>()
69 QSTileInputTestKtx.click(OneHandedModeTileModel(wasEnabled), testUser) in <lambda>()
72 assertThat(repository.isEnabled(testUser).value).isEqualTo(!wasEnabled) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/location/domain/interactor/
DLocationTileUserActionInteractor.kt52 val wasEnabled: Boolean = input.data.isEnabled in handleInput() constant
56 locationController.setLocationEnabled(!wasEnabled) in handleInput()
61 locationController.setLocationEnabled(!wasEnabled) in handleInput()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DLocationTile.java98 final boolean wasEnabled = mState.value; in handleClick()
100 mController.setLocationEnabled(!wasEnabled); in handleClick()
104 final boolean wasEnabled = mState.value; in handleClick()
105 mController.setLocationEnabled(!wasEnabled); in handleClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/saver/domain/interactor/
DDataSaverTileUserActionInteractor.kt67 val wasEnabled: Boolean = data.isEnabled in <lambda>() constant
68 if (wasEnabled || sharedPreferences.getBoolean(DIALOG_SHOWN, false)) { in <lambda>()
70 dataSaverController.setDataSaverEnabled(!wasEnabled) in <lambda>()
/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp39 bool wasEnabled = mIsEnabled; in setEnabled() local
41 if (isEnabled != wasEnabled) { in setEnabled()
79 return wasEnabled; in setEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DLatencyTester.java110 boolean wasEnabled = mEnabled; in updateEnabled()
114 if (mEnabled != wasEnabled) { in updateEnabled()
/frameworks/base/services/core/java/com/android/server/infra/
DAbstractPerUserSystemService.java145 final boolean wasEnabled = isEnabledLocked(); in updateLocked()
147 Slog.v(mTag, "updateLocked(u=" + mUserId + "): wasEnabled=" + wasEnabled in updateLocked()
168 return wasEnabled != isEnabledLocked(); in updateLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DCommonVisualInterruptionSuppressors.kt71 val wasEnabled = isEnabled in shouldSuppress() constant
82 if (wasEnabled && !isEnabled) { in shouldSuppress()
/frameworks/base/core/java/com/android/internal/util/
DLatencyTracker.java394 boolean wasEnabled = mEnabled; in updateProperties()
396 if (wasEnabled != mEnabled) { in updateProperties()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverStateMachine.java812 final boolean wasEnabled = mBatterySaverController.isFullEnabled(); in enableBatterySaverLocked()
814 if (wasEnabled == enable) { in enableBatterySaverLocked()
/frameworks/base/services/core/java/com/android/server/location/provider/
DLocationProviderManager.java2764 Boolean wasEnabled = index < 0 ? null : mEnabled.valueAt(index);
2765 if (wasEnabled != null && wasEnabled == enabled) {
2772 if (wasEnabled != null || enabled) {
2788 if (wasEnabled != null) {
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java3232 boolean wasEnabled = mEnabled; in setBackupEnabled()
3240 updateStateOnBackupEnabled(wasEnabled, enable); in setBackupEnabled()
3250 boolean wasEnabled = isFrameworkSchedulingEnabled(); in setFrameworkSchedulingEnabled()
3251 if (wasEnabled == isEnabled) { in setFrameworkSchedulingEnabled()
3286 void updateStateOnBackupEnabled(boolean wasEnabled, boolean enable) { in updateStateOnBackupEnabled() argument
3288 if (enable && !wasEnabled && mSetupComplete) { in updateStateOnBackupEnabled()
3303 if (wasEnabled && mSetupComplete) { in updateStateOnBackupEnabled()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java347 void updateStateOnBackupEnabled(boolean wasEnabled, boolean enable) {} in updateStateOnBackupEnabled() argument
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplayMapper.java1069 final boolean wasEnabled = fromDisplay == null || fromDisplay.isEnabled(); in resetLayoutLocked()
1084 || (wasEnabled != willBeEnabled) in resetLayoutLocked()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityManager.java1456 final boolean wasEnabled = isEnabled(); in setStateLocked()
1467 if (wasEnabled != isEnabled()) { in setStateLocked()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java3824 boolean wasEnabled = mPermissionHelper.hasPermission(uid);
3825 if (wasEnabled == enabled) {