/frameworks/base/core/java/android/view/animation/ |
H A D | OvershootInterpolator.java | 56 public OvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument 58 if (theme != null) { 59 a = theme.obtainStyledAttributes(attrs, R.styleable.OvershootInterpolator, 0, 0);
|
H A D | AnticipateOvershootInterpolator.java | 72 public AnticipateOvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument 74 if (theme != null) { 75 a = theme.obtainStyledAttributes(attrs, AnticipateOvershootInterpolator, 0, 0);
|
H A D | AnimationUtils.java | 334 public static Interpolator loadInterpolator(Resources res, Theme theme, int id) throws NotFoundException { argument 338 return createInterpolatorFromXml(res, theme, parser); 356 private static Interpolator createInterpolatorFromXml(Resources res, Theme theme, XmlPullParser parser) argument 379 interpolator = new AccelerateInterpolator(res, theme, attrs); 381 interpolator = new DecelerateInterpolator(res, theme, attrs); 385 interpolator = new CycleInterpolator(res, theme, attrs); 387 interpolator = new AnticipateInterpolator(res, theme, attrs); 389 interpolator = new OvershootInterpolator(res, theme, attrs); 391 interpolator = new AnticipateOvershootInterpolator(res, theme, attrs); 395 interpolator = new PathInterpolator(res, theme, attr [all...] |
/frameworks/base/core/java/android/app/ |
H A D | Presentation.java | 160 * using the default theme. 173 * using the optionally specified theme. 179 * @param theme A style resource describing the theme to use for the window. 182 * styles. This theme is applied on top of the current theme in 183 * <var>outerContext</var>. If 0, the default presentation theme will be used. 185 public Presentation(Context outerContext, Display display, int theme) { argument 186 super(createPresentationContext(outerContext, display, theme), theme, fals 303 createPresentationContext( Context outerContext, Display display, int theme) argument [all...] |
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/ |
H A D | FragmentDialogSupport.java | 94 case 4: return "STYLE_NORMAL with dark fullscreen theme"; 95 case 5: return "STYLE_NORMAL with light theme"; 96 case 6: return "STYLE_NO_TITLE with light theme"; 97 case 7: return "STYLE_NO_FRAME with light theme"; 98 case 8: return "STYLE_NORMAL with light fullscreen theme"; 128 int style = DialogFragment.STYLE_NORMAL, theme = 0; 139 case 2: theme = android.R.style.Theme_Panel; break; 140 case 4: theme = android.R.style.Theme; break; 141 case 5: theme = android.R.style.Theme_Light; break; 142 case 6: theme [all...] |
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/ |
H A D | FragmentDialogSupport.java | 94 case 4: return "STYLE_NORMAL with dark fullscreen theme"; 95 case 5: return "STYLE_NORMAL with light theme"; 96 case 6: return "STYLE_NO_TITLE with light theme"; 97 case 7: return "STYLE_NO_FRAME with light theme"; 98 case 8: return "STYLE_NORMAL with light fullscreen theme"; 128 int style = DialogFragment.STYLE_NORMAL, theme = 0; 139 case 2: theme = android.R.style.Theme_Panel; break; 140 case 4: theme = android.R.style.Theme; break; 141 case 5: theme = android.R.style.Theme_Light; break; 142 case 6: theme [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | ThemedResourceCache.java | 40 * Adds a new theme-dependent entry to the cache. 43 * @param theme the theme against which this entry was inflated, or 44 * {@code null} if the entry has no theme applied 47 public void put(long key, @Nullable Theme theme, @NonNull T entry) { argument 48 put(key, theme, entry, true); 55 * @param theme the theme against which this entry was inflated, or 56 * {@code null} if the entry has no theme applied 58 * @param usesTheme {@code true} if the entry is affected theme change 61 put(long key, @Nullable Theme theme, @NonNull T entry, boolean usesTheme) argument 87 get(long key, @Nullable Theme theme) argument [all...] |
H A D | Resources.java | 130 * Returns the most appropriate default theme for the specified target SDK version. 138 * @param curTheme The current theme, or 0 if not specified. 140 * @return A theme resource identifier 267 Theme theme = weakThemeRef != null ? weakThemeRef.get() : null; 268 if (theme != null) { 269 theme.setImpl(mResourcesImpl.newThemeImpl(theme.getKey())); 780 * or {@link #getDrawable(int, Theme)} passing the desired theme.</p> 795 Log.w(TAG, "Drawable " + getResourceName(id) + " has unresolved theme " 804 * styled for the specified theme 816 getDrawable(@rawableRes int id, @Nullable Theme theme) argument 871 getDrawableForDensity(@rawableRes int id, int density, @Nullable Theme theme) argument 883 loadDrawable(@onNull TypedValue value, int id, int density, @Nullable Theme theme) argument 945 getColor(@olorRes int id, @Nullable Theme theme) argument 1014 getColorStateList(@olorRes int id, @Nullable Theme theme) argument 1027 loadColorStateList(@onNull TypedValue value, int id, @Nullable Theme theme) argument 1036 loadComplexColor(@onNull TypedValue value, int id, @Nullable Theme theme) argument 2176 obtainAttributes( Resources res, Theme theme, AttributeSet set, int[] attrs) argument [all...] |
H A D | GradientColor.java | 180 // Extract the theme attributes, if any. 251 public static GradientColor createFromXml(Resources r, XmlResourceParser parser, Theme theme) argument 265 return createFromXmlInner(r, parser, attrs, theme); 277 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) 286 gradientColor.inflate(r, parser, attrs, theme); 294 @NonNull AttributeSet attrs, @Nullable Theme theme) 296 final TypedArray a = Resources.obtainAttributes(r, theme, attrs, R.styleable.GradientColor); 304 inflateChildElements(r, parser, attrs, theme); 312 * Note that at root level, we need to save ThemeAttrs for theme applied later. 313 * Here similarly, at each child item, we need to save the theme' 276 createFromXmlInner(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 293 inflate(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 316 inflateChildElements(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @NonNull Theme theme) argument 521 newInstance(Resources res, Theme theme) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | DrawableInflater.java | 70 * @param theme the theme against which the drawable should be inflated 76 @NonNull Resources resources, @Nullable Theme theme, @DrawableRes int id) { 77 return resources.getDrawable(id, theme); 104 * @param theme the theme against which the drawable should be inflated, or 105 * {@code null} to not inflate against a theme 113 @NonNull AttributeSet attrs, @Nullable Theme theme) 115 return inflateFromXmlForDensity(name, parser, attrs, 0, theme); 124 @NonNull AttributeSet attrs, int density, @Nullable Theme theme) 75 loadDrawable( @onNull Resources resources, @Nullable Theme theme, @DrawableRes int id) argument 112 inflateFromXml(@onNull String name, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 123 inflateFromXmlForDensity(@onNull String name, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, int density, @Nullable Theme theme) argument [all...] |
H A D | LevelListDrawable.java | 88 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) argument 90 super.inflate(r, parser, attrs, theme); 93 inflateChildElements(r, parser, attrs, theme); 97 Theme theme) throws XmlPullParserException, IOException { 115 TypedArray a = obtainAttributes(r, theme, attrs, 134 dr = r.getDrawable(drawableRes, theme); 144 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); 96 inflateChildElements(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) argument
|
H A D | StateListDrawable.java | 114 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) argument 116 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.StateListDrawable); 122 inflateChildElements(r, parser, attrs, theme); 136 // Extract the theme attributes, if any. 157 Theme theme) throws XmlPullParserException, IOException { 175 final TypedArray a = obtainAttributes(r, theme, attrs, 194 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); 380 public void applyTheme(Theme theme) { argument 381 super.applyTheme(theme); 156 inflateChildElements(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) argument
|
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
H A D | AppCompatColorStateListInflater.java | 48 * @param theme Optional theme to apply to the color state list, may be 54 @Nullable Resources.Theme theme) throws XmlPullParserException, IOException { 67 return createFromXmlInner(r, parser, attrs, theme); 80 @Nullable Resources.Theme theme) 88 return inflate(r, parser, attrs, theme); 95 @NonNull AttributeSet attrs, @Nullable Resources.Theme theme) 113 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ColorStateListItem); 162 private static TypedArray obtainAttributes(Resources res, Resources.Theme theme, argument 164 return theme 53 createFromXml(@onNull Resources r, @NonNull XmlPullParser parser, @Nullable Resources.Theme theme) argument 78 createFromXmlInner(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Resources.Theme theme) argument 94 inflate(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Resources.Theme theme) argument [all...] |
/frameworks/base/core/java/android/animation/ |
H A D | AnimatorInflater.java | 98 * @param theme The theme 104 public static Animator loadAnimator(Resources resources, Theme theme, int id) argument 106 return loadAnimator(resources, theme, id, 1); 110 public static Animator loadAnimator(Resources resources, Theme theme, int id, argument 114 Animator animator = animatorCache.getInstance(id, resources, theme); 126 animator = createAnimatorFromXml(resources, theme, parser, pathErrorScale); 134 animatorCache.put(id, theme, constantState); 136 animator = constantState.newInstance(resources, theme); 162 final Theme theme 639 createAnimatorFromXml(Resources res, Theme theme, XmlPullParser parser, float pixelSize) argument 646 createAnimatorFromXml(Resources res, Theme theme, XmlPullParser parser, AttributeSet attrs, AnimatorSet parent, int sequenceOrdering, float pixelSize) argument 716 loadValues(Resources res, Theme theme, XmlPullParser parser, AttributeSet attrs) argument 774 inferValueTypeOfKeyframe(Resources res, Theme theme, AttributeSet attrs) argument 830 loadPvh(Resources res, Theme theme, XmlPullParser parser, String propertyName, int valueType) argument 953 loadKeyframe(Resources res, Theme theme, AttributeSet attrs, int valueType) argument 1007 loadObjectAnimator(Resources res, Theme theme, AttributeSet attrs, float pathErrorScale) argument 1025 loadAnimator(Resources res, Theme theme, AttributeSet attrs, ValueAnimator anim, float pathErrorScale) argument [all...] |
/frameworks/base/core/java/com/android/internal/graphics/drawable/ |
H A D | AnimationScaleListDrawable.java | 78 @NonNull AttributeSet attrs, @Nullable Theme theme) 80 final TypedArray a = obtainAttributes(r, theme, attrs, 85 inflateChildElements(r, parser, attrs, theme); 94 @NonNull AttributeSet attrs, @Nullable Theme theme) 112 final TypedArray a = obtainAttributes(r, theme, attrs, 127 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); 239 public void applyTheme(@NonNull Theme theme) { argument 240 super.applyTheme(theme); 77 inflate(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 93 inflateChildElements(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | SystemUIDialog.java | 36 public SystemUIDialog(Context context, int theme) { argument 37 super(context, theme);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | SplashScreenStartingData.java | 38 SplashScreenStartingData(WindowManagerService service, String pkg, int theme, argument 43 mTheme = theme;
|
/frameworks/support/compat/java/android/support/v4/content/res/ |
H A D | ResourcesCompat.java | 57 * styled for the specified theme. Various types of objects will be 61 * Prior to API level 21, the theme will not be applied and this method 67 * @param theme The theme used to style the drawable attributes, may be 76 @Nullable Theme theme) throws NotFoundException { 78 return res.getDrawable(id, theme); 87 * the given screen density in DPI and styled for the specified theme. 89 * Prior to API level 15, the theme and density will not be applied and 92 * Prior to API level 21, the theme will not be applied and this method 100 * @param theme Th 75 getDrawable(@onNull Resources res, @DrawableRes int id, @Nullable Theme theme) argument 108 getDrawableForDensity(@onNull Resources res, @DrawableRes int id, int density, @Nullable Theme theme) argument 138 getColor(@onNull Resources res, @ColorRes int id, @Nullable Theme theme) argument 168 getColorStateList(@onNull Resources res, @ColorRes int id, @Nullable Theme theme) argument [all...] |
/frameworks/base/libs/androidfw/ |
H A D | AttributeResolution.cpp | 58 bool ResolveAttrs(ResTable::Theme* theme, uint32_t def_style_attr, argument 64 ALOGI("APPLY STYLE: theme=0x%p defStyleAttr=0x%x defStyleRes=0x%x", theme, 68 const ResTable& res = theme->getResTable(); 78 if (theme->getAttribute(def_style_attr, &value, &def_style_bag_type_set_flags) >= 0) { 118 // style, and finally the theme. 144 theme->resolveAttributeReference(&value, block, &resid, &type_set_flags, &config); 151 // it in the theme! 152 ssize_t new_block = theme->getAttribute(cur_ident, &value, &type_set_flags); 155 ALOGI("-> From theme 206 ApplyStyle(ResTable::Theme* theme, ResXMLParser* xml_parser, uint32_t def_style_attr, uint32_t def_style_res, const uint32_t* attrs, size_t attrs_length, uint32_t* out_values, uint32_t* out_indices) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/content/res/ |
H A D | ConfigurationBoundResourceCacheTest.java | 171 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null; 172 mCache.put(R.dimen.resource_cache_test_generic, theme, 174 mCache.put(R.dimen.resource_cache_test_orientation_dependent, theme, 185 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null; 187 mCache.getInstance(R.dimen.resource_cache_test_generic, res, theme)); 190 theme)); 194 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null; 196 mCache.getInstance(R.dimen.resource_cache_test_generic, res, theme)); 198 theme));
|
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/ |
H A D | AnimatorInflaterCompat.java | 111 * @param theme The theme 116 public static Animator loadAnimator(Context context, Resources resources, Theme theme, argument 118 return loadAnimator(context, resources, theme, id, 1); 124 public static Animator loadAnimator(Context context, Resources resources, Theme theme, argument 131 animator = createAnimatorFromXml(context, resources, theme, parser, pathErrorScale); 497 private static Animator createAnimatorFromXml(Context context, Resources res, Theme theme, argument 501 return createAnimatorFromXml(context, res, theme, parser, Xml.asAttributeSet(parser), null, 505 private static Animator createAnimatorFromXml(Context context, Resources res, Theme theme, argument 527 anim = loadObjectAnimator(context, res, theme, attr 574 loadValues(Context context, Resources res, Theme theme, XmlPullParser parser, AttributeSet attrs) argument 633 inferValueTypeOfKeyframe(Resources res, Theme theme, AttributeSet attrs, XmlPullParser parser) argument 687 loadPvh(Context context, Resources res, Theme theme, XmlPullParser parser, String propertyName, int valueType) argument 813 loadKeyframe(Context context, Resources res, Theme theme, AttributeSet attrs, int valueType, XmlPullParser parser) argument 869 loadObjectAnimator(Context context, Resources res, Theme theme, AttributeSet attrs, float pathErrorScale, XmlPullParser parser) argument 887 loadAnimator(Context context, Resources res, Theme theme, AttributeSet attrs, ValueAnimator anim, float pathErrorScale, XmlPullParser parser) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
H A D | Resources_Theme_Delegate.java | 112 // Key is a space-separated list of theme ids applied that have been merged into the 113 // BridgeContext's theme to make thisTheme. 143 ResourceReference theme = context.resolveId(nativeResid); 144 if (theme.isFramework()) { 146 .getFrameworkResource(ResourceType.STYLE, theme.getName()); 149 .getProjectResource(ResourceType.STYLE, theme.getName());
|
/frameworks/opt/setupwizard/navigationbar/src/com/android/setupwizard/navigationbar/ |
H A D | SetupWizardNavBar.java | 123 // Normally we can automatically guess the theme by comparing the foreground color against 131 int theme = attributes.getResourceId(0, 0); 132 if (theme == 0) { 134 // theme is light-on-dark or dark-on-light. 140 theme = isDarkBg ? R.style.setup_wizard_navbar_theme_dark : 144 return theme;
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkBadging.java | 62 * @param theme The theme for the current application, may be null. 68 @IntRange(from=0, to=4) int signalLevel, @Badging int badging, @Nullable Theme theme) { 69 return Resources.getSystem().getDrawable(getWifiSignalResource(signalLevel), theme); 67 getWifiIcon( @ntRangefrom=0, to=4) int signalLevel, @Badging int badging, @Nullable Theme theme) argument
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/ |
H A D | DrawingTestHelper.java | 39 public static Activity createCanvasActivity(@StyleRes int theme) argument 57 activity.setTheme(theme);
|