Home
last modified time | relevance | path

Searched refs:theme (Results 1 – 25 of 123) sorted by relevance

12345

/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DThemeManager.java16 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 …]
DDefaultThemeProvider.java16 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 …]
DThemeBundleProvider.java16 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/
DKeyboardTheme.java106 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/
DThemeFragment.java16 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 …]
DCustomThemeActivity.java16 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 …]
DCustomThemeComponentFragment.java16 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;
DCustomThemeStepFragment.java1 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/
DStatsLogUserEventLogger.java26 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/
DSetupWizardUtils.java35 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/
DSetupWizardUtilsTest.java38 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/
DREADME.md4 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/
DSetupWizardUtils.java29 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/
DThemeUtils.java29 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/
DCallTypeIconsView.java30 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/
DThemeManagerTest.java16 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/
DParticleCollection.java80 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/
DParticleCollection.java80 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/
Dpackages.mk39 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/
DCustomThemeManager.java16 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/
DSetupGlifLayoutActivity.java53 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/
DThemeUiTestBase.java81 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/
DEditTextVariations.java186 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/
DKeyboardThemeTests.java221 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/
DLeanbackPickerDialogFragment.java111 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()

12345