Home
last modified time | relevance | path

Searched refs:NameNotFoundException (Results 1 – 25 of 607) sorted by relevance

12345678910>>...25

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java75 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { in getPackageInfo()
81 throws NameNotFoundException { in getPackageInfoAsUser()
87 int packageInfoFlags) throws NameNotFoundException { in getPackageInfo()
128 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids()
133 public int[] getPackageGids(String packageName, int flags) throws NameNotFoundException { in getPackageGids()
138 public int getPackageUid(String packageName, int flags) throws NameNotFoundException { in getPackageUid()
143 … public int getPackageUidAsUser(String packageName, int userHandle) throws NameNotFoundException { in getPackageUidAsUser()
148 …t getPackageUidAsUser(String packageName, int flags, int userHandle) throws NameNotFoundException { in getPackageUidAsUser()
153 public PermissionInfo getPermissionInfo(String name, int flags) throws NameNotFoundException { in getPermissionInfo()
159 throws NameNotFoundException { in queryPermissionsByGroup()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java50 throws NameNotFoundException { in getPackageInfo()
56 throws NameNotFoundException { in getPackageInfo()
62 throws NameNotFoundException { in getPackageInfoAsUser()
64 throw new NameNotFoundException(); in getPackageInfoAsUser()
96 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids()
102 throws NameNotFoundException { in getPackageGids()
108 throws NameNotFoundException { in getPackageUid()
114 throws NameNotFoundException { in getPackageUidAsUser()
120 throws NameNotFoundException { in getPackageUidAsUser()
126 throws NameNotFoundException { in getPermissionInfo()
[all …]
/frameworks/base/core/java/android/content/pm/verify/domain/
DDomainVerificationManager.java31 import android.content.pm.PackageManager.NameNotFoundException;
280 throws NameNotFoundException { in getDomainVerificationInfo()
285 if (converted instanceof NameNotFoundException) { in getDomainVerificationInfo()
286 throw (NameNotFoundException) converted; in getDomainVerificationInfo()
314 int state) throws NameNotFoundException { in setDomainVerificationStatus()
322 if (converted instanceof NameNotFoundException) { in setDomainVerificationStatus()
323 throw (NameNotFoundException) converted; in setDomainVerificationStatus()
345 boolean allowed) throws NameNotFoundException { in setDomainVerificationLinkHandlingAllowed()
351 if (converted instanceof NameNotFoundException) { in setDomainVerificationLinkHandlingAllowed()
352 throw (NameNotFoundException) converted; in setDomainVerificationLinkHandlingAllowed()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/app/
DMockPackageManager.java71 throws NameNotFoundException { in getPackageInfo()
77 throws NameNotFoundException { in getPackageInfo()
83 throws NameNotFoundException { in getPackageInfoAsUser()
116 public int[] getPackageGids(@NonNull String packageName) throws NameNotFoundException { in getPackageGids()
122 throws NameNotFoundException { in getPackageGids()
128 throws NameNotFoundException { in getPackageUid()
134 throws NameNotFoundException { in getPackageUidAsUser()
140 throws NameNotFoundException { in getPackageUidAsUser()
146 throws NameNotFoundException { in getPermissionInfo()
153 int flags) throws NameNotFoundException { in queryPermissionsByGroup()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DOptPropFactoryTest.java60 public void optProp_laziness() throws PackageManager.NameNotFoundException { in optProp_laziness()
74 public void optProp_withSetValueTrue() throws PackageManager.NameNotFoundException { in optProp_withSetValueTrue()
84 public void optProp_withSetValueFalse() throws PackageManager.NameNotFoundException { in optProp_withSetValueFalse()
95 throws PackageManager.NameNotFoundException { in optProp_withSetValueWithConditionFalse()
114 throws PackageManager.NameNotFoundException { in optProp_isUnsetWhenPropertyIsNotPresent()
124 throws PackageManager.NameNotFoundException { in optProp_shouldEnableWithOverrideAndProperty()
155 throws PackageManager.NameNotFoundException { in optProp_shouldEnableWithOptInOverrideAndOptOutProperty()
189 throws PackageManager.NameNotFoundException { in optProp_shouldEnableWithOptOutOverrideAndProperty()
222 throws PackageManager.NameNotFoundException { in optProp_gateConditionIsInvokedOnlyOncePerInvocation()
241 private void initPropAs(boolean propertyValue) throws PackageManager.NameNotFoundException { in initPropAs()
[all …]
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java74 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { in getPackageInfo()
80 int flags) throws NameNotFoundException { in getPackageInfo()
87 throws NameNotFoundException { in getPackageInfoAsUser()
118 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids()
123 public int[] getPackageGids(String packageName, int flags) throws NameNotFoundException { in getPackageGids()
128 public int getPackageUid(String packageName, int flags) throws NameNotFoundException { in getPackageUid()
135 throws NameNotFoundException { in getPackageUidAsUser()
142 throws NameNotFoundException { in getPackageUidAsUser()
148 throws NameNotFoundException { in getPermissionInfo()
154 throws NameNotFoundException { in queryPermissionsByGroup()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/media/projection/
DMediaProjectionManagerServiceTest.java58 import android.content.pm.PackageManager.NameNotFoundException;
197 public void testGetActiveProjectionInfoInternal() throws NameNotFoundException { in testGetActiveProjectionInfoInternal()
212 public void testCreateProjection() throws NameNotFoundException { in testCreateProjection()
228 NameNotFoundException, InterruptedException { in testCreateProjection_priorProjectionGrant()
251 throws NameNotFoundException { in testCreateProjection_attemptReuse_noPriorProjectionGrant()
263 throws NameNotFoundException { in testCreateProjection_attemptReuse_priorProjectionGrant_notWaiting()
280 throws NameNotFoundException { in testCreateProjection_attemptReuse_priorProjectionGrant_waiting()
302 throws NameNotFoundException { in testCreateProjection_attemptReuse_priorProjectionGrant_waiting_differentPackage()
385 public void testIsValid_multipleStarts_preventionDisabled() throws NameNotFoundException { in testIsValid_multipleStarts_preventionDisabled()
404 public void testIsValid_restart() throws NameNotFoundException { in testIsValid_restart()
[all …]
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java226 throws NameNotFoundException { in getPackageInfo()
232 throws NameNotFoundException { in getPackageInfo()
238 throws NameNotFoundException { in getPackageInfo()
244 throws NameNotFoundException { in getPackageInfo()
255 throw new NameNotFoundException(versionedPackage.toString()); in getPackageInfo()
260 throws NameNotFoundException { in getPackageInfoAsUser()
266 throws NameNotFoundException { in getPackageInfoAsUser()
273 throw new NameNotFoundException(packageName); in getPackageInfoAsUser()
362 public int[] getPackageGids(String packageName) throws NameNotFoundException { in getPackageGids()
368 throws NameNotFoundException { in getPackageGids()
[all …]
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java28 import android.content.pm.PackageManager.NameNotFoundException;
72 } catch (NameNotFoundException e) { in initializeBenchmarks()
80 } catch (NameNotFoundException e) { in initializeBenchmarks()
90 } catch (NameNotFoundException e) { in initializeBenchmarks()
98 } catch (NameNotFoundException e) { in initializeBenchmarks()
106 } catch (NameNotFoundException e) { in initializeBenchmarks()
118 } catch (NameNotFoundException e) { in initializeBenchmarks()
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DTestSystemImpl.java22 import android.content.pm.PackageManager.NameNotFoundException;
125 NameNotFoundException { in getPackageInfoForProvider()
127 if (userPackages == null) throw new NameNotFoundException(info.packageName); in getPackageInfoForProvider()
129 if (ret == null) throw new NameNotFoundException(info.packageName); in getPackageInfoForProvider()
175 public long getFactoryPackageVersion(String packageName) throws NameNotFoundException { in getFactoryPackageVersion()
178 if (userPackages == null) throw new NameNotFoundException(); in getFactoryPackageVersion()
184 throw new NameNotFoundException(); in getFactoryPackageVersion()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DMultiInstanceHelperTest.kt97 @Throws(PackageManager.NameNotFoundException::class)
116 @Throws(PackageManager.NameNotFoundException::class)
135 @Throws(PackageManager.NameNotFoundException::class)
141 .thenThrow(PackageManager.NameNotFoundException()) in supportsMultiInstanceSplit_noActivityPropertyApplicationPropertyTrue()
153 @Throws(PackageManager.NameNotFoundException::class)
159 .thenThrow(PackageManager.NameNotFoundException()) in supportsMultiInstanceSplit_noActivityOrAppProperty()
162 .thenThrow(PackageManager.NameNotFoundException()) in supportsMultiInstanceSplit_noActivityOrAppProperty()
169 @Throws(PackageManager.NameNotFoundException::class)
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarDisplayCompatScaleProviderUpdatableTest.java57 import android.content.pm.PackageManager.NameNotFoundException;
147 public void noApplicationInfo_returnsFalse() throws NameNotFoundException { in noApplicationInfo_returnsFalse()
157 throws NameNotFoundException { in hasMedataDataDisplayCompat_requiredFalse_returnsFalse()
169 throws NameNotFoundException { in hasMedataData_notDisplayCompat_returnsTrue()
187 public void hasMedataDataDisplayCompat_requiredTrue_returnsTrue() throws NameNotFoundException { in hasMedataDataDisplayCompat_requiredTrue_returnsTrue()
205 public void hasFeatureAutomotive_requiredTrue_returnsFalse() throws NameNotFoundException { in hasFeatureAutomotive_requiredTrue_returnsFalse()
218 public void hasFeatureAutomotive_requiredFalse_returnsFalse() throws NameNotFoundException { in hasFeatureAutomotive_requiredFalse_returnsFalse()
230 public void hasNoActivities_returnsFalse() throws NameNotFoundException { in hasNoActivities_returnsFalse()
239 public void hasDistractionOptimizedActivity_returnsFalse() throws NameNotFoundException { in hasDistractionOptimizedActivity_returnsFalse()
252 public void isPrivileged_returnsFalse() throws NameNotFoundException { in isPrivileged_returnsFalse()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractTest.java32 import android.content.pm.PackageManager.NameNotFoundException;
243 } catch (NameNotFoundException e) { in testGetProvider_providerNotFound()
248 public void testGetProvider_providerIsSystemApp() throws PackageManager.NameNotFoundException { in testGetProvider_providerIsSystemApp()
258 throws PackageManager.NameNotFoundException { in testGetProvider_providerIsSystemAppWrongPackage()
268 } catch (NameNotFoundException e) { in testGetProvider_providerIsSystemAppWrongPackage()
275 throws PackageManager.NameNotFoundException { in testGetProvider_providerIsNonSystemAppNoCerts()
282 throws PackageManager.NameNotFoundException { in testGetProvider_providerIsNonSystemAppWrongCerts()
295 throws PackageManager.NameNotFoundException { in testGetProvider_providerIsNonSystemAppCorrectCerts()
309 throws PackageManager.NameNotFoundException { in testGetProvider_providerIsNonSystemAppMoreCerts()
321 throws PackageManager.NameNotFoundException { in testGetProvider_providerIsNonSystemAppDuplicateCerts()
[all …]
/frameworks/base/core/java/android/app/usage/
DStorageStatsManager.java209 throws PackageManager.NameNotFoundException, IOException { in queryStatsForPackage()
214 e.maybeRethrow(PackageManager.NameNotFoundException.class); in queryStatsForPackage()
225 UserHandle user) throws PackageManager.NameNotFoundException, IOException { in queryStatsForPackage()
370 int uid) throws IOException, PackageManager.NameNotFoundException { in queryCratesForUid()
377 e.maybeRethrow(PackageManager.NameNotFoundException.class); in queryCratesForUid()
403 throws PackageManager.NameNotFoundException, IOException { in queryCratesForPackage()
410 e.maybeRethrow(PackageManager.NameNotFoundException.class); in queryCratesForPackage()
435 @NonNull UserHandle user) throws PackageManager.NameNotFoundException, IOException { in queryCratesForUser()
442 e.maybeRethrow(PackageManager.NameNotFoundException.class); in queryCratesForUser()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationJavaUtil.java42 throws PackageManager.NameNotFoundException { in setStatusForceNullable()
49 throws PackageManager.NameNotFoundException { in setUserSelectionForceNullable()
55 throws PackageManager.NameNotFoundException { in setStatusForceNullable()
61 throws PackageManager.NameNotFoundException { in setUserSelectionForceNullable()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowApplicationPackageManager.java20 import static android.content.pm.PackageManager.NameNotFoundException;
99 throws NameNotFoundException { in getPackageInfoAsUser()
101 throw new NameNotFoundException(packageName); in getPackageInfoAsUser()
113 throws NameNotFoundException { in getPackageUidAsUser()
119 throw new NameNotFoundException(packageName); in getPackageUidAsUser()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DUtils.java62 throws PackageManager.NameNotFoundException { in getApplicationLabel()
72 @NonNull String packageName) throws PackageManager.NameNotFoundException { in getApplicationIcon()
88 @NonNull String packageName, int userId) throws PackageManager.NameNotFoundException { in getVendorHeaderIcon()
101 @NonNull String packageName, int userId) throws PackageManager.NameNotFoundException { in getVendorHeaderName()
113 @NonNull String packageName, int userId) throws PackageManager.NameNotFoundException { in hasVendorIcon()
142 @NonNull String packageName, int userId) throws PackageManager.NameNotFoundException { in getApplicationInfo()
/frameworks/base/services/core/java/com/android/server/crashrecovery/
DCrashRecoveryHelper.java73 } catch (PackageManager.NameNotFoundException ignore) { in isModule()
106 } catch (PackageManager.NameNotFoundException e) { in getVersionedPackage()
117 throws PackageManager.NameNotFoundException { in getPackageInfo()
125 } catch (PackageManager.NameNotFoundException e) { in getPackageInfo()
/frameworks/base/services/core/java/com/android/server/webkit/
DSystemInterface.java22 import android.content.pm.PackageManager.NameNotFoundException;
39 public long getFactoryPackageVersion(String packageName) throws NameNotFoundException; in getFactoryPackageVersion()
50 throws NameNotFoundException; in getPackageInfoForProvider()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationShell.java24 import android.content.pm.PackageManager.NameNotFoundException;
208 } catch (NameNotFoundException e) { in runSetAppLinks()
275 } catch (NameNotFoundException e) { in runSetAppLinksUserState()
306 } catch (NameNotFoundException e) { in runGetAppLinks()
424 } catch (NameNotFoundException e) { in runSetAppLinksAllowed()
478 } catch (NameNotFoundException e) { in runGetAppLinkOwners()
543 @Nullable ArraySet<String> domains) throws PackageManager.NameNotFoundException; in setDomainVerificationStatusInternal()
558 throws PackageManager.NameNotFoundException; in setDomainVerificationUserSelectionInternal()
566 throws PackageManager.NameNotFoundException; in getDomainVerificationUserState()
578 boolean allowed, @UserIdInt int userId) throws NameNotFoundException; in setDomainVerificationLinkHandlingAllowedInternal()
[all …]
DDomainVerificationUtils.java24 import android.content.pm.PackageManager.NameNotFoundException;
49 static NameNotFoundException throwPackageUnavailable(@NonNull String packageName) in throwPackageUnavailable()
50 throws NameNotFoundException { in throwPackageUnavailable()
51 throw new NameNotFoundException("Package " + packageName + " unavailable"); in throwPackageUnavailable()
/frameworks/base/core/java/android/service/contentcapture/
DContentCaptureServiceInfo.java27 import android.content.pm.PackageManager.NameNotFoundException;
57 @UserIdInt int userId) throws PackageManager.NameNotFoundException { in getServiceInfoOrThrow()
69 throw new NameNotFoundException("Could not get serviceInfo for " in getServiceInfoOrThrow()
84 throws PackageManager.NameNotFoundException { in ContentCaptureServiceInfo()
135 } catch (PackageManager.NameNotFoundException | IOException | XmlPullParserException e) { in ContentCaptureServiceInfo()
/frameworks/base/core/java/android/service/translation/
DTranslationServiceInfo.java27 import android.content.pm.PackageManager.NameNotFoundException;
63 @UserIdInt int userId) throws PackageManager.NameNotFoundException { in getServiceInfoOrThrow()
75 throw new NameNotFoundException("Could not get serviceInfo for " in getServiceInfoOrThrow()
94 throws PackageManager.NameNotFoundException { in TranslationServiceInfo()
146 } catch (PackageManager.NameNotFoundException | IOException | XmlPullParserException e) { in TranslationServiceInfo()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/
DPartnerConfigHelper.java98 } catch (PackageManager.NameNotFoundException exception) { in getColor()
145 } catch (PackageManager.NameNotFoundException exception) { in getColorStateList()
188 } catch (PackageManager.NameNotFoundException | NotFoundException exception) { in getDrawable()
223 } catch (PackageManager.NameNotFoundException exception) { in getString()
269 } catch (PackageManager.NameNotFoundException exception) { in getDimension()
305 } catch (PackageManager.NameNotFoundException exception) { in getBoolean()
333 throws PackageManager.NameNotFoundException { in getResourcesByPackageName()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageArchiver.java239 } catch (PackageManager.NameNotFoundException e) { in requestArchive()
449 throws PackageManager.NameNotFoundException { in createAndStoreArchiveState()
472 } catch (IOException | PackageManager.NameNotFoundException e) { in createAndStoreArchiveState()
632 int userId) throws PackageManager.NameNotFoundException { in verifyInstaller()
634 throw new PackageManager.NameNotFoundException("No installer found"); in verifyInstaller()
639 throw new PackageManager.NameNotFoundException("Installer does not support unarchival"); in verifyInstaller()
644 throw new PackageManager.NameNotFoundException("Failed to obtain Installer info"); in verifyInstaller()
667 private void verifyNotSystemApp(int flags) throws PackageManager.NameNotFoundException { in verifyNotSystemApp()
670 throw new PackageManager.NameNotFoundException("System apps cannot be archived."); in verifyNotSystemApp()
675 throws PackageManager.NameNotFoundException { in verifyInstalled()
[all …]

12345678910>>...25