Home
last modified time | relevance | path

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

12

/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/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/com/android/internal/widget/multiwaveview/
DMultiWaveView.java188 internalSetTargetResources(outValue.resourceId); in MultiWaveView()
196 final int resourceId = outValue.resourceId; in MultiWaveView() local
197 if (resourceId == 0) { in MultiWaveView()
200 setTargetDescriptionsResourceId(resourceId); in MultiWaveView()
205 final int resourceId = outValue.resourceId; in MultiWaveView() local
206 if (resourceId == 0) { in MultiWaveView()
209 setDirectionDescriptionsResourceId(resourceId); in MultiWaveView()
516 private void internalSetTargetResources(int resourceId) { in internalSetTargetResources() argument
518 TypedArray array = res.obtainTypedArray(resourceId); in internalSetTargetResources()
526 mTargetResourceId = resourceId; in internalSetTargetResources()
[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/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/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/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.java545 final int resourceId = directoryCursor.getInt(DirectoryListQuery.TYPE_RESOURCE_ID); in setupOtherDirectories() local
550 if (packageName != null && resourceId != 0) { in setupOtherDirectories()
554 params.directoryType = resources.getString(resourceId); in setupOtherDirectories()
557 + resourceId + "@" + packageName); in setupOtherDirectories()
561 + resourceId + "@" + packageName, e); in setupOtherDirectories()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeech.java628 public int addSpeech(String text, String packagename, int resourceId) { in addSpeech() argument
630 mUtterances.put(text, makeResourceUri(packagename, resourceId)); in addSpeech()
683 public int addEarcon(String earcon, String packagename, int resourceId) { in addEarcon() argument
685 mEarcons.put(earcon, makeResourceUri(packagename, resourceId)); in addEarcon()
712 private Uri makeResourceUri(String packageName, int resourceId) { in makeResourceUri() argument
716 .appendEncodedPath(String.valueOf(resourceId)) in makeResourceUri()
/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.java1202 value.resourceId = data[d+AssetManager.STYLE_RESOURCE_ID]; in obtainStyledAttributes()
1299 value.resourceId = data[d+AssetManager.STYLE_RESOURCE_ID]; in obtainStyledAttributes()
/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/preference/
DPreferenceActivity.java778 if (tv.resourceId != 0) { in loadHeadersFromResource()
779 header.titleRes = tv.resourceId; in loadHeadersFromResource()
787 if (tv.resourceId != 0) { in loadHeadersFromResource()
788 header.summaryRes = tv.resourceId; in loadHeadersFromResource()
796 if (tv.resourceId != 0) { in loadHeadersFromResource()
797 header.breadCrumbTitleRes = tv.resourceId; in loadHeadersFromResource()
805 if (tv.resourceId != 0) { in loadHeadersFromResource()
806 header.breadCrumbShortTitleRes = tv.resourceId; in loadHeadersFromResource()
/frameworks/base/core/java/android/widget/
DActivityChooserView.java288 public void setExpandActivityOverflowButtonContentDescription(int resourceId) { in setExpandActivityOverflowButtonContentDescription() argument
289 CharSequence contentDescription = mContext.getString(resourceId); in setExpandActivityOverflowButtonContentDescription()
467 public void setDefaultActionButtonContentDescription(int resourceId) { in setDefaultActionButtonContentDescription() argument
468 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()
DShareActionProvider.java170 Drawable drawable = mContext.getResources().getDrawable(outTypedValue.resourceId); in onCreateActionView()
/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.java144 return outValue.resourceId; in resolveDialogTheme()
326 mAlert.setIcon(out.resourceId); in setIconAttribute()
475 P.mIconId = out.resourceId; in setIconAttribute()
DDialog.java151 theme = outValue.resourceId; in Dialog()
DSearchDialog.java116 return outValue.resourceId; in resolveDialogTheme()
/frameworks/base/core/java/com/android/internal/app/
DShutdownThread.java103 final int resourceId = longPressBehavior == 2 in shutdown() local
113 .setMessage(resourceId) in shutdown()
DHeavyWeightSwitcherActivity.java91 out.resourceId); in onCreate()
/frameworks/base/core/java/android/net/http/
DRequest.java522 void error(int errorId, int resourceId) { in error() argument
526 resourceId).toString()); in error()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java265 outValue.resourceId = getDynamicIdByStyle((StyleResourceValue)value); in resolveThemeAttribute()
283 outValue.resourceId = a; in resolveThemeAttribute()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java1597 if (v != null && (ai.labelRes=v.resourceId) == 0) { in parseApplication()
1883 if (v != null && (outInfo.labelRes=v.resourceId) == 0) { in parsePackageItemInfo()
2689 if (v != null && v.resourceId != 0) { in parseMetaData()
2691 data.putInt(name, v.resourceId); in parseMetaData()
2804 if (v != null && (outInfo.labelRes=v.resourceId) == 0) { in parseIntent()
3102 if (v != null && (outInfo.labelRes=v.resourceId) == 0) { in Component()

12