Home
last modified time | relevance | path

Searched refs:getTheme (Results 1 – 25 of 120) sorted by relevance

12345

/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java55 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/
DCompatResources.java46 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/
DButtonItemTest.java64 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/
DRvBoxAdapter.java51 if (context.getTheme() != null) { in RvBoxAdapter()
52 context.getTheme().resolveAttribute( in RvBoxAdapter()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAppProgress.java331 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/
DContextThemeWrapper.java168 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/
DListViewTest.java102 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/
DMediaRouteControllerDialogFragment.java52 return new MediaRouteControllerDialog(context, getTheme()); in onCreateControllerDialog()
DMediaRouteChooserDialogFragment.java94 return new MediaRouteChooserDialog(context, getTheme()); in onCreateChooserDialog()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperSettingsActivity.java40 Resources.Theme theme = getTheme(); in onCreate()
/frameworks/base/apct-tests/perftests/core/src/android/app/
DResourcesThemePerfTest.java43 mTheme = context.getTheme(); in setUp()
/frameworks/base/tools/aapt2/integration-tests/NamespaceTest/LibTwo/src/com/android/aapt/namespace/libtwo/
DTextView.java41 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/
DThemableWidget.java35 … ContextThemeWrapper context = new ContextThemeWrapper(getContext(), getContext().getTheme()); in init()
/frameworks/base/core/java/android/content/
DContext.java676 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/
DTileColorPicker.java37 getColorStateList(R.color.tint_color_selector, context.getTheme()); in TileColorPicker()
/frameworks/base/core/java/android/widget/
DCursorAdapter.java217 } else if (theme == mContext.getTheme()) { in setDropDownViewTheme()
226 return mDropDownContext == null ? null : mDropDownContext.getTheme(); in getDropDownViewTheme()
DSimpleAdapter.java166 } 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/
DCycleInterpolator.java42 this(context.getResources(), context.getTheme(), attrs); in CycleInterpolator()
DOvershootInterpolator.java52 this(context.getResources(), context.getTheme(), attrs); in OvershootInterpolator()
DDecelerateInterpolator.java52 this(context.getResources(), context.getTheme(), attrs); in DecelerateInterpolator()
DAnticipateInterpolator.java51 this(context.getResources(), context.getTheme(), attrs); in AnticipateInterpolator()
DAccelerateInterpolator.java59 this(context.getResources(), context.getTheme(), attrs); in AccelerateInterpolator()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileColorPickerTest.java45 getColorStateList(R.color.tint_color_selector, mContext.getTheme()); in setUp()
/frameworks/base/core/java/android/app/
DDialogFragment.java321 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/
DCustomScrollView.java78 context.getTheme().resolveAttribute(R.attr.autofillSaveCustomSubtitleMaxHeight, in calculateDimensions()

12345