/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationBoundResourceCacheTest.java | 55 assertEquals(null, mCache.getInstance(1, res, getActivity().getTheme())); in testSetGet() 60 mCache.put(1, getActivity().getTheme(), new DummyFloatConstantState(5f)); in testSetGetThemed() 63 assertEquals(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testSetGetThemed() 64 assertNotSame(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testSetGetThemed() 69 mCache.put(1, getActivity().getTheme(), new DummyFloatConstantState(5f)); in testMultiThreadPutGet() 74 assertEquals(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testMultiThreadPutGet() 75 assertNotSame(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testMultiThreadPutGet() 86 mCache.put(key, getActivity().getTheme(), in testVoidConfigChange() 94 assertEquals(staticDim, mCache.getInstance(key, res, getActivity().getTheme())); in testVoidConfigChange() 96 assertEquals(staticDim, mCache.getInstance(key, res, getActivity().getTheme())); in testVoidConfigChange() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | CompatResources.java | 46 return getDrawable(id, getTheme()); in getDrawable() 52 return getDrawableForDensity(id, density, getTheme()); in getDrawableForDensity() 57 return getColor(id, getTheme()); in getColor() 62 return getColorStateList(id, getTheme()); in getColorStateList() 65 private Theme getTheme() { in getTheme() method in CompatResources 67 return c != null ? c.getTheme() : null; in getTheme()
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/ |
D | ButtonItemTest.java | 64 assertThat(item.getTheme()).named("theme").isEqualTo(R.style.SuwButtonItem); in testDefaultItem() 156 .that(item.getTheme()) in testSetTheme() 158 assertThat(button.getContext().getTheme()).isNotNull(); in testSetTheme()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
D | RvBoxAdapter.java | 51 if (context.getTheme() != null) { in RvBoxAdapter() 52 context.getTheme().resolveAttribute( in RvBoxAdapter()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/ |
D | UninstallAppProgress.java | 331 getTheme().resolveAttribute(android.R.attr.windowBackground, attribute, true); in initView() 337 getTheme())); in initView() 340 getTheme().resolveAttribute(android.R.attr.navigationBarColor, attribute, true); in initView() 343 getTheme().resolveAttribute(android.R.attr.statusBarColor, attribute, true); in initView()
|
/frameworks/base/core/java/android/view/ |
D | ContextThemeWrapper.java | 168 public Resources.Theme getTheme() { in getTheme() method in ContextThemeWrapper 211 final Resources.Theme theme = getBaseContext().getTheme(); in initializeTheme()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | ListViewTest.java | 102 public Resources.Theme getTheme() { in getTheme() method in ListViewTest.MockContext2 103 return getInstrumentation().getTargetContext().getTheme(); in getTheme()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | MediaRouteControllerDialogFragment.java | 52 return new MediaRouteControllerDialog(context, getTheme()); in onCreateControllerDialog()
|
D | MediaRouteChooserDialogFragment.java | 94 return new MediaRouteChooserDialog(context, getTheme()); in onCreateChooserDialog()
|
/frameworks/base/core/java/android/service/wallpaper/ |
D | WallpaperSettingsActivity.java | 40 Resources.Theme theme = getTheme(); in onCreate()
|
/frameworks/base/apct-tests/perftests/core/src/android/app/ |
D | ResourcesThemePerfTest.java | 43 mTheme = context.getTheme(); in setUp()
|
/frameworks/base/tools/aapt2/integration-tests/NamespaceTest/LibTwo/src/com/android/aapt/namespace/libtwo/ |
D | TextView.java | 41 final TypedArray ta = context.getTheme().obtainStyledAttributes(attrs, R.styleable.TextView, in TextView()
|
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/ |
D | ThemableWidget.java | 35 … ContextThemeWrapper context = new ContextThemeWrapper(getContext(), getContext().getTheme()); in init()
|
/frameworks/base/core/java/android/content/ |
D | Context.java | 676 return getResources().getColor(id, getTheme()); in getColor() 692 return getResources().getDrawable(id, getTheme()); in getDrawable() 708 return getResources().getColorStateList(id, getTheme()); in getColorStateList() 732 public abstract Resources.Theme getTheme(); in getTheme() method in Context 743 return getTheme().obtainStyledAttributes(attrs); in obtainStyledAttributes() 756 return getTheme().obtainStyledAttributes(resid, attrs); in obtainStyledAttributes() 769 return getTheme().obtainStyledAttributes(set, attrs, 0, 0); in obtainStyledAttributes() 783 return getTheme().obtainStyledAttributes( in obtainStyledAttributes()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileColorPicker.java | 37 getColorStateList(R.color.tint_color_selector, context.getTheme()); in TileColorPicker()
|
/frameworks/base/core/java/android/widget/ |
D | CursorAdapter.java | 217 } else if (theme == mContext.getTheme()) { in setDropDownViewTheme() 226 return mDropDownContext == null ? null : mDropDownContext.getTheme(); in getDropDownViewTheme()
|
D | SimpleAdapter.java | 166 } else if (theme == mInflater.getContext().getTheme()) { in setDropDownViewTheme() 176 return mDropDownInflater == null ? null : mDropDownInflater.getContext().getTheme(); in getDropDownViewTheme()
|
/frameworks/base/core/java/android/view/animation/ |
D | CycleInterpolator.java | 42 this(context.getResources(), context.getTheme(), attrs); in CycleInterpolator()
|
D | OvershootInterpolator.java | 52 this(context.getResources(), context.getTheme(), attrs); in OvershootInterpolator()
|
D | DecelerateInterpolator.java | 52 this(context.getResources(), context.getTheme(), attrs); in DecelerateInterpolator()
|
D | AnticipateInterpolator.java | 51 this(context.getResources(), context.getTheme(), attrs); in AnticipateInterpolator()
|
D | AccelerateInterpolator.java | 59 this(context.getResources(), context.getTheme(), attrs); in AccelerateInterpolator()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileColorPickerTest.java | 45 getColorStateList(R.color.tint_color_selector, mContext.getTheme()); in setUp()
|
/frameworks/base/core/java/android/app/ |
D | DialogFragment.java | 321 public int getTheme() { in getTheme() method in DialogFragment 459 return new Dialog(getActivity(), getTheme()); in onCreateDialog()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
D | CustomScrollView.java | 78 context.getTheme().resolveAttribute(R.attr.autofillSaveCustomSubtitleMaxHeight, in calculateDimensions()
|