Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/widget/
DCalendarView.java256 public void setSelectedDateVerticalBar(int resourceId) { in setSelectedDateVerticalBar() argument
257 mDelegate.setSelectedDateVerticalBar(resourceId); in setSelectedDateVerticalBar()
289 public void setWeekDayTextAppearance(int resourceId) { in setWeekDayTextAppearance() argument
290 mDelegate.setWeekDayTextAppearance(resourceId); in setWeekDayTextAppearance()
311 public void setDateTextAppearance(int resourceId) { in setDateTextAppearance() argument
312 mDelegate.setDateTextAppearance(resourceId); in setDateTextAppearance()
538 void setSelectedDateVerticalBar(int resourceId); in setSelectedDateVerticalBar() argument
542 void setWeekDayTextAppearance(int resourceId); in setWeekDayTextAppearance() argument
545 void setDateTextAppearance(int resourceId); in setDateTextAppearance() argument
DCalendarViewMaterialDelegate.java124 public void setWeekDayTextAppearance(int resourceId) { in setWeekDayTextAppearance() argument
134 public void setDateTextAppearance(int resourceId) { in setDateTextAppearance() argument
166 public void setSelectedDateVerticalBar(int resourceId) { in setSelectedDateVerticalBar() argument
DCalendarViewLegacyDelegate.java440 public void setSelectedDateVerticalBar(int resourceId) { in setSelectedDateVerticalBar() argument
441 Drawable drawable = mDelegator.getContext().getDrawable(resourceId); in setSelectedDateVerticalBar()
465 public void setWeekDayTextAppearance(int resourceId) { in setWeekDayTextAppearance() argument
466 if (mWeekDayTextAppearanceResId != resourceId) { in setWeekDayTextAppearance()
467 mWeekDayTextAppearanceResId = resourceId; in setWeekDayTextAppearance()
478 public void setDateTextAppearance(int resourceId) { in setDateTextAppearance() argument
479 if (mDateTextAppearanceResId != resourceId) { in setDateTextAppearance()
480 mDateTextAppearanceResId = resourceId; in setDateTextAppearance()
/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, context.getResources(), resourceId); in getSystemIcon()
195 public static PointerIcon loadCustomIcon(Resources resources, int resourceId) { in loadCustomIcon() argument
201 icon.loadResource(null, resources, resourceId); in loadCustomIcon()
376 private void loadResource(Context context, Resources resources, int resourceId) { in loadResource() argument
377 final XmlResourceParser parser = resources.getXml(resourceId); in loadResource()
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
DGlowPadView.java234 mHandleDrawable = new TargetDrawable(res, handle != null ? handle.resourceId : 0); in GlowPadView()
254 internalSetTargetResources(outValue.resourceId); in GlowPadView()
262 final int resourceId = outValue.resourceId; in GlowPadView() local
263 if (resourceId == 0) { in GlowPadView()
266 setTargetDescriptionsResourceId(resourceId); in GlowPadView()
271 final int resourceId = outValue.resourceId; in GlowPadView() local
272 if (resourceId == 0) { in GlowPadView()
275 setDirectionDescriptionsResourceId(resourceId); in GlowPadView()
289 return tv == null ? 0 : tv.resourceId; in getResourceId()
577 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/base/core/java/android/util/
DTypedValue.java181 public int resourceId; field in TypedValue
491 resourceId = other.resourceId; in setTo()
506 if (resourceId != 0) { in toString()
507 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/base/libs/androidfw/tests/
DTestHelpers.cpp25 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resourceId, const char* ex… in IsStringEqual() argument
27 ssize_t block = table.getResource(resourceId, &val, MAY_NOT_BE_BAG); in IsStringEqual()
DTestHelpers.h31 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resourceId, const char* ex…
/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/support/v7/appcompat/src/android/support/v7/internal/widget/
DTintTypedArray.java60 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawable() local
61 if (resourceId != 0) { in getDrawable()
62 return getTintManager().getDrawable(resourceId); in getDrawable()
DActivityChooserView.java315 public void setExpandActivityOverflowButtonContentDescription(int resourceId) { in setExpandActivityOverflowButtonContentDescription() argument
316 CharSequence contentDescription = getContext().getString(resourceId); in setExpandActivityOverflowButtonContentDescription()
495 public void setDefaultActionButtonContentDescription(int resourceId) { in setDefaultActionButtonContentDescription() argument
496 mDefaultActionButtonContentDescription = resourceId; in setDefaultActionButtonContentDescription()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphReader.java532 public static FilterGraph readXmlGraphResource(MffContext context, int resourceId) in readXmlGraphResource() argument
534 FilterGraph.Builder builder = getBuilderForXmlResource(context, resourceId); in readXmlGraphResource()
550 MffContext context, int resourceId, FilterGraph parentGraph) in readXmlSubGraphResource() argument
552 FilterGraph.Builder builder = getBuilderForXmlResource(context, resourceId); in readXmlSubGraphResource()
565 private static FilterGraph.Builder getBuilderForXmlResource(MffContext context, int resourceId) in getBuilderForXmlResource() argument
568 .openRawResource(resourceId); in getBuilderForXmlResource()
/frameworks/base/core/java/android/appwidget/
DAppWidgetProviderInfo.java364 private Drawable loadDrawable(Context context, int density, int resourceId, in loadDrawable() argument
369 if (resourceId > 0) { in loadDrawable()
373 return resources.getDrawableForDensity(resourceId, density); in loadDrawable()
/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/services/core/java/com/android/server/display/
DColorFade.java192 private String readFile(Context context, int resourceId) { in readFile() argument
194 InputStream stream = context.getResources().openRawResource(resourceId); in readFile()
198 Slog.e(TAG, "Unrecognized shader " + Integer.toString(resourceId)); in readFile()
203 private int loadShader(Context context, int resourceId, int type) { in loadShader() argument
204 String source = readFile(context, resourceId); in loadShader()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouterThemeHelper.java37 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0; in getThemeResource()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeech.java887 public int addSpeech(String text, String packagename, int resourceId) { in addSpeech() argument
889 mUtterances.put(text, makeResourceUri(packagename, resourceId)); in addSpeech()
921 public int addSpeech(CharSequence text, String packagename, int resourceId) { in addSpeech() argument
923 mUtterances.put(text, makeResourceUri(packagename, resourceId)); in addSpeech()
996 public int addEarcon(String earcon, String packagename, int resourceId) { in addEarcon() argument
998 mEarcons.put(earcon, makeResourceUri(packagename, resourceId)); in addEarcon()
1050 private Uri makeResourceUri(String packageName, int resourceId) { in makeResourceUri() argument
1054 .appendEncodedPath(String.valueOf(resourceId)) in makeResourceUri()
/frameworks/base/core/java/android/content/res/
DTypedArray.java396 value, value.resourceId); in getColor()
427 return mResources.loadColorStateList(value, value.resourceId); in getColorStateList()
749 return mResources.loadDrawable(value, value.resourceId, mTheme); in getDrawable()
771 return mResources.getTextArray(value.resourceId); in getTextArray()
979 outValue.resourceId = data[index+AssetManager.STYLE_RESOURCE_ID]; in getValueAt()
DResources.java1449 value.resourceId = data[d+AssetManager.STYLE_RESOURCE_ID]; in obtainStyledAttributes()
1545 value.resourceId = data[d+AssetManager.STYLE_RESOURCE_ID]; in obtainStyledAttributes()
2291 int resourceId, String name) { in verifyPreloadConfig() argument
2300 resName = getResourceName(resourceId); in verifyPreloadConfig()
2307 + Integer.toHexString(resourceId) in verifyPreloadConfig()
2314 resName = getResourceName(resourceId); in verifyPreloadConfig()
2319 + Integer.toHexString(resourceId) in verifyPreloadConfig()
2406 if (verifyPreloadConfig(changingConfigs, 0, value.resourceId, "drawable")) { in cacheDrawable()
2411 changingConfigs, LAYOUT_DIR_CONFIG, value.resourceId, "drawable")) { in cacheDrawable()
2557 if (verifyPreloadConfig(value.changingConfigurations, 0, value.resourceId, in loadColorStateList()
[all …]
/frameworks/base/core/java/android/preference/
DPreferenceActivity.java840 if (tv.resourceId != 0) { in loadHeadersFromResource()
841 header.titleRes = tv.resourceId; in loadHeadersFromResource()
849 if (tv.resourceId != 0) { in loadHeadersFromResource()
850 header.summaryRes = tv.resourceId; in loadHeadersFromResource()
858 if (tv.resourceId != 0) { in loadHeadersFromResource()
859 header.breadCrumbTitleRes = tv.resourceId; in loadHeadersFromResource()
867 if (tv.resourceId != 0) { in loadHeadersFromResource()
868 header.breadCrumbShortTitleRes = tv.resourceId; in loadHeadersFromResource()
/frameworks/opt/chips/src/com/android/ex/chips/
DBaseRecipientAdapter.java645 final int resourceId = directoryCursor.getInt(DirectoryListQuery.TYPE_RESOURCE_ID); in setupOtherDirectories() local
650 if (packageName != null && resourceId != 0) { in setupOtherDirectories()
654 params.directoryType = resources.getString(resourceId); in setupOtherDirectories()
657 + resourceId + "@" + packageName); in setupOtherDirectories()
661 + resourceId + "@" + packageName, e); in setupOtherDirectories()

123