/packages/apps/ThemePicker/src/com/android/customization/model/theme/ |
D | ThemeManager.java | 16 package com.android.customization.model.theme; 35 import com.android.customization.model.theme.custom.CustomTheme; 90 public void apply(ThemeBundle theme, Callback callback) { in apply() argument 92 if (theme.shouldUseThemeWallpaper()) { in apply() 96 theme, in apply() 98 createSetWallpaperCallback(theme, callback)), in apply() 99 theme.getWallpaperInfo() instanceof LiveWallpaperInfo); in apply() 102 applyOverlays(theme, callback); in apply() 106 private SetWallpaperCallback createSetWallpaperCallback(ThemeBundle theme, Callback callback) { in createSetWallpaperCallback() argument 110 applyWallpaperOptions(theme); in createSetWallpaperCallback() [all …]
|
D | DefaultThemeProvider.java | 16 package com.android.customization.model.theme; 48 import com.android.customization.model.theme.ThemeBundle.Builder; 49 import com.android.customization.model.theme.custom.CustomTheme; 327 public void storeCustomTheme(CustomTheme theme) { in storeCustomTheme() argument 330 addCustomThemeAndStore(theme); in storeCustomTheme() 333 addCustomThemeAndStore(theme); in storeCustomTheme() 337 private void addCustomThemeAndStore(CustomTheme theme) { in addCustomThemeAndStore() argument 338 if (!mThemes.contains(theme)) { in addCustomThemeAndStore() 339 mThemes.add(theme); in addCustomThemeAndStore() 341 mThemes.replaceAll(t -> theme.equals(t) ? theme : t); in addCustomThemeAndStore() [all …]
|
D | ThemeBundleProvider.java | 16 package com.android.customization.model.theme; 21 import com.android.customization.model.theme.custom.CustomTheme; 42 void storeCustomTheme(CustomTheme theme); in storeCustomTheme() argument 44 void removeCustomTheme(CustomTheme theme); in removeCustomTheme() argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardTheme.java | 106 for (final KeyboardTheme theme : availableThemeIds) { in searchKeyboardThemeById() 107 if (theme.mThemeId == themeId) { in searchKeyboardThemeById() 108 return theme; in searchKeyboardThemeById() 122 final KeyboardTheme theme = searchKeyboardThemeById(themeId, in getDefaultKeyboardTheme() local 124 if (theme != null) { in getDefaultKeyboardTheme() 125 return theme; in getDefaultKeyboardTheme() 137 for (final KeyboardTheme theme : availableThemeArray) { in getDefaultKeyboardTheme() 138 if (sdkVersion >= theme.mMinApiVersion) { in getDefaultKeyboardTheme() 139 return theme; in getDefaultKeyboardTheme() 146 final KeyboardTheme theme = searchKeyboardThemeById(themeId, KEYBOARD_THEMES); in getKeyboardThemeName() local [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/picker/theme/ |
D | ThemeFragment.java | 16 package com.android.customization.picker.theme; 51 import com.android.customization.model.theme.ThemeBundle; 52 import com.android.customization.model.theme.ThemeBundle.PreviewInfo; 53 import com.android.customization.model.theme.ThemeManager; 54 import com.android.customization.model.theme.custom.CustomTheme; 58 import com.android.customization.picker.theme.ThemePreviewPage.ThemeCoverPage; 59 import com.android.customization.picker.theme.ThemePreviewPage.TimeContainer; 286 for (ThemeBundle theme : options) { in setUpOptions() 288 && previouslySelected.equals(theme.getSerializedPackages())) { in setUpOptions() 289 mSelectedTheme = theme; in setUpOptions() [all …]
|
D | CustomThemeActivity.java | 16 package com.android.customization.picker.theme; 34 import com.android.customization.model.theme.DefaultThemeProvider; 35 import com.android.customization.model.theme.OverlayManagerCompat; 36 import com.android.customization.model.theme.ThemeBundle; 37 import com.android.customization.model.theme.ThemeBundleProvider; 38 import com.android.customization.model.theme.ThemeManager; 39 import com.android.customization.model.theme.custom.ColorOptionsProvider; 40 import com.android.customization.model.theme.custom.CustomTheme; 41 import com.android.customization.model.theme.custom.CustomThemeManager; 42 import com.android.customization.model.theme.custom.FontOptionsProvider; [all …]
|
D | CustomThemeComponentFragment.java | 16 package com.android.customization.picker.theme; 33 import com.android.customization.model.theme.custom.CustomThemeManager; 34 import com.android.customization.model.theme.custom.ThemeComponentOption; 35 import com.android.customization.model.theme.custom.ThemeComponentOptionProvider;
|
D | CustomThemeStepFragment.java | 1 package com.android.customization.picker.theme; 17 import com.android.customization.model.theme.custom.CustomThemeManager; 18 import com.android.customization.model.theme.custom.ThemeComponentOption; 19 import com.android.customization.model.theme.custom.ThemeComponentOptionProvider;
|
/packages/apps/ThemePicker/src/com/android/customization/module/ |
D | StatsLogUserEventLogger.java | 26 import com.android.customization.model.theme.ThemeBundle; 82 private String getThemePackage(ThemeBundle theme, String category) { in getThemePackage() argument 83 Map<String, String> packages = theme.getPackagesByCategory(); in getThemePackage() 88 public void logThemeSelected(ThemeBundle theme, boolean isCustomTheme) { in logThemeSelected() argument 90 Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_COLOR)), in logThemeSelected() 91 Objects.hashCode(getThemePackage(theme,OVERLAY_CATEGORY_FONT)), in logThemeSelected() 92 Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_SHAPE)), in logThemeSelected() 97 public void logThemeApplied(ThemeBundle theme, boolean isCustomTheme) { in logThemeApplied() argument 99 Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_COLOR)), in logThemeApplied() 100 Objects.hashCode(getThemePackage(theme,OVERLAY_CATEGORY_FONT)), in logThemeApplied() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | SetupWizardUtils.java | 35 String theme = intent.getStringExtra(WizardManagerHelper.EXTRA_THEME); in getThemeString() local 36 if (theme == null) { in getThemeString() 37 theme = SetupWizardProperties.theme().orElse(""); in getThemeString() 39 return theme; in getThemeString() 43 String theme = getThemeString(intent); in getTheme() local 46 if (theme != null) { in getTheme() 48 switch (theme) { in getTheme() 63 switch (theme) { in getTheme()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | SetupWizardUtilsTest.java | 38 final String theme = "TEST_THEME"; in testCopySetupExtras() local 39 fromIntent.putExtra(WizardManagerHelper.EXTRA_THEME, theme); in testCopySetupExtras() 44 assertThat(theme).isEqualTo(toIntent.getStringExtra(WizardManagerHelper.EXTRA_THEME)); in testCopySetupExtras() 54 final String theme = "TEST_THEME"; in testCopyLifecycleExtra() local 55 fromIntent.putExtra(WizardManagerHelper.EXTRA_THEME, theme); in testCopyLifecycleExtra() 70 SetupWizardProperties.theme(ThemeHelper.THEME_GLIF); in testGetTheme_withIntentExtra_shouldReturnExtraTheme() 79 SetupWizardProperties.theme(ThemeHelper.THEME_GLIF_V2_LIGHT); in testGetTheme_withEmptyIntent_shouldReturnSystemProperty() 87 SetupWizardProperties.theme(ThemeHelper.THEME_GLIF_V3_LIGHT); in testGetTheme_glifV3Light_shouldReturnThemeResource() 97 SetupWizardProperties.theme(ThemeHelper.THEME_GLIF_V3_LIGHT); in testGetTheme_nonSuw_shouldReturnDayNightTheme()
|
/packages/apps/Dialer/java/com/android/dialer/theme/ |
D | README.md | 4 inherit from the styles outlined in theme/base. If an Activity doesn\'t specify 5 a style for it's theme, it automatically inherits one from the Application. And 8 ## theme/base 47 example, Dialer.ThemeBase.NoActionBar.Dark is used for a dark mode theme. If 48 you create a custom theme for an activity, be sure your customization will 49 work for all themes. See dialer/dialpadview/theme for an example. 51 ## theme/common 56 * Colors that can't be theme'd (there aren't many of those, so you probably 63 ## theme/private 65 This package is only visible to theme/base. Things you should never do: [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | SetupWizardUtils.java | 29 String theme = intent.getStringExtra(WizardManagerHelper.EXTRA_THEME); in getTheme() local 30 if (theme == null) { in getTheme() 31 theme = SetupWizardProperties.theme().orElse(""); in getTheme() 35 if (theme != null) { in getTheme() 37 switch (theme) { in getTheme() 52 switch (theme) { in getTheme()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | ThemeUtils.java | 29 public static int getAttribute(Theme theme, int attrId) { in getAttribute() argument 31 theme.resolveAttribute(attrId, outValue, true); in getAttribute() 38 public static int getSelectableItemBackground(Theme theme) { in getSelectableItemBackground() argument 39 return getAttribute(theme, android.R.attr.selectableItemBackground); in getSelectableItemBackground() 45 public static int getActivatedBackground(Theme theme) { in getActivatedBackground() argument 46 return getAttribute(theme, android.R.attr.activatedBackgroundIndicator); in getActivatedBackground()
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
D | CallTypeIconsView.java | 30 import com.android.dialer.theme.base.Theme; 31 import com.android.dialer.theme.base.ThemeComponent; 308 Theme theme = ThemeComponent.get(context).theme(); in Resources() local 312 voicemail.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources() 317 blocked.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources() 322 videoCall.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources() 327 hdCall.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources() 332 wifiCall.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources() 337 assistedDialedCall.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources() 342 rttCall.setColorFilter(theme.getColorIcon(), PorterDuff.Mode.MULTIPLY); in Resources()
|
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/model/theme/ |
D | ThemeManagerTest.java | 16 package com.android.customization.model.theme; 123 ThemeBundle theme = new ThemeBundle.Builder() in testApply_NonDefault() local 128 applyTheme(theme); in testApply_NonDefault() 131 theme.getSerializedPackages(), in testApply_NonDefault() 135 private void applyTheme(ThemeBundle theme) { in applyTheme() argument 136 mThemeManager.apply(theme, new Callback() { in applyTheme()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/ |
D | ParticleCollection.java | 80 final Resources.Theme theme = context.getTheme(); in ParticleCollection() local 82 colors.add(resources.getColor(R.color.face_anim_particle_color_1, theme)); in ParticleCollection() 83 colors.add(resources.getColor(R.color.face_anim_particle_color_2, theme)); in ParticleCollection() 84 colors.add(resources.getColor(R.color.face_anim_particle_color_3, theme)); in ParticleCollection() 85 colors.add(resources.getColor(R.color.face_anim_particle_color_4, theme)); in ParticleCollection()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | ParticleCollection.java | 80 final Resources.Theme theme = context.getTheme(); in ParticleCollection() local 82 colors.add(resources.getColor(R.color.face_anim_particle_color_1, theme)); in ParticleCollection() 83 colors.add(resources.getColor(R.color.face_anim_particle_color_2, theme)); in ParticleCollection() 84 colors.add(resources.getColor(R.color.face_anim_particle_color_3, theme)); in ParticleCollection() 85 colors.add(resources.getColor(R.color.face_anim_particle_color_4, theme)); in ParticleCollection()
|
/packages/apps/Dialer/ |
D | packages.mk | 39 com.android.dialer.dialpadview.theme \ 73 com.android.dialer.theme \ 74 com.android.dialer.theme.base \ 75 com.android.dialer.theme.base.impl \ 76 com.android.dialer.theme.common \ 77 com.android.dialer.theme.hidden \
|
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/ |
D | CustomThemeManager.java | 16 package com.android.customization.model.theme.custom; 23 import com.android.customization.model.theme.ThemeBundle.PreviewInfo; 24 import com.android.customization.model.theme.ThemeManager; 25 import com.android.customization.model.theme.custom.CustomTheme.Builder;
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | SetupGlifLayoutActivity.java | 53 protected void onApplyThemeResource(Theme theme, int resid, boolean first) { in onApplyThemeResource() argument 54 theme.applyStyle(R.style.SetupWizardPartnerResource, true); in onApplyThemeResource() 55 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource() 85 .resolve(SetupWizardProperties.theme().orElse(""))); in setDefaultTheme()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ui/ |
D | ThemeUiTestBase.java | 81 final Resources.Theme theme = context.getResources().newTheme(); in getThemeByUiMode() local 82 theme.applyStyle(R.style.DocumentsTheme, true); in getThemeByUiMode() 83 theme.applyStyle(R.style.DocumentsDefaultTheme, false); in getThemeByUiMode() 84 return theme; in getThemeByUiMode()
|
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/ |
D | EditTextVariations.java | 186 for (final ThemeItem theme : ThemeItem.THEME_LIST) { in onOptionsItemSelected() 187 items.add(theme.name); in onOptionsItemSelected() 296 private void saveTheme(final ThemeItem theme) { in saveTheme() argument 297 saveStringPreference(PREF_THEME, theme.name); in saveTheme() 306 for (final ThemeItem theme : ThemeItem.THEME_LIST) { in loadTheme() 307 if (themeName.equals(theme.name)) { in loadTheme() 308 setTheme(theme.id); in loadTheme()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | KeyboardThemeTests.java | 221 final KeyboardTheme theme = KeyboardTheme.getKeyboardTheme( in assertUpgradeKeyboardToLxxOn() local 224 assertNotNull(theme); in assertUpgradeKeyboardToLxxOn() 225 assertEquals(expectedThemeId, theme.mThemeId); in assertUpgradeKeyboardToLxxOn() 384 final KeyboardTheme theme = array[index]; in assertSortedKeyboardThemeArray() local 387 + theme.mThemeName + ": minApiVersion=" + theme.mMinApiVersion, in assertSortedKeyboardThemeArray() 388 theme.mMinApiVersion >= nextTheme.mMinApiVersion); in assertSortedKeyboardThemeArray()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | LeanbackPickerDialogFragment.java | 111 int theme = tv.resourceId; in onCreateView() local 112 if (theme == 0) { in onCreateView() 114 theme = R.style.PreferenceThemeOverlayLeanback; in onCreateView() 116 Context styledContext = new ContextThemeWrapper(getActivity(), theme); in onCreateView()
|