Lines Matching defs:id

127     private Pair<String, ResourceValue> getResourceValue(int id, boolean[] platformResFlag_out) {
128 // first get the String related to this id in the framework
129 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id);
141 resourceInfo = mProjectCallback.resolveResourceId(id);
156 public Drawable getDrawable(int id) throws NotFoundException {
157 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
163 // id was not found or not resolved. Throw a NotFoundException.
164 throwException(id);
171 public int getColor(int id) throws NotFoundException {
172 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
184 // id was not found or not resolved. Throw a NotFoundException.
185 throwException(id);
192 public ColorStateList getColorStateList(int id) throws NotFoundException {
193 Pair<String, ResourceValue> resValue = getResourceValue(id, mPlatformResourceFlag);
203 // id was not found or not resolved. Throw a NotFoundException.
204 throwException(id);
211 public CharSequence getText(int id) throws NotFoundException {
212 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
226 // id was not found or not resolved. Throw a NotFoundException.
227 throwException(id);
234 public XmlResourceParser getLayout(int id) throws NotFoundException {
235 Pair<String, ResourceValue> v = getResourceValue(id, mPlatformResourceFlag);
270 // id was not found or not resolved. Throw a NotFoundException.
271 throwException(id);
278 public XmlResourceParser getAnimation(int id) throws NotFoundException {
279 Pair<String, ResourceValue> v = getResourceValue(id, mPlatformResourceFlag);
304 // id was not found or not resolved. Throw a NotFoundException.
305 throwException(id);
317 public TypedArray obtainTypedArray(int id) throws NotFoundException {
323 public float getDimension(int id) throws NotFoundException {
324 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
349 // id was not found or not resolved. Throw a NotFoundException.
350 throwException(id);
357 public int getDimensionPixelOffset(int id) throws NotFoundException {
358 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
377 // id was not found or not resolved. Throw a NotFoundException.
378 throwException(id);
385 public int getDimensionPixelSize(int id) throws NotFoundException {
386 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
405 // id was not found or not resolved. Throw a NotFoundException.
406 throwException(id);
413 public int getInteger(int id) throws NotFoundException {
414 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
437 // id was not found or not resolved. Throw a NotFoundException.
438 throwException(id);
445 public boolean getBoolean(int id) throws NotFoundException {
446 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
460 // id was not found or not resolved. Throw a NotFoundException.
461 throwException(id);
483 public String getString(int id, Object... formatArgs) throws NotFoundException {
484 String s = getString(id);
490 // id was not found or not resolved. Throw a NotFoundException.
491 throwException(id);
498 public String getString(int id) throws NotFoundException {
499 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
505 // id was not found or not resolved. Throw a NotFoundException.
506 throwException(id);
513 public void getValue(int id, TypedValue outValue, boolean resolveRefs)
515 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
533 // id was not found or not resolved. Throw a NotFoundException.
534 throwException(id);
544 public XmlResourceParser getXml(int id) throws NotFoundException {
545 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
571 // id was not found or not resolved. Throw a NotFoundException.
572 throwException(id);
579 public XmlResourceParser loadXmlResourceParser(String file, int id,
582 // id so that we can know if it's a platform or project resource.
584 getResourceValue(id, mPlatformResourceFlag);
604 public InputStream openRawResource(int id) throws NotFoundException {
605 Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag);
631 // id was not found or not resolved. Throw a NotFoundException.
632 throwException(id);
639 public InputStream openRawResource(int id, TypedValue value) throws NotFoundException {
640 getValue(id, value, true);
665 public AssetFileDescriptor openRawResourceFd(int id) throws NotFoundException {
670 * Builds and throws a {@link Resources.NotFoundException} based on a resource id and a resource type.
671 * @param id the id of the resource
674 private void throwException(int id) throws NotFoundException {
675 // first get the String related to this id in the framework
676 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id);
680 resourceInfo = mProjectCallback.resolveResourceId(id);
687 resourceInfo.getFirst(), id, resourceInfo.getSecond());
690 "Could not resolve resource value: 0x%1$X.", id);