Home
last modified time | relevance | path

Searched refs:featureFlags (Results 1 – 25 of 148) sorted by relevance

123456

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/
DMediaFlags.kt27 class MediaFlags @Inject constructor(private val featureFlags: FeatureFlags) { constant in com.android.systemui.media.controls.util.MediaFlags
34 return enabled || featureFlags.isEnabled(Flags.MEDIA_SESSION_ACTIONS) in areMediaSessionActionsEnabled()
38 fun areMuteAwaitConnectionsEnabled() = featureFlags.isEnabled(Flags.MEDIA_MUTE_AWAIT)
44 fun areNearbyMediaDevicesEnabled() = featureFlags.isEnabled(Flags.MEDIA_NEARBY_DEVICES)
47 fun isExplicitIndicatorEnabled() = featureFlags.isEnabled(Flags.MEDIA_EXPLICIT_INDICATOR)
53 fun isRetainingPlayersEnabled() = featureFlags.isEnabled(Flags.MEDIA_RETAIN_SESSIONS)
57 featureFlags.isEnabled(Flags.MEDIA_RECOMMENDATION_CARD_UPDATE)
60 fun isResumeProgressEnabled() = featureFlags.isEnabled(Flags.MEDIA_RESUME_PROGRESS)
63 fun isPersistentSsCardEnabled() = featureFlags.isEnabled(Flags.MEDIA_RETAIN_RECOMMENDATIONS)
66 fun isRemoteResumeAllowed() = featureFlags.isEnabled(Flags.MEDIA_REMOTE_RESUME)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DFlagCommandTest.kt33 @Mock private lateinit var featureFlags: FeatureFlagsDebug in <lambda>() variable in com.android.systemui.flags.FlagCommandTest
47 whenever(featureFlags.isEnabled(any(UnreleasedFlag::class.java))).thenReturn(false) in <lambda>()
48 whenever(featureFlags.isEnabled(any(ReleasedFlag::class.java))).thenReturn(true) in <lambda>()
49 whenever(featureFlags.getString(any(StringFlag::class.java))).thenAnswer { invocation -> in <lambda>()
52 whenever(featureFlags.getInt(any(IntFlag::class.java))).thenAnswer { invocation -> in <lambda>()
61 cmd = FlagCommand(featureFlags, flagMap) in <lambda>()
67 Mockito.verify(featureFlags).isEnabled(flagA) in <lambda>()
73 Mockito.verify(featureFlags).getString(stringFlag) in <lambda>()
79 Mockito.verify(featureFlags).getInt(intFlag) in <lambda>()
85 Mockito.verify(featureFlags).setBooleanFlagInternal(flagB, true) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotifPipelineFlags.kt28 val featureFlags: FeatureFlags, in <lambda>() constant in com.android.systemui.statusbar.notification.NotifPipelineFlags
32 featureFlags.addListener(Flags.DISABLE_FSI) { event -> event.requestNoRestart() } in <lambda>()
36 featureFlags.isEnabled(Flags.NOTIFICATION_PIPELINE_DEVELOPER_LOGGING) in <lambda>()
39 featureFlags.isEnabled(Flags.FSI_REQUIRES_KEYGUARD) in <lambda>()
41 fun fsiOnDNDUpdate(): Boolean = featureFlags.isEnabled(Flags.FSI_ON_DND_UPDATE) in <lambda>()
43 fun disableFsi(): Boolean = featureFlags.isEnabled(Flags.DISABLE_FSI) in <lambda>()
58 get() = featureFlags.isEnabled(Flags.FILTER_UNSEEN_NOTIFS_ON_KEYGUARD) in <lambda>()
61 get() = featureFlags.isEnabled(Flags.NO_HUN_FOR_OLD_WHEN) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/
DStatusBarPipelineFlags.kt31 private val featureFlags: FeatureFlags, constant
37 fun useNewMobileIcons(): Boolean = featureFlags.isEnabled(Flags.NEW_STATUS_BAR_MOBILE_ICONS)
46 featureFlags.isEnabled(Flags.NEW_STATUS_BAR_MOBILE_ICONS_BACKEND) || useNewMobileIcons()
49 fun useNewWifiIcon(): Boolean = featureFlags.isEnabled(Flags.NEW_STATUS_BAR_WIFI_ICON)
58 featureFlags.isEnabled(Flags.NEW_STATUS_BAR_WIFI_ICON_BACKEND) || useNewWifiIcon()
65 featureFlags.isEnabled(Flags.NEW_STATUS_BAR_ICONS_DEBUG_COLORING)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DMessageContainerControllerTest.kt42 var featureFlags = FakeFeatureFlags() variable in com.android.systemui.screenshot.MessageContainerControllerTest
58 featureFlags in setup()
86 featureFlags.set(Flags.SCREENSHOT_WORK_PROFILE_POLICY, true) in testOnScreenshotTakenUserHandle_noWorkProfileFirstRun()
97 featureFlags.set(Flags.SCREENSHOT_WORK_PROFILE_POLICY, false) in testOnScreenshotTakenUserHandle_noWorkProfileFlag()
107 featureFlags.set(Flags.SCREENSHOT_WORK_PROFILE_POLICY, true) in testOnScreenshotTakenUserHandle_withWorkProfileFirstRun()
120 featureFlags.set(Flags.SCREENSHOT_WORK_PROFILE_POLICY, false) in testOnScreenshotTakenScreenshotData_flagsOff()
121 featureFlags.set(Flags.SCREENSHOT_DETECTION, false) in testOnScreenshotTakenScreenshotData_flagsOff()
133 featureFlags.set(Flags.SCREENSHOT_WORK_PROFILE_POLICY, true) in testOnScreenshotTakenScreenshotData_nothingToShow()
134 featureFlags.set(Flags.SCREENSHOT_DETECTION, true) in testOnScreenshotTakenScreenshotData_nothingToShow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/
DMediaTttFlags.kt26 class MediaTttFlags @Inject constructor(private val featureFlags: FeatureFlags) { constant in com.android.systemui.media.taptotransfer.MediaTttFlags
28 fun isMediaTttEnabled(): Boolean = featureFlags.isEnabled(Flags.MEDIA_TAP_TO_TRANSFER)
32 featureFlags.isEnabled(Flags.MEDIA_TTT_RECEIVER_SUCCESS_RIPPLE)
36 featureFlags.isEnabled(Flags.MEDIA_TAP_TO_TRANSFER_DISMISS_GESTURE)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ongoingcall/
DOngoingCallFlags.kt25 class OngoingCallFlags @Inject constructor(private val featureFlags: FeatureFlags) { constant in com.android.systemui.statusbar.phone.ongoingcall.OngoingCallFlags
28 featureFlags.isEnabled(Flags.ONGOING_CALL_STATUS_BAR_CHIP)
31 && featureFlags.isEnabled(Flags.ONGOING_CALL_IN_IMMERSIVE)
34 && featureFlags.isEnabled(Flags.ONGOING_CALL_IN_IMMERSIVE_CHIP_TAP)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/smartspace/
DBcSmartspaceConfigProviderTest.kt37 @Mock private lateinit var featureFlags: FeatureFlags variable in com.android.systemui.smartspace.BcSmartspaceConfigProviderTest
44 configProvider = BcSmartspaceConfigProvider(featureFlags) in setUp()
49 whenever(featureFlags.isEnabled(Flags.SMARTSPACE_DATE_WEATHER_DECOUPLED)).thenReturn(true) in isDefaultDateWeatherDisabled_flagIsTrue_returnsTrue()
56 whenever(featureFlags.isEnabled(Flags.SMARTSPACE_DATE_WEATHER_DECOUPLED)).thenReturn(false) in isDefaultDateWeatherDisabled_flagIsFalse_returnsFalse()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/fsi/
DFsiChromeRepoTest.kt66 var featureFlags = FakeFeatureFlags() in <lambda>() variable in com.android.systemui.statusbar.notification.fsi.FsiChromeRepoTest
93 featureFlags, in <lambda>()
130 featureFlags.set(Flags.FSI_CHROME, false) in <lambda>()
143 featureFlags.set(Flags.FSI_CHROME, true) in <lambda>()
157 featureFlags.set(Flags.FSI_CHROME, true) in <lambda>()
171 featureFlags.set(Flags.FSI_CHROME, true) in <lambda>()
186 featureFlags.set(Flags.FSI_CHROME, true) in <lambda>()
200 featureFlags.set(Flags.FSI_CHROME, true) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/panels/
DSelectedComponentRepositoryTest.kt61 private val featureFlags = FakeFeatureFlags() constant in com.android.systemui.controls.panels.SelectedComponentRepositoryTest
73 repository = SelectedComponentRepositoryImpl(userFileManager, userTracker, featureFlags) in setUp()
107 featureFlags.set(Flags.APP_PANELS_REMOVE_APPS_ALLOWED, true) in testFeatureEnabled_shouldAddDefaultPanelDefaultsToTrue()
114 featureFlags.set(Flags.APP_PANELS_REMOVE_APPS_ALLOWED, false) in testFeatureDisabled_shouldAddDefaultPanelDefaultsToTrue()
121 featureFlags.set(Flags.APP_PANELS_REMOVE_APPS_ALLOWED, true) in testFeatureEnabled_shouldAddDefaultPanelChecked()
129 featureFlags.set(Flags.APP_PANELS_REMOVE_APPS_ALLOWED, false) in testFeatureDisabled_shouldAlwaysAddDefaultPanelAlwaysTrue()
DAuthorizedPanelsRepositoryImplTest.kt45 private val featureFlags = FakeFeatureFlags() constant in com.android.systemui.controls.panels.AuthorizedPanelsRepositoryImplTest
55 featureFlags.set(Flags.APP_PANELS_REMOVE_APPS_ALLOWED, true) in setUp()
147 featureFlags.set(Flags.APP_PANELS_REMOVE_APPS_ALLOWED, false) in testSetAuthorizedPackageAfterFeatureDisabled()
153 return AuthorizedPanelsRepositoryImpl(mContext, userFileManager, userTracker, featureFlags) in createRepository()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DChooserSelector.kt26 private val featureFlags: FeatureFlags, in <lambda>() constant in com.android.systemui.ChooserSelector
42 featureFlags.addListener(Flags.CHOOSER_UNBUNDLED, listener) in <lambda>()
45 awaitCancellationAndThen { featureFlags.removeListener(listener) } in <lambda>()
51 featureFlags.isEnabled(Flags.CHOOSER_UNBUNDLED) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/
DFeatureFlagsDebugStartable.kt37 private val featureFlags: FeatureFlagsDebug, in <lambda>() constant
44 featureFlags.dump(pw, args) in <lambda>()
49 featureFlags.init() in <lambda>()
DFeatureFlagsReleaseStartable.kt31 featureFlags: FeatureFlags, in <lambda>()
36 featureFlags.dump(pw, args) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardQuickAffordanceInteractor.kt67 private val featureFlags: FeatureFlags, in <lambda>() constant in com.android.systemui.keyguard.domain.interactor.KeyguardQuickAffordanceInteractor
74 get() = featureFlags.isEnabled(Flags.CUSTOMIZABLE_LOCK_SCREEN_QUICK_AFFORDANCES) in <lambda>()
82 get() = featureFlags.isEnabled(Flags.CUSTOMIZABLE_LOCK_SCREEN_QUICK_AFFORDANCES) in <lambda>()
391 value = featureFlags.isEnabled(Flags.REVAMPED_WALLPAPER_UI), in <lambda>()
397 featureFlags.isEnabled(Flags.CUSTOMIZABLE_LOCK_SCREEN_QUICK_AFFORDANCES), in <lambda>()
401 value = featureFlags.isEnabled(Flags.LOCKSCREEN_CUSTOM_CLOCKS), in <lambda>()
405 value = featureFlags.isEnabled(Flags.WALLPAPER_FULLSCREEN_PREVIEW), in <lambda>()
409 value = featureFlags.isEnabled(Flags.MONOCHROMATIC_THEME) in <lambda>()
413 value = featureFlags.isEnabled(Flags.WALLPAPER_PICKER_UI_FOR_AIWP) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/smartspace/config/
DBcSmartspaceConfigProvider.kt23 class BcSmartspaceConfigProvider(private val featureFlags: FeatureFlags) : constant in com.android.systemui.smartspace.config.BcSmartspaceConfigProvider
26 get() = featureFlags.isEnabled(Flags.SMARTSPACE_DATE_WEATHER_DECOUPLED)
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsListingControllerImpl.kt71 private val featureFlags: FeatureFlags constant
80 featureFlags: FeatureFlags
81 ) : this(context, executor, ::createServiceListing, userTracker, dumpManager, featureFlags)
116 if (featureFlags.isEnabled(Flags.USE_APP_PANELS)) { in updateServices()
117 val allowAllApps = featureFlags.isEnabled(Flags.APP_PANELS_ALL_APPS_ALLOWED) in updateServices()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DFontScalingTileTest.kt64 val featureFlags = FakeFeatureFlags() constant in com.android.systemui.qs.tiles.FontScalingTileTest
85 featureFlags in setUp()
99 featureFlags.set(Flags.ENABLE_FONT_SCALING_TILE, false) in isAvailable_whenFlagIsFalse_returnsFalse()
108 featureFlags.set(Flags.ENABLE_FONT_SCALING_TILE, true) in isAvailable_whenFlagIsTrue_returnsTrue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DMessageContainerController.kt26 private val featureFlags: FeatureFlags, in <lambda>() constant in com.android.systemui.screenshot.MessageContainerController
50 if (featureFlags.isEnabled(Flags.SCREENSHOT_WORK_PROFILE_POLICY)) { in <lambda>()
67 if (featureFlags.isEnabled(Flags.SCREENSHOT_WORK_PROFILE_POLICY)) { in <lambda>()
71 if (featureFlags.isEnabled(Flags.SCREENSHOT_DETECTION)) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DPhysicalKeyboardCoreStartable.kt33 private val featureFlags: FeatureFlags, constant in com.android.systemui.keyboard.PhysicalKeyboardCoreStartable
36 if (featureFlags.isEnabled(Flags.KEYBOARD_BACKLIGHT_INDICATOR)) { in start()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DTestableControlsActivity.kt29 featureFlags: FeatureFlags,
37 featureFlags,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/
DNotificationMemoryMonitor.kt32 private val featureFlags: FeatureFlags, constant in com.android.systemui.statusbar.notification.logging.NotificationMemoryMonitor
44 if (featureFlags.isEnabled(Flags.NOTIFICATION_MEMORY_LOGGING_ENABLED)) { in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlsActivity.kt55 private val featureFlags: FeatureFlags, in <lambda>() constant in com.android.systemui.controls.ui.ControlsActivity
68 if (featureFlags.isEnabled(Flags.USE_APP_PANELS)) { in <lambda>()
79 !featureFlags.isEnabled(Flags.USE_APP_PANELS) in <lambda>()
116 if (featureFlags.isEnabled(Flags.USE_APP_PANELS) && !keyguardStateController.isUnlocked) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/dagger/
DUdfpsModule.kt35 fun providesOverlapDetector(featureFlags: FeatureFlags): OverlapDetector { in providesOverlapDetector()
36 return if (featureFlags.isEnabled(Flags.UDFPS_ELLIPSE_DETECTION)) { in providesOverlapDetector()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/dagger/
DQSFlagsModule.java51 static boolean isPMLiteEnabled(FeatureFlags featureFlags, GlobalSettings globalSettings) { in isPMLiteEnabled() argument
52 return featureFlags.isEnabled(Flags.POWER_MENU_LITE) in isPMLiteEnabled()

123456