Home
last modified time | relevance | path

Searched refs:isEnabled (Results 1 – 25 of 1208) sorted by relevance

12345678910>>...49

/frameworks/base/services/core/java/com/android/server/display/feature/
DDisplayManagerFlags.java186 return mPortInDisplayLayoutFlagState.isEnabled(); in isPortInDisplayLayoutEnabled()
191 return mConnectedDisplayManagementFlagState.isEnabled(); in isConnectedDisplayManagementEnabled()
196 return mNbmControllerFlagState.isEnabled(); in isNbmControllerEnabled()
201 return mHdrClamperFlagState.isEnabled(); in isHdrClamperEnabled()
206 return mPowerThrottlingClamperFlagState.isEnabled(); in isPowerThrottlingClamperEnabled()
213 return mAdaptiveToneImprovements1.isEnabled(); in isAdaptiveTone1Enabled()
220 return mAdaptiveToneImprovements2.isEnabled(); in isAdaptiveTone2Enabled()
240 return mExternalDisplayLimitModeState.isEnabled(); in isExternalDisplayLimitModeEnabled()
252 return mDisplayOffloadFlagState.isEnabled(); in isDisplayOffloadEnabled()
257 return mConnectedDisplayErrorHandlingFlagState.isEnabled(); in isConnectedDisplayErrorHandlingEnabled()
[all …]
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
DItemViewHolder.java26 private boolean isEnabled; field in ItemViewHolder
35 return isEnabled; in isDividerAllowedAbove()
40 return isEnabled; in isDividerAllowedBelow()
43 public void setEnabled(boolean isEnabled) { in setEnabled() argument
44 this.isEnabled = isEnabled; in setEnabled()
45 itemView.setClickable(isEnabled); in setEnabled()
46 itemView.setEnabled(isEnabled); in setEnabled()
47 itemView.setFocusable(isEnabled); in setEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/shared/flag/
DSceneContainerFlag.kt39 inline val isEnabled in <lambda>() constant
42 ComposeLockscreen.isEnabled && in <lambda>()
43 KeyguardBottomAreaRefactor.isEnabled && in <lambda>()
44 KeyguardWmStateRefactor.isEnabled && in <lambda>()
45 MigrateClocksToBlueprint.isEnabled && in <lambda>()
46 NotificationsHeadsUpRefactor.isEnabled && in <lambda>()
47 PredictiveBackSysUiFlag.isEnabled && in <lambda>()
48 DeviceEntryUdfpsRefactor.isEnabled in <lambda>()
85 RefactorFlagUtils.isUnexpectedlyInLegacyMode(isEnabled, DESCRIPTION) in <lambda>()
92 inline fun assertInLegacyMode() = RefactorFlagUtils.assertInLegacyMode(isEnabled, DESCRIPTION) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/shared/
DNotificationMinimalismPrototype.kt38 get() = FlagToken(FLAG_NAME, isEnabled)
42 inline val isEnabled constant
75 RefactorFlagUtils.isUnexpectedlyInLegacyMode(isEnabled, FLAG_NAME) in isUnexpectedlyInLegacyMode()
82 inline fun assertInLegacyMode() = RefactorFlagUtils.assertInLegacyMode(isEnabled, FLAG_NAME) in isUnexpectedlyInLegacyMode()
89 get() = FlagToken(FLAG_NAME, isEnabled) in isUnexpectedlyInLegacyMode()
93 inline val isEnabled in isUnexpectedlyInLegacyMode() constant
116 RefactorFlagUtils.isUnexpectedlyInLegacyMode(isEnabled, FLAG_NAME) in isUnexpectedlyInLegacyMode()
123 inline fun assertInLegacyMode() = RefactorFlagUtils.assertInLegacyMode(isEnabled, FLAG_NAME) in isUnexpectedlyInLegacyMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/
DRefactorFlagUtils.kt58 inline fun isUnexpectedlyInLegacyMode(isEnabled: Boolean, flagName: Any): Boolean { in isUnexpectedlyInLegacyMode()
59 val inLegacyMode = !isEnabled in isUnexpectedlyInLegacyMode()
78 inline fun assertInLegacyMode(isEnabled: Boolean, flagName: Any) = in assertInLegacyMode()
79 check(!isEnabled) { "Legacy code path not supported when $flagName is enabled." } in assertInLegacyMode()
94 inline fun assertInNewMode(isEnabled: Boolean, flagName: Any) = in assertInNewMode()
95 check(isEnabled) { "New code path not supported when $flagName is disabled." } in assertInNewMode()
127 data class FlagToken(val name: String, val isEnabled: Boolean) { constant in com.android.systemui.flags.FlagToken
DRefactorFlag.kt44 ) : this(flags, flag, { it.isEnabled(flag) }) in <lambda>()
46 constructor(flags: FeatureFlags, flag: ReleasedFlag) : this(flags, flag, { it.isEnabled(flag) }) in <lambda>()
49 val isEnabled by lazy { in <lambda>() constant
67 fun assertInLegacyMode() = RefactorFlagUtils.assertInLegacyMode(isEnabled, flagName) in assertInLegacyMode()
83 RefactorFlagUtils.isUnexpectedlyInLegacyMode(isEnabled, flagName) in assertInLegacyMode()
92 RefactorFlag(flags, flag) { it.isEnabled(flag) } in assertInLegacyMode()
98 RefactorFlag(flags, flag) { it.isEnabled(flag) } in assertInLegacyMode()
/frameworks/base/core/tests/coretests/src/com/android/internal/config/sysui/
DSystemUiSystemPropertiesFlagsTest.java68 assertThat(mProdResolver.isEnabled(mReleasedFlag)).isTrue(); in testProdResolverReturnsDefault()
69 assertThat(mProdResolver.isEnabled(mTeamfoodFlag)).isFalse(); in testProdResolverReturnsDefault()
70 assertThat(mProdResolver.isEnabled(mDevFlag)).isFalse(); in testProdResolverReturnsDefault()
74 assertThat(mDebugResolver.isEnabled(mReleasedFlag)).isTrue(); in testDebugResolverAndReleasedFlag()
77 assertThat(mDebugResolver.isEnabled(mReleasedFlag)).isFalse(); in testDebugResolverAndReleasedFlag()
80 assertThat(mDebugResolver.isEnabled(mReleasedFlag)).isTrue(); in testDebugResolverAndReleasedFlag()
86 assertThat(mDebugResolver.isEnabled(mTeamfoodFlag)).isEqualTo(expected); in assertTeamfoodFlag()
102 assertThat(mDebugResolver.isEnabled(mDevFlag)).isFalse(); in testDebugResolverAndDevFlag()
105 assertThat(mDebugResolver.isEnabled(mDevFlag)).isTrue(); in testDebugResolverAndDevFlag()
108 assertThat(mDebugResolver.isEnabled(mDevFlag)).isFalse(); in testDebugResolverAndDevFlag()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/camera/data/repository/
DCameraSensorPrivacyRepositoryImplTest.kt57 val flow1 = underTest.isEnabled(testUser) in isEnabled_2TimesForSameUserReturnsCachedFlow()
58 val flow2 = underTest.isEnabled(testUser) in isEnabled_2TimesForSameUserReturnsCachedFlow()
69 val flow1 = underTest.isEnabled(testUser) in isEnabled_2TimesForDifferentUsersReturnsTwoDifferentFlows()
70 val flow2 = underTest.isEnabled(user2) in isEnabled_2TimesForDifferentUsersReturnsTwoDifferentFlows()
79 val isEnabled = collectLastValue(underTest.isEnabled(testUser)) in isEnabled_dataMatchesSensorPrivacyManager() constant
86 assertThat(isEnabled()).isEqualTo(false) in isEnabled_dataMatchesSensorPrivacyManager()
98 assertThat(isEnabled()).isEqualTo(true) in isEnabled_dataMatchesSensorPrivacyManager()
102 assertThat(isEnabled()).isEqualTo(false) in isEnabled_dataMatchesSensorPrivacyManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/
DMediaFlags.kt35 return enabled || featureFlags.isEnabled(Flags.MEDIA_SESSION_ACTIONS) in areMediaSessionActionsEnabled()
42 fun isRetainingPlayersEnabled() = featureFlags.isEnabled(Flags.MEDIA_RETAIN_SESSIONS)
45 fun isResumeProgressEnabled() = featureFlags.isEnabled(Flags.MEDIA_RESUME_PROGRESS)
48 fun isPersistentSsCardEnabled() = featureFlags.isEnabled(Flags.MEDIA_RETAIN_RECOMMENDATIONS)
51 fun isRemoteResumeAllowed() = featureFlags.isEnabled(Flags.MEDIA_REMOTE_RESUME)
54 fun isSceneContainerEnabled() = SceneContainerFlag.isEnabled
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/
DKeyguardlessSceneContainerFrameworkModule.kt84 Scenes.QuickSettings.takeUnless { DualShade.isEnabled }, in containerStartable()
85 Scenes.QuickSettingsShade.takeIf { DualShade.isEnabled }, in containerStartable()
86 Scenes.NotificationsShade.takeIf { DualShade.isEnabled }, in containerStartable()
87 Scenes.Shade.takeUnless { DualShade.isEnabled }, in containerStartable()
93 Scenes.NotificationsShade to 1.takeIf { DualShade.isEnabled }, in containerStartable()
94 Scenes.Shade to 1.takeUnless { DualShade.isEnabled }, in containerStartable()
95 Scenes.QuickSettingsShade to 2.takeIf { DualShade.isEnabled }, in containerStartable()
96 Scenes.QuickSettings to 2.takeUnless { DualShade.isEnabled }, in containerStartable()
DSceneContainerFrameworkModule.kt93 Scenes.QuickSettings.takeUnless { DualShade.isEnabled }, in containerStartable()
94 Scenes.QuickSettingsShade.takeIf { DualShade.isEnabled }, in containerStartable()
95 Scenes.NotificationsShade.takeIf { DualShade.isEnabled }, in containerStartable()
96 Scenes.Shade.takeUnless { DualShade.isEnabled }, in containerStartable()
104 Scenes.NotificationsShade to 2.takeIf { DualShade.isEnabled }, in containerStartable()
105 Scenes.Shade to 2.takeUnless { DualShade.isEnabled }, in containerStartable()
106 Scenes.QuickSettingsShade to 3.takeIf { DualShade.isEnabled }, in containerStartable()
107 Scenes.QuickSettings to 3.takeUnless { DualShade.isEnabled }, in containerStartable()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DFakeFeatureFlagsTest.kt46 assertThat(flags.isEnabled(Flags.NULL_FLAG)).isFalse() in accessingUnspecifiedFlags_throwsException()
52 assertThat(flags.isEnabled(unreleasedFlag)).isFalse() in accessingUnspecifiedFlags_throwsException()
58 assertThat(flags.isEnabled(releasedFlag)).isFalse() in accessingUnspecifiedFlags_throwsException()
64 assertThat(flags.isEnabled(resourceBooleanFlag)).isFalse() in accessingUnspecifiedFlags_throwsException()
70 assertThat(flags.isEnabled(sysPropBooleanFlag)).isFalse() in accessingUnspecifiedFlags_throwsException()
98 assertThat(flags.isEnabled(unreleasedFlag)).isFalse() in specifiedFlags_returnCorrectValues()
99 assertThat(flags.isEnabled(releasedFlag)).isFalse() in specifiedFlags_returnCorrectValues()
100 assertThat(flags.isEnabled(resourceBooleanFlag)).isFalse() in specifiedFlags_returnCorrectValues()
101 assertThat(flags.isEnabled(sysPropBooleanFlag)).isFalse() in specifiedFlags_returnCorrectValues()
110 assertThat(flags.isEnabled(unreleasedFlag)).isTrue() in specifiedFlags_returnCorrectValues()
[all …]
DFeatureFlagsClassicDebugTest.kt107 mFeatureFlagsClassicDebug.isEnabled(ReleasedFlag(name = "2", namespace = "test")) in readBooleanFlag()
111 mFeatureFlagsClassicDebug.isEnabled(UnreleasedFlag(name = "3", namespace = "test")) in readBooleanFlag()
115 mFeatureFlagsClassicDebug.isEnabled(ReleasedFlag(name = "4", namespace = "test")) in readBooleanFlag()
119 mFeatureFlagsClassicDebug.isEnabled(UnreleasedFlag(name = "5", namespace = "test")) in readBooleanFlag()
127 assertThat(mFeatureFlagsClassicDebug.isEnabled(teamfoodableFlagA)).isFalse() in teamFoodFlag_False()
128 assertThat(mFeatureFlagsClassicDebug.isEnabled(releasedFlagB)).isTrue() in teamFoodFlag_False()
138 assertThat(mFeatureFlagsClassicDebug.isEnabled(teamfoodableFlagA)).isTrue() in teamFoodFlag_True()
139 assertThat(mFeatureFlagsClassicDebug.isEnabled(releasedFlagB)).isTrue() in teamFoodFlag_True()
153 assertThat(mFeatureFlagsClassicDebug.isEnabled(teamfoodableFlagA)).isTrue() in teamFoodFlag_Overridden()
154 assertThat(mFeatureFlagsClassicDebug.isEnabled(releasedFlagB)).isFalse() in teamFoodFlag_Overridden()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/common/ui/view/
DSeekBarWithIconButtonsViewTest.java85 assertThat(mIconStart.isEnabled()).isFalse(); in setSeekBarProgressZero_startIconAndFrameDisabled()
86 assertThat(mIconEnd.isEnabled()).isTrue(); in setSeekBarProgressZero_startIconAndFrameDisabled()
87 assertThat(mIconStartFrame.isEnabled()).isFalse(); in setSeekBarProgressZero_startIconAndFrameDisabled()
88 assertThat(mIconEndFrame.isEnabled()).isTrue(); in setSeekBarProgressZero_startIconAndFrameDisabled()
95 assertThat(mIconEnd.isEnabled()).isFalse(); in setSeekBarProgressMax_endIconAndFrameDisabled()
96 assertThat(mIconStart.isEnabled()).isTrue(); in setSeekBarProgressMax_endIconAndFrameDisabled()
97 assertThat(mIconEndFrame.isEnabled()).isFalse(); in setSeekBarProgressMax_endIconAndFrameDisabled()
98 assertThat(mIconStartFrame.isEnabled()).isTrue(); in setSeekBarProgressMax_endIconAndFrameDisabled()
107 assertThat(mIconStart.isEnabled()).isTrue(); in setSeekBarProgressMax_allIconsAndFramesEnabled()
108 assertThat(mIconEnd.isEnabled()).isTrue(); in setSeekBarProgressMax_allIconsAndFramesEnabled()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/binder/
DSeekBarObserverTest.kt90 val isEnabled = false in seekBarGone() constant
91 val data = SeekBarViewModel.Progress(isEnabled, false, false, false, null, 0, false) in seekBarGone()
94 assertThat(seekBarView.isEnabled()).isFalse() in seekBarGone()
103 val isEnabled = true in seekBarVisible() constant
104 val data = SeekBarViewModel.Progress(isEnabled, true, false, false, 3000, 12000, true) in seekBarVisible()
132 assertThat(seekBarView.isEnabled()).isFalse() in seekBarDisabledWhenSeekNotAvailable()
143 assertThat(seekBarView.isEnabled()).isTrue() in seekBarEnabledWhenSeekNotAvailable()
204 val isEnabled = true in seekBarProgress_enabledAndScrubbing_timeViewsHaveTime() constant
206 val data = SeekBarViewModel.Progress(isEnabled, true, true, isScrubbing, 3000, 120000, true) in seekBarProgress_enabledAndScrubbing_timeViewsHaveTime()
216 val isEnabled = false in seekBarProgress_disabledAndScrubbing_timeViewsEmpty() constant
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/
DNoteTaskInitializerTest.kt78 isEnabled: Boolean, in createUnderTest()
85 isEnabled = isEnabled, in createUnderTest()
104 createUnderTest(isEnabled = true, bubbles = bubbles).initialize() in createUnderTest()
116 createUnderTest(isEnabled = true, bubbles = bubbles).initialize() in initialize_withUserLocked()
127 val underTest = createUnderTest(isEnabled = false, bubbles = bubbles) in initialize_flagDisabled()
143 val underTest = createUnderTest(isEnabled = true, bubbles = null) in initialize_bubblesNotPresent()
165 val underTest = createUnderTest(isEnabled = true, bubbles = bubbles) in initialize_handleSystemKey()
177 val underTest = createUnderTest(isEnabled = true, bubbles = bubbles) in initialize_userUnlocked_shouldUpdateNoteTask()
189 val underTest = createUnderTest(isEnabled = true, bubbles = bubbles) in initialize_onRoleHoldersChanged_shouldRunOnRoleHoldersChanged()
203 val underTest = createUnderTest(isEnabled = true, bubbles = bubbles) in initialize_onProfilesChanged_shouldUpdateNoteTask()
[all …]
/frameworks/libs/systemui/tracinglib/core/android/src-public-api/src/
DTraceProxy.jetpack.kt23 internal actual fun isEnabled(): Boolean { in isEnabled() method
24 return Trace.isEnabled() in isEnabled()
51 if (isEnabled()) { in namedSlice()
58 if (isEnabled()) { in asyncTraceForTrackEnd()
64 if (isEnabled()) { in instant()
71 if (Trace.isEnabled()) { in instantForTrack()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DMagnificationFeatureFlagBase.java50 AtomicBoolean isEnabled = new AtomicBoolean(getDefaultValue()); in isFeatureFlagEnabled() local
53 () -> isEnabled.set(DeviceConfig.getBoolean( in isFeatureFlagEnabled()
57 () -> isEnabled.set(getDefaultValue())); in isFeatureFlagEnabled()
59 return isEnabled.get(); in isFeatureFlagEnabled()
64 public boolean setFeatureFlagEnabled(boolean isEnabled) { in setFeatureFlagEnabled() argument
71 Boolean.toString(isEnabled), in setFeatureFlagEnabled()
/frameworks/base/services/core/java/com/android/server/pm/pkg/
DPackageUserStateUtils.java47 return isMatch(state, isSystem, isPackageEnabled, component.isEnabled(), in isMatch()
68 if (!isEnabled(state, isPackageEnabled, isComponentEnabled, componentName, flags)) { in isMatch()
128 public static boolean isEnabled(@NonNull PackageUserState state, ComponentInfo componentInfo, in isEnabled() method in PackageUserStateUtils
130 return isEnabled(state, componentInfo.applicationInfo.enabled, componentInfo.enabled, in isEnabled()
134 public static boolean isEnabled(@NonNull PackageUserState state, boolean isPackageEnabled, in isEnabled() method in PackageUserStateUtils
136 return isEnabled(state, isPackageEnabled, parsedComponent.isEnabled(), in isEnabled()
143 public static boolean isEnabled(@NonNull PackageUserState state, in isEnabled() method in PackageUserStateUtils
196 return pkg.isEnabled(); in isPackageEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DNotificationPanelView.java46 if (!SceneContainerFlag.isEnabled()) { in NotificationPanelView()
56 if (SceneContainerFlag.isEnabled()) { in onRtlPropertiesChanged()
67 if (SceneContainerFlag.isEnabled()) { in shouldDelayChildPressedState()
76 if (!SceneContainerFlag.isEnabled()) { in dispatchDraw()
99 if (SceneContainerFlag.isEnabled()) { in hasOverlappingRendering()
121 if (SceneContainerFlag.isEnabled()) { in onInterceptTouchEvent()
135 if (!SceneContainerFlag.isEnabled()) { in dispatchConfigurationChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/view/accessibility/data/repository/
DCaptioningRepository.kt45 suspend fun setIsSystemAudioCaptioningEnabled(isEnabled: Boolean) in setIsSystemAudioCaptioningEnabled()
65 .map { it.isEnabled } in setIsSystemAudioCaptioningEnabled()
76 .map { it.isEnabled } in setIsSystemAudioCaptioningEnabled()
84 override suspend fun setIsSystemAudioCaptioningEnabled(isEnabled: Boolean) { in setIsSystemAudioCaptioningEnabled()
86 captioningManager.isSystemAudioCaptioningEnabled = isEnabled in setIsSystemAudioCaptioningEnabled()
92 data class IsSystemAudioCaptioningEnabled(val isEnabled: Boolean) : CaptioningChange in setIsSystemAudioCaptioningEnabled() constant in com.android.settingslib.view.accessibility.data.repository.CaptioningChange.IsSystemAudioCaptioningEnabled
94 data class IsSystemUICaptioningEnabled(val isEnabled: Boolean) : CaptioningChange in setIsSystemAudioCaptioningEnabled() constant in com.android.settingslib.view.accessibility.data.repository.CaptioningChange.IsSystemUICaptioningEnabled
/frameworks/base/telephony/java/android/telephony/euicc/
DEuiccManager.java950 public boolean isEnabled() { in isEnabled() method in EuiccManager
970 if (!isEnabled()) { in getEid()
998 if (!isEnabled()) { in getAvailableMemoryInBytes()
1024 if (!isEnabled()) { in getOtaStatus()
1091 if (!isEnabled()) { in downloadSubscription()
1156 if (!isEnabled()) { in continueOperation()
1196 if (!isEnabled()) { in getDownloadableSubscriptionMetadata()
1229 if (!isEnabled()) { in getDefaultDownloadableSubscriptionList()
1251 if (!isEnabled()) { in getEuiccInfo()
1287 if (!isEnabled()) { in deleteSubscription()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/
DKeyguardSliceViewSection.kt37 if (!MigrateClocksToBlueprint.isEnabled) return in addViews()
38 if (smartspaceController.isEnabled()) return in addViews()
49 if (!MigrateClocksToBlueprint.isEnabled) return in applyConstraints()
50 if (smartspaceController.isEnabled()) return in applyConstraints()
84 if (!MigrateClocksToBlueprint.isEnabled) return in removeViews()
85 if (smartspaceController.isEnabled()) return in removeViews()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/
DComposeLockscreen.kt31 get() = FlagToken(FLAG_NAME, isEnabled)
35 inline val isEnabled constant
45 RefactorFlagUtils.isUnexpectedlyInLegacyMode(isEnabled, FLAG_NAME)
52 inline fun assertInLegacyMode() = RefactorFlagUtils.assertInLegacyMode(isEnabled, FLAG_NAME)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DSortBySectionTimeFlag.kt31 get() = FlagToken(FLAG_NAME, isEnabled)
35 inline val isEnabled constant
45 RefactorFlagUtils.isUnexpectedlyInLegacyMode(isEnabled, FLAG_NAME)
52 inline fun assertInLegacyMode() = RefactorFlagUtils.assertInLegacyMode(isEnabled, FLAG_NAME)

12345678910>>...49