/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/display/ |
D | ThemePreferenceControllerTest.java | 31 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/ |
D | ThemePreferenceControllerTest.java | 31 import android.content.om.OverlayInfo; 87 .thenReturn(Arrays.asList(new OverlayInfo("", "", "", "", "", 0, 0, 0, false))); in testAvailable_false() 97 new OverlayInfo("", "", "", OverlayInfo.CATEGORY_THEME, "", 0, 0, 0, true), in testAvailable_true() 98 new OverlayInfo("", "", "", OverlayInfo.CATEGORY_THEME, "", 0, 0, 0, in testAvailable_true() 144 OverlayInfo info1 = new OverlayInfo("com.android.Theme1", "android", "", in getCurrentTheme_withEnabledState() 145 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_ENABLED, 0, 0, true); in getCurrentTheme_withEnabledState() 146 OverlayInfo info2 = new OverlayInfo("com.android.Theme2", "android", "", in getCurrentTheme_withEnabledState() 147 OverlayInfo.CATEGORY_THEME, "", 0, 0, 0, true); in getCurrentTheme_withEnabledState() 158 OverlayInfo info1 = new OverlayInfo("com.android.Theme1", "android", "", in testGetCurrentTheme_withoutEnabledState() 159 OverlayInfo.CATEGORY_THEME, "", OverlayInfo.STATE_DISABLED, 0, 0, true); in testGetCurrentTheme_withoutEnabledState() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | OverlayCategoryPreferenceControllerTest.java | 30 import android.content.om.OverlayInfo; 55 private static final OverlayInfo ONE_DISABLED = createFakeOverlay("overlay.one", false, 1); 56 private static final OverlayInfo ONE_ENABLED = createFakeOverlay("overlay.one", true, 1); 57 private static final OverlayInfo TWO_DISABLED = createFakeOverlay("overlay.two", false, 2); 58 private static final OverlayInfo TWO_ENABLED = createFakeOverlay("overlay.two", true, 2); 79 Object mockCurrentOverlays(OverlayInfo... overlays) { in mockCurrentOverlays() 84 return new ArrayList<OverlayInfo>(); in mockCurrentOverlays() 219 private static OverlayInfo createFakeOverlay(String pkg, boolean enabled, int priority) { in createFakeOverlay() 220 final int state = (enabled) ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED; in createFakeOverlay() 222 return new OverlayInfo(pkg /* packageName */, in createFakeOverlay()
|
/packages/apps/ThemePicker/src/com/android/customization/model/theme/ |
D | OverlayManagerCompat.java | 19 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()
|
D | OverlayThemeExtractor.java | 9 import android.content.om.OverlayInfo; 40 private final Map<String, OverlayInfo> mOverlayInfos = new HashMap<>(); 48 Consumer<OverlayInfo> addToMap = overlayInfo -> mOverlayInfos.put( in OverlayThemeExtractor() 286 OverlayInfo info = mOverlayInfos.get(packageName); in getOverlayCategory()
|
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/overlays/ |
D | OverlayManagerImpl.java | 45 private OverlayInfo convertOverlayInfo(android.content.om.OverlayInfo info) { in convertOverlayInfo() 46 return new OverlayInfo() { in convertOverlayInfo() 55 return info.state == android.content.om.OverlayInfo.STATE_ENABLED; in convertOverlayInfo() 62 public Map<String, List<OverlayManager.OverlayInfo>> getOverlays() throws RemoteException { 63 Map<String, List<android.content.om.OverlayInfo>> overlays =
|
D | OverlayManager.java | 38 interface OverlayInfo { interface 50 Map<String, List<OverlayInfo>> getOverlays() throws RemoteException; in getOverlays() 63 public Map<String, List<OverlayInfo>> getOverlays() throws RemoteException { in getOverlays()
|
D | OverlayActivity.java | 62 Map<String, List<OverlayManager.OverlayInfo>> overlays = in onCreatePreferences() 66 for (OverlayManager.OverlayInfo overlayPackage : overlays.get(targetPackage)) { in onCreatePreferences()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/theme/ |
D | ThemeOverlayManager.java | 20 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/ |
D | OverlayCategoryPreferenceController.java | 23 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/ |
D | ThemeOverlayManagerTest.java | 30 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/ |
D | ThemePreferenceController.java | 20 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/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceControllerTest.java | 43 import android.content.om.OverlayInfo; 94 private static final OverlayInfo OVERLAY_DISABLED = createFakeOverlay("overlay", false, 1); 95 private static final OverlayInfo OVERLAY_ENABLED = createFakeOverlay("overlay", true, 1); 596 private static OverlayInfo createFakeOverlay(String pkg, boolean enabled, int priority) { in createFakeOverlay() 597 final int state = (enabled) ? OverlayInfo.STATE_ENABLED : OverlayInfo.STATE_DISABLED; in createFakeOverlay() 598 return new OverlayInfo(pkg /* packageName */, in createFakeOverlay()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | SystemNavigationGestureSettingsTest.java | 43 import android.content.om.OverlayInfo; 70 private OverlayInfo mOverlayInfoEnabled; 72 private OverlayInfo mOverlayInfoDisabled;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | PreBootReceiver.java | 26 import android.content.om.OverlayInfo; 62 final OverlayInfo info = new ThemeOverlayManager(om, in onReceive()
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
D | SystemNavigationGestureSettings.java | 29 import android.content.om.OverlayInfo; 186 OverlayInfo info = null; in migrateOverlaySensitivityToSettings()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceController.java | 32 import android.content.om.OverlayInfo; 474 OverlayInfo overlayInfo = mOverlayManager.getOverlayInfo(pkgName, user); in updateUninstallButton()
|