Home
last modified time | relevance | path

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

12345

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockResources.java37 public String getResourceName(int resId) throws NotFoundException { in getResourceName()
39 throw new NotFoundException("Resource " + resId + " not found"); in getResourceName()
45 public String getResourcePackageName(int resId) throws NotFoundException { in getResourcePackageName()
47 throw new NotFoundException("Resource " + resId + " not found"); in getResourcePackageName()
53 public String getResourceTypeName(int resId) throws NotFoundException { in getResourceTypeName()
55 throw new NotFoundException("Resource " + resId + " not found"); in getResourceTypeName()
61 public String getResourceEntryName(int resId) throws NotFoundException { in getResourceEntryName()
63 throw new NotFoundException("Resource " + resId + " not found"); in getResourceEntryName()
/packages/services/Mtp/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()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpCodecConfig.java25 import android.content.res.Resources.NotFoundException;
196 } catch (NotFoundException e) { in assignCodecConfigPriorities()
209 } catch (NotFoundException e) { in assignCodecConfigPriorities()
222 } catch (NotFoundException e) { in assignCodecConfigPriorities()
235 } catch (NotFoundException e) { in assignCodecConfigPriorities()
248 } catch (NotFoundException e) { in assignCodecConfigPriorities()
258 } catch (NotFoundException e) { in assignCodecConfigPriorities()
/packages/modules/Permission/SafetyCenter/ConfigLintChecker/java/android/content/res/
DResources.java43 public static final class NotFoundException extends RuntimeException { class in Resources
44 public NotFoundException() {} in NotFoundException() method in Resources.NotFoundException
62 throw new NotFoundException(); in getString()
/packages/modules/Permission/SafetyCenter/ResourcesLib/tests/java/com/android/safetycenter/resources/
DSafetyCenterResourcesApkTest.kt152 assertFailsWith(Resources.NotFoundException::class) { in getSafetyCenterConfig_invalidConfigNameWithoutFallback_throws()
221 assertFailsWith(Resources.NotFoundException::class) { in getStringByName_invalidStringWithoutFallback_throws()
254 assertFailsWith(Resources.NotFoundException::class) { in getStringByNameWithFormatArgs_invalidStringWithoutFallback_throws()
346 assertFailsWith(Resources.NotFoundException::class) { in getDrawableByName_invalidDrawableWithoutFallback_throws()
379 assertFailsWith(Resources.NotFoundException::class) { in getIconByDrawableName_invalidDrawableWithoutFallback_throws()
412 assertFailsWith(Resources.NotFoundException::class) { in getColorByName_invalidColorWithoutFallback_throws()
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/
DSettingsShadowResources.java23 import android.content.res.Resources.NotFoundException;
55 throw new Resources.NotFoundException("Cannot override \"" + name + "\""); in overrideResource()
66 protected int[] getIntArray(@ArrayRes int id) throws NotFoundException { in getIntArray()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DUtil.kt45 } catch (e: Resources.NotFoundException) { in getResourceUri()
59 } catch (e: Resources.NotFoundException) { in getResourceUri()
65 @Throws(Resources.NotFoundException::class)
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestResources.java74 public final boolean getBoolean(@BoolRes int id) throws NotFoundException { in getBoolean()
79 public final @Nullable String getString(@StringRes int id) throws NotFoundException { in getString()
86 @StringRes int id, Object... formatArgs) throws NotFoundException { in getString()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DStringUtils.java26 import android.content.res.Resources.NotFoundException;
60 } catch (NotFoundException e) { in getStringConfig()
91 } catch (NotFoundException e) { in getStringArrayConfig()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DDevicePolicyResourcesUtils.java370 } catch (Resources.NotFoundException e) { in isDevicePolicyResource()
381 } catch (Resources.NotFoundException e) { in isDevicePolicyResource()
394 } catch (Resources.NotFoundException e) { in getDevicePolicyResource()
410 } catch (Resources.NotFoundException e) { in getDevicePolicyResource()
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/
DLegacyVpnPreferenceTest.java24 import android.content.res.Resources.NotFoundException;
54 } catch (NotFoundException exception) { in setUp()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DSafetyProtectionUtilsTest.java86 } catch (Resources.NotFoundException e) { } in testWhetherShouldUseSafetyProtectionResourcesWhenTOrAboveAndFeatureFlagOn()
111 } catch (Resources.NotFoundException e) { in isSafetyProtectionConfigEnabled()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DVCardResourceEntry.java20 import android.content.res.Resources.NotFoundException;
198 } catch (final NotFoundException ex) {
222 } catch (final NotFoundException ex) {
235 } catch (final NotFoundException ex) {
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/v31/
DSubattributionUtils.java108 } catch (Resources.NotFoundException e) { in getAttributionLabelsInternal()
137 } catch (Resources.NotFoundException e) { in getAttributionLabels()
/packages/apps/Contacts/src/com/android/contacts/util/
DLocalizedNameResolver.java25 import android.content.res.Resources.NotFoundException;
130 } catch (NotFoundException e) { in loadAllContactsNameFromXml()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DLiveWallpaperInfo.java374 } catch (Resources.NotFoundException e) { in getAttributions()
384 } catch (Resources.NotFoundException e) { in getAttributions()
396 } catch (Resources.NotFoundException e) { in getActionUrl()
408 } catch (Resources.NotFoundException e) { in getActionDescription()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java23 import android.content.res.Resources.NotFoundException;
317 } catch (NotFoundException e) { in getDrawable()
327 throws NotFoundException { in getResourceDrawable()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DPackageIconLoader.kt94 } catch (nfe: Resources.NotFoundException) { in getIcon()
129 } catch (ex: Resources.NotFoundException) { in getDrawable()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetheringConfiguration.java603 } catch (Resources.NotFoundException e) { in getResourceString()
611 } catch (Resources.NotFoundException e404) { in getResourceBoolean()
620 } catch (Resources.NotFoundException e404) { in getResourceStringArray()
628 } catch (Resources.NotFoundException e404) { in getResourceInteger()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/
DClassifierInputManager.java196 } catch (Resources.NotFoundException e) { in getEnglishAppResource()
208 } catch (Resources.NotFoundException e) { in getLocalAppResource()
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java34 import android.content.res.Resources.NotFoundException;
730 default XmlResourceParser getXml(@XmlRes int id) throws NotFoundException { in getXml()
731 throw new NotFoundException(); in getXml()
737 default String getString(@StringRes int id) throws NotFoundException { in getString()
738 throw new NotFoundException(); in getString()
/packages/apps/TV/common/src/com/android/tv/common/feature/
DResourceConfigFeature.java35 } catch (Resources.NotFoundException e) { in isEnabled()
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/
DResolverDataProvider.java202 public String getString(int id) throws NotFoundException { in createPackageManagerMockedInfo()
206 throw new NotFoundException(); in createPackageManagerMockedInfo()
/packages/apps/AvatarPicker/src/main/java/com/android/avatarpicker/data/
DUtils.kt27 } catch (exc: Resources.NotFoundException) { in safeObtainTypedArray()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/dashboard/
DFirstIdViewMatcher.java41 } catch (Resources.NotFoundException e) { in withFirstId()

12345