Home
last modified time | relevance | path

Searched refs:overlaysJson (Results 1 – 2 of 2) sorted by relevance

/packages/apps/ThemePicker/src/com/android/customization/model/color/
DColorCustomizationManager.java153 JSONObject overlaysJson = null; in applyOverlays() local
155 overlaysJson = new JSONObject(currentStoredOverlays); in applyOverlays()
158 overlaysJson.remove(setting); in applyOverlays()
162 overlaysJson.put(key, colorJson.get(key)); in applyOverlays()
164 overlaysJson.put(OVERLAY_COLOR_SOURCE, colorOption.getSource()); in applyOverlays()
165 overlaysJson.put(OVERLAY_COLOR_INDEX, String.valueOf(colorOption.getIndex())); in applyOverlays()
166 overlaysJson.put(OVERLAY_THEME_STYLE, in applyOverlays()
174 overlaysJson.put(OVERLAY_COLOR_BOTH, isForBoth ? "1" : "0"); in applyOverlays()
176 overlaysJson.remove(OVERLAY_COLOR_BOTH); in applyOverlays()
181 boolean allApplied = overlaysJson != null && Settings.Secure.putString( in applyOverlays()
[all …]
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/color/
DColorCustomizationManagerTest.kt113 val overlaysJson = JSONObject(manager.storedOverlays) in testApplyPresetColorOption() constant
115 assertThat(overlaysJson.getString(OVERLAY_COLOR_INDEX)).isEqualTo(value) in testApplyPresetColorOption()
134 val overlaysJson = JSONObject(manager.storedOverlays) in testApplyWallpaperColorOption() constant
135 assertThat(overlaysJson.getString(OVERLAY_COLOR_INDEX)).isEqualTo(value) in testApplyWallpaperColorOption()
177 val overlaysJson = JSONObject(manager.storedOverlays) in testApply_colorSeedFromWallpaperBoth_shouldReturnBothValue() constant
178 assertThat(overlaysJson.getString(OVERLAY_COLOR_BOTH)).isEqualTo("1") in testApply_colorSeedFromWallpaperBoth_shouldReturnBothValue()
195 val overlaysJson = JSONObject(manager.storedOverlays) in testApply_colorSeedFromWallpaperDifferent_shouldReturnNonBothValue() constant
196 assertThat(overlaysJson.getString(OVERLAY_COLOR_BOTH)).isEqualTo("0") in testApply_colorSeedFromWallpaperDifferent_shouldReturnNonBothValue()