Searched refs:overlaysJson (Results 1 – 2 of 2) sorted by relevance
153 JSONObject overlaysJson = null; in applyOverlays() local155 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 …]
113 val overlaysJson = JSONObject(manager.storedOverlays) in testApplyPresetColorOption() constant115 assertThat(overlaysJson.getString(OVERLAY_COLOR_INDEX)).isEqualTo(value) in testApplyPresetColorOption()134 val overlaysJson = JSONObject(manager.storedOverlays) in testApplyWallpaperColorOption() constant135 assertThat(overlaysJson.getString(OVERLAY_COLOR_INDEX)).isEqualTo(value) in testApplyWallpaperColorOption()177 val overlaysJson = JSONObject(manager.storedOverlays) in testApply_colorSeedFromWallpaperBoth_shouldReturnBothValue() constant178 assertThat(overlaysJson.getString(OVERLAY_COLOR_BOTH)).isEqualTo("1") in testApply_colorSeedFromWallpaperBoth_shouldReturnBothValue()195 val overlaysJson = JSONObject(manager.storedOverlays) in testApply_colorSeedFromWallpaperDifferent_shouldReturnNonBothValue() constant196 assertThat(overlaysJson.getString(OVERLAY_COLOR_BOTH)).isEqualTo("0") in testApply_colorSeedFromWallpaperDifferent_shouldReturnNonBothValue()