Home
last modified time | relevance | path

Searched refs:NotFoundException (Results 1 – 25 of 123) sorted by relevance

12345

/frameworks/base/test-mock/src/android/test/mock/
DMockResources.java56 public CharSequence getText(int id) throws NotFoundException { in getText()
61 public CharSequence getQuantityText(int id, int quantity) throws NotFoundException { in getQuantityText()
66 public String getString(int id) throws NotFoundException { in getString()
71 public String getString(int id, Object... formatArgs) throws NotFoundException { in getString()
77 throws NotFoundException { in getQuantityString()
82 public String getQuantityString(int id, int quantity) throws NotFoundException { in getQuantityString()
92 public CharSequence[] getTextArray(int id) throws NotFoundException { in getTextArray()
97 public String[] getStringArray(int id) throws NotFoundException { in getStringArray()
102 public int[] getIntArray(int id) throws NotFoundException { in getIntArray()
107 public TypedArray obtainTypedArray(int id) throws NotFoundException { in obtainTypedArray()
[all …]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DResourcesWrapper.java53 public CharSequence getText(int id) throws NotFoundException { in getText()
58 public CharSequence getQuantityText(int id, int quantity) throws NotFoundException { in getQuantityText()
63 public String getString(int id) throws NotFoundException { in getString()
68 public String getString(int id, Object... formatArgs) throws NotFoundException { in getString()
74 throws NotFoundException { in getQuantityString()
79 public String getQuantityString(int id, int quantity) throws NotFoundException { in getQuantityString()
89 public CharSequence[] getTextArray(int id) throws NotFoundException { in getTextArray()
94 public String[] getStringArray(int id) throws NotFoundException { in getStringArray()
99 public int[] getIntArray(int id) throws NotFoundException { in getIntArray()
104 public TypedArray obtainTypedArray(int id) throws NotFoundException { in obtainTypedArray()
[all …]
DTintResources.java45 public Drawable getDrawable(int id) throws NotFoundException { in getDrawable()
DVectorEnabledTintResources.java65 public Drawable getDrawable(int id) throws NotFoundException { in getDrawable()
/frameworks/base/core/java/android/content/res/
DResources.java199 public static class NotFoundException extends RuntimeException { class in Resources
200 public NotFoundException() { in NotFoundException() method in Resources.NotFoundException
203 public NotFoundException(String name) { in NotFoundException() method in Resources.NotFoundException
207 public NotFoundException(String name, Exception cause) { in NotFoundException() method in Resources.NotFoundException
342 @NonNull public CharSequence getText(@StringRes int id) throws NotFoundException { in getText()
347 throw new NotFoundException("String resource ID #0x" in getText()
363 @NonNull public Typeface getFont(@FontRes int id) throws NotFoundException { in getFont()
375 throw new NotFoundException("Font resource ID #0x" in getFont()
380 Typeface getFont(@NonNull TypedValue value, @FontRes int id) throws NotFoundException { in getFont()
421 throws NotFoundException { in getQuantityText()
[all …]
DResourcesImpl.java32 import android.content.res.Resources.NotFoundException;
211 throws NotFoundException { in getValue()
216 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id)); in getValue()
220 boolean resolveRefs) throws NotFoundException { in getValueForDensity()
225 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id)); in getValueForDensity()
229 throws NotFoundException { in getValue()
235 throw new NotFoundException("String resource name " + name); in getValue()
251 String getResourceName(@AnyRes int resid) throws NotFoundException { in getResourceName()
254 throw new NotFoundException("Unable to find resource ID #0x" in getResourceName()
259 String getResourcePackageName(@AnyRes int resid) throws NotFoundException { in getResourcePackageName()
[all …]
DCompatResources.java45 public Drawable getDrawable(@DrawableRes int id) throws NotFoundException { in getDrawable()
51 throws NotFoundException { in getDrawableForDensity()
56 public int getColor(@ColorRes int id) throws NotFoundException { in getColor()
61 public ColorStateList getColorStateList(@ColorRes int id) throws NotFoundException { in getColorStateList()
/frameworks/base/core/java/android/view/animation/
DAnimationUtils.java24 import android.content.res.Resources.NotFoundException;
133 throws NotFoundException { in loadAnimation()
140 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadAnimation()
145 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadAnimation()
213 throws NotFoundException { in loadLayoutAnimation()
220 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadLayoutAnimation()
225 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadLayoutAnimation()
336 throws NotFoundException { in loadInterpolator()
342 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadInterpolator()
347 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadInterpolator()
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java46 import android.content.res.Resources.NotFoundException;
221 static int getColor(Resources resources, int id, Theme theme) throws NotFoundException { in getColor()
251 static ColorStateList getColorStateList(Resources resources, int id) throws NotFoundException { in getColorStateList()
257 throws NotFoundException { in getColorStateList()
296 static CharSequence getText(Resources resources, int id) throws NotFoundException { in getText()
319 static CharSequence[] getTextArray(Resources resources, int id) throws NotFoundException { in getTextArray()
333 static String[] getStringArray(Resources resources, int id) throws NotFoundException { in getStringArray()
363 static int[] getIntArray(Resources resources, int id) throws NotFoundException { in getIntArray()
417 throws NotFoundException { in getArrayResourceValue()
467 static XmlResourceParser getLayout(Resources resources, int id) throws NotFoundException { in getLayout()
[all …]
DResources_Theme_Delegate.java28 import android.content.res.Resources.NotFoundException;
70 throws NotFoundException { in obtainStyledAttributes()
/frameworks/support/compat/src/main/java/androidx/core/content/res/
DResourcesCompat.java26 import android.content.res.Resources.NotFoundException;
80 @Nullable Theme theme) throws NotFoundException { in getDrawable()
113 int density, @Nullable Theme theme) throws NotFoundException { in getDrawableForDensity()
143 throws NotFoundException { in getColor()
173 @Nullable Theme theme) throws NotFoundException { in getColorStateList()
203 throws NotFoundException { in getFont()
294 throws NotFoundException { in getFont()
312 int style, @Nullable FontCallback fontCallback) throws NotFoundException { in getFont()
341 throw new NotFoundException("Font resource ID #0x" in loadFont()
357 throw new NotFoundException("Resource \"" + wrapper.getResourceName(id) + "\" (" in loadFont()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestResources.java23 public String getString(int id) throws NotFoundException { in getString()
32 throw new NotFoundException(); in getString()
36 public String getString(int id, Object... formatArgs) throws NotFoundException { in getString()
/frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/
DAnimationUtilsCompat.java23 import android.content.res.Resources.NotFoundException;
65 throws NotFoundException { in loadInterpolator()
85 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" in loadInterpolator()
90 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" in loadInterpolator()
DAnimatorInflaterCompat.java33 import android.content.res.Resources.NotFoundException;
96 throws NotFoundException { in loadAnimator()
118 @AnimatorRes int id) throws NotFoundException { in loadAnimator()
126 @AnimatorRes int id, float pathErrorScale) throws NotFoundException { in loadAnimator()
135 Resources.NotFoundException rnf = in loadAnimator()
136 new Resources.NotFoundException("Can't load animation resource ID #0x" in loadAnimator()
141 Resources.NotFoundException rnf = in loadAnimator()
142 new Resources.NotFoundException("Can't load animation resource ID #0x" in loadAnimator()
871 float pathErrorScale, XmlPullParser parser) throws NotFoundException { in loadObjectAnimator()
889 throws NotFoundException { in loadAnimator()
/frameworks/base/core/java/android/app/
DWallpaperInfo.java27 import android.content.res.Resources.NotFoundException;
233 public CharSequence loadAuthor(PackageManager pm) throws NotFoundException { in loadAuthor()
234 if (mAuthorResource <= 0) throw new NotFoundException(); in loadAuthor()
247 public CharSequence loadDescription(PackageManager pm) throws NotFoundException { in loadDescription()
259 if (mDescriptionResource <= 0) throw new NotFoundException(); in loadDescription()
270 public Uri loadContextUri(PackageManager pm) throws NotFoundException { in loadContextUri()
271 if (mContextUriResource <= 0) throw new NotFoundException(); in loadContextUri()
292 public CharSequence loadContextDescription(PackageManager pm) throws NotFoundException { in loadContextDescription()
293 if (mContextDescriptionResource <= 0) throw new NotFoundException(); in loadContextDescription()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableResourcesTest.java55 } catch (Resources.NotFoundException e) { in testAddingResource()
72 } catch (Resources.NotFoundException e) { in testClearingResource()
86 @Test(expected = Resources.NotFoundException.class)
/frameworks/base/core/java/android/animation/
DAnimatorInflater.java26 import android.content.res.Resources.NotFoundException;
90 throws NotFoundException { in loadAnimator()
105 throws NotFoundException { in loadAnimator()
111 float pathErrorScale) throws NotFoundException { in loadAnimator()
141 Resources.NotFoundException rnf = in loadAnimator()
142 new Resources.NotFoundException("Can't load animation resource ID #0x" + in loadAnimator()
147 Resources.NotFoundException rnf = in loadAnimator()
148 new Resources.NotFoundException("Can't load animation resource ID #0x" + in loadAnimator()
158 throws NotFoundException { in loadStateListAnimator()
183 Resources.NotFoundException rnf = in loadStateListAnimator()
[all …]
/frameworks/base/tests/testables/src/android/testing/
DTestableResources.java89 if (value == null) throw new Resources.NotFoundException(); in answer()
92 } catch (Resources.NotFoundException e) { in answer()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DAndroidPackageInfoFetcher.java24 import android.content.res.Resources.NotFoundException;
89 } catch (NotFoundException e) { in getStatements()
/frameworks/base/tests/UsbTests/src/com/android/server/usb/
DUsbDescriptorParserTests.java26 import android.content.res.Resources.NotFoundException;
54 } catch (NotFoundException e) { in loadParser()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminInfo.java27 import android.content.res.Resources.NotFoundException;
426 public CharSequence loadDescription(PackageManager pm) throws NotFoundException { in loadDescription()
431 throw new NotFoundException(); in loadDescription()
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/
DTintResourcesTest.java68 public Drawable getDrawable(int id) throws NotFoundException { in getDrawable()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/
DAuthenticatorHelper.java112 } catch (PackageManager.NameNotFoundException|Resources.NotFoundException e) { in getDrawableForType()
137 } catch (Resources.NotFoundException e) { in getLabelForType()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DValueParser.java24 import android.content.res.Resources.NotFoundException;
304 } catch (NotFoundException e) { in retrieveAlphaId()
/frameworks/base/core/java/android/content/pm/
DLauncherActivityInfo.java112 } catch (NameNotFoundException | Resources.NotFoundException exc) { in getIcon()

12345