Home
last modified time | relevance | path

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

12345

/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/model/theme/
DDefaultThemeProvider.java16 package com.android.customization.model.theme;
42 import com.android.customization.model.theme.ThemeBundle.Builder;
43 import com.android.customization.model.theme.ThemeBundle.PreviewInfo.ShapeAppIcon;
44 import com.android.customization.model.theme.custom.CustomTheme;
258 public void storeCustomTheme(CustomTheme theme) { in storeCustomTheme() argument
261 addCustomThemeAndStore(theme); in storeCustomTheme()
264 addCustomThemeAndStore(theme); in storeCustomTheme()
268 private void addCustomThemeAndStore(CustomTheme theme) { in addCustomThemeAndStore() argument
269 if (!mThemes.contains(theme)) { in addCustomThemeAndStore()
270 mThemes.add(theme); in addCustomThemeAndStore()
[all …]
DThemeManager.java16 package com.android.customization.model.theme;
35 import com.android.customization.model.theme.custom.CustomTheme;
81 public void apply(ThemeBundle theme, Callback callback) { in apply() argument
82 applyOverlays(theme, callback); in apply()
85 private void applyOverlays(ThemeBundle theme, Callback callback) { in applyOverlays() argument
87 ResourceConstants.THEME_SETTING, theme.getSerializedPackagesWithTimestamp()); in applyOverlays()
88 if (theme instanceof CustomTheme) { in applyOverlays()
89 storeCustomTheme((CustomTheme) theme); in applyOverlays()
93 mEventLogger.logThemeApplied(theme, theme instanceof CustomTheme); in applyOverlays()
100 private void storeCustomTheme(CustomTheme theme) { in storeCustomTheme() argument
[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/apps/ThemePicker/robolectric_tests/src/com/android/customization/model/theme/
DThemeManagerTest.java16 package com.android.customization.model.theme;
45 import com.android.customization.model.theme.custom.CustomTheme;
113 ThemeBundle theme = getOverlayTheme(); in apply_WithOverlayTheme_StoresSerializedPackagesWithTimestamp() local
114 final String serializedPackagesWithTimestamp = theme.getSerializedPackagesWithTimestamp(); in apply_WithOverlayTheme_StoresSerializedPackagesWithTimestamp()
116 theme = spy(theme); in apply_WithOverlayTheme_StoresSerializedPackagesWithTimestamp()
119 when(theme.getSerializedPackagesWithTimestamp()) in apply_WithOverlayTheme_StoresSerializedPackagesWithTimestamp()
122 applyTheme(theme); in apply_WithOverlayTheme_StoresSerializedPackagesWithTimestamp()
167 CustomTheme theme = mock(CustomTheme.class); in findThemeByPackages_ThemeBundleProviderFindsEquivalent() local
168 mThemeManager.findThemeByPackages(theme); in findThemeByPackages_ThemeBundleProviderFindsEquivalent()
170 verify(mThemeBundleProvider).findEquivalent(theme); in findThemeByPackages_ThemeBundleProviderFindsEquivalent()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/picker/theme/
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 …]
DThemeFragment.java16 package com.android.customization.picker.theme;
42 import com.android.customization.model.theme.ThemeBundle;
43 import com.android.customization.model.theme.ThemeManager;
44 import com.android.customization.model.theme.custom.CustomTheme;
270 for (ThemeBundle theme : options) { in setUpOptions()
272 && previouslySelected.equals(theme.getSerializedPackages())) { in setUpOptions()
273 previouslySelectedTheme = theme; in setUpOptions()
275 if (theme.isActive(mThemeManager)) { in setUpOptions()
276 activeTheme = theme; in setUpOptions()
314 for (ThemeBundle theme : options) { in reloadOptions()
[all …]
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/Settings/tests/robotests/src/com/android/settings/
DSetupWizardUtilsTest.java60 final String theme = "TEST_THEME"; in testCopySetupExtras() local
61 fromIntent.putExtra(WizardManagerHelper.EXTRA_THEME, theme); in testCopySetupExtras()
66 assertThat(theme).isEqualTo(toIntent.getStringExtra(WizardManagerHelper.EXTRA_THEME)); in testCopySetupExtras()
76 final String theme = "TEST_THEME"; in testCopyLifecycleExtra() local
77 fromIntent.putExtra(WizardManagerHelper.EXTRA_THEME, theme); in testCopyLifecycleExtra()
92 SetupWizardProperties.theme(ThemeHelper.THEME_GLIF); in testGetTheme_withIntentExtra_shouldReturnTheme()
102 SetupWizardProperties.theme(ThemeHelper.THEME_GLIF_V2_LIGHT); in testGetTheme_withEmptyIntent_shouldReturnSystemProperty()
115 SetupWizardProperties.theme(ThemeHelper.THEME_GLIF_V2_LIGHT); in testGetTheme_whenSuwDayNightEnabledAndWithIntentExtra_shouldReturnDayNightTheme()
125 SetupWizardProperties.theme(ThemeHelper.THEME_GLIF_V3_LIGHT); in testGetTheme_glifV3Light_shouldReturnLightTheme()
136 SetupWizardProperties.theme(ThemeHelper.THEME_GLIF_V3); in testGetTheme_glifV3_shouldReturnTheme()
[all …]
/packages/apps/Settings/src/com/android/settings/
DSetupWizardUtils.java36 String theme = intent.getStringExtra(WizardManagerHelper.EXTRA_THEME); in getThemeString() local
37 if (theme == null) { in getThemeString()
38 theme = SetupWizardProperties.theme().orElse(""); in getThemeString()
40 return theme; in getThemeString()
44 String theme = getThemeString(intent); in getTheme() local
47 if (theme != null) { in getTheme()
50 switch (theme) { in getTheme()
62 switch (theme) { in getTheme()
78 switch (theme) { in getTheme()
/packages/apps/ThemePicker/src/com/android/customization/module/
DStatsLogUserEventLogger.java48 import com.android.customization.model.theme.ThemeBundle;
128 private String getThemePackage(ThemeBundle theme, String category) { in getThemePackage() argument
129 Map<String, String> packages = theme.getPackagesByCategory(); in getThemePackage()
134 public void logThemeSelected(ThemeBundle theme, boolean isCustomTheme) { in logThemeSelected() argument
136 Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_COLOR)), in logThemeSelected()
137 Objects.hashCode(getThemePackage(theme,OVERLAY_CATEGORY_FONT)), in logThemeSelected()
138 Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_SHAPE)), in logThemeSelected()
143 public void logThemeApplied(ThemeBundle theme, boolean isCustomTheme) { in logThemeApplied() argument
145 Objects.hashCode(getThemePackage(theme, OVERLAY_CATEGORY_COLOR)), in logThemeApplied()
146 Objects.hashCode(getThemePackage(theme,OVERLAY_CATEGORY_FONT)), in logThemeApplied()
[all …]
DCustomizationInjector.java22 import com.android.customization.model.theme.OverlayManagerCompat;
23 import com.android.customization.model.theme.ThemeBundleProvider;
24 import com.android.customization.model.theme.ThemeManager;
DThemesUserEventLogger.java20 import com.android.customization.model.theme.ThemeBundle;
28 void logThemeSelected(ThemeBundle theme, boolean isCustomTheme); in logThemeSelected() argument
30 void logThemeApplied(ThemeBundle theme, boolean isCustomTheme); in logThemeApplied() argument
/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/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/ManagedProvisioning/src/com/android/managedprovisioning/common/
DThemeHelper.java155 String theme = getProvidedTheme(intent); in getDefaultThemeName() local
156 if (TextUtils.isEmpty(theme)) { in getDefaultThemeName()
158 theme = com.google.android.setupdesign.util.ThemeHelper.THEME_GLIF_V3; in getDefaultThemeName()
160 theme = com.google.android.setupdesign.util.ThemeHelper.THEME_GLIF_V3_LIGHT; in getDefaultThemeName()
163 return theme; in getDefaultThemeName()
167 String theme = intent.getStringExtra(WizardManagerHelper.EXTRA_THEME); in getProvidedTheme() local
168 if (TextUtils.isEmpty(theme)) { in getProvidedTheme()
171 return theme; in getProvidedTheme()
/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/
DAndroid.bp32 "src/com/android/customization/model/theme/OverlayManagerCompat.java",
33 "src/com/android/customization/model/theme/ThemeBundleProvider.java",
34 "src/com/android/customization/model/theme/ThemeManager.java",
35 "src/com/android/customization/model/theme/ThemeBundle.java",
36 "src/com/android/customization/model/theme/custom/CustomTheme.java",
40 "src/com/android/customization/model/theme/**/*.java",
42 "src/com/android/customization/picker/theme/**/*.java",
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DCustomThemeManager.java16 package com.android.customization.model.theme.custom;
26 import com.android.customization.model.theme.ThemeBundle.PreviewInfo;
27 import com.android.customization.model.theme.ThemeBundleProvider;
28 import com.android.customization.model.theme.ThemeManager;
29 import com.android.customization.model.theme.custom.CustomTheme.Builder;
/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/DocumentsUI/tests/functional/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/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/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/apps/ThemePicker/tests/src/com/android/customization/testing/
DTestThemeManager.java5 import com.android.customization.model.theme.OverlayManagerCompat;
6 import com.android.customization.model.theme.ThemeBundleProvider;
7 import com.android.customization.model.theme.ThemeManager;

12345