Lines Matching defs:id

216      * @param id The desired resource identifier, as generated by the aapt
225 public CharSequence getText(int id) throws NotFoundException {
226 CharSequence res = mAssets.getResourceText(id);
231 + Integer.toHexString(id));
241 * @param id The desired resource identifier, as generated by the aapt
252 public CharSequence getQuantityText(int id, int quantity) throws NotFoundException {
254 CharSequence res = mAssets.getResourceBagText(id,
259 res = mAssets.getResourceBagText(id, ID_OTHER);
263 throw new NotFoundException("Plural resource ID #0x" + Integer.toHexString(id)
304 * @param id The desired resource identifier, as generated by the aapt
313 public String getString(int id) throws NotFoundException {
314 CharSequence res = getText(id);
319 + Integer.toHexString(id));
330 * @param id The desired resource identifier, as generated by the aapt
341 public String getString(int id, Object... formatArgs) throws NotFoundException {
342 String raw = getString(id);
356 * @param id The desired resource identifier, as generated by the aapt
368 public String getQuantityString(int id, int quantity, Object... formatArgs)
370 String raw = getQuantityText(id, quantity).toString();
381 * @param id The desired resource identifier, as generated by the aapt
392 public String getQuantityString(int id, int quantity) throws NotFoundException {
393 return getQuantityText(id, quantity).toString();
401 * @param id The desired resource identifier, as generated by the aapt
408 * possibly styled text information, or def if id is 0 or not found.
410 public CharSequence getText(int id, CharSequence def) {
411 CharSequence res = id != 0 ? mAssets.getResourceText(id) : null;
418 * @param id The desired resource identifier, as generated by the aapt
426 public CharSequence[] getTextArray(int id) throws NotFoundException {
427 CharSequence[] res = mAssets.getResourceTextArray(id);
432 + Integer.toHexString(id));
438 * @param id The desired resource identifier, as generated by the aapt
446 public String[] getStringArray(int id) throws NotFoundException {
447 String[] res = mAssets.getResourceStringArray(id);
452 + Integer.toHexString(id));
458 * @param id The desired resource identifier, as generated by the aapt
466 public int[] getIntArray(int id) throws NotFoundException {
467 int[] res = mAssets.getArrayIntResource(id);
472 + Integer.toHexString(id));
478 * @param id The desired resource identifier, as generated by the aapt
488 public TypedArray obtainTypedArray(int id) throws NotFoundException {
489 int len = mAssets.getArraySize(id);
492 + Integer.toHexString(id));
496 array.mLength = mAssets.retrieveArray(id, array.mData);
507 * @param id The desired resource identifier, as generated by the aapt
519 public float getDimension(int id) throws NotFoundException {
522 getValue(id, value, true);
527 "Resource ID #0x" + Integer.toHexString(id) + " type #0x"
539 * @param id The desired resource identifier, as generated by the aapt
551 public int getDimensionPixelOffset(int id) throws NotFoundException {
554 getValue(id, value, true);
560 "Resource ID #0x" + Integer.toHexString(id) + " type #0x"
573 * @param id The desired resource identifier, as generated by the aapt
585 public int getDimensionPixelSize(int id) throws NotFoundException {
588 getValue(id, value, true);
594 "Resource ID #0x" + Integer.toHexString(id) + " type #0x"
602 * @param id The desired resource identifier, as generated by the aapt
616 public float getFraction(int id, int base, int pbase) {
619 getValue(id, value, true);
624 "Resource ID #0x" + Integer.toHexString(id) + " type #0x"
648 * @param id The desired resource identifier, as generated by the aapt
656 public Drawable getDrawable(int id) throws NotFoundException {
659 getValue(id, value, true);
660 return loadDrawable(value, id);
674 * @param id The desired resource identifier, as generated by the aapt tool.
683 public Drawable getDrawableForDensity(int id, int density) throws NotFoundException {
686 getValueForDensity(id, density, value, true);
703 return loadDrawable(value, id);
709 * @param id The desired resource identifier, as generated by the aapt
715 public Movie getMovie(int id) throws NotFoundException {
716 InputStream is = openRawResource(id);
733 * @param id The desired resource identifier, as generated by the aapt
741 public int getColor(int id) throws NotFoundException {
744 getValue(id, value, true);
749 ColorStateList csl = loadColorStateList(mTmpValue, id);
753 "Resource ID #0x" + Integer.toHexString(id) + " type #0x"
763 * @param id The desired resource identifier of a {@link ColorStateList},
772 public ColorStateList getColorStateList(int id) throws NotFoundException {
775 getValue(id, value, true);
776 return loadColorStateList(value, id);
785 * @param id The desired resource identifier, as generated by the aapt
793 public boolean getBoolean(int id) throws NotFoundException {
796 getValue(id, value, true);
802 "Resource ID #0x" + Integer.toHexString(id) + " type #0x"
810 * @param id The desired resource identifier, as generated by the aapt
818 public int getInteger(int id) throws NotFoundException {
821 getValue(id, value, true);
827 "Resource ID #0x" + Integer.toHexString(id) + " type #0x"
841 * @param id The desired resource identifier, as generated by the aapt
852 public XmlResourceParser getLayout(int id) throws NotFoundException {
853 return loadXmlResourceParser(id, "layout");
865 * @param id The desired resource identifier, as generated by the aapt
876 public XmlResourceParser getAnimation(int id) throws NotFoundException {
877 return loadXmlResourceParser(id, "anim");
890 * @param id The desired resource identifier, as generated by the aapt
901 public XmlResourceParser getXml(int id) throws NotFoundException {
902 return loadXmlResourceParser(id, "xml");
911 * @param id The resource identifier to open, as generated by the appt
919 public InputStream openRawResource(int id) throws NotFoundException {
921 return openRawResource(id, mTmpValue);
931 * @param id The resource identifier to open, as generated by the appt tool.
938 public InputStream openRawResource(int id, TypedValue value) throws NotFoundException {
939 getValue(id, value, true);
946 " from drawable resource ID #0x" + Integer.toHexString(id));
962 * @param id The resource identifier to open, as generated by the appt
973 public AssetFileDescriptor openRawResourceFd(int id) throws NotFoundException {
976 getValue(id, value, true);
985 + Integer.toHexString(id));
996 * @param id The desired resource identifier, as generated by the aapt
1008 public void getValue(int id, TypedValue outValue, boolean resolveRefs)
1010 boolean found = mAssets.getResourceValue(id, 0, outValue, resolveRefs);
1015 + Integer.toHexString(id));
1021 * @param id resource identifier
1031 public void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs)
1033 boolean found = mAssets.getResourceValue(id, density, outValue, resolveRefs);
1037 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id));
1062 int id = getIdentifier(name, "string", null);
1063 if (id != 0) {
1064 getValue(id, outValue, resolveRefs);
1279 int id = set.getAttributeNameResource(i);
1280 if (id != 0) {
1281 s = s + "(0x" + Integer.toHexString(id) + ")";
1889 /*package*/ Drawable loadDrawable(TypedValue value, int id)
1894 if ((id >>> 24) == 0x1) {
1895 final String name = getResourceName(id);
1935 if ((id >>> 24) == 0x1) {
1936 final String name = getResourceName(id);
1938 + Integer.toHexString(id) + ": " + name
1949 file, id, value.assetCookie, "drawable");
1955 + Integer.toHexString(id));
1972 + Integer.toHexString(id));
2031 /*package*/ ColorStateList loadColorStateList(TypedValue value, int id)
2035 if ((id >>> 24) == 0x1) {
2036 final String name = getResourceName(id);
2083 file, id, value.assetCookie, "colorstatelist");
2089 + Integer.toHexString(id));
2096 + Integer.toHexString(id) + ": .xml extension required");
2135 /*package*/ XmlResourceParser loadXmlResourceParser(int id, String type)
2139 getValue(id, value, true);
2141 return loadXmlResourceParser(value.string.toString(), id,
2145 "Resource ID #0x" + Integer.toHexString(id) + " type #0x"
2150 /*package*/ XmlResourceParser loadXmlResourceParser(String file, int id,
2152 if (id != 0) {
2159 if (mCachedXmlBlockIds[i] == id) {
2160 //System.out.println("**** REUSING XML BLOCK! id="
2161 // + id + ", index=" + i);
2178 mCachedXmlBlockIds[pos] = id;
2180 //System.out.println("**** CACHING NEW XML BLOCK! id="
2181 // + id + ", index=" + pos);
2188 + Integer.toHexString(id));
2196 + Integer.toHexString(id));