/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/ |
D | FlagCommand.java | 41 private final FeatureFlagsDebug mFeatureFlags; field in FlagCommand 49 mFeatureFlags = featureFlags; in FlagCommand() 85 mFeatureFlags.eraseFlag(flag); in execute() 115 mFeatureFlags.setBooleanFlagInternal(flag, newValue); in execute() 133 mFeatureFlags.setStringFlagInternal(flag, args.get(2)); in execute() 152 mFeatureFlags.setIntFlagInternal(flag, value); in execute() 182 return mFeatureFlags.isEnabled((ReleasedFlag) flag); in isBooleanFlagEnabled() 184 return mFeatureFlags.isEnabled((UnreleasedFlag) flag); in isBooleanFlagEnabled() 186 return mFeatureFlags.isEnabled((ResourceBooleanFlag) flag); in isBooleanFlagEnabled() 188 return mFeatureFlags.isEnabled((SysPropBooleanFlag) flag); in isBooleanFlagEnabled() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenrecord/ |
D | RecordingControllerTest.java | 80 private FakeFeatureFlags mFeatureFlags; field in RecordingControllerTest 88 mFeatureFlags = new FakeFeatureFlags(); in setUp() 90 mFeatureFlags, mUserContextProvider, () -> mDevicePolicyResolver, mUserTracker); in setUp() 216 mFeatureFlags.set(Flags.WM_ENABLE_PARTIAL_SCREEN_SHARING, true); in testPoliciesFlagDisabled_screenCapturingNotAllowed_returnsNullDevicePolicyDialog() 217 mFeatureFlags.set(Flags.WM_ENABLE_PARTIAL_SCREEN_SHARING_ENTERPRISE_POLICIES, false); in testPoliciesFlagDisabled_screenCapturingNotAllowed_returnsNullDevicePolicyDialog() 220 Dialog dialog = mController.createScreenRecordDialog(mContext, mFeatureFlags, in testPoliciesFlagDisabled_screenCapturingNotAllowed_returnsNullDevicePolicyDialog() 232 mFeatureFlags.set(Flags.WM_ENABLE_PARTIAL_SCREEN_SHARING, false); in testPartialScreenSharingDisabled_returnsLegacyDialog() 233 mFeatureFlags.set(Flags.WM_ENABLE_PARTIAL_SCREEN_SHARING_ENTERPRISE_POLICIES, false); in testPartialScreenSharingDisabled_returnsLegacyDialog() 235 Dialog dialog = mController.createScreenRecordDialog(mContext, mFeatureFlags, in testPartialScreenSharingDisabled_returnsLegacyDialog() 247 mFeatureFlags.set(Flags.WM_ENABLE_PARTIAL_SCREEN_SHARING, true); in testPoliciesFlagEnabled_screenCapturingNotAllowed_returnsDevicePolicyDialog() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardOverlayControllerTest.java | 94 private FakeFeatureFlags mFeatureFlags = new FakeFeatureFlags(); field in ClipboardOverlayControllerTest 122 mFeatureFlags.set(CLIPBOARD_REMOTE_BEHAVIOR, false); in setup() 123 mFeatureFlags.set(CLIPBOARD_MINIMIZED_LAYOUT, true); // turned off for legacy tests in setup() 132 mFeatureFlags, in setup() 147 mFeatureFlags.set(CLIPBOARD_MINIMIZED_LAYOUT, false); in test_setClipData_invalidImageData_legacy() 160 mFeatureFlags.set(CLIPBOARD_MINIMIZED_LAYOUT, false); in test_setClipData_nonImageUri_legacy() 173 mFeatureFlags.set(CLIPBOARD_MINIMIZED_LAYOUT, false); in test_setClipData_textData_legacy() 184 mFeatureFlags.set(CLIPBOARD_MINIMIZED_LAYOUT, false); in test_setClipData_sensitiveTextData_legacy() 200 mFeatureFlags.set(CLIPBOARD_MINIMIZED_LAYOUT, false); in test_setClipData_repeatedCalls_legacy() 211 mFeatureFlags.set(CLIPBOARD_MINIMIZED_LAYOUT, false); in test_viewCallbacks_onShareTapped_legacy() [all …]
|
D | ClipboardListenerTest.java | 68 private FakeFeatureFlags mFeatureFlags = new FakeFeatureFlags(); field in ClipboardListenerTest 102 mFeatureFlags.set(CLIPBOARD_MINIMIZED_LAYOUT, true); in setup() 105 mClipboardToast, mClipboardManager, mFeatureFlags, mUiEventLogger); in setup() 228 mFeatureFlags.set(CLIPBOARD_MINIMIZED_LAYOUT, false); in test_minimizedLayoutFlagOff_usesLegacy()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/complication/ |
D | DreamMediaEntryComplicationTest.java | 85 private FeatureFlags mFeatureFlags; field in DreamMediaEntryComplicationTest 96 when(mFeatureFlags.isEnabled(DREAM_MEDIA_TAP_TO_OPEN)).thenReturn(false); in setup() 122 mFeatureFlags); in testClickToOpenUMO() 151 mFeatureFlags); in testOnViewDetached() 163 when(mFeatureFlags.isEnabled(DREAM_MEDIA_TAP_TO_OPEN)).thenReturn(true); in testClickToOpenMediaOverLockscreen() 181 mFeatureFlags); in testClickToOpenMediaOverLockscreen() 200 when(mFeatureFlags.isEnabled(DREAM_MEDIA_TAP_TO_OPEN)).thenReturn(true); in testClickToOpenMediaDismissingLockscreen() 218 mFeatureFlags); in testClickToOpenMediaDismissingLockscreen()
|
D | SmartSpaceComplicationTest.java | 71 private FeatureFlags mFeatureFlags; field in SmartSpaceComplicationTest 82 when(mFeatureFlags.isEnabled(Flags.HIDE_SMARTSPACE_ON_DREAM_OVERLAY)).thenReturn(false); in setup() 105 when(mFeatureFlags.isEnabled(Flags.HIDE_SMARTSPACE_ON_DREAM_OVERLAY)).thenReturn(true); in testRegistrantStart_featureDisabled_doesNotAddOverlayStateCallback() 215 mFeatureFlags); in getRegistrant()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dream/ |
D | MediaDreamSentinelTest.java | 59 FeatureFlags mFeatureFlags; field in MediaDreamSentinelTest 71 when(mFeatureFlags.isEnabled(DREAM_MEDIA_COMPLICATION)).thenReturn(true); in setup() 77 mDreamOverlayStateController, mMediaEntryComplication, mFeatureFlags); in testOnMediaDataLoaded_complicationAddition() 98 mDreamOverlayStateController, mMediaEntryComplication, mFeatureFlags); in testOnMediaDataRemoved_complicationRemoval() 118 mDreamOverlayStateController, mMediaEntryComplication, mFeatureFlags); in testOnMediaDataLoaded_complicationRemoval() 140 when(mFeatureFlags.isEnabled(DREAM_MEDIA_COMPLICATION)).thenReturn(false); in testOnMediaDataLoaded_mediaComplicationDisabled_doesNotAddComplication() 143 mDreamOverlayStateController, mMediaEntryComplication, mFeatureFlags); in testOnMediaDataLoaded_mediaComplicationDisabled_doesNotAddComplication()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/ |
D | BatteryMeterViewControllerTest.java | 64 private FakeFeatureFlags mFeatureFlags; field in BatteryMeterViewControllerTest 77 mFeatureFlags = new FakeFeatureFlags(); in setup() 78 mFeatureFlags.set(Flags.BATTERY_SHIELD_ICON, false); in setup() 137 mFeatureFlags.set(Flags.BATTERY_SHIELD_ICON, false); in shieldFlagDisabled_viewNotified() 146 mFeatureFlags.set(Flags.BATTERY_SHIELD_ICON, true); in shieldFlagEnabled_viewNotified() 161 mFeatureFlags, in initController()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | SystemUIDialogTest.java | 53 private FeatureFlags mFeatureFlags; field in SystemUIDialogTest 61 mDependency.injectTestDependency(FeatureFlags.class, mFeatureFlags); in setup() 99 when(mFeatureFlags.isEnabled(Flags.WM_ENABLE_PREDICTIVE_BACK_QS_DIALOG_ANIM)) in usePredictiveBackAnimFlag() 106 verify(mFeatureFlags, atLeast(1)) in usePredictiveBackAnimFlag()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | ImageExporterTest.java | 80 private FakeFeatureFlags mFeatureFlags = new FakeFeatureFlags(); field in ImageExporterTest 113 mFeatureFlags.set(Flags.SCREENSHOT_WORK_PROFILE_POLICY, true); in testImageExport() 114 ImageExporter exporter = new ImageExporter(contentResolver, mFeatureFlags); in testImageExport() 192 mFeatureFlags.set(Flags.SCREENSHOT_WORK_PROFILE_POLICY, true); in testSetUser() 193 ImageExporter exporter = new ImageExporter(mMockContentResolver, mFeatureFlags); in testSetUser() 212 mFeatureFlags.set(Flags.SCREENSHOT_WORK_PROFILE_POLICY, false); in testSetUser_noWorkProfile() 213 ImageExporter exporter = new ImageExporter(mMockContentResolver, mFeatureFlags); in testSetUser_noWorkProfile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dream/ |
D | MediaDreamSentinel.java | 79 if (!mFeatureFlags.isEnabled(DREAM_MEDIA_COMPLICATION)) { 112 private final FeatureFlags mFeatureFlags; field in MediaDreamSentinel 122 mFeatureFlags = featureFlags; in MediaDreamSentinel()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | UdfpsKeyguardViewControllerBaseTest.java | 76 protected FakeFeatureFlags mFeatureFlags = new FakeFeatureFlags(); field in UdfpsKeyguardViewControllerBaseTest 150 mFeatureFlags.set(Flags.MODERN_ALTERNATE_BOUNCER, useModernBouncer); in createUdfpsKeyguardViewController() 151 mFeatureFlags.set(Flags.UDFPS_NEW_TOUCH_DETECTION, useExpandedOverlay); in createUdfpsKeyguardViewController() 166 mFeatureFlags, in createUdfpsKeyguardViewController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/complication/ |
D | SmartSpaceComplication.java | 73 private final FeatureFlags mFeatureFlags; field in SmartSpaceComplication.Registrant 97 mFeatureFlags = featureFlags; in Registrant() 102 if (mFeatureFlags.isEnabled(Flags.HIDE_SMARTSPACE_ON_DREAM_OVERLAY)) { in onStart()
|
D | DreamMediaEntryComplication.java | 110 private final FeatureFlags mFeatureFlags; field in DreamMediaEntryComplication.DreamMediaEntryViewController 134 mFeatureFlags = featureFlags; in DreamMediaEntryViewController() 140 mIsTapToOpenEnabled = mFeatureFlags.isEnabled(DREAM_MEDIA_TAP_TO_OPEN); in onViewAttached()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardListener.java | 62 private final FeatureFlags mFeatureFlags; field in ClipboardListener 77 mFeatureFlags = featureFlags; in ClipboardListener() 116 if (mFeatureFlags.isEnabled(CLIPBOARD_MINIMIZED_LAYOUT)) { in onPrimaryClipChanged()
|
D | ClipboardOverlayController.java | 97 private final FeatureFlags mFeatureFlags; field in ClipboardOverlayController 170 if (mFeatureFlags.isEnabled(CLIPBOARD_MINIMIZED_LAYOUT)) { 199 mFeatureFlags = featureFlags; in ClipboardOverlayController() 255 if (mFeatureFlags.isEnabled(CLIPBOARD_MINIMIZED_LAYOUT)) { in onInsetsChanged() 287 if (mFeatureFlags.isEnabled(CLIPBOARD_REMOTE_BEHAVIOR) && mClipboardModel.isRemote()) { in setClipData() 301 if ((mFeatureFlags.isEnabled(CLIPBOARD_REMOTE_BEHAVIOR) && model.isRemote()) in setExpandedView() 336 if (mFeatureFlags.isEnabled(CLIPBOARD_REMOTE_BEHAVIOR)) { in setExpandedView() 408 boolean isRemote = mFeatureFlags.isEnabled(CLIPBOARD_REMOTE_BEHAVIOR) in setClipDataLegacy()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | ExpandableNotificationRowController.java | 97 private final FeatureFlags mFeatureFlags; field in ExpandableNotificationRowController 187 mFeatureFlags = featureFlags; in ExpandableNotificationRowController() 227 mFeatureFlags, in init() 232 if (mFeatureFlags.isEnabled(Flags.NOTIFICATION_DRAG_TO_CONTENTS)) { in init() 265 mFeatureFlags.isEnabled(Flags.USE_ROUNDNESS_SOURCETYPES)); in init() 370 if (mFeatureFlags.isEnabled(Flags.NOTIFICATION_GROUP_DISMISSAL_ANIMATION) in offerToKeepInParentForAnimation()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityViewFlipperController.java | 55 private final FeatureFlags mFeatureFlags; field in KeyguardSecurityViewFlipperController 69 mFeatureFlags = featureFlags; in KeyguardSecurityViewFlipperController() 106 if (!mFeatureFlags.isEnabled(Flags.ASYNC_INFLATE_BOUNCER) && childController == null in getSecurityView()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | LockIconViewControllerBaseTest.java | 94 protected @Mock FeatureFlags mFeatureFlags; field in LockIconViewControllerBaseTest 166 mFeatureFlags, in setUp() 169 mFeatureFlags in setUp() 229 when(mFeatureFlags.isEnabled(DOZING_MIGRATION_1)).thenReturn(useMigrationFlag); in init()
|
D | KeyguardSecurityViewFlipperControllerTest.java | 78 private FeatureFlags mFeatureFlags; field in KeyguardSecurityViewFlipperControllerTest 95 mEmergencyButtonControllerFactory, mFeatureFlags); in setup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | MediaProjectionPermissionActivity.java | 68 private final FeatureFlags mFeatureFlags; field in MediaProjectionPermissionActivity 80 mFeatureFlags = featureFlags; in MediaProjectionPermissionActivity() 120 if (mFeatureFlags.isEnabled(Flags.WM_ENABLE_PARTIAL_SCREEN_SHARING_ENTERPRISE_POLICIES)) { in onCreate() 294 return mFeatureFlags.isEnabled(Flags.WM_ENABLE_PARTIAL_SCREEN_SHARING); in isPartialScreenSharingEnabled()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/ |
D | DreamOverlayStateControllerTest.java | 59 private FeatureFlags mFeatureFlags; field in DreamOverlayStateControllerTest 67 when(mFeatureFlags.isEnabled(Flags.ALWAYS_SHOW_HOME_CONTROLS_ON_DREAMS)).thenReturn(false); in setup() 309 when(mFeatureFlags.isEnabled(Flags.ALWAYS_SHOW_HOME_CONTROLS_ON_DREAMS)).thenReturn(true); in testShouldShowComplicationsSetToFalse_stillShowsSupportedTypes_featureEnabled() 358 when(mFeatureFlags.isEnabled(Flags.ALWAYS_SHOW_HOME_CONTROLS_ON_DREAMS)).thenReturn(true); in testHomeControlsDoNotShowIfNotAvailable_featureEnabled() 385 return new DreamOverlayStateController(mExecutor, overlayEnabled, mFeatureFlags); in getDreamOverlayStateController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/ |
D | DreamOverlayStateController.java | 107 private final FeatureFlags mFeatureFlags; field in DreamOverlayStateController 118 mFeatureFlags = featureFlags; in DreamOverlayStateController() 122 if (mFeatureFlags.isEnabled(Flags.ALWAYS_SHOW_HOME_CONTROLS_ON_DREAMS)) { in DreamOverlayStateController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | TakeScreenshotService.java | 83 private final FeatureFlags mFeatureFlags; field in TakeScreenshotService 125 mFeatureFlags = featureFlags; in TakeScreenshotService() 126 mFeatureFlags.addListener(SCREENSHOT_WORK_PROFILE_POLICY, FlagEvent::requestNoRestart); in TakeScreenshotService() 228 if (mFeatureFlags.isEnabled(Flags.SCREENSHOT_METADATA_REFACTOR)) { in handleRequest()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | BrightLineFalsingManager.java | 79 private FeatureFlags mFeatureFlags; field in BrightLineFalsingManager 199 mFeatureFlags = featureFlags; in BrightLineFalsingManager() 235 localResult[0] &= isFalseTap(mFeatureFlags.isEnabled(Flags.MEDIA_FALSING_PENALTY) in isFalseTouch() 327 if (!mFeatureFlags.isEnabled(Flags.FALSING_FOR_LONG_TAPS)) { in isFalseLongTap() 404 || (mFeatureFlags.isEnabled(Flags.FALSING_OFF_FOR_UNFOLDED) in skipFalsing()
|