/packages/apps/ThemePicker/src/com/android/customization/picker/theme/ |
D | ThemeFragment.java | 42 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 …]
|
D | ThemeInfoView.java | 28 import com.android.customization.model.theme.ThemeBundle; 57 public void populateThemeInfo(@NonNull ThemeBundle selectedTheme) { in populateThemeInfo() 58 ThemeBundle.PreviewInfo previewInfo = selectedTheme.getPreviewInfo(); in populateThemeInfo()
|
D | ThemeFullPreviewFragment.java | 37 import com.android.customization.model.theme.ThemeBundle; 62 private ThemeBundle mThemeBundle; 87 ThemeBundle.Builder builder = themeProvider.parseThemeBundle( in onCreate()
|
D | CustomThemeActivity.java | 36 import com.android.customization.model.theme.ThemeBundle; 202 ThemeBundle equivalent = (originalTheme.isEquivalent(themeToApply)) in onNextOrApply() 226 private void applyTheme(ThemeBundle themeToApply) { in applyTheme()
|
D | ThemeOptionPreviewer.java | 48 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;
|
D | CustomThemeNameFragment.java | 30 import com.android.customization.model.theme.ThemeBundle.PreviewInfo;
|
/packages/apps/ThemePicker/src/com/android/customization/model/theme/ |
D | DefaultThemeProvider.java | 42 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 …]
|
D | ThemeManager.java | 44 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()
|
D | ThemeBundleProvider.java | 40 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()
|
D | ThemeBundle.java | 47 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()
|
D | OverlayThemeExtractor.java | 25 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/ |
D | ThemeManagerTest.java | 102 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/ |
D | CustomTheme.java | 25 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 {
|
D | CustomThemeManager.java | 26 import com.android.customization.model.theme.ThemeBundle.PreviewInfo;
|
D | ShapeOptionsProvider.java | 43 import com.android.customization.model.theme.ThemeBundle.PreviewInfo.ShapeAppIcon;
|
D | ThemeComponentOption.java | 63 import com.android.customization.model.theme.ThemeBundle.PreviewInfo.ShapeAppIcon;
|
/packages/apps/ThemePicker/src/com/android/customization/module/ |
D | ThemesUserEventLogger.java | 20 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()
|
D | StatsLogUserEventLogger.java | 48 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/ |
D | TestThemesUserEventLogger.java | 5 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/ |
D | Android.bp | 35 "src/com/android/customization/model/theme/ThemeBundle.java",
|