Home
last modified time | relevance | path

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

/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/
DPackageEvent.java55 public final Uri packageUri; field in PackageEvent
60 public static PackageEvent createReplaced(Uri packageUri, String packageName) { in createReplaced() argument
61 return new PackageEvent(TYPE_REPLACED, packageUri, packageName); in createReplaced()
64 private PackageEvent(@Type int type, Uri packageUri, String packageName) { in PackageEvent() argument
66 this.packageUri = packageUri; in PackageEvent()
74 Objects.requireNonNull(packageUri, "packageUri"); in checkConstructorArguments()
90 Objects.equals(packageUri, other.packageUri) && in equals()
96 return String.format("{packageUri: %s, packageName: %s}", packageUri, packageName); in toString()
103 packageUri.writeToParcel(out, flags); in writeToParcel()
109 this.packageUri = Uri.CREATOR.createFromParcel(in); in PackageEvent()
/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()
DPackageInstallerActivity.java308 final Uri packageUri; in onCreate() local
320 packageUri = Uri.fromFile(new File(info.resolvedBaseCodePath)); in onCreate()
325 packageUri = intent.getData(); in onCreate()
331 if (packageUri == null) { in onCreate()
343 boolean wasSetUp = processPackageUri(packageUri); in onCreate()
498 private boolean processPackageUri(final Uri packageUri) { in processPackageUri() argument
499 mPackageURI = packageUri; in processPackageUri()
501 final String scheme = packageUri.getScheme(); in processPackageUri()
506 mPkgInfo = mPm.getPackageInfo(packageUri.getSchemeSpecificPart(), in processPackageUri()
512 Log.w(TAG, "Requested package " + packageUri.getScheme() in processPackageUri()
[all …]
DInstallStart.java110 Uri packageUri = intent.getData(); in onCreate() local
112 if (packageUri != null && packageUri.getScheme().equals( in onCreate()
119 } else if (packageUri != null && packageUri.getScheme().equals( in onCreate()
DUninstallerActivity.java144 final Uri packageUri = intent.getData(); in onCreate() local
145 if (packageUri == null) { in onCreate()
150 mPackageName = packageUri.getEncodedSchemeSpecificPart(); in onCreate()
152 Log.e(TAG, "Invalid package name in URI: " + packageUri); in onCreate()
198 final String className = packageUri.getFragment(); in onCreate()
DInstallStaging.java173 Uri packageUri = params[0]; in doInBackground() local
174 try (InputStream in = getContentResolver().openInputStream(packageUri)) { in doInBackground()
/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.java146 Uri packageUri = intent.getData(); in onStartCommand() local
147 if (packageUri == null) { in onStartCommand()
153 final String packageName = WearPackageUtil.getSanitizedPackageName(packageUri); in onStartCommand()
155 Log.e(TAG, "Invalid package name in URI (expected package:<pkgName>): " + packageUri); in onStartCommand()
/frameworks/base/services/core/java/com/android/server/
DPinnerService.java145 Uri packageUri = intent.getData();
146 String packageName = packageUri.getSchemeSpecificPart();
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java236 private void invokeInstallPackage(Uri packageUri, int flags, GenericReceiver receiver, in invokeInstallPackage() argument
240 final String inPath = packageUri.getPath(); in invokeInstallPackage()
288 private void invokeInstallPackageFail(Uri packageUri, int flags, int expectedResult) { in invokeInstallPackageFail() argument
289 final String inPath = packageUri.getPath(); in invokeInstallPackageFail()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java14069 private void broadcastPackageVerified(int verificationId, Uri packageUri,
14072 intent.setDataAndType(packageUri, PACKAGE_MIME_TYPE);