Searched refs:resourceId (Results 1 - 25 of 84) sorted by relevance

1234

/frameworks/base/libs/androidfw/tests/
H A DTestHelpers.cpp25 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resourceId, const char* expectedStr) { argument
27 ssize_t block = table.getResource(resourceId, &val, MAY_NOT_BE_BAG);
H A DTestHelpers.h31 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resourceId, const char* expectedStr);
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
H A DSamplesList.java36 static Map<String,?> makeSample(String name, Class<?> activity, int resourceId) { argument
40 ret.put(KEY_RESOURCE, resourceId);
61 int resourceId = ((Integer) SAMPLES.get(position).get(KEY_RESOURCE)).intValue();
64 intent.putExtra("resourceId", resourceId);
/frameworks/base/core/tests/coretests/src/android/view/
H A DInflateTest.java58 public void inflateTest(int resourceId) { argument
59 mView = mInflater.inflate(resourceId, null);
63 public void inflateCachedTest(int resourceId) { argument
65 mInflater.inflate(resourceId, null);
67 mInflater.inflate(resourceId, null);
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DTintTypedArray.java60 final int resourceId = mWrapped.getResourceId(index, 0);
61 if (resourceId != 0) {
62 return getTintManager().getDrawable(resourceId);
70 final int resourceId = mWrapped.getResourceId(index, 0);
71 if (resourceId != 0) {
72 return getTintManager().getDrawable(resourceId, true);
H A DAbsActionBarView.java67 && tv.resourceId != 0) {
68 mPopupContext = new ContextThemeWrapper(context, tv.resourceId);
/frameworks/base/core/java/android/gesture/
H A DGestureLibraries.java48 public static GestureLibrary fromRawResource(Context context, @RawRes int resourceId) { argument
49 return new ResourceGestureLibrary(context, resourceId);
113 public ResourceGestureLibrary(Context context, int resourceId) { argument
115 mResourceId = resourceId;
/frameworks/base/core/java/android/view/
H A DPointerIcon.java132 int resourceId = a.getResourceId(styleIndex, -1);
135 if (resourceId == -1) {
141 if ((resourceId & 0xff000000) == 0x01000000) {
142 icon.mSystemIconResourceId = resourceId;
144 icon.loadResource(context, context.getResources(), resourceId);
189 * @param resourceId The resource id.
196 public static PointerIcon loadCustomIcon(Resources resources, @XmlRes int resourceId) { argument
202 icon.loadResource(null, resources, resourceId);
377 private void loadResource(Context context, Resources resources, @XmlRes int resourceId) { argument
378 final XmlResourceParser parser = resources.getXml(resourceId);
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
H A DGraphReader.java41 public FilterGraph readGraphResource(Context context, int resourceId) throws GraphIOException { argument
42 InputStream inputStream = context.getResources().openRawResource(resourceId);
/frameworks/base/core/java/android/widget/
H A DCalendarView.java282 * @param resourceId The vertical bar drawable resource id.
288 public void setSelectedDateVerticalBar(@DrawableRes int resourceId) { argument
289 mDelegate.setSelectedDateVerticalBar(resourceId);
321 * @param resourceId The text appearance resource id.
325 public void setWeekDayTextAppearance(int resourceId) { argument
326 mDelegate.setWeekDayTextAppearance(resourceId);
343 * @param resourceId The text appearance resource id.
347 public void setDateTextAppearance(int resourceId) { argument
348 mDelegate.setDateTextAppearance(resourceId);
574 void setSelectedDateVerticalBar(@DrawableRes int resourceId); argument
578 setWeekDayTextAppearance(@tyleRes int resourceId) argument
582 setDateTextAppearance(@tyleRes int resourceId) argument
[all...]
H A DCalendarViewLegacyDelegate.java439 public void setSelectedDateVerticalBar(int resourceId) { argument
440 Drawable drawable = mDelegator.getContext().getDrawable(resourceId);
464 public void setWeekDayTextAppearance(int resourceId) { argument
465 if (mWeekDayTextAppearanceResId != resourceId) {
466 mWeekDayTextAppearanceResId = resourceId;
477 public void setDateTextAppearance(int resourceId) { argument
478 if (mDateTextAppearanceResId != resourceId) {
479 mDateTextAppearanceResId = resourceId;
/frameworks/base/core/java/android/text/style/
H A DImageSpan.java114 public ImageSpan(Context context, @DrawableRes int resourceId) { argument
115 this(context, resourceId, ALIGN_BOTTOM);
122 public ImageSpan(Context context, @DrawableRes int resourceId, int verticalAlignment) { argument
125 mResourceId = resourceId;
/frameworks/base/core/java/android/util/
H A DTypedValue.java184 public int resourceId; field in class:TypedValue
494 resourceId = other.resourceId;
509 if (resourceId != 0) {
510 sb.append(" r=0x").append(Integer.toHexString(resourceId));
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatCompoundButtonHelper.java62 final int resourceId = a.getResourceId(
64 if (resourceId != 0) {
65 mView.setButtonDrawable(mTintManager.getDrawable(resourceId));
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DBridgeInflater.java247 Integer resourceId = null;
253 resourceId = Bridge.getResourceId(resValue.getResourceType(),
256 resourceId = mLayoutlibCallback.getResourceId(resValue.getResourceType(),
260 if (resourceId == null) {
261 resourceId = 0;
263 RecyclerViewUtil.setAdapter(view, bc, mLayoutlibCallback, resourceId);
/frameworks/base/media/mca/filterfw/java/android/filterfw/
H A DGraphEnvironment.java128 * @param resourceId The ID of the graph resource to load.
131 public int loadGraph(Context context, int resourceId) { argument
135 graph = getGraphReader().readGraphResource(context, resourceId);
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouterThemeHelper.java37 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0;
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DGraphReader.java528 * @param resourceId the XML resource ID.
532 public static FilterGraph readXmlGraphResource(MffContext context, int resourceId) argument
534 FilterGraph.Builder builder = getBuilderForXmlResource(context, resourceId);
545 * @param resourceId the XML resource ID.
550 MffContext context, int resourceId, FilterGraph parentGraph)
552 FilterGraph.Builder builder = getBuilderForXmlResource(context, resourceId);
565 private static FilterGraph.Builder getBuilderForXmlResource(MffContext context, int resourceId) argument
568 .openRawResource(resourceId);
549 readXmlSubGraphResource( MffContext context, int resourceId, FilterGraph parentGraph) argument
/frameworks/base/core/java/android/app/
H A DTimePickerDialog.java88 return outValue.resourceId;
118 final int layoutResId = outValue.resourceId;
/frameworks/base/tools/aapt2/
H A DXmlFlattener.cpp226 uint32_t resourceId = 0; member in struct:aapt::xml::AttributeToFlatten
232 return a.resourceId < id;
276 attrToFlatten.resourceId = result.value().id.id;
279 size_t sdk = findAttributeSdkLevel(attrToFlatten.resourceId);
288 if (attrToFlatten.resourceId == 0) {
292 attrToFlatten.resourceId = nextAttributeId++;
297 attrToFlatten.resourceId, lessAttributeId);
347 StringPool::Context{ attrToFlatten.resourceId });
/frameworks/base/services/core/java/com/android/server/am/
H A DLaunchWarningWindow.java43 getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, out.resourceId);
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetProviderInfo.java364 private Drawable loadDrawable(Context context, int density, int resourceId, argument
369 if (resourceId > 0) {
373 return resources.getDrawableForDensity(resourceId, density);
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAppCompatDialog.java152 themeId = outValue.resourceId;
/frameworks/base/core/java/com/android/internal/widget/
H A DAbsActionBarView.java74 && tv.resourceId != 0) {
75 mPopupContext = new ContextThemeWrapper(context, tv.resourceId);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DStreamingTextView.java98 private Bitmap getScaledBitmap(int resourceId, float scaled) { argument
99 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resourceId);

Completed in 3013 milliseconds

1234