Home
last modified time | relevance | path

Searched refs:mOverlayManager (Results 1 – 18 of 18) sorted by relevance

/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DThemeOverlayManagerTest.java63 OverlayManager mOverlayManager; field in ThemeOverlayManagerTest
85 when(mOverlayManager.getOverlayInfosForTarget(getEnabledTargetPackageId(), in setUp()
89 when(mOverlayManager.getOverlayInfosForTarget(getDisabledTargetPackageId(), in setUp()
98 mThemeOverlayManager = new ThemeOverlayManager(mOverlayManager, in testApplyOverlays_shouldSetEnabled()
104 verify(mOverlayManager, times(1)).setEnabled(getOverlayPackageId(), enabled, in testApplyOverlays_shouldSetEnabled()
110 mThemeOverlayManager = new ThemeOverlayManager(mOverlayManager, in testApplyOverlays_shouldGetOverlayInfo()
116 verify(mOverlayManager, times(1)).getOverlayInfosForTarget(getEnabledTargetPackageId(), in testApplyOverlays_shouldGetOverlayInfo()
124 mThemeOverlayManager = new ThemeOverlayManager(mOverlayManager, in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled()
129 verify(mOverlayManager, never()).setEnabled(getOverlayPackageId(), enabled, in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled()
137 assertThat(mOverlayManager.getOverlayInfosForTarget(getDisabledTargetPackageId(), in testDefaultDisabled_applyOverlays_shouldEnabled()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/drivemode/
DDriveModeThemeSwitcher.java47 private final OverlayManager mOverlayManager; field in DriveModeThemeSwitcher
52 mOverlayManager = context.getSystemService(OverlayManager.class); in DriveModeThemeSwitcher()
53 if (mOverlayManager != null) { in DriveModeThemeSwitcher()
73 if (mOverlayManager == null || TextUtils.isEmpty(packageName)) { in isOverlayActive()
77 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(packageName, UserHandle.CURRENT); in isOverlayActive()
82 if (mOverlayManager == null || packageName == null) { in enableOverlay()
85 mOverlayManager.setEnabled(packageName, true, UserHandle.CURRENT); in enableOverlay()
89 if (mOverlayManager == null) { in disableActiveOverlays()
94 if (mOverlayManager.getOverlayInfo(overlayPackage, UserHandle.CURRENT).isEnabled()) { in disableActiveOverlays()
95 mOverlayManager.setEnabled(overlayPackage, false, UserHandle.CURRENT); in disableActiveOverlays()
[all …]
/packages/apps/TV/src/com/android/tv/
DMainActivity.java358 private TvOverlayManager mOverlayManager; field in MainActivity
445 mOverlayManager.updateChannelBannerAndShowIfNeeded(
462 mOverlayManager.onBrowsableChannelsUpdated();
467 mOverlayManager.onBrowsableChannelsUpdated();
642 mOverlayManager.updateChannelBannerAndShowIfNeeded( in onCreate()
649 mOverlayManager.updateChannelBannerAndShowIfNeeded( in onCreate()
728 mOverlayManager = in onCreate()
740 mAccessibilityManager.addAccessibilityStateChangeListener(mOverlayManager); in onCreate()
822 if (mOverlayManager.needHideTextOnMainView()) { in getDesiredBlockScreenType()
825 SafeDismissDialogFragment currentDialog = mOverlayManager.getCurrentDialog(); in getDesiredBlockScreenType()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DSystemNavigationGestureSettingsTest.java73 private IOverlayManager mOverlayManager; field in SystemNavigationGestureSettingsTest
90 when(mOverlayManager.getOverlayInfo(any(), anyInt())).thenReturn(mOverlayInfoDisabled); in setUp()
144 mSettings.setCurrentSystemNavigationMode(mOverlayManager, KEY_SYSTEM_NAV_GESTURAL); in testSetCurrentSystemNavigationMode()
145 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode()
148 mSettings.setCurrentSystemNavigationMode(mOverlayManager, KEY_SYSTEM_NAV_2BUTTONS); in testSetCurrentSystemNavigationMode()
149 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode()
152 mSettings.setCurrentSystemNavigationMode(mOverlayManager, KEY_SYSTEM_NAV_3BUTTONS); in testSetCurrentSystemNavigationMode()
153 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/drivemode/
DDriveModeSwitchController.java38 private final OverlayManager mOverlayManager; field in DriveModeSwitchController
43 mOverlayManager = context.getSystemService(OverlayManager.class); in DriveModeSwitchController()
57 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(DRIVE_MODE_ON_RRO_PACKAGE, in isDriveModeActive()
70 mOverlayManager.setEnabled(DRIVE_MODE_ON_RRO_PACKAGE, newState, UserHandle.SYSTEM); in setDriveMode()
75 return mOverlayManager == null; in overlayNotSupported()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DOverlayCategoryPreferenceControllerTest.java71 private IOverlayManager mOverlayManager; field in OverlayCategoryPreferenceControllerTest
94 return when(mOverlayManager.getOverlayInfosForTarget(eq("android"), anyInt())) in mockCurrentOverlays()
128 verify(mOverlayManager) in onPreferenceChange_enable()
135 when(mOverlayManager.setEnabledExclusiveInCategory(eq(TWO_DISABLED.packageName), anyInt())) in onPreferenceChange_enable_fails()
155 verify(mOverlayManager).setEnabled(eq(TWO_ENABLED.packageName), eq(false), anyInt()); in onPreferenceChange_disable()
161 when(mOverlayManager.setEnabled(eq(TWO_ENABLED.packageName), eq(false), anyInt())) in onPreferenceChange_disable_fails()
176 when(mOverlayManager.setEnabled(eq(TWO_ENABLED.packageName), eq(false), anyInt())) in onPreferenceChange_disable_throws()
231 verify(mOverlayManager).setEnabled(eq(ONE_ENABLED.packageName), eq(false), anyInt()); in onDeveloperOptionsSwitchDisabled()
236 mPackageManager, mOverlayManager, TEST_CATEGORY); in createController()
DEmulateDisplayCutoutPreferenceControllerTest.java41 private IOverlayManager mOverlayManager; field in EmulateDisplayCutoutPreferenceControllerTest
64 mPackageManager, mOverlayManager); in createController()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DOverlayManagerCompat.java38 private final OverlayManager mOverlayManager; field in OverlayManagerCompat
43 mOverlayManager = context.getSystemService(OverlayManager.class); in OverlayManagerCompat()
48 return mOverlayManager != null; in isAvailable()
56 mOverlayManager.setEnabledExclusiveInCategory(packageName, UserHandle.of(userId)); in setEnabledExclusiveInCategory()
65 mOverlayManager.setEnabled(packageName, false, UserHandle.of(userId)); in disableOverlay()
128 return mOverlayManager.getOverlayInfosForTarget(targetPackageName, UserHandle.of(userId)); in getOverlayInfosForTarget()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DThemePreferenceControllerTest.java67 private IOverlayManager mOverlayManager; field in ThemePreferenceControllerTest
82 when(mContext.getSystemService(Context.OVERLAY_SERVICE)).thenReturn(mOverlayManager); in setUp()
83 mController = spy(new ThemePreferenceController(mContext, mOverlayManager)); in setUp()
90 when(mOverlayManager.getOverlayInfosForTarget(any(), anyInt())) in testAvailable_false()
99 when(mOverlayManager.getOverlayInfosForTarget(any(), anyInt())) in testAvailable_true()
152 when(mOverlayManager.getOverlayInfosForTarget(any(), anyInt())).thenReturn( in getCurrentTheme_withEnabledState()
166 when(mOverlayManager.getOverlayInfosForTarget(any(), anyInt())).thenReturn( in testGetCurrentTheme_withoutEnabledState()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DCarSystemBarMediator.java52 private final OverlayManager mOverlayManager; field in CarSystemBarMediator
66 mOverlayManager = context.getSystemService(OverlayManager.class); in CarSystemBarMediator()
83 mOverlayManager.setEnabled(rroPackageName, false, userHandle); in start()
84 mOverlayManager.setEnabled(rroPackageName, true, userHandle); in start()
/packages/apps/DocumentsUI/src/com/android/documentsui/theme/
DThemeOverlayManager.java43 private final OverlayManager mOverlayManager; field in ThemeOverlayManager
48 mOverlayManager = overlayManager; in ThemeOverlayManager()
74 return mOverlayManager.getOverlayInfosForTarget(mTargetPackageId, mUserHandle); in getOverlayInfo()
121 mOverlayManager.setEnabled(info.getPackageName(), enabled, mUserHandle); in setEnabledOverlayPackages()
/packages/apps/Settings/src/com/android/settings/development/
DOverlayCategoryPreferenceController.java58 private final IOverlayManager mOverlayManager; field in OverlayCategoryPreferenceController
69 mOverlayManager = overlayManager; in OverlayCategoryPreferenceController()
124 return mOverlayManager.setEnabled(currentPackageName, false, USER_SYSTEM); in setOverlay()
126 return mOverlayManager.setEnabledExclusiveInCategory(packageName, in setOverlay()
184 List<OverlayInfo> overlayInfos = mOverlayManager in getOverlayInfos()
DTransparentNavigationBarPreferenceController.java44 private final IOverlayManager mOverlayManager; field in TransparentNavigationBarPreferenceController
48 mOverlayManager = IOverlayManager.Stub.asInterface( in TransparentNavigationBarPreferenceController()
86 mOverlayManager.setEnabled(OVERLAY_PACKAGE_NAME, enabled, USER_CURRENT); in setEnabled()
DForceEnableNotesRolePreferenceController.java61 private final IOverlayManager mOverlayManager; field in ForceEnableNotesRolePreferenceController
66 mOverlayManager = IOverlayManager.Stub.asInterface( in ForceEnableNotesRolePreferenceController()
104 mOverlayManager.setEnabled(OVERLAY_PACKAGE_NAME, enabled, user.id); in setEnabled()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncher.java392 protected LauncherOverlayManager mOverlayManager; field in Launcher
582 mOverlayManager = getDefaultOverlay(); in onCreate()
708 if (mOverlayManager != null) {
709 mOverlayManager.onActivityDestroyed();
711 mOverlayManager = overlaySupplier.get();
713 mOverlayManager.onAttachedToWindow();
722 mOverlayManager.onDeviceProvideChanged();
1085 mOverlayManager.onActivityStopped();
1101 mOverlayManager.onActivityStarted();
1189 mOverlayManager.onActivityStarted();
[all …]
/packages/apps/Settings/src/com/android/settings/gestures/
DSystemNavigationGestureSettings.java94 private IOverlayManager mOverlayManager; field in SystemNavigationGestureSettings
126 mOverlayManager = IOverlayManager.Stub.asInterface( in onAttach()
138 migrateOverlaySensitivityToSettings(context, mOverlayManager); in onAttach()
244 setCurrentSystemNavigationMode(mOverlayManager, key); in setDefaultKey()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceControllerTest.java112 private OverlayManager mOverlayManager; field in AppButtonsPreferenceControllerTest
141 doReturn(mOverlayManager).when(mSettingsActivity). in setUp()
397 when(mOverlayManager.getOverlayInfo(anyString(), any())) in updateUninstallButton_isNonSystemRro_setButtonDisable()
409 when(mOverlayManager.getOverlayInfo(anyString(), any())) in updateUninstallButton_isNonSystemRro_setButtonEnable()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java113 private final OverlayManager mOverlayManager; field in AppButtonsPreferenceController
149 mOverlayManager = activity.getSystemService(OverlayManager.class); in AppButtonsPreferenceController()
467 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(pkgName, user); in updateUninstallButton()