Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java58 assertEquals(null, mCache.getInstance(1, res, getActivity().getTheme())); in testSetGet()
63 mCache.put(1, getActivity().getTheme(), new DummyFloatConstantState(5f), in testSetGetThemed()
67 assertEquals(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testSetGetThemed()
68 assertNotSame(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testSetGetThemed()
73 mCache.put(1, getActivity().getTheme(), new DummyFloatConstantState(5f), in testMultiThreadPutGet()
80 assertEquals(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testMultiThreadPutGet()
81 assertNotSame(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testMultiThreadPutGet()
92 mCache.put(key, getActivity().getTheme(), in testVoidConfigChange()
101 assertEquals(staticDim, mCache.getInstance(key, res, getActivity().getTheme())); in testVoidConfigChange()
103 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/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvBoxAdapter.java51 if (context.getTheme() != null) { in RvBoxAdapter()
52 context.getTheme().resolveAttribute( in RvBoxAdapter()
/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/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/packages/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAppProgress.java330 getTheme().resolveAttribute(android.R.attr.windowBackground, attribute, true); in initView()
336 getTheme())); in initView()
339 getTheme().resolveAttribute(android.R.attr.navigationBarColor, attribute, true); in initView()
342 getTheme().resolveAttribute(android.R.attr.statusBarColor, attribute, true); in initView()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperSettingsActivity.java40 Resources.Theme theme = getTheme(); in onCreate()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedActivity.java78 int getTheme(); in getTheme() method
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/view/
DTestTextView.java39 final Resources.Theme theme = context.getTheme(); in TestTextView()
/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/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/view/animation/
DOvershootInterpolator.java52 this(context.getResources(), context.getTheme(), attrs); in OvershootInterpolator()
DAnticipateInterpolator.java51 this(context.getResources(), context.getTheme(), attrs); in AnticipateInterpolator()
DCycleInterpolator.java42 this(context.getResources(), context.getTheme(), attrs); in CycleInterpolator()
DAccelerateInterpolator.java59 this(context.getResources(), context.getTheme(), attrs); in AccelerateInterpolator()
DDecelerateInterpolator.java52 this(context.getResources(), context.getTheme(), attrs); in DecelerateInterpolator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsPowerDialog.java56 com.android.systemui.res.R.drawable.control_background, context.getTheme())); in create()
/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/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DLetterboxEduDialogActionLayout.java51 context.getTheme().obtainStyledAttributes( in LetterboxEduDialogActionLayout()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/
DParsedActivityTest.kt54 ParsedActivity::getTheme, in <lambda>()
/frameworks/base/core/java/android/widget/
DCursorAdapter.java217 } else if (theme == mContext.getTheme()) { in setDropDownViewTheme()
226 return mDropDownContext == null ? null : mDropDownContext.getTheme(); in getDropDownViewTheme()

1234567