Home
last modified time | relevance | path

Searched refs:OverlayInfo (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/display/
DThemePreferenceControllerTest.java31 import android.content.om.OverlayInfo;
72 OverlayInfo info1 = new OverlayInfo("com.android.Theme1", "android", "", in testUpdateState()
73 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_ENABLED, 0, 0, true); in testUpdateState()
74 OverlayInfo info2 = new OverlayInfo("com.android.Theme2", "android", "", in testUpdateState()
75 OverlayInfo.CATEGORY_THEME, "", 0, 0, 0, true); in testUpdateState()
108 OverlayInfo info1 = new OverlayInfo("com.android.Theme1", "android", "", in testUpdateState_withStaticOverlay()
109 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_ENABLED, 0, 0, true); in testUpdateState_withStaticOverlay()
110 OverlayInfo info2 = new OverlayInfo("com.android.Theme2", "android", "", in testUpdateState_withStaticOverlay()
111 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_ENABLED, 0, 0, true); in testUpdateState_withStaticOverlay()
144 private ArrayList<OverlayInfo> list(OverlayInfo... infos) { in list()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DThemePreferenceControllerTest.java33 import android.content.om.OverlayInfo;
91 .thenReturn(Arrays.asList(new OverlayInfo("", "", "", "", "", 0, 0, 0, false))); in testAvailable_false()
101 new OverlayInfo("", "", "", OverlayInfo.CATEGORY_THEME, "", 0, 0, 0, true), in testAvailable_true()
102 new OverlayInfo("", "", "", OverlayInfo.CATEGORY_THEME, "", 0, 0, 0, in testAvailable_true()
148 OverlayInfo info1 = new OverlayInfo("com.android.Theme1", "android", "", in getCurrentTheme_withEnabledState()
149 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_ENABLED, 0, 0, true); in getCurrentTheme_withEnabledState()
150 OverlayInfo info2 = new OverlayInfo("com.android.Theme2", "android", "", in getCurrentTheme_withEnabledState()
151 OverlayInfo.CATEGORY_THEME, "", 0, 0, 0, true); in getCurrentTheme_withEnabledState()
162 OverlayInfo info1 = new OverlayInfo("com.android.Theme1", "android", "", in testGetCurrentTheme_withoutEnabledState()
163 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_DISABLED, 0, 0, true); in testGetCurrentTheme_withoutEnabledState()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/drivemode/
DDriveModeThemeSwitcherTest.java25 import android.content.om.OverlayInfo;
58 private OverlayInfo mEcoRRO;
59 private OverlayInfo mSportRRO;
75 List<OverlayInfo> list = new ArrayList<>(); in initOverlayMock()
88 private OverlayInfo createOverlayInfo(String name, boolean enabled) { in createOverlayInfo()
91 return new OverlayInfo( in createOverlayInfo()
97 /* state = */ enabled ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED, in createOverlayInfo()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DOverlayManagerCompat.java19 import android.content.om.OverlayInfo;
40 private Map<Integer, Map<String, List<OverlayInfo>>> mOverlayByUser;
76 List<OverlayInfo> overlayInfos = getOverlayInfosForTarget(targetPackageName, in getEnabledPackageName()
78 for (OverlayInfo overlayInfo : overlayInfos) { in getEnabledPackageName()
103 for (OverlayInfo info in getOverlayPackagesForCategory()
118 Map<String, List<OverlayInfo>> overlaysByTarget = new HashMap<>(); in ensureCategoryMapForUser()
127 private List<OverlayInfo> getOverlayInfosForTarget(String targetPackageName, int userId) { in getOverlayInfosForTarget()
133 for (OverlayInfo overlayInfo : getOverlayInfosForTarget(target, UserHandle.myUserId())) { in addAllEnabledOverlaysForTarget()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DOverlayCategoryPreferenceControllerTest.java31 import android.content.om.OverlayInfo;
64 private static final OverlayInfo ONE_DISABLED = createFakeOverlay("overlay.one", false, 1);
65 private static final OverlayInfo ONE_ENABLED = createFakeOverlay("overlay.one", true, 1);
66 private static final OverlayInfo TWO_DISABLED = createFakeOverlay("overlay.two", false, 2);
67 private static final OverlayInfo TWO_ENABLED = createFakeOverlay("overlay.two", true, 2);
92 Object mockCurrentOverlays(OverlayInfo... overlays) { in mockCurrentOverlays()
97 return new ArrayList<OverlayInfo>(); in mockCurrentOverlays()
239 private static OverlayInfo createFakeOverlay(String pkg, boolean enabled, int priority) { in createFakeOverlay()
240 final int state = (enabled) ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED; in createFakeOverlay()
242 return new OverlayInfo(pkg /* packageName */, in createFakeOverlay()
/packages/apps/DocumentsUI/src/com/android/documentsui/theme/
DThemeOverlayManager.java20 import android.content.om.OverlayInfo;
69 private List<OverlayInfo> getOverlayInfo() { in getOverlayInfo()
85 public OverlayInfo getValidOverlay(@NonNull PackageManager pm) { in getValidOverlay()
86 for (OverlayInfo info : getOverlayInfo()) { in getValidOverlay()
116 private boolean setEnabledOverlayPackages(List<OverlayInfo> infos, boolean enabled) { in setEnabledOverlayPackages()
118 for (OverlayInfo info : infos) { in setEnabledOverlayPackages()
/packages/apps/Settings/src/com/android/settings/development/
DOverlayCategoryPreferenceController.java23 import android.content.om.OverlayInfo;
56 private static final Comparator<OverlayInfo> OVERLAY_INFO_COMPARATOR =
161 for (OverlayInfo overlayInfo : getOverlayInfos()) { in updateState()
181 private List<OverlayInfo> getOverlayInfos() { in getOverlayInfos()
182 final List<OverlayInfo> filteredInfos = new ArrayList<>(); in getOverlayInfos()
184 List<OverlayInfo> overlayInfos = mOverlayManager in getOverlayInfos()
186 for (OverlayInfo overlayInfo : overlayInfos) { in getOverlayInfos()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DThemeOverlayManagerTest.java30 import android.content.om.OverlayInfo;
209 private static OverlayInfo createOverlayInfo(String packageName, String targetPackageName, in createOverlayInfo()
211 return new OverlayInfo(packageName, targetPackageName, null, null, "", in createOverlayInfo()
212 enabled ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED, 0, 0, false); in createOverlayInfo()
/packages/apps/Settings/src/com/android/settings/display/
DThemePreferenceController.java20 import android.content.om.OverlayInfo;
125 private boolean isTheme(OverlayInfo oi) { in isTheme()
126 if (!OverlayInfo.CATEGORY_THEME.equals(oi.category)) { in isTheme()
153 List<OverlayInfo> infos; in getAvailableThemes()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/common/
DRroUtils.kt19 import android.content.om.OverlayInfo
21 fun OverlayInfo.isValid(): Boolean = state == 2 /*STATE_DISABLED*/ || state == 3 /*STATE_ENABLED*/ method
/packages/apps/Car/SystemUI/src/com/android/systemui/car/drivemode/
DDriveModeThemeSwitcher.java20 import android.content.om.OverlayInfo;
77 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(packageName, UserHandle.CURRENT); in isOverlayActive()
107 List<OverlayInfo> rroList = mOverlayManager.getOverlayInfosForTarget( in createDriveModeToRROPackageMap()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/drivemode/
DDriveModeSwitchController.java21 import android.content.om.OverlayInfo;
57 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(DRIVE_MODE_ON_RRO_PACKAGE, in isDriveModeActive()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DSystemNavigationGestureSettingsTest.java44 import android.content.om.OverlayInfo;
77 private OverlayInfo mOverlayInfoEnabled;
79 private OverlayInfo mOverlayInfoDisabled;
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceControllerTest.java45 import android.content.om.OverlayInfo;
96 private static final OverlayInfo OVERLAY_DISABLED = createFakeOverlay("overlay", false, 1);
97 private static final OverlayInfo OVERLAY_ENABLED = createFakeOverlay("overlay", true, 1);
626 private static OverlayInfo createFakeOverlay(String pkg, boolean enabled, int priority) { in createFakeOverlay()
627 final int state = (enabled) ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED; in createFakeOverlay()
628 return new OverlayInfo(pkg /* packageName */, in createFakeOverlay()
/packages/services/Car/service-builtin/src/com/android/car/
DUpdatablePackageContext.java27 import android.content.om.OverlayInfo;
193 List<OverlayInfo> installedOverlays = manager.getOverlayInfosForTarget(updatablePackageName, in getInstalledRROPackages()
201 OverlayInfo overlayInfo = installedOverlays.get(i); in getInstalledRROPackages()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/oemtokens/oemtokenstoggle/
DOemTokensToggleModule.kt20 import android.content.om.OverlayInfo in <lambda>()
58 val overlayInfo: List<OverlayInfo> = in <lambda>()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/unbundled/apprro/
DUnbundledRroPanelReducer.kt19 import android.content.om.OverlayInfo in <lambda>()
56 OverlayInfo.stateToString(overlayInfo.state) in <lambda>()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DPreBootReceiver.java27 import android.content.om.OverlayInfo;
64 final OverlayInfo info = new ThemeOverlayManager(om, in onReceive()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/list/
DRroListPanelReducer.kt19 import android.content.om.OverlayInfo in <lambda>()
168 OverlayInfo.stateToString(overlayInfo.state) in <lambda>()
/packages/services/Car/service/src/com/android/car/
DICarImpl.java48 import android.content.om.OverlayInfo;
865 List<OverlayInfo> installedOverlaysForSystem = manager.getOverlayInfosForTarget(packageName, in dumpRROs()
869 OverlayInfo overlayInfo = installedOverlaysForSystem.get(i); in dumpRROs()
876 List<OverlayInfo> installedOverlaysForCurrentUser = manager.getOverlayInfosForTarget( in dumpRROs()
879 OverlayInfo overlayInfo = installedOverlaysForCurrentUser.get(i); in dumpRROs()
/packages/apps/Settings/src/com/android/settings/gestures/
DSystemNavigationGestureSettings.java31 import android.content.om.OverlayInfo;
287 OverlayInfo info = null; in migrateOverlaySensitivityToSettings()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java32 import android.content.om.OverlayInfo;
467 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(pkgName, user); in updateUninstallButton()