Home
last modified time | relevance | path

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

1234

/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/base/core/java/android/content/res/
DResources.java213 public static class NotFoundException extends RuntimeException { class in Resources
214 public NotFoundException() { in NotFoundException() method in Resources.NotFoundException
217 public NotFoundException(String name) { in NotFoundException() method in Resources.NotFoundException
221 public NotFoundException(String name, Exception cause) { in NotFoundException() method in Resources.NotFoundException
361 @NonNull public CharSequence getText(@StringRes int id) throws NotFoundException { in getText()
366 throw new NotFoundException("String resource ID #0x" in getText()
382 @NonNull public Typeface getFont(@FontRes int id) throws NotFoundException { in getFont()
394 throw new NotFoundException("Font resource ID #0x" in getFont()
399 Typeface getFont(@NonNull TypedValue value, @FontRes int id) throws NotFoundException { in getFont()
440 throws NotFoundException { in getQuantityText()
[all …]
DResourcesImpl.java35 import android.content.res.Resources.NotFoundException;
232 throws NotFoundException { in getValue()
237 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id)); in getValue()
241 boolean resolveRefs) throws NotFoundException { in getValueForDensity()
246 throw new NotFoundException("Resource ID #0x" + Integer.toHexString(id)); in getValueForDensity()
250 throws NotFoundException { in getValue()
256 throw new NotFoundException("String resource name " + name); in getValue()
272 String getResourceName(@AnyRes int resid) throws NotFoundException { in getResourceName()
275 throw new NotFoundException("Unable to find resource ID #0x" in getResourceName()
280 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.java25 import android.content.res.Resources.NotFoundException;
134 throws NotFoundException { in loadAnimation()
141 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadAnimation()
146 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadAnimation()
215 throws NotFoundException { in loadLayoutAnimation()
222 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadLayoutAnimation()
227 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadLayoutAnimation()
338 throws NotFoundException { in loadInterpolator()
344 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadInterpolator()
349 NotFoundException rnf = new NotFoundException("Can't load animation resource ID #0x" + in loadInterpolator()
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java52 import android.content.res.Resources.NotFoundException;
209 static int getColor(Resources resources, int id, Theme theme) throws NotFoundException { in getColor()
240 static ColorStateList getColorStateList(Resources resources, int id) throws NotFoundException { in getColorStateList()
246 throws NotFoundException { in getColorStateList()
284 static CharSequence getText(Resources resources, int id) throws NotFoundException { in getText()
307 static CharSequence[] getTextArray(Resources resources, int id) throws NotFoundException { in getTextArray()
322 static String[] getStringArray(Resources resources, int id) throws NotFoundException { in getStringArray()
352 static int[] getIntArray(Resources resources, int id) throws NotFoundException { in getIntArray()
424 throws NotFoundException { in getArrayResourceValue()
477 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/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/base/core/java/android/app/
DWallpaperInfo.java30 import android.content.res.Resources.NotFoundException;
245 public CharSequence loadAuthor(PackageManager pm) throws NotFoundException { in loadAuthor()
246 if (mAuthorResource <= 0) throw new NotFoundException(); in loadAuthor()
259 public CharSequence loadDescription(PackageManager pm) throws NotFoundException { in loadDescription()
271 if (mDescriptionResource <= 0) throw new NotFoundException(); in loadDescription()
282 public Uri loadContextUri(PackageManager pm) throws NotFoundException { in loadContextUri()
283 if (mContextUriResource <= 0) throw new NotFoundException(); in loadContextUri()
304 public CharSequence loadContextDescription(PackageManager pm) throws NotFoundException { in loadContextDescription()
305 if (mContextDescriptionResource <= 0) throw new NotFoundException(); in loadContextDescription()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableResourcesTest.java56 } catch (Resources.NotFoundException e) { in testAddingResource()
73 } catch (Resources.NotFoundException e) { in testClearingResource()
87 @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/core/java/com/android/internal/app/
DSuspendedAppActivity.java83 } catch (Resources.NotFoundException nfe) { in resolveIcon()
96 } catch (Resources.NotFoundException nfe) { in resolveTitle()
111 } catch (Resources.NotFoundException nfe) { in resolveDialogMessage()
129 } catch (Resources.NotFoundException nfe) { in resolveNeutralButtonText()
/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/packages/SettingsLib/ActionButtonsPreference/src/com/android/settingslib/widget/
DActionButtonsPreference.java136 } catch (Resources.NotFoundException exception) { in setButton1Icon()
201 } catch (Resources.NotFoundException exception) { in setButton2Icon()
266 } catch (Resources.NotFoundException exception) { in setButton3Icon()
331 } catch (Resources.NotFoundException exception) { in setButton4Icon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DSafetyWarningDialog.java24 import android.content.res.Resources.NotFoundException;
53 } catch (NotFoundException e) { in SafetyWarningDialog()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
DExternalResources.java88 throw new NotFoundException(); in getResourcePackageName()
113 throw new NotFoundException(); in getValue()
235 throw new NotFoundException(); in get()
/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/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageUtil.java140 } catch (Resources.NotFoundException e) { in getAppSnippet()
154 } catch (Resources.NotFoundException e) { in getAppSnippet()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DTetheringConfiguration.java358 } catch (Resources.NotFoundException e) { in getResourceString()
366 } catch (Resources.NotFoundException e404) { in getResourceBoolean()
375 } catch (Resources.NotFoundException e404) { in getResourceStringArray()
383 } catch (Resources.NotFoundException e404) { in getResourceInteger()
/frameworks/base/packages/SettingsLib/EntityHeaderWidgets/src/com/android/settingslib/widget/
DAppEntitiesHeaderController.java235 } catch (Resources.NotFoundException e) { in bindHeaderTitleView()
248 } catch (Resources.NotFoundException e) { in bindHeaderDetailsView()
/frameworks/base/core/java/android/app/admin/
DDeviceAdminInfo.java28 import android.content.res.Resources.NotFoundException;
422 public CharSequence loadDescription(PackageManager pm) throws NotFoundException { in loadDescription()
427 throw new NotFoundException(); in loadDescription()
/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/base/core/java/android/net/util/
DKeepaliveUtils.java57 } catch (Resources.NotFoundException unused) { in getSupportedKeepalives()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DValueParser.java21 import android.content.res.Resources.NotFoundException;
309 } catch (NotFoundException e) { in retrieveAlphaId()

1234