Home
last modified time | relevance | path

Searched refs:mTheme (Results 1 – 18 of 18) sorted by relevance

/frameworks/support/v7/appcompat/src/android/support/v7/view/
DContextThemeWrapper.java34 private Resources.Theme mTheme; field in ContextThemeWrapper
44 mTheme = theme; in ContextThemeWrapper()
61 if (mTheme != null) { in getTheme()
62 return mTheme; in getTheme()
70 return mTheme; in getTheme()
100 final boolean first = mTheme == null; in initializeTheme()
102 mTheme = getResources().newTheme(); in initializeTheme()
105 mTheme.setTo(theme); in initializeTheme()
108 onApplyThemeResource(mTheme, mThemeResource, first); in initializeTheme()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DTintContextWrapper.java79 private final Resources.Theme mTheme; field in TintContextWrapper
87 mTheme = getResources().newTheme(); in TintContextWrapper()
88 mTheme.setTo(base.getTheme()); in TintContextWrapper()
90 mTheme = null; in TintContextWrapper()
96 return mTheme == null ? super.getTheme() : mTheme; in getTheme()
101 if (mTheme == null) { in setTheme()
104 mTheme.applyStyle(resid, true); in setTheme()
111 mResources = (mTheme == null) in getResources()
/frameworks/base/core/java/android/view/
DContextThemeWrapper.java32 private Resources.Theme mTheme; field in ContextThemeWrapper
75 mTheme = theme; in ContextThemeWrapper()
152 if (mTheme != null) { in getTheme()
153 return mTheme; in getTheme()
160 return mTheme; in getTheme()
190 final boolean first = mTheme == null; in initializeTheme()
192 mTheme = getResources().newTheme(); in initializeTheme()
195 mTheme.setTo(theme); in initializeTheme()
198 onApplyThemeResource(mTheme, mThemeResource, first); in initializeTheme()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DButtonItem.java41 private int mTheme = R.style.SuwButtonItem; field in ButtonItem
55 mTheme = a.getResourceId(R.styleable.SuwButtonItem_android_theme, R.style.SuwButtonItem); in ButtonItem()
79 mTheme = theme; in setTheme()
87 return mTheme; in getTheme()
120 if (mTheme != 0) { in createButton()
121 context = new ContextThemeWrapper(context, mTheme); in createButton()
/frameworks/base/core/java/android/app/
DDialogFragment.java177 int mTheme = 0; field in DialogFragment
207 mTheme = com.android.internal.R.style.Theme_DeviceDefault_Dialog_NoFrame; in setStyle()
210 mTheme = theme; in setStyle()
311 return mTheme; in getTheme()
392 mTheme = savedInstanceState.getInt(SAVED_THEME, 0); in onCreate()
518 if (mTheme != 0) { in onSaveInstanceState()
519 outState.putInt(SAVED_THEME, mTheme); in onSaveInstanceState()
561 writer.print(" mTheme=0x"); writer.println(Integer.toHexString(mTheme)); in dump()
DContextImpl.java169 private Resources.Theme mTheme = null; field in ContextImpl
265 if (mTheme != null) { in getTheme()
266 return mTheme; in getTheme()
273 return mTheme; in getTheme()
277 if (mTheme == null) { in initializeTheme()
278 mTheme = mResources.newTheme(); in initializeTheme()
280 mTheme.applyStyle(mThemeResource, true); in initializeTheme()
/frameworks/support/v4/java/android/support/v4/app/
DDialogFragment.java86 int mTheme = 0; field in DialogFragment
116 mTheme = android.R.style.Theme_Panel; in setStyle()
119 mTheme = theme; in setStyle()
212 return mTheme; in getTheme()
293 mTheme = savedInstanceState.getInt(SAVED_THEME, 0); in onCreate()
426 if (mTheme != 0) { in onSaveInstanceState()
427 outState.putInt(SAVED_THEME, mTheme); in onSaveInstanceState()
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
DVectorDrawableTest.java119 private Theme mTheme; field in VectorDrawableTest
131 mTheme = mContext.getTheme(); in setup()
143 mVectorDrawable = VectorDrawableCompat.create(mResources, resIds[i], mTheme); in verifyVectorDrawables()
267 VectorDrawableCompat.create(mResources, TEST_ICON, mTheme); in testGetChangingConfigurations()
292 VectorDrawableCompat.create(mResources, R.drawable.vector_icon_delete, mTheme); in testGetConstantState()
306 VectorDrawableCompat.create(mResources, TEST_ICON, mTheme); in testMutate()
336 VectorDrawableCompat.create(mResources, R.drawable.vector_icon_delete, mTheme); in testBounds()
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java1055 private final long mTheme; field in ResourcesImpl.ThemeImpl
1064 mTheme = mAssets.createTheme(); in ThemeImpl()
1070 mAssets.releaseTheme(mTheme); in finalize()
1078 return mTheme; in getNativeTheme()
1087 AssetManager.applyThemeStyle(mTheme, resId, force); in applyStyle()
1097 AssetManager.copyTheme(mTheme, other.mTheme); in setTo()
1120 AssetManager.applyStyle(mTheme, defStyleAttr, defStyleRes, in obtainStyledAttributes()
1123 array.mTheme = wrapper; in obtainStyledAttributes()
1142 AssetManager.resolveAttrs(mTheme, 0, 0, values, attrs, array.mData, array.mIndices); in resolveAttributes()
1143 array.mTheme = wrapper; in resolveAttributes()
[all …]
DTypedArray.java78 /*package*/ Resources.Theme mTheme; field in TypedArray
452 value, value.resourceId, mTheme); in getColor()
496 return mResources.loadComplexColor(value, value.resourceId, mTheme); in getComplexColor()
531 return mResources.loadColorStateList(value, value.resourceId, mTheme); in getColorStateList()
928 return mResources.loadDrawable(value, value.resourceId, mTheme); in getDrawable()
1092 mTheme = null; in recycle()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DGuidedStepFragment.java249 private int mTheme; field in GuidedStepFragment
267 mTheme = onProvideTheme(); in GuidedStepFragment()
1312 if (mTheme == -1 && !isGuidedStepTheme(activity)) { in resolveTheme()
1323 mTheme = typedValue.resourceId; in resolveTheme()
1333 } else if (mTheme != -1) { in resolveTheme()
1334 mThemeWrapper = new ContextThemeWrapper(activity, mTheme); in resolveTheme()
1339 if (mTheme == -1) { in getThemeInflater()
DGuidedStepSupportFragment.java251 private int mTheme; field in GuidedStepSupportFragment
269 mTheme = onProvideTheme(); in GuidedStepSupportFragment()
1314 if (mTheme == -1 && !isGuidedStepTheme(activity)) { in resolveTheme()
1325 mTheme = typedValue.resourceId; in resolveTheme()
1335 } else if (mTheme != -1) { in resolveTheme()
1336 mThemeWrapper = new ContextThemeWrapper(activity, mTheme); in resolveTheme()
1341 if (mTheme == -1) { in getThemeInflater()
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionSession.java131 int mTheme = 0; field in VoiceInteractionSession
1159 mTheme = theme; in setTheme()
1275 mTheme = mTheme != 0 ? mTheme in doOnCreate()
1279 mWindow = new SoftInputWindow(mContext, "VoiceInteractionSession", mTheme, in doOnCreate()
1621 writer.print(prefix); writer.print("mTheme=#"); writer.println(Integer.toHexString(mTheme)); in dump()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAlertDialog.java278 private final int mTheme; field in AlertDialog.Builder
323 mTheme = themeResId; in Builder()
927 final AlertDialog dialog = new AlertDialog(P.mContext, mTheme); in create()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java266 int mTheme = 0; field in InputMethodService
749 mTheme = theme; in setTheme()
776 mTheme = Resources.selectSystemTheme(mTheme, in onCreate()
782 super.setTheme(mTheme); in onCreate()
791 mWindow = new SoftInputWindow(this, "InputMethod", mTheme, null, null, mDispatcherState, in onCreate()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java158 mTheme = theme; in setTheme()
681 return ResourceHelper.getDrawable(value, mContext, mTheme); in getDrawable()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java135 private Resources.Theme mTheme; field in BridgeContext
233 mTheme = mSystemResources.newTheme(); in initResources()
502 return mTheme; in getTheme()
/frameworks/base/core/java/com/android/internal/policy/
DPhoneWindow.java286 private int mTheme = -1; field in PhoneWindow
2333 if (mTheme != -1) { in generateDecor()
2334 context.setTheme(mTheme); in generateDecor()
3813 mTheme = resid;