Home
last modified time | relevance | path

Searched refs:ThemeBundle (Results 1 – 20 of 20) sorted by relevance

/packages/apps/ThemePicker/src/com/android/customization/picker/theme/
DThemeFragment.java42 import com.android.customization.model.theme.ThemeBundle;
83 private OptionSelectorController<ThemeBundle> mOptionsController;
86 private ThemeBundle mSelectedTheme;
258 mThemeManager.fetchOptions(new OptionsFetchedListener<ThemeBundle>() { in setUpOptions()
260 public void onOptionsLoaded(List<ThemeBundle> options) { in setUpOptions()
268 ThemeBundle previouslySelectedTheme = null; in setUpOptions()
269 ThemeBundle activeTheme = null; in setUpOptions()
270 for (ThemeBundle theme : options) { in setUpOptions()
314 for (ThemeBundle theme : options) { in reloadOptions()
330 private ThemeBundle findFirstSystemThemeBundle(List<ThemeBundle> options) { in findFirstSystemThemeBundle()
[all …]
DThemeInfoView.java28 import com.android.customization.model.theme.ThemeBundle;
57 public void populateThemeInfo(@NonNull ThemeBundle selectedTheme) { in populateThemeInfo()
58 ThemeBundle.PreviewInfo previewInfo = selectedTheme.getPreviewInfo(); in populateThemeInfo()
DThemeFullPreviewFragment.java37 import com.android.customization.model.theme.ThemeBundle;
62 private ThemeBundle mThemeBundle;
87 ThemeBundle.Builder builder = themeProvider.parseThemeBundle( in onCreate()
DCustomThemeActivity.java36 import com.android.customization.model.theme.ThemeBundle;
202 ThemeBundle equivalent = (originalTheme.isEquivalent(themeToApply)) in onNextOrApply()
226 private void applyTheme(ThemeBundle themeToApply) { in applyTheme()
DThemeOptionPreviewer.java48 import com.android.customization.model.theme.ThemeBundle;
49 import com.android.customization.model.theme.ThemeBundle.PreviewInfo;
50 import com.android.customization.model.theme.ThemeBundle.PreviewInfo.ShapeAppIcon;
DCustomThemeNameFragment.java30 import com.android.customization.model.theme.ThemeBundle.PreviewInfo;
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DDefaultThemeProvider.java42 import com.android.customization.model.theme.ThemeBundle.Builder;
43 import com.android.customization.model.theme.ThemeBundle.PreviewInfo.ShapeAppIcon;
85 private List<ThemeBundle> mThemes;
95 public void fetch(OptionsFetchedListener<ThemeBundle> callback, boolean reload) { in fetch()
127 ThemeBundle.Builder builder = new Builder(); in loadAll()
181 ThemeBundle.Builder builder = new Builder().asDefault(); in addDefaultTheme()
282 private void addThemeBundleToArray(JSONArray themesArray, ThemeBundle themeBundle) { in addThemeBundleToArray()
353 public ThemeBundle.Builder parseThemeBundle(String serializedTheme) throws JSONException { in parseThemeBundle()
356 ThemeBundle.Builder builder = new ThemeBundle.Builder(); in parseThemeBundle()
379 private void convertJsonToBuilder(JSONObject theme, ThemeBundle.Builder builder) in convertJsonToBuilder()
[all …]
DThemeManager.java44 public class ThemeManager implements CustomizationManager<ThemeBundle> {
81 public void apply(ThemeBundle theme, Callback callback) { in apply()
85 private void applyOverlays(ThemeBundle theme, Callback callback) { in applyOverlays()
105 public void fetchOptions(OptionsFetchedListener<ThemeBundle> callback, boolean reload) { in fetchOptions()
133 public ThemeBundle findThemeByPackages(ThemeBundle other) { in findThemeByPackages()
DThemeBundleProvider.java40 void fetch(OptionsFetchedListener<ThemeBundle> callback, boolean reload); in fetch()
46 @Nullable ThemeBundle.Builder parseThemeBundle(String serializedTheme) throws JSONException; in parseThemeBundle()
50 ThemeBundle findEquivalent(ThemeBundle other); in findEquivalent()
DThemeBundle.java47 import com.android.customization.model.theme.ThemeBundle.PreviewInfo.ShapeAppIcon;
73 public class ThemeBundle implements CustomizationOption<ThemeBundle> { class
87 protected ThemeBundle(String title, Map<String, String> overlayPackages, in ThemeBundle() method in ThemeBundle
123 public boolean isActive(CustomizationManager<ThemeBundle> manager) { in isActive()
144 public boolean isEquivalent(ThemeBundle other) { in isEquivalent()
328 public ThemeBundle build(Context context) { in build()
329 return new ThemeBundle(mTitle, mPackages, mIsDefault, createPreviewInfo(context)); in build()
DOverlayThemeExtractor.java25 import com.android.customization.model.theme.ThemeBundle.Builder;
26 import com.android.customization.model.theme.ThemeBundle.PreviewInfo.ShapeAppIcon;
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/model/theme/
DThemeManagerTest.java102 ThemeBundle defaultTheme = new ThemeBundle.Builder().asDefault().build(mActivity); in apply_WithDefaultTheme_StoresEmptyJsonString()
113 ThemeBundle theme = getOverlayTheme(); in apply_WithOverlayTheme_StoresSerializedPackagesWithTimestamp()
184 ThemeBundle theme = getOverlayTheme(); in getStoredOverlays_GetsFromSettingsSecureWithExpectedName()
193 private ThemeBundle getOverlayTheme() { in getOverlayTheme()
205 return new ThemeBundle.Builder() in getOverlayTheme()
211 private void applyTheme(ThemeBundle theme) { in applyTheme()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DCustomTheme.java25 import com.android.customization.model.theme.ThemeBundle;
31 public class CustomTheme extends ThemeBundle {
79 public boolean isActive(CustomizationManager<ThemeBundle> manager) { in isActive()
84 public boolean isEquivalent(ThemeBundle other) { in isEquivalent()
92 public static class Builder extends ThemeBundle.Builder {
DCustomThemeManager.java26 import com.android.customization.model.theme.ThemeBundle.PreviewInfo;
DShapeOptionsProvider.java43 import com.android.customization.model.theme.ThemeBundle.PreviewInfo.ShapeAppIcon;
DThemeComponentOption.java63 import com.android.customization.model.theme.ThemeBundle.PreviewInfo.ShapeAppIcon;
/packages/apps/ThemePicker/src/com/android/customization/module/
DThemesUserEventLogger.java20 import com.android.customization.model.theme.ThemeBundle;
28 void logThemeSelected(ThemeBundle theme, boolean isCustomTheme); in logThemeSelected()
30 void logThemeApplied(ThemeBundle theme, boolean isCustomTheme); in logThemeApplied()
DStatsLogUserEventLogger.java48 import com.android.customization.model.theme.ThemeBundle;
128 private String getThemePackage(ThemeBundle theme, String category) { in getThemePackage()
134 public void logThemeSelected(ThemeBundle theme, boolean isCustomTheme) { in logThemeSelected()
143 public void logThemeApplied(ThemeBundle theme, boolean isCustomTheme) { in logThemeApplied()
/packages/apps/ThemePicker/tests/src/com/android/customization/testing/
DTestThemesUserEventLogger.java5 import com.android.customization.model.theme.ThemeBundle;
15 public void logThemeSelected(ThemeBundle theme, boolean isCustomTheme) { in logThemeSelected()
20 public void logThemeApplied(ThemeBundle theme, boolean isCustomTheme) { in logThemeApplied()
/packages/apps/ThemePicker/
DAndroid.bp35 "src/com/android/customization/model/theme/ThemeBundle.java",