/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/common/ |
D | ThemeUtils.kt | 30 internal enum class Theme { LIGHT, DARK } class 33 internal fun Theme.isLight(): Boolean = this == Theme.LIGHT in isLight() 36 internal fun Theme.isDark(): Boolean = this == Theme.DARK in isLight() 64 private val systemTheme: Theme in isLight() 67 Theme.DARK in isLight() 69 Theme.LIGHT in isLight() 75 fun getAppTheme(task: RunningTaskInfo): Theme { in isLight() 80 Theme.DARK in isLight() 82 Theme.LIGHT in isLight() 91 Theme.LIGHT -> lightColors in isLight() [all …]
|
/frameworks/layoutlib/bridge/src/android/content/res/ |
D | Resources_Theme_Delegate.java | 29 import android.content.res.Resources.Theme; 56 Resources thisResources, Theme thisTheme, in obtainStyledAttributes() 68 Resources thisResources, Theme thisTheme, in obtainStyledAttributes() 81 Resources thisResources, Theme thisTheme, in obtainStyledAttributes() 93 Resources thisResources, Theme thisTheme, in resolveAttribute() 104 /*package*/ static TypedArray resolveAttributes(Resources thisResources, Theme thisTheme, in resolveAttributes() 112 private static boolean setupResources(Theme thisTheme) { in setupResources()
|
D | ComplexColor_Accessor.java | 24 import android.content.res.Resources.Theme; 36 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) in createGradientColorFromXmlInner() 42 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) in createColorStateListFromXmlInner()
|
/frameworks/base/core/java/android/view/ |
D | ContextThemeWrapper.java | 37 private Resources.Theme mTheme; 80 public ContextThemeWrapper(Context base, Resources.Theme theme) { in ContextThemeWrapper() 156 public void setTheme(@Nullable Resources.Theme theme) { in setTheme() 168 public Resources.Theme getTheme() { in getTheme() 202 protected void onApplyThemeResource(Resources.Theme theme, int resId, boolean first) { in onApplyThemeResource() 211 final Resources.Theme theme = getBaseContext().getTheme(); in initializeTheme()
|
/frameworks/base/core/java/android/widget/ |
D | ThemedSpinnerAdapter.java | 21 import android.content.res.Resources.Theme; 42 void setDropDownViewTheme(@Nullable Resources.Theme theme); in setDropDownViewTheme() 52 Resources.Theme getDropDownViewTheme(); in getDropDownViewTheme()
|
/frameworks/base/libs/androidfw/tests/ |
D | Theme_bench.cpp | 58 std::unique_ptr<ResTable::Theme> theme{new ResTable::Theme(res_table)}; in BM_ThemeApplyStyleFrameworkOld() 84 std::unique_ptr<ResTable::Theme> theme{new ResTable::Theme(res_table)}; in BM_ThemeGetAttributeOld()
|
D | Theme_test.cpp | 67 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() 77 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() 97 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() 126 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() 135 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() 165 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() 195 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); in TEST_F() 196 ASSERT_TRUE(theme->ApplyStyle(libclient::R::style::Theme, false /*force*/).has_value()); in TEST_F() 220 std::unique_ptr<Theme> theme_one = assetmanager.NewTheme(); in TEST_F() 233 std::unique_ptr<Theme> theme_two = assetmanager.NewTheme(); in TEST_F() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/app/ |
D | ResourcesThemePerfTest.java | 46 private Resources.Theme mTheme; 58 Resources.Theme destTheme = mContext.getResources().newTheme(); in applyStyle() 67 Resources.Theme destTheme = mContext.getResources().newTheme(); in rebase() 78 Resources.Theme destTheme = mContext.getResources().newTheme(); in setToSameAssetManager() 103 Resources.Theme destTheme = destResources.newTheme(); in setToDifferentAssetManager()
|
/frameworks/base/core/java/android/content/res/ |
D | ThemedResourceCache.java | 23 import android.content.res.Resources.Theme; 53 public void put(long key, @Nullable Theme theme, @NonNull T entry, int generation) { in put() 68 public void put(long key, @Nullable Theme theme, @NonNull T entry, int generation, in put() 105 public T get(long key, @Nullable Theme theme) { in get() 167 private LongSparseArray<WeakReference<T>> getThemedLocked(@Nullable Theme t, boolean create) { in getThemedLocked()
|
D | ComplexColor.java | 20 import android.content.res.Resources.Theme; 57 public abstract ComplexColor obtainForTheme(Theme t); in obtainForTheme()
|
D | GradientColor.java | 24 import android.content.res.Resources.Theme; 256 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() 394 private void applyItemsAttrsTheme(Theme t) { in applyItemsAttrsTheme() 526 public GradientColor newInstance(Resources res, Theme theme) { in newInstance() 541 public GradientColor obtainForTheme(Theme t) { in obtainForTheme() 564 private void applyTheme(Theme t) { in applyTheme() 574 private void applyRootAttrsTheme(Theme t) { in applyRootAttrsTheme()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | AssetManager2.h | 38 class Theme; variable 83 friend Theme; variable 251 friend Theme; member 356 std::unique_ptr<Theme> NewTheme(); 545 class Theme { 549 ~Theme(); 572 base::expected<std::monostate, IOError> SetTo(const Theme& source); 606 DISALLOW_COPY_AND_ASSIGN(Theme); 608 explicit Theme(AssetManager2* asset_manager);
|
D | AttributeResolution.h | 48 base::expected<std::monostate, IOError> ResolveAttrs(Theme* theme, uint32_t def_style_attr, 56 base::expected<std::monostate, IOError> ApplyStyle(Theme* theme, ResXMLParser* xml_parser,
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/ |
D | Theme.java | 33 public class Theme implements RemoteComposeOperation { class 49 public Theme(int theme) { in Theme() method in Theme 94 operations.add(new Theme(theme)); in read()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | FallbackThemeWrapper.java | 20 import android.content.res.Resources.Theme; 47 protected void onApplyThemeResource(Theme theme, int resId, boolean first) { in onApplyThemeResource()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | AlphaTintDrawableWrapper.java | 21 import android.content.res.Resources.Theme; 67 @NonNull AttributeSet attrs, @Nullable Theme theme) in inflate() 82 public void applyTheme(Theme t) { in applyTheme() 157 public Drawable newDrawable(Resources res, Theme theme) { in newDrawable()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | DrawableInflater.java | 25 import android.content.res.Resources.Theme; 77 @Nullable Theme theme, @DrawableRes int id) { in loadDrawable() 113 @NonNull AttributeSet attrs, @Nullable Theme theme) in inflateFromXml() 123 @NonNull AttributeSet attrs, int density, @Nullable Theme theme) in inflateFromXmlForDensity()
|
/frameworks/base/core/java/com/android/internal/graphics/drawable/ |
D | AnimationScaleListDrawable.java | 23 import android.content.res.Resources.Theme; 78 @NonNull AttributeSet attrs, @Nullable Theme theme) in inflate() 94 @NonNull AttributeSet attrs, @Nullable Theme theme) in inflateChildElements() 239 public void applyTheme(@NonNull Theme theme) { in applyTheme()
|
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/ |
D | AdaptiveIconShapeDrawable.java | 20 import android.content.res.Resources.Theme; 47 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) in inflate()
|
/frameworks/base/core/java/android/view/animation/ |
D | OvershootInterpolator.java | 21 import android.content.res.Resources.Theme; 56 public OvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) { in OvershootInterpolator()
|
D | AnticipateInterpolator.java | 21 import android.content.res.Resources.Theme; 55 public AnticipateInterpolator(Resources res, Theme theme, AttributeSet attrs) { in AnticipateInterpolator()
|
D | CycleInterpolator.java | 21 import android.content.res.Resources.Theme; 46 public CycleInterpolator(Resources resources, Theme theme, AttributeSet attrs) { in CycleInterpolator()
|
D | AccelerateInterpolator.java | 21 import android.content.res.Resources.Theme; 63 public AccelerateInterpolator(Resources res, Theme theme, AttributeSet attrs) { in AccelerateInterpolator()
|
D | DecelerateInterpolator.java | 21 import android.content.res.Resources.Theme; 56 public DecelerateInterpolator(Resources res, Theme theme, AttributeSet attrs) { in DecelerateInterpolator()
|
/frameworks/base/core/java/android/net/ |
D | NetworkBadging.java | 25 import android.content.res.Resources.Theme; 65 @IntRange(from=0, to=4) int signalLevel, @Badging int badging, @Nullable Theme theme) { in getWifiIcon()
|