Java Code Examples for android.content.pm.VersionedPackage#toString()
The following examples show how to use
android.content.pm.VersionedPackage#toString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 5 votes |
@Override public PackageInfo getPackageInfo(VersionedPackage versionedPackage, int flags) throws NameNotFoundException { try { PackageInfo pi = mPM.getPackageInfoVersioned(versionedPackage, flags, mContext.getUserId()); if (pi != null) { return pi; } } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } throw new NameNotFoundException(versionedPackage.toString()); }
Example 2
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 5 votes |
@Override public PackageInfo getPackageInfo(VersionedPackage versionedPackage, int flags) throws NameNotFoundException { try { PackageInfo pi = mPM.getPackageInfoVersioned(versionedPackage, flags, mContext.getUserId()); if (pi != null) { return pi; } } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } throw new NameNotFoundException(versionedPackage.toString()); }
Example 3
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 5 votes |
@Override public PackageInfo getPackageInfo(VersionedPackage versionedPackage, int flags) throws NameNotFoundException { try { PackageInfo pi = mPM.getPackageInfoVersioned(versionedPackage, flags, mContext.getUserId()); if (pi != null) { return pi; } } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } throw new NameNotFoundException(versionedPackage.toString()); }
Example 4
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 5 votes |
@Override public PackageInfo getPackageInfo(VersionedPackage versionedPackage, int flags) throws NameNotFoundException { try { PackageInfo pi = mPM.getPackageInfoVersioned(versionedPackage, flags, mContext.getUserId()); if (pi != null) { return pi; } } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } throw new NameNotFoundException(versionedPackage.toString()); }
Example 5
Source File: ApplicationPackageManager.java From AndroidComponentPlugin with Apache License 2.0 | 5 votes |
@Override public PackageInfo getPackageInfo(VersionedPackage versionedPackage, int flags) throws NameNotFoundException { final int userId = getUserId(); try { PackageInfo pi = mPM.getPackageInfoVersioned(versionedPackage, updateFlagsForPackage(flags, userId), userId); if (pi != null) { return pi; } } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } throw new NameNotFoundException(versionedPackage.toString()); }
Example 6
Source File: ApplicationPackageManager.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
@Override public PackageInfo getPackageInfo(VersionedPackage versionedPackage, int flags) throws NameNotFoundException { try { PackageInfo pi = mPM.getPackageInfoVersioned(versionedPackage, flags, mContext.getUserId()); if (pi != null) { return pi; } } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } throw new NameNotFoundException(versionedPackage.toString()); }