/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | SystemNavigationGestureSettingsTest.java | 74 private IOverlayManager mOverlayManager; field in SystemNavigationGestureSettingsTest 89 when(mOverlayManager.getOverlayInfo(any(), anyInt())).thenReturn(mOverlayInfoDisabled); in setUp() 119 mSettings.setBackSensitivity(mContext, mOverlayManager, 0); in testSetCurrentSystemNavigationMode() 120 mSettings.setCurrentSystemNavigationMode(mContext, mOverlayManager, in testSetCurrentSystemNavigationMode() 122 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode() 125 mSettings.setBackSensitivity(mContext, mOverlayManager, 1); in testSetCurrentSystemNavigationMode() 126 mSettings.setCurrentSystemNavigationMode(mContext, mOverlayManager, in testSetCurrentSystemNavigationMode() 128 verify(mOverlayManager, times(1)).setEnabledExclusiveInCategory( in testSetCurrentSystemNavigationMode() 131 mSettings.setBackSensitivity(mContext, mOverlayManager, 2); in testSetCurrentSystemNavigationMode() 132 mSettings.setCurrentSystemNavigationMode(mContext, mOverlayManager, in testSetCurrentSystemNavigationMode() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/theme/ |
D | ThemeOverlayManagerTest.java | 59 OverlayManager mOverlayManager; field in ThemeOverlayManagerTest 78 when(mOverlayManager.getOverlayInfosForTarget(getEnabledTargetPackageId(), in setUp() 82 when(mOverlayManager.getOverlayInfosForTarget(getDisabledTargetPackageId(), in setUp() 102 mThemeOverlayManager = new ThemeOverlayManager(mOverlayManager, in testApplyOverlays_shouldSetEnabled() 108 verify(mOverlayManager, times(1)).setEnabled(getOverlayPackageId(), enabled, in testApplyOverlays_shouldSetEnabled() 114 mThemeOverlayManager = new ThemeOverlayManager(mOverlayManager, in testApplyOverlays_shouldGetOverlayInfo() 120 verify(mOverlayManager, times(1)).getOverlayInfosForTarget(getEnabledTargetPackageId(), in testApplyOverlays_shouldGetOverlayInfo() 128 mThemeOverlayManager = new ThemeOverlayManager(mOverlayManager, in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled() 133 verify(mOverlayManager, never()).setEnabled(getOverlayPackageId(), enabled, in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled() 141 assertThat(mOverlayManager.getOverlayInfosForTarget(getDisabledTargetPackageId(), in testDefaultDisabled_applyOverlays_shouldEnabled() [all …]
|
/packages/apps/TV/src/com/android/tv/ |
D | MainActivity.java | 346 private TvOverlayManager mOverlayManager; field in MainActivity 424 mOverlayManager.updateChannelBannerAndShowIfNeeded( 441 mOverlayManager.onBrowsableChannelsUpdated(); 446 mOverlayManager.onBrowsableChannelsUpdated(); 615 mOverlayManager.updateChannelBannerAndShowIfNeeded( in onCreate() 622 mOverlayManager.updateChannelBannerAndShowIfNeeded( in onCreate() 697 mOverlayManager = in onCreate() 709 mAccessibilityManager.addAccessibilityStateChangeListener(mOverlayManager); in onCreate() 779 if (mOverlayManager.needHideTextOnMainView()) { in getDesiredBlockScreenType() 782 SafeDismissDialogFragment currentDialog = mOverlayManager.getCurrentDialog(); in getDesiredBlockScreenType() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | OverlayCategoryPreferenceControllerTest.java | 62 private IOverlayManager mOverlayManager; field in OverlayCategoryPreferenceControllerTest 81 return when(mOverlayManager.getOverlayInfosForTarget(eq("android"), anyInt())) in mockCurrentOverlays() 114 verify(mOverlayManager) in onPreferenceChange_enable() 121 when(mOverlayManager.setEnabledExclusiveInCategory(eq(TWO_DISABLED.packageName), anyInt())) in onPreferenceChange_enable_fails() 139 verify(mOverlayManager).setEnabled(eq(TWO_ENABLED.packageName), eq(false), anyInt()); in onPreferenceChange_disable() 145 when(mOverlayManager.setEnabled(eq(TWO_ENABLED.packageName), eq(false), anyInt())) in onPreferenceChange_disable_fails() 159 when(mOverlayManager.setEnabled(eq(TWO_ENABLED.packageName), eq(false), anyInt())) in onPreferenceChange_disable_throws() 211 verify(mOverlayManager).setEnabled(eq(ONE_ENABLED.packageName), eq(false), anyInt()); in onDeveloperOptionsSwitchDisabled() 216 mPackageManager, mOverlayManager, TEST_CATEGORY); in createController()
|
D | EmulateDisplayCutoutPreferenceControllerTest.java | 41 private IOverlayManager mOverlayManager; field in EmulateDisplayCutoutPreferenceControllerTest 64 mPackageManager, mOverlayManager); in createController()
|
/packages/apps/ThemePicker/src/com/android/customization/model/theme/ |
D | OverlayManagerCompat.java | 38 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/ |
D | ThemePreferenceControllerTest.java | 65 private IOverlayManager mOverlayManager; field in ThemePreferenceControllerTest 78 when(mContext.getSystemService(Context.OVERLAY_SERVICE)).thenReturn(mOverlayManager); in setUp() 79 mController = spy(new ThemePreferenceController(mContext, mOverlayManager)); in setUp() 86 when(mOverlayManager.getOverlayInfosForTarget(any(), anyInt())) in testAvailable_false() 95 when(mOverlayManager.getOverlayInfosForTarget(any(), anyInt())) in testAvailable_true() 148 when(mOverlayManager.getOverlayInfosForTarget(any(), anyInt())).thenReturn( in getCurrentTheme_withEnabledState() 162 when(mOverlayManager.getOverlayInfosForTarget(any(), anyInt())).thenReturn( in testGetCurrentTheme_withoutEnabledState()
|
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/overlays/ |
D | OverlayManagerImpl.java | 39 private final IOverlayManager mOverlayManager; field in OverlayManagerImpl 43 mOverlayManager = IOverlayManager.Stub.asInterface( in OverlayManagerImpl() 65 Map<String, List<android.content.om.OverlayInfo>> overlays = mOverlayManager 77 mOverlayManager.setEnabled(packageName, enable,
|
D | OverlayActivity.java | 54 private OverlayManager mOverlayManager; field in OverlayActivity.OverlayFragment 59 mOverlayManager = OverlayManager.getInstance(getContext()); in onCreatePreferences() 90 mOverlayManager.applyOverlay(overlayPackage, enableOverlay); in applyOverlay()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | OverlayCategoryPreferenceController.java | 58 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()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | OverlayCategoryPreferenceController.java | 58 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()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/theme/ |
D | ThemeOverlayManager.java | 44 private final OverlayManager mOverlayManager; field in ThemeOverlayManager 49 mOverlayManager = overlayManager; in ThemeOverlayManager() 75 return mOverlayManager.getOverlayInfosForTarget(mTargetPackageId, mUserHandle); in getOverlayInfo() 128 mOverlayManager.setEnabled(info.getPackageName(), enabled, mUserHandle); in setEnabledOverlayPackages()
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
D | SystemNavigationGestureSettings.java | 101 private IOverlayManager mOverlayManager; field in SystemNavigationGestureSettings 113 mOverlayManager = IOverlayManager.Stub.asInterface( in onAttach() 164 .show(this, getBackSensitivity(getContext(), mOverlayManager))); in bindPreferenceExtra() 213 setCurrentSystemNavigationMode(c, mOverlayManager, key); in setDefaultKey()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceControllerTest.java | 109 private OverlayManager mOverlayManager; field in AppButtonsPreferenceControllerTest 136 doReturn(mOverlayManager).when(mSettingsActivity). in setUp() 330 when(mOverlayManager.getOverlayInfo(anyString(), any())) in updateUninstallButton_isNonSystemRro_setButtonDisable() 342 when(mOverlayManager.getOverlayInfo(anyString(), any())) in updateUninstallButton_isNonSystemRro_setButtonEnable()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/gestures/ |
D | SystemNavigationPreferenceController.java | 53 protected final IOverlayManager mOverlayManager; field in SystemNavigationPreferenceController 59 mOverlayManager = overlayManager; in SystemNavigationPreferenceController()
|
D | SystemNavigationLegacyPreferenceController.java | 52 setNavBarInteractionMode(mOverlayManager, NAV_BAR_MODE_3BUTTON_OVERLAY); in onRadioButtonClicked()
|
D | SystemNavigationSwipeUpPreferenceController.java | 52 setNavBarInteractionMode(mOverlayManager, NAV_BAR_MODE_2BUTTON_OVERLAY); in onRadioButtonClicked()
|
D | SystemNavigationEdgeToEdgePreferenceController.java | 52 setNavBarInteractionMode(mOverlayManager, NAV_BAR_MODE_GESTURAL_OVERLAY); in onRadioButtonClicked()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 108 private final OverlayManager mOverlayManager; field in AppButtonsPreferenceController 142 mOverlayManager = activity.getSystemService(OverlayManager.class); in AppButtonsPreferenceController() 452 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(pkgName, user); in updateUninstallButton()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 108 private final OverlayManager mOverlayManager; field in AppButtonsPreferenceController 142 mOverlayManager = activity.getSystemService(OverlayManager.class); in AppButtonsPreferenceController() 451 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(pkgName, user); in updateUninstallButton()
|