Home
last modified time | relevance | path

Searched refs:resourceId (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/view/
DInflateTest.java58 public void inflateTest(int resourceId) { in inflateTest() argument
59 mView = mInflater.inflate(resourceId, null); in inflateTest()
63 public void inflateCachedTest(int resourceId) { in inflateCachedTest() argument
65 mInflater.inflate(resourceId, null); in inflateCachedTest()
67 mInflater.inflate(resourceId, null); in inflateCachedTest()
/frameworks/base/core/java/android/view/
DPointerIcon.java131 int resourceId = a.getResourceId(styleIndex, -1); in getSystemIcon() local
134 if (resourceId == -1) { in getSystemIcon()
140 if ((resourceId & 0xff000000) == 0x01000000) { in getSystemIcon()
141 icon.mSystemIconResourceId = resourceId; in getSystemIcon()
143 icon.loadResource(context.getResources(), resourceId); in getSystemIcon() local
195 public static PointerIcon loadCustomIcon(Resources resources, int resourceId) { in loadCustomIcon() argument
201 icon.loadResource(resources, resourceId); in loadCustomIcon()
376 private void loadResource(Resources resources, int resourceId) { in loadResource() argument
377 XmlResourceParser parser = resources.getXml(resourceId); in loadResource()
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
DMultiWaveView.java222 a.peekValue(R.styleable.MultiWaveView_handleDrawable).resourceId); in MultiWaveView()
225 a.peekValue(R.styleable.MultiWaveView_waveDrawable).resourceId); in MultiWaveView()
231 ArrayList<TargetDrawable> chevrons = loadDrawableArray(outValue.resourceId); in MultiWaveView()
242 internalSetTargetResources(outValue.resourceId); in MultiWaveView()
250 final int resourceId = outValue.resourceId; in MultiWaveView() local
251 if (resourceId == 0) { in MultiWaveView()
254 setTargetDescriptionsResourceId(resourceId); in MultiWaveView()
259 final int resourceId = outValue.resourceId; in MultiWaveView() local
260 if (resourceId == 0) { in MultiWaveView()
263 setDirectionDescriptionsResourceId(resourceId); in MultiWaveView()
[all …]
DGlowPadView.java228 mHandleDrawable = new TargetDrawable(res, handle != null ? handle.resourceId : 0); in GlowPadView()
244 internalSetTargetResources(outValue.resourceId); in GlowPadView()
252 final int resourceId = outValue.resourceId; in GlowPadView() local
253 if (resourceId == 0) { in GlowPadView()
256 setTargetDescriptionsResourceId(resourceId); in GlowPadView()
261 final int resourceId = outValue.resourceId; in GlowPadView() local
262 if (resourceId == 0) { in GlowPadView()
265 setDirectionDescriptionsResourceId(resourceId); in GlowPadView()
283 return tv == null ? 0 : tv.resourceId; in getResourceId()
571 private ArrayList<TargetDrawable> loadDrawableArray(int resourceId) { in loadDrawableArray() argument
[all …]
/frameworks/base/core/java/android/gesture/
DGestureLibraries.java47 public static GestureLibrary fromRawResource(Context context, int resourceId) { in fromRawResource() argument
48 return new ResourceGestureLibrary(context, resourceId); in fromRawResource()
112 public ResourceGestureLibrary(Context context, int resourceId) { in ResourceGestureLibrary() argument
114 mResourceId = resourceId; in ResourceGestureLibrary()
/frameworks/ex/chips/src/com/android/ex/chips/
DSingleRecipientArrayAdapter.java33 public SingleRecipientArrayAdapter(Context context, int resourceId, RecipientEntry entry) { in SingleRecipientArrayAdapter() argument
34 super(context, resourceId, new RecipientEntry[] { in SingleRecipientArrayAdapter()
38 mLayoutId = resourceId; in SingleRecipientArrayAdapter()
DBaseRecipientAdapter.java573 final int resourceId = directoryCursor.getInt(DirectoryListQuery.TYPE_RESOURCE_ID); in setupOtherDirectories() local
578 if (packageName != null && resourceId != 0) { in setupOtherDirectories()
582 params.directoryType = resources.getString(resourceId); in setupOtherDirectories()
585 + resourceId + "@" + packageName); in setupOtherDirectories()
589 + resourceId + "@" + packageName, e); in setupOtherDirectories()
/frameworks/base/core/java/android/text/style/
DImageSpan.java113 public ImageSpan(Context context, int resourceId) { in ImageSpan() argument
114 this(context, resourceId, ALIGN_BOTTOM); in ImageSpan()
121 public ImageSpan(Context context, int resourceId, int verticalAlignment) { in ImageSpan() argument
124 mResourceId = resourceId; in ImageSpan()
/frameworks/base/core/java/android/util/
DTypedValue.java170 public int resourceId; field in TypedValue
472 resourceId = other.resourceId; in setTo()
487 if (resourceId != 0) { in toString()
488 sb.append(" r=0x").append(Integer.toHexString(resourceId)); in toString()
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DGraphReader.java41 public FilterGraph readGraphResource(Context context, int resourceId) throws GraphIOException { in readGraphResource() argument
42 InputStream inputStream = context.getResources().openRawResource(resourceId); in readGraphResource()
/frameworks/base/media/mca/filterfw/java/android/filterfw/
DGraphEnvironment.java131 public int loadGraph(Context context, int resourceId) { in loadGraph() argument
135 graph = getGraphReader().readGraphResource(context, resourceId); in loadGraph()
/frameworks/ex/common/java/com/android/common/contacts/
DBaseEmailAddressAdapter.java387 int resourceId = directoryCursor.getInt(DirectoryListQuery.TYPE_RESOURCE_ID); in onDirectoryLoadFinished() local
388 if (packageName != null && resourceId != 0) { in onDirectoryLoadFinished()
392 partition.directoryType = resources.getString(resourceId); in onDirectoryLoadFinished()
395 + resourceId + "@" + packageName); in onDirectoryLoadFinished()
399 + resourceId + "@" + packageName, e); in onDirectoryLoadFinished()
/frameworks/base/core/java/android/content/res/
DTypedArray.java320 value, value.resourceId); in getColor()
342 return mResources.loadColorStateList(value, value.resourceId); in getColorStateList()
601 return mResources.loadDrawable(value, value.resourceId); in getDrawable()
628 return mResources.getTextArray(value.resourceId); in getTextArray()
708 outValue.resourceId = data[index+AssetManager.STYLE_RESOURCE_ID]; in getValueAt()
DResources.java1300 value.resourceId = data[d+AssetManager.STYLE_RESOURCE_ID]; in obtainStyledAttributes()
1397 value.resourceId = data[d+AssetManager.STYLE_RESOURCE_ID]; in obtainStyledAttributes()
1989 int resourceId, String name) { in verifyPreloadConfig() argument
1998 resName = getResourceName(resourceId); in verifyPreloadConfig()
2003 + Integer.toHexString(resourceId) in verifyPreloadConfig()
2010 resName = getResourceName(resourceId); in verifyPreloadConfig()
2015 + Integer.toHexString(resourceId) in verifyPreloadConfig()
2129 if (verifyPreloadConfig(changingConfigs, 0, value.resourceId, in loadDrawable()
2135 LAYOUT_DIR_CONFIG, value.resourceId, "drawable")) { in loadDrawable()
2212 if (verifyPreloadConfig(value.changingConfigurations, 0, value.resourceId, in loadColorStateList()
[all …]
/frameworks/base/core/java/android/webkit/
DSelectActionModeCallback.java143 private void setMenuVisibility(Menu menu, boolean visible, int resourceId) { in setMenuVisibility() argument
144 final MenuItem item = menu.findItem(resourceId); in setMenuVisibility()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeech.java772 public int addSpeech(String text, String packagename, int resourceId) { in addSpeech() argument
774 mUtterances.put(text, makeResourceUri(packagename, resourceId)); in addSpeech()
827 public int addEarcon(String earcon, String packagename, int resourceId) { in addEarcon() argument
829 mEarcons.put(earcon, makeResourceUri(packagename, resourceId)); in addEarcon()
856 private Uri makeResourceUri(String packageName, int resourceId) { in makeResourceUri() argument
860 .appendEncodedPath(String.valueOf(resourceId)) in makeResourceUri()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouterThemeHelper.java41 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0; in getThemeResource()
/frameworks/base/core/java/android/widget/
DCalendarView.java598 public void setSelectedDateVerticalBar(int resourceId) { in setSelectedDateVerticalBar() argument
599 Drawable drawable = getResources().getDrawable(resourceId); in setSelectedDateVerticalBar()
641 public void setWeekDayTextAppearance(int resourceId) { in setWeekDayTextAppearance() argument
642 if (mWeekDayTextAppearanceResId != resourceId) { in setWeekDayTextAppearance()
643 mWeekDayTextAppearanceResId = resourceId; in setWeekDayTextAppearance()
666 public void setDateTextAppearance(int resourceId) { in setDateTextAppearance() argument
667 if (mDateTextAppearanceResId != resourceId) { in setDateTextAppearance()
668 mDateTextAppearanceResId = resourceId; in setDateTextAppearance()
DActivityChooserView.java286 public void setExpandActivityOverflowButtonContentDescription(int resourceId) { in setExpandActivityOverflowButtonContentDescription() argument
287 CharSequence contentDescription = mContext.getString(resourceId); in setExpandActivityOverflowButtonContentDescription()
466 public void setDefaultActionButtonContentDescription(int resourceId) { in setDefaultActionButtonContentDescription() argument
467 mDefaultActionButtonContentDescription = resourceId; in setDefaultActionButtonContentDescription()
DSuggestionsAdapter.java373 mUrlColor = mContext.getResources().getColorStateList(colorValue.resourceId); in formatUrl()
522 int resourceId = Integer.parseInt(drawableId); in getDrawableFromResourceValue() local
525 + "://" + mProviderContext.getPackageName() + "/" + resourceId; in getDrawableFromResourceValue()
532 drawable = mProviderContext.getResources().getDrawable(resourceId); in getDrawableFromResourceValue()
/frameworks/base/core/java/android/preference/
DPreferenceActivity.java799 if (tv.resourceId != 0) { in loadHeadersFromResource()
800 header.titleRes = tv.resourceId; in loadHeadersFromResource()
808 if (tv.resourceId != 0) { in loadHeadersFromResource()
809 header.summaryRes = tv.resourceId; in loadHeadersFromResource()
817 if (tv.resourceId != 0) { in loadHeadersFromResource()
818 header.breadCrumbTitleRes = tv.resourceId; in loadHeadersFromResource()
826 if (tv.resourceId != 0) { in loadHeadersFromResource()
827 header.breadCrumbShortTitleRes = tv.resourceId; in loadHeadersFromResource()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActivityChooserView.java292 public void setExpandActivityOverflowButtonContentDescription(int resourceId) { in setExpandActivityOverflowButtonContentDescription() argument
293 CharSequence contentDescription = getContext().getString(resourceId); in setExpandActivityOverflowButtonContentDescription()
472 public void setDefaultActionButtonContentDescription(int resourceId) { in setDefaultActionButtonContentDescription() argument
473 mDefaultActionButtonContentDescription = resourceId; in setDefaultActionButtonContentDescription()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSuggestionsAdapter.java333 mUrlColor = mContext.getResources().getColorStateList(colorValue.resourceId); in formatUrl()
482 int resourceId = Integer.parseInt(drawableId); in getDrawableFromResourceValue() local
485 + "://" + mProviderContext.getPackageName() + "/" + resourceId; in getDrawableFromResourceValue()
492 drawable = mProviderContext.getResources().getDrawable(resourceId); in getDrawableFromResourceValue()
/frameworks/base/services/java/com/android/server/am/
DLaunchWarningWindow.java43 getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, out.resourceId); in LaunchWarningWindow()
/frameworks/base/core/java/android/app/
DAlertDialog.java145 return outValue.resourceId; in resolveDialogTheme()
327 mAlert.setIcon(out.resourceId); in setIconAttribute()
476 P.mIconId = out.resourceId; in setIconAttribute()

123