/frameworks/base/libs/androidfw/tests/ |
H A D | TestHelpers.cpp | 25 ::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);
|
/frameworks/base/core/java/android/gesture/ |
H A D | GestureLibraries.java | 48 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/text/style/ |
H A D | ImageSpan.java | 114 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/media/mca/filterfw/java/android/filterfw/io/ |
H A D | GraphReader.java | 41 public FilterGraph readGraphResource(Context context, int resourceId) throws GraphIOException { argument 42 InputStream inputStream = context.getResources().openRawResource(resourceId);
|
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/ |
H A D | SamplesList.java | 36 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 D | InflateTest.java | 58 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/base/media/mca/filterfw/java/android/filterfw/ |
H A D | GraphEnvironment.java | 128 * @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/base/core/java/android/appwidget/ |
H A D | AppWidgetProviderInfo.java | 364 private Drawable loadDrawable(Context context, int density, int resourceId, argument 369 if (resourceId > 0) { 373 return resources.getDrawableForDensity(resourceId, density);
|
/frameworks/base/core/java/android/view/ |
H A D | PointerIcon.java | 132 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/core/java/android/util/ |
H A D | TypedValue.java | 184 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/base/core/java/android/widget/ |
H A D | CalendarView.java | 282 * @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 D | ActivityChooserView.java | 336 * @param resourceId The content description resource id. 338 public void setExpandActivityOverflowButtonContentDescription(@StringRes int resourceId) { argument 339 CharSequence contentDescription = mContext.getString(resourceId); 516 * @param resourceId The resource id. 518 public void setDefaultActionButtonContentDescription(@StringRes int resourceId) { argument 519 mDefaultActionButtonContentDescription = resourceId;
|
H A D | CalendarViewLegacyDelegate.java | 439 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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | StreamingTextView.java | 98 private Bitmap getScaledBitmap(int resourceId, float scaled) { argument 99 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resourceId);
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiSelector.java | 287 public UiSelector resourceId(String id) { method in class:UiSelector
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | ColorFade.java | 189 private String readFile(Context context, int resourceId) { argument 191 InputStream stream = context.getResources().openRawResource(resourceId); 195 Slog.e(TAG, "Unrecognized shader " + Integer.toString(resourceId)); 200 private int loadShader(Context context, int resourceId, int type) { argument 201 String source = readFile(context, resourceId);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GraphReader.java | 528 * @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/tools/aapt2/ |
H A D | XmlFlattener.cpp | 226 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 });
|
H A D | ResourceParser.cpp | 903 ResourceId resourceId; local 910 resourceId.id = val.data; 911 if (!result || !resourceId.isValid()) { 926 return mTable->markPublic(resourceName, resourceId, source);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ActivityChooserView.java | 313 * @param resourceId The content description resource id. 315 public void setExpandActivityOverflowButtonContentDescription(int resourceId) { argument 316 CharSequence contentDescription = getContext().getString(resourceId); 493 * @param resourceId The resource id. 495 public void setDefaultActionButtonContentDescription(int resourceId) { argument 496 mDefaultActionButtonContentDescription = resourceId;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BackgroundManager.java | 796 public void setThemeDrawableResourceId(int resourceId) { argument 797 mThemeDrawableResourceId = resourceId;
|
/frameworks/base/core/java/android/content/res/ |
H A D | Resources.java | 1535 value.resourceId = data[d+AssetManager.STYLE_RESOURCE_ID]; 1631 value.resourceId = data[d+AssetManager.STYLE_RESOURCE_ID]; 2456 int resourceId, String name) { 2465 resName = getResourceName(resourceId); 2472 + Integer.toHexString(resourceId) 2479 resName = getResourceName(resourceId); 2484 + Integer.toHexString(resourceId) 2573 if (verifyPreloadConfig(changingConfigs, 0, value.resourceId, "drawable")) { 2578 changingConfigs, LAYOUT_DIR_CONFIG, value.resourceId, "drawable")) { 2677 if (verifyPreloadConfig(value.changingConfigurations, 0, value.resourceId, 2455 verifyPreloadConfig(int changingConfigurations, int allowVarying, int resourceId, String name) argument [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | TextToSpeech.java | 882 * @param resourceId 887 public int addSpeech(String text, String packagename, @RawRes int resourceId) { argument 889 mUtterances.put(text, makeResourceUri(packagename, resourceId)); 916 * @param resourceId 921 public int addSpeech(CharSequence text, String packagename, @RawRes int resourceId) { argument 923 mUtterances.put(text, makeResourceUri(packagename, resourceId)); 991 * @param resourceId 996 public int addEarcon(String earcon, String packagename, @RawRes int resourceId) { argument 998 mEarcons.put(earcon, makeResourceUri(packagename, resourceId)); 1050 private Uri makeResourceUri(String packageName, int resourceId) { argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 1995 int resourceId = bag->map.name.ident; local 1996 env->SetIntArrayRegion(array, i, 1, &resourceId); 2182 gTypedValueOffsets.mResourceId = GetFieldIDOrDie(env, typedValue, "resourceId", "I");
|
/frameworks/base/core/java/android/content/ |
H A D | Intent.java | 767 * @param resourceId The resource identifier for the icon. 771 public static ShortcutIconResource fromContext(Context context, @AnyRes int resourceId) { argument 774 icon.resourceName = context.getResources().getResourceName(resourceId);
|