Home
last modified time | relevance | path

Searched defs:theme (Results 1 – 25 of 171) sorted by relevance

1234567

/aosp12/packages/apps/Contacts/src/com/android/contacts/util/
H A DThemeUtils.java29 public static int getAttribute(Theme theme, int attrId) { in getAttribute()
38 public static int getSelectableItemBackground(Theme theme) { in getSelectableItemBackground()
45 public static int getActivatedBackground(Theme theme) { in getActivatedBackground()
/aosp12/frameworks/base/libs/androidfw/tests/
H A DTheme_bench.cpp41 auto theme = assets.NewTheme(); in BM_ThemeApplyStyleFramework() local
58 std::unique_ptr<ResTable::Theme> theme{new ResTable::Theme(res_table)}; in BM_ThemeApplyStyleFrameworkOld() local
70 auto theme = assets.NewTheme(); in BM_ThemeGetAttribute() local
84 std::unique_ptr<ResTable::Theme> theme{new ResTable::Theme(res_table)}; in BM_ThemeGetAttributeOld() local
H A DTheme_test.cpp67 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
77 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
97 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
126 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
135 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
165 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
196 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() local
266 auto theme = am.NewTheme(); in TEST_F() local
H A DAttributeResolution_test.cpp74 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST() local
104 std::unique_ptr<Theme> theme = assetmanager_.NewTheme(); in TEST_F() local
209 std::unique_ptr<Theme> theme = assetmanager_.NewTheme(); in TEST_F() local
H A DAttributeResolution_bench.cpp66 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in BM_ApplyStyle() local
140 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in BM_ApplyStyleFramework() local
/aosp12/frameworks/base/core/java/android/app/
H A DPresentation.java192 public Presentation(Context outerContext, Display display, int theme) { in Presentation()
217 public Presentation(@NonNull Context outerContext, @NonNull Display display, int theme, in Presentation()
219 super(createPresentationContext(outerContext, display, theme, type), theme, false); in Presentation() local
314 int theme) { in createPresentationContext()
319 Context outerContext, Display display, int theme, @WindowType int type) { in createPresentationContext()
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
H A DThemeResolver.java72 public int resolve(@Nullable String theme) { in resolve()
77 private int resolve(@Nullable String theme, boolean suppressDayNight) { in resolve()
102 private static int getDayNightThemeRes(@Nullable String theme) { in getDayNightThemeRes()
129 private static int getThemeRes(@Nullable String theme) { in getThemeRes()
164 private static int getThemeVersion(String theme) { in getThemeVersion()
H A DWizardManagerHelper.java247 final String theme = intent.getStringExtra(EXTRA_THEME); in isLightTheme() local
260 public static boolean isLightTheme(String theme, boolean def) { in isLightTheme()
346 String theme, @StyleRes int defaultTheme, @Nullable String oldestSupportedTheme) { in getThemeRes()
377 public static @StyleRes int getThemeRes(@Nullable String theme, @StyleRes int defaultTheme) { in getThemeRes()
/aosp12/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/model/theme/
H A DThemeManagerTest.java113 ThemeBundle theme = getOverlayTheme(); in apply_WithOverlayTheme_StoresSerializedPackagesWithTimestamp() local
167 CustomTheme theme = mock(CustomTheme.class); in findThemeByPackages_ThemeBundleProviderFindsEquivalent() local
184 ThemeBundle theme = getOverlayTheme(); in getStoredOverlays_GetsFromSettingsSecureWithExpectedName() local
211 private void applyTheme(ThemeBundle theme) { in applyTheme()
/aosp12/packages/apps/ThemePicker/src/com/android/customization/model/theme/
H A DThemeManager.java81 public void apply(ThemeBundle theme, Callback callback) { in apply()
85 private void applyOverlays(ThemeBundle theme, Callback callback) { in applyOverlays()
100 private void storeCustomTheme(CustomTheme theme) { in storeCustomTheme()
124 public void removeCustomTheme(CustomTheme theme) { in removeCustomTheme()
H A DDefaultThemeProvider.java258 public void storeCustomTheme(CustomTheme theme) { in storeCustomTheme()
268 private void addCustomThemeAndStore(CustomTheme theme) { in addCustomThemeAndStore()
296 public void removeCustomTheme(CustomTheme theme) { in removeCustomTheme()
354 JSONObject theme = new JSONObject(serializedTheme); in parseThemeBundle() local
368 JSONObject theme = new JSONObject(serializedTheme); in parseCustomTheme() local
379 private void convertJsonToBuilder(JSONObject theme, ThemeBundle.Builder builder) in convertJsonToBuilder()
H A DThemeBundleProvider.java42 void storeCustomTheme(CustomTheme theme); in storeCustomTheme()
44 void removeCustomTheme(CustomTheme theme); in removeCustomTheme()
/aosp12/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java80 public ContextThemeWrapper(Context base, Resources.Theme theme) { in ContextThemeWrapper()
156 public void setTheme(@Nullable Resources.Theme theme) { in setTheme()
202 protected void onApplyThemeResource(Resources.Theme theme, int resId, boolean first) { in onApplyThemeResource()
211 final Resources.Theme theme = getBaseContext().getTheme(); in initializeTheme() local
/aosp12/frameworks/layoutlib/bridge/src/android/content/res/
H A DComplexColor_Accessor.java36 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) in createGradientColorFromXmlInner()
42 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) in createColorStateListFromXmlInner()
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
H A DButtonFooterMixin.java68 public Button addButton(CharSequence text, @StyleRes int theme) { in addButton()
84 public Button addButton(@StringRes int text, @StyleRes int theme) { in addButton()
163 private Button createThemedButton(Context context, @StyleRes int theme) { in createThemedButton()
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawableInflater.java79 @NonNull Resources resources, @Nullable Theme theme, @DrawableRes int id) { in loadDrawable()
116 @NonNull AttributeSet attrs, @Nullable Theme theme) in inflateFromXml()
127 @NonNull AttributeSet attrs, int density, @Nullable Theme theme) in inflateFromXmlForDensity()
/aosp12/packages/apps/ThemePicker/src/com/android/customization/module/
H A DThemesUserEventLogger.java28 void logThemeSelected(ThemeBundle theme, boolean isCustomTheme); in logThemeSelected()
30 void logThemeApplied(ThemeBundle theme, boolean isCustomTheme); in logThemeApplied()
H A DStatsLogUserEventLogger.java128 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()
/aosp12/packages/apps/ThemePicker/tests/src/com/android/customization/testing/
H A DTestThemesUserEventLogger.java15 public void logThemeSelected(ThemeBundle theme, boolean isCustomTheme) { in logThemeSelected()
20 public void logThemeApplied(ThemeBundle theme, boolean isCustomTheme) { in logThemeApplied()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboardTheme.java122 final KeyboardTheme theme = searchKeyboardThemeById(themeId, in getDefaultKeyboardTheme() local
146 final KeyboardTheme theme = searchKeyboardThemeById(themeId, KEYBOARD_THEMES); in getKeyboardThemeName() local
182 final KeyboardTheme theme = searchKeyboardThemeById(id, KEYBOARD_THEMES); in getAvailableThemeArray() local
203 final KeyboardTheme theme = searchKeyboardThemeById(themeId, availableThemeArray); in getKeyboardTheme() local
/aosp12/packages/apps/Settings/src/com/android/settings/
H A DSetupWizardUtils.java36 String theme = intent.getStringExtra(WizardManagerHelper.EXTRA_THEME); in getThemeString() local
44 String theme = getThemeString(intent); in getTheme() local
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java157 @NonNull BridgeContext context, @Nullable Theme theme, boolean allowGradients) { in getInternalComplexColor()
235 @NonNull BridgeContext context, @Nullable Resources.Theme theme) { in getColorStateList()
250 @NonNull BridgeContext context, @Nullable Resources.Theme theme) { in getComplexColor()
311 public static Drawable getDrawable(ResourceValue value, BridgeContext context, Theme theme) { in getDrawable()
426 public static Typeface getFont(String fontName, BridgeContext context, Theme theme, boolean in getFont()
446 public static Typeface getFont(ResourceValue value, BridgeContext context, Theme theme) { in getFont()
/aosp12/frameworks/base/core/java/android/content/res/
H A DThemedResourceCache.java49 public void put(long key, @Nullable Theme theme, @NonNull T entry) { in put()
63 public void put(long key, @Nullable Theme theme, @NonNull T entry, boolean usesTheme) { in put()
89 public T get(long key, @Nullable Theme theme) { in get()
H A DGradientColor.java256 public static GradientColor createFromXml(Resources r, XmlResourceParser parser, Theme theme) in createFromXml()
282 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) in createFromXmlInner()
299 @NonNull AttributeSet attrs, @Nullable Theme theme) in inflate()
322 @NonNull AttributeSet attrs, @NonNull Theme theme) in inflateChildElements()
526 public GradientColor newInstance(Resources res, Theme theme) { in newInstance()
/aosp12/frameworks/base/core/java/android/animation/
H A DAnimatorInflater.java104 public static Animator loadAnimator(Resources resources, Theme theme, int id) in loadAnimator()
110 public static Animator loadAnimator(Resources resources, Theme theme, int id, in loadAnimator()
162 final Theme theme = context.getTheme(); in loadStateListAnimator() local
639 private static Animator createAnimatorFromXml(Resources res, Theme theme, XmlPullParser parser, in createAnimatorFromXml()
646 private static Animator createAnimatorFromXml(Resources res, Theme theme, XmlPullParser parser, in createAnimatorFromXml()
716 private static PropertyValuesHolder[] loadValues(Resources res, Theme theme, in loadValues()
774 private static int inferValueTypeOfKeyframe(Resources res, Theme theme, AttributeSet attrs) { in inferValueTypeOfKeyframe()
830 private static PropertyValuesHolder loadPvh(Resources res, Theme theme, XmlPullParser parser, in loadPvh()
953 private static Keyframe loadKeyframe(Resources res, Theme theme, AttributeSet attrs, in loadKeyframe()
1007 private static ObjectAnimator loadObjectAnimator(Resources res, Theme theme, AttributeSet attrs, in loadObjectAnimator()
[all …]

1234567