Home
last modified time | relevance | path

Searched refs:PackageInstaller (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/java/android/content/pm/
DPackageManager.java5727 public abstract @NonNull PackageInstaller getPackageInstaller(); in getPackageInstaller()
5830 case INSTALL_SUCCEEDED: return PackageInstaller.STATUS_SUCCESS; in installStatusToPublicStatus()
5831 case INSTALL_FAILED_ALREADY_EXISTS: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus()
5832 case INSTALL_FAILED_INVALID_APK: return PackageInstaller.STATUS_FAILURE_INVALID; in installStatusToPublicStatus()
5833 case INSTALL_FAILED_INVALID_URI: return PackageInstaller.STATUS_FAILURE_INVALID; in installStatusToPublicStatus()
5834 … case INSTALL_FAILED_INSUFFICIENT_STORAGE: return PackageInstaller.STATUS_FAILURE_STORAGE; in installStatusToPublicStatus()
5835 case INSTALL_FAILED_DUPLICATE_PACKAGE: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus()
5836 case INSTALL_FAILED_NO_SHARED_USER: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus()
5837 … case INSTALL_FAILED_UPDATE_INCOMPATIBLE: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus()
5838 … case INSTALL_FAILED_SHARED_USER_INCOMPATIBLE: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus()
[all …]
DIPackageInstaller.aidl22 import android.content.pm.PackageInstaller;
31 …int createSession(in PackageInstaller.SessionParams params, String installerPackageName, int userI… in createSession()
40 PackageInstaller.SessionInfo getSessionInfo(int sessionId); in getSessionInfo()
DPackageInstaller.aidl19 parcelable PackageInstaller.SessionParams;
20 parcelable PackageInstaller.SessionInfo;
DPackageInstaller.java88 public class PackageInstaller { class
300 public PackageInstaller(IPackageInstaller installer, in PackageInstaller() method in PackageInstaller
1603 final Intent intent = new Intent(PackageInstaller.ACTION_SESSION_DETAILS); in createDetailsIntent()
1604 intent.putExtra(PackageInstaller.EXTRA_SESSION_ID, sessionId); in createDetailsIntent()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DRestoreUtils.java29 import android.content.pm.PackageInstaller;
30 import android.content.pm.PackageInstaller.Session;
31 import android.content.pm.PackageInstaller.SessionParams;
85 PackageInstaller installer = packageManager.getPackageInstaller(); in installApk()
122 int status = PackageInstaller.STATUS_FAILURE; in installApk()
126 if (status != PackageInstaller.STATUS_SUCCESS) { in installApk()
137 PackageInstaller.EXTRA_PACKAGE_NAME); in installApk()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java41 import android.content.pm.PackageInstaller;
42 import android.content.pm.PackageInstaller.SessionInfo;
43 import android.content.pm.PackageInstaller.SessionParams;
756 intent.putExtra(PackageInstaller.EXTRA_CALLBACK, adapter.getBinder().asBinder()); in uninstall()
831 fillIn.putExtra(PackageInstaller.EXTRA_PACKAGE_NAME, mPackageName); in onUserActionRequired()
832 fillIn.putExtra(PackageInstaller.EXTRA_STATUS, in onUserActionRequired()
833 PackageInstaller.STATUS_PENDING_USER_ACTION); in onUserActionRequired()
851 fillIn.putExtra(PackageInstaller.EXTRA_PACKAGE_NAME, mPackageName); in onPackageDeleted()
852 fillIn.putExtra(PackageInstaller.EXTRA_STATUS, in onPackageDeleted()
854 fillIn.putExtra(PackageInstaller.EXTRA_STATUS_MESSAGE, in onPackageDeleted()
[all …]
DPackageManagerShellCommand.java42 import android.content.pm.PackageInstaller;
43 import android.content.pm.PackageInstaller.SessionParams;
300 final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in uninstallSystemUpdates()
301 PackageInstaller.STATUS_FAILURE); in uninstallSystemUpdates()
302 if (status != PackageInstaller.STATUS_SUCCESS) { in uninstallSystemUpdates()
916 false /*logSuccess*/) != PackageInstaller.STATUS_SUCCESS) { in runInstall()
920 != PackageInstaller.STATUS_SUCCESS) { in runInstall()
1491 final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in runUninstall()
1492 PackageInstaller.STATUS_FAILURE); in runUninstall()
1493 if (status == PackageInstaller.STATUS_SUCCESS) { in runUninstall()
[all …]
DPackageInstallerSession.java54 import android.content.pm.PackageInstaller;
55 import android.content.pm.PackageInstaller.SessionInfo;
56 import android.content.pm.PackageInstaller.SessionParams;
630 if (PackageInstaller.ENABLE_REVOCABLE_FD) { in doWriteInternal()
702 if (PackageInstaller.ENABLE_REVOCABLE_FD) { in doWriteInternal()
710 } else if (PackageInstaller.ENABLE_REVOCABLE_FD) { in doWriteInternal()
947 final Intent intent = new Intent(PackageInstaller.ACTION_CONFIRM_PERMISSIONS); in commitLocked()
949 intent.putExtra(PackageInstaller.EXTRA_SESSION_ID, sessionId); in commitLocked()
DPackageManagerService.java167 import android.content.pm.PackageInstaller;
13784 IPackageInstallObserver2 observer, PackageInstaller.SessionParams sessionParams,
13826 final PackageInstaller.SessionInfo info = new PackageInstaller.SessionInfo();
17853 intent.putExtra(PackageInstaller.EXTRA_CALLBACK, observer.asBinder());
20471 public void sendSessionCommitBroadcast(PackageInstaller.SessionInfo sessionInfo, int userId) {
20478 Intent launcherIntent = new Intent(PackageInstaller.ACTION_SESSION_COMMITTED)
20479 .putExtra(PackageInstaller.EXTRA_SESSION, sessionInfo)
23008 case PackageInstaller.STATUS_SUCCESS:
23012 case PackageInstaller.STATUS_FAILURE_STORAGE:
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java35 import android.content.pm.PackageInstaller.SessionParams;
198 private PackageInstaller getPi() { in getPi()
202 private void writeSplitToInstallSession(PackageInstaller.Session session, String inPath, in writeSplitToInstallSession()
240 PackageInstaller.Session session = null; in invokeInstallPackage()
251 final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in invokeInstallPackage()
252 PackageInstaller.STATUS_FAILURE); in invokeInstallPackage()
254 if (status != PackageInstaller.STATUS_SUCCESS) { in invokeInstallPackage()
258 if (status == PackageInstaller.STATUS_SUCCESS) { in invokeInstallPackage()
289 PackageInstaller.Session session = null; in invokeInstallPackageFail()
300 final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in invokeInstallPackageFail()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java37 import android.content.pm.PackageInstaller;
910 public PackageInstaller getPackageInstaller() { in getPackageInstaller()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java19 import android.content.pm.PackageInstaller;
949 public PackageInstaller getPackageInstaller() { in getPackageInstaller()
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java39 import android.content.pm.PackageInstaller;
1121 public PackageInstaller getPackageInstaller() { in getPackageInstaller()
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java24 import android.content.pm.PackageInstaller.SessionParams;
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java47 import android.content.pm.PackageInstaller;
125 private PackageInstaller mInstaller;
2455 public PackageInstaller getPackageInstaller() { in getPackageInstaller()
2459 mInstaller = new PackageInstaller(mPM.getPackageInstaller(), in getPackageInstaller()
/frameworks/base/test-mock/api/
Dandroid-test-mock-current.txt240 method public android.content.pm.PackageInstaller getPackageInstaller();
/frameworks/base/config/
Dhiddenapi-light-greylist.txt1604 Landroid/content/pm/PackageInstaller$Session;->addProgress(F)V
1605 Landroid/content/pm/PackageInstaller$SessionInfo;-><init>()V
1606 Landroid/content/pm/PackageInstaller$SessionInfo;->active:Z
1607 Landroid/content/pm/PackageInstaller$SessionInfo;->appIcon:Landroid/graphics/Bitmap;
1608 Landroid/content/pm/PackageInstaller$SessionInfo;->appLabel:Ljava/lang/CharSequence;
1609 Landroid/content/pm/PackageInstaller$SessionInfo;->appPackageName:Ljava/lang/String;
1610 Landroid/content/pm/PackageInstaller$SessionInfo;->installerPackageName:Ljava/lang/String;
1611 Landroid/content/pm/PackageInstaller$SessionInfo;->mode:I
1612 Landroid/content/pm/PackageInstaller$SessionInfo;->progress:F
1613 Landroid/content/pm/PackageInstaller$SessionInfo;->resolvedBaseCodePath:Ljava/lang/String;
[all …]
Dpreloaded-classes828 android.content.pm.PackageInstaller
829 android.content.pm.PackageInstaller$Session
830 android.content.pm.PackageInstaller$SessionCallback
831 android.content.pm.PackageInstaller$SessionInfo
832 android.content.pm.PackageInstaller$SessionInfo$1
833 android.content.pm.PackageInstaller$SessionParams
834 android.content.pm.PackageInstaller$SessionParams$1
Dhiddenapi-public-dex.txt8108 Landroid/content/pm/PackageInstaller$Session;
8109 Landroid/content/pm/PackageInstaller$Session;->abandon()V
8110 Landroid/content/pm/PackageInstaller$Session;->close()V
8111 Landroid/content/pm/PackageInstaller$Session;->commit(Landroid/content/IntentSender;)V
8112 Landroid/content/pm/PackageInstaller$Session;->commitTransferred(Landroid/content/IntentSender;)V
8113 Landroid/content/pm/PackageInstaller$Session;->fsync(Ljava/io/OutputStream;)V
8114 Landroid/content/pm/PackageInstaller$Session;->getNames()[Ljava/lang/String;
8115 Landroid/content/pm/PackageInstaller$Session;->openRead(Ljava/lang/String;)Ljava/io/InputStream;
8116 Landroid/content/pm/PackageInstaller$Session;->openWrite(Ljava/lang/String;JJ)Ljava/io/OutputStream;
8117 Landroid/content/pm/PackageInstaller$Session;->removeSplit(Ljava/lang/String;)V
[all …]
Dboot-image-profile.txt1770 HPLandroid/content/pm/PackageInstaller$Session;->close()V
1771 HPLandroid/content/pm/PackageInstaller$Session;->commit(Landroid/content/IntentSender;)V
1772 HPLandroid/content/pm/PackageInstaller$Session;->fsync(Ljava/io/OutputStream;)V
1773 HPLandroid/content/pm/PackageInstaller$Session;->getNames()[Ljava/lang/String;
1774 HPLandroid/content/pm/PackageInstaller$Session;->openWrite(Ljava/lang/String;JJ)Ljava/io/OutputStre…
1775 HPLandroid/content/pm/PackageInstaller$SessionCallbackDelegate;->handleMessage(Landroid/os/Message;…
1776 HPLandroid/content/pm/PackageInstaller$SessionCallbackDelegate;->onSessionActiveChanged(IZ)V
1777 HPLandroid/content/pm/PackageInstaller$SessionCallbackDelegate;->onSessionCreated(I)V
1778 HPLandroid/content/pm/PackageInstaller$SessionCallbackDelegate;->onSessionFinished(IZ)V
1779 HPLandroid/content/pm/PackageInstaller$SessionCallbackDelegate;->onSessionProgressChanged(IF)V
[all …]
/frameworks/base/api/
Dsystem-current.txt996 public class PackageInstaller {
1000 public static class PackageInstaller.Session implements java.io.Closeable {
1004 public static class PackageInstaller.SessionInfo implements android.os.Parcelable {
1014 public static class PackageInstaller.SessionParams implements android.os.Parcelable {
Dcurrent.txt11021 public class PackageInstaller {
11023 …method public int createSession(android.content.pm.PackageInstaller.SessionParams) throws java.io.…
11024 method public java.util.List<android.content.pm.PackageInstaller.SessionInfo> getAllSessions();
11025 method public java.util.List<android.content.pm.PackageInstaller.SessionInfo> getMySessions();
11026 method public android.content.pm.PackageInstaller.SessionInfo getSessionInfo(int);
11027 …method public android.content.pm.PackageInstaller.Session openSession(int) throws java.io.IOExcept…
11028 method public void registerSessionCallback(android.content.pm.PackageInstaller.SessionCallback);
11029 …method public void registerSessionCallback(android.content.pm.PackageInstaller.SessionCallback, an…
11032 … method public void unregisterSessionCallback(android.content.pm.PackageInstaller.SessionCallback);
11055 public static class PackageInstaller.Session implements java.io.Closeable {
[all …]
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt8575 public class PackageInstaller {
8577 …method public int createSession(android.content.pm.PackageInstaller.SessionParams) throws java.io.…
8578 method public java.util.List<android.content.pm.PackageInstaller.SessionInfo> getAllSessions();
8579 method public java.util.List<android.content.pm.PackageInstaller.SessionInfo> getMySessions();
8580 method public android.content.pm.PackageInstaller.SessionInfo getSessionInfo(int);
8581 …method public android.content.pm.PackageInstaller.Session openSession(int) throws java.io.IOExcept…
8582 method public void registerSessionCallback(android.content.pm.PackageInstaller.SessionCallback);
8583 …method public void registerSessionCallback(android.content.pm.PackageInstaller.SessionCallback, an…
8585 … method public void unregisterSessionCallback(android.content.pm.PackageInstaller.SessionCallback);
8606 public static class PackageInstaller.Session implements java.io.Closeable {
[all …]