Home
last modified time | relevance | path

Searched refs:getResourceId (Results 1 – 25 of 176) sorted by relevance

12345678

/frameworks/base/services/core/java/com/android/server/accounts/
DAccountAuthenticatorCache.java63 final int labelId = sa.getResourceId( in parseServiceAttributes()
65 final int iconId = sa.getResourceId( in parseServiceAttributes()
67 final int smallIconId = sa.getResourceId( in parseServiceAttributes()
69 final int prefId = sa.getResourceId( in parseServiceAttributes()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DTintTypedArray.java76 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawable()
86 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawableIfKnown()
116 final int resourceId = mWrapped.getResourceId(index, 0); in getFont()
172 final int resourceId = mWrapped.getResourceId(index, 0); in getColorStateList()
212 public int getResourceId(int index, int defValue) { in getResourceId() method in TintTypedArray
213 return mWrapped.getResourceId(index, defValue); in getResourceId()
DViewStubCompat.java60 mInflatedId = a.getResourceId(R.styleable.ViewStubCompat_android_inflatedId, NO_ID); in ViewStubCompat()
61 mLayoutResource = a.getResourceId(R.styleable.ViewStubCompat_android_layout, 0); in ViewStubCompat()
63 setId(a.getResourceId(R.styleable.ViewStubCompat_android_id, NO_ID)); in ViewStubCompat()
DAppCompatTextHelperV17.java47 a.getResourceId(R.styleable.AppCompatTextHelper_android_drawableStart, 0)); in loadFromAttributes()
51 a.getResourceId(R.styleable.AppCompatTextHelper_android_drawableEnd, 0)); in loadFromAttributes()
DAppCompatTextHelper.java72 final int ap = a.getResourceId(R.styleable.AppCompatTextHelper_android_textAppearance, -1); in loadFromAttributes()
76 a.getResourceId(R.styleable.AppCompatTextHelper_android_drawableLeft, 0)); in loadFromAttributes()
80 a.getResourceId(R.styleable.AppCompatTextHelper_android_drawableTop, 0)); in loadFromAttributes()
84 a.getResourceId(R.styleable.AppCompatTextHelper_android_drawableRight, 0)); in loadFromAttributes()
88 a.getResourceId(R.styleable.AppCompatTextHelper_android_drawableBottom, 0)); in loadFromAttributes()
/frameworks/support/compat/java/android/support/v4/content/res/
DFontResourcesParserCompat.java120 public int getResourceId() { in getResourceId() method in FontResourcesParserCompat.FontFileResourceEntry
176 int certsId = array.getResourceId(R.styleable.FontFamily_fontProviderCerts, 0); in readFamily()
217 boolean isArrayOfArrays = typedArray.getResourceId(0, 0) != 0; in readCerts()
220 int certId = typedArray.getResourceId(i, 0); in readCerts()
249 int resourceId = array.getResourceId(R.styleable.FontFamilyFont_font, 0); in readFont()
DTypedArrayUtils.java141 return a.getResourceId(resId, defaultValue); in getNamedResourceId()
227 public static int getResourceId(TypedArray a, @StyleableRes int index, in getResourceId() method in TypedArrayUtils
229 int val = a.getResourceId(fallbackIndex, defaultValue); in getResourceId()
230 return a.getResourceId(index, val); in getResourceId()
/frameworks/support/compat/tests/java/android/support/v4/content/res/
DFontResourcesParserCompatTest.java76 assertEquals(R.font.samplefont, font1.getResourceId()); in testParse()
80 assertEquals(R.font.samplefont2, font2.getResourceId()); in testParse()
84 assertEquals(R.font.samplefont3, font3.getResourceId()); in testParse()
88 assertEquals(R.font.samplefont4, font4.getResourceId()); in testParse()
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java204 mAlertDialogLayout = a.getResourceId( in AlertController()
206 mButtonPanelSideLayout = a.getResourceId( in AlertController()
208 mListLayout = a.getResourceId( in AlertController()
211 mMultiChoiceItemLayout = a.getResourceId( in AlertController()
214 mSingleChoiceItemLayout = a.getResourceId( in AlertController()
217 mListItemLayout = a.getResourceId( in AlertController()
807 topBright = a.getResourceId(R.styleable.AlertDialog_topBright, topBright); in setBackground()
808 topDark = a.getResourceId(R.styleable.AlertDialog_topDark, topDark); in setBackground()
809 centerBright = a.getResourceId(R.styleable.AlertDialog_centerBright, centerBright); in setBackground()
810 centerDark = a.getResourceId(R.styleable.AlertDialog_centerDark, centerDark); in setBackground()
[all …]
/frameworks/base/core/java/android/app/
DWallpaperInfo.java129 thumbnailRes = sa.getResourceId( in WallpaperInfo()
132 authorRes = sa.getResourceId( in WallpaperInfo()
135 descriptionRes = sa.getResourceId( in WallpaperInfo()
138 contextUriRes = sa.getResourceId( in WallpaperInfo()
141 contextDescriptionRes = sa.getResourceId( in WallpaperInfo()
DSearchableInfo.java316 mLabelId = a.getResourceId(com.android.internal.R.styleable.Searchable_label, 0); in SearchableInfo()
317 mHintId = a.getResourceId(com.android.internal.R.styleable.Searchable_hint, 0); in SearchableInfo()
318 mIconId = a.getResourceId(com.android.internal.R.styleable.Searchable_icon, 0); in SearchableInfo()
319 mSearchButtonText = a.getResourceId( in SearchableInfo()
333 mSettingsDescriptionId = a.getResourceId( in SearchableInfo()
352 a.getResourceId(com.android.internal.R.styleable.Searchable_voiceLanguageModel, 0); in SearchableInfo()
354 a.getResourceId(com.android.internal.R.styleable.Searchable_voicePromptText, 0); in SearchableInfo()
356 a.getResourceId(com.android.internal.R.styleable.Searchable_voiceLanguage, 0); in SearchableInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DResizingSpace.java36 mWidth = a.getResourceId(android.R.styleable.ViewGroup_Layout_layout_width, 0); in ResizingSpace()
37 mHeight = a.getResourceId(android.R.styleable.ViewGroup_Layout_layout_height, 0); in ResizingSpace()
/frameworks/base/core/java/android/view/
DViewStub.java111 mInflatedId = a.getResourceId(R.styleable.ViewStub_inflatedId, NO_ID); in ViewStub()
112 mLayoutResource = a.getResourceId(R.styleable.ViewStub_layout, 0); in ViewStub()
113 mID = a.getResourceId(R.styleable.ViewStub_id, NO_ID); in ViewStub()
/frameworks/base/core/java/android/transition/
DTransitionInflater.java255 int id = a.getResourceId(R.styleable.TransitionTarget_targetId, 0); in getTargetIds()
259 } else if ((id = a.getResourceId(R.styleable.TransitionTarget_excludeId, 0)) != 0) { in getTargetIds()
325 int transitionId = a.getResourceId(R.styleable.TransitionManager_transition, -1); in loadTransition()
326 int fromId = a.getResourceId(R.styleable.TransitionManager_fromScene, -1); in loadTransition()
328 int toId = a.getResourceId(R.styleable.TransitionManager_toScene, -1); in loadTransition()
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java86 return Bridge.getResourceId(ResourceType.ATTR, name); in getAttributeNameResource()
93 Integer v = mContext.getLayoutlibCallback().getResourceId(ResourceType.ATTR, name); in getAttributeNameResource()
300 id = Bridge.getResourceId(resource.getResourceType(), resource.getName()); in resolveResourceValue()
302 id = mContext.getLayoutlibCallback().getResourceId( in resolveResourceValue()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java547 public int getResourceId(int index, int defValue) { in getResourceId() method in BridgeTypedArray
627 idValue = Bridge.getResourceId(ResourceType.ID, idName); in getResourceId()
629 … idValue = mContext.getLayoutlibCallback().getResourceId(ResourceType.ID, idName); in getResourceId()
642 return mContext.getLayoutlibCallback().getResourceId(ResourceType.AAPT, value); in getResourceId()
657 idValue = Bridge.getResourceId(resValue.getResourceType(), in getResourceId()
660 idValue = mContext.getLayoutlibCallback().getResourceId( in getResourceId()
741 int id = getResourceId(index, 0); in getTextArray()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutParser.java299 final int iconResId = sa.getResourceId(R.styleable.Shortcut_icon, 0); in parseShortcutAttributes()
300 final int titleResId = sa.getResourceId(R.styleable.Shortcut_shortcutShortLabel, 0); in parseShortcutAttributes()
301 final int textResId = sa.getResourceId(R.styleable.Shortcut_shortcutLongLabel, 0); in parseShortcutAttributes()
302 final int disabledMessageResId = sa.getResourceId( in parseShortcutAttributes()
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java150 int certsId = array.getResourceId(R.styleable.FontFamily_fontProviderCerts, 0); in readFamily()
161 boolean isArrayOfArrays = typedArray.getResourceId(0, 0) != 0; in readFamily()
164 int certId = typedArray.getResourceId(i, 0); in readFamily()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DSimpleInflater.java128 int itemId = a.getResourceId(R.styleable.MenuItem_android_id, 0); in readItem()
133 int itemIconResId = a.getResourceId(R.styleable.MenuItem_android_icon, 0); in readItem()
/frameworks/base/core/java/android/widget/
DRelativeLayout.java257 mIgnoreGravity = a.getResourceId(R.styleable.RelativeLayout_ignoreGravity, View.NO_ID); in initFromAttributes()
1287 rules[LEFT_OF] = a.getResourceId(attr, 0); in LayoutParams()
1290 rules[RIGHT_OF] = a.getResourceId(attr, 0); in LayoutParams()
1293 rules[ABOVE] = a.getResourceId(attr, 0); in LayoutParams()
1296 rules[BELOW] = a.getResourceId(attr, 0); in LayoutParams()
1299 rules[ALIGN_BASELINE] = a.getResourceId(attr, 0); in LayoutParams()
1302 rules[ALIGN_LEFT] = a.getResourceId(attr, 0); in LayoutParams()
1305 rules[ALIGN_TOP] = a.getResourceId(attr, 0); in LayoutParams()
1308 rules[ALIGN_RIGHT] = a.getResourceId(attr, 0); in LayoutParams()
1311 rules[ALIGN_BOTTOM] = a.getResourceId(attr, 0); in LayoutParams()
[all …]
/frameworks/support/wear/src/android/support/wear/widget/drawer/
DWearableDrawerView.java175 typedArray.getResourceId(index, 0); in getDrawable()
478 mContentResId = typedArray.getResourceId(R.styleable.WearableDrawerView_drawerContent, 0); in parseAttributes()
479 mPeekResId = typedArray.getResourceId(R.styleable.WearableDrawerView_peekView, 0); in parseAttributes()
/frameworks/base/core/java/android/view/animation/
DLayoutAnimationController.java114 … int resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_animation, 0); in LayoutAnimationController()
119 … resource = a.getResourceId(com.android.internal.R.styleable.LayoutAnimation_interpolator, 0); in LayoutAnimationController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/
DPipControlButtonView.java90 setImageResource(typedArray.getResourceId(0, 0)); in PipControlButtonView()
91 setText(typedArray.getResourceId(1, 0)); in PipControlButtonView()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DTemplateLayout.java77 template = a.getResourceId(R.styleable.SuwTemplateLayout_android_layout, 0); in init()
80 containerId = a.getResourceId(R.styleable.SuwTemplateLayout_suwContainer, 0); in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DShortcutParser.java109 final int iconResId = sa.getResourceId(R.styleable.Shortcut_icon, 0); in parseShortcut()
110 final int titleResId = sa.getResourceId(R.styleable.Shortcut_shortcutShortLabel, 0); in parseShortcut()

12345678