Home
last modified time | relevance | path

Searched refs:packageUri (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstalledReceiver.java48 Uri packageUri = intent.getData(); in onReceive() local
49 if (packageUri == null) { in onReceive()
53 String packageName = packageUri.getSchemeSpecificPart(); in onReceive()
DInstallStart.java199 Uri packageUri = intent.getData(); in onCreate() local
201 if (packageUri != null in onCreate()
202 && packageUri.getScheme().equals(ContentResolver.SCHEME_CONTENT) in onCreate()
203 && canPackageQuery(callingUid, packageUri)) { in onCreate()
210 } else if (packageUri != null && PackageInstallerActivity.SCHEME_PACKAGE.equals( in onCreate()
211 packageUri.getScheme())) { in onCreate()
272 private boolean canPackageQuery(int callingUid, Uri packageUri) { in canPackageQuery() argument
273 ProviderInfo info = mPackageManager.resolveContentProvider(packageUri.getAuthority(), in canPackageQuery()
DPackageInstallerActivity.java599 private boolean processPackageUri(final Uri packageUri) { in processPackageUri() argument
600 mPackageURI = packageUri; in processPackageUri()
601 final String scheme = packageUri.getScheme(); in processPackageUri()
602 final String packageName = packageUri.getSchemeSpecificPart(); in processPackageUri()
604 if (mLocalLOGV) Log.i(TAG, "processPackageUri(): uri=" + packageUri + ", scheme=" + scheme); in processPackageUri()
621 Log.w(TAG, "Requested package " + packageUri.getSchemeSpecificPart() in processPackageUri()
634 File sourceFile = new File(packageUri.getPath()); in processPackageUri()
650 throw new IllegalArgumentException("Unexpected URI scheme " + packageUri); in processPackageUri()
883 final Uri packageUri = Uri.parse("package:" + argument);
884 settingsIntent.setData(packageUri);
DInstallStaging.java135 final Uri packageUri = getIntent().getData(); in onResume() local
136 final AssetFileDescriptor afd = openAssetFileDescriptor(packageUri); in onResume()
140 mInstaller, getIntent(), pfd, packageUri.toString()); in onResume()
309 Uri packageUri = getIntent().getData(); in doInBackground() local
311 InputStream in = getContentResolver().openInputStream(packageUri)) { in doInBackground()
DUninstallerActivity.java157 final Uri packageUri = intent.getData(); in onCreate() local
158 if (packageUri == null) { in onCreate()
163 mPackageName = packageUri.getEncodedSchemeSpecificPart(); in onCreate()
165 Log.e(TAG, "Invalid package name in URI: " + packageUri); in onCreate()
212 final String className = packageUri.getFragment(); in onCreate()
/frameworks/base/core/java/com/android/internal/policy/
DAttributeCache.java108 final Uri packageUri = intent.getData(); in onReceive() local
109 if (packageUri != null) { in onReceive()
110 final String packageName = packageUri.getEncodedSchemeSpecificPart(); in onReceive()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageUtil.java126 public static String getSanitizedPackageName(Uri packageUri) { in getSanitizedPackageName() argument
127 String packageName = packageUri.getEncodedSchemeSpecificPart(); in getSanitizedPackageName()
DWearPackageInstallerService.java165 Uri packageUri = intent.getData(); in onStartCommand() local
166 if (packageUri == null) { in onStartCommand()
172 final String packageName = WearPackageUtil.getSanitizedPackageName(packageUri); in onStartCommand()
174 Log.e(TAG, "Invalid package name in URI (expected package:<pkgName>): " + packageUri); in onStartCommand()
/frameworks/base/services/core/java/com/android/server/pm/
DVerificationUtils.java86 public static void broadcastPackageVerified(int verificationId, Uri packageUri, in broadcastPackageVerified() argument
90 intent.setDataAndType(packageUri, PACKAGE_MIME_TYPE); in broadcastPackageVerified()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DInstallRepository.kt560 private fun processPackageUri(packageUri: Uri, userActionReason: Int): InstallStage { in <lambda>()
561 val scheme = packageUri.scheme in <lambda>()
562 val packageName = packageUri.schemeSpecificPart in <lambda>()
567 Log.i(LOG_TAG, "processPackageUri(): uri = $packageUri, scheme = $scheme") in <lambda>()
586 LOG_TAG, "Requested package " + packageUri.schemeSpecificPart in <lambda>()
605 val sourceFile = packageUri.path?.let { File(it) } in <lambda>()
633 Log.e(LOG_TAG, "Unexpected URI scheme $packageUri") in <lambda>()
DUninstallRepository.kt119 val packageUri = intent.data in performPreUninstallChecks() constant
120 if (packageUri == null) { in performPreUninstallChecks()
124 targetPackageName = packageUri.encodedSchemeSpecificPart in performPreUninstallChecks()
126 Log.e(LOG_TAG, "Invalid package name in URI: $packageUri") in performPreUninstallChecks()
170 val className = packageUri.fragment in performPreUninstallChecks()
DPackageUtil.kt86 fun canPackageQuery(context: Context, callingUid: Int, packageUri: Uri): Boolean { in canPackageQuery()
89 packageUri.authority!!, in canPackageQuery()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/ui/
DInstallLaunch.kt296 val packageUri = Uri.parse("package:$sourcePackageName") in <lambda>() constant
297 settingsIntent.setData(packageUri) in <lambda>()
/frameworks/base/core/java/android/content/pm/
DCrossProfileApps.java544 final Uri packageUri = Uri.parse("package:" + mContext.getPackageName()); in createRequestInteractAcrossProfilesIntent() local
545 settingsIntent.setData(packageUri); in createRequestInteractAcrossProfilesIntent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DCompatUIController.java689 final Uri packageUri = Uri.parse("package:" + appComponent.getPackageName()); in launchUserAspectRatioSettings() local
690 intent.setData(packageUri); in launchUserAspectRatioSettings()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashscreenContentDrawer.java1112 final Uri packageUri = intent.getData(); in onReceive() local
1113 if (packageUri != null) { in onReceive()
1114 mColorMap.remove(packageUri.getEncodedSchemeSpecificPart()); in onReceive()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageManagerTests.java252 private void invokeInstallPackage(Uri packageUri, int flags, GenericReceiver receiver, in invokeInstallPackage() argument
256 final String inPath = packageUri.getPath(); in invokeInstallPackage()
304 private void invokeInstallPackageFail(Uri packageUri, int flags, int expectedResult) { in invokeInstallPackageFail() argument
305 final String inPath = packageUri.getPath(); in invokeInstallPackageFail()
/frameworks/base/services/core/java/com/android/server/
DPinnerService.java191 Uri packageUri = intent.getData();
192 String packageName = packageUri.getSchemeSpecificPart();