Merge "Addess API council comments" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a9bb97993f
@@ -10927,7 +10927,7 @@ package android.content.pm {
|
||||
method public java.util.List<android.content.pm.VersionedPackage> getDependentPackages();
|
||||
method public java.lang.String getName();
|
||||
method public int getType();
|
||||
method public long getVersion();
|
||||
method public int getVersion();
|
||||
method public void writeToParcel(android.os.Parcel, int);
|
||||
field public static final android.os.Parcelable.Creator<android.content.pm.SharedLibraryInfo> CREATOR;
|
||||
field public static final int TYPE_BUILTIN = 0; // 0x0
|
||||
|
||||
@@ -11693,7 +11693,7 @@ package android.content.pm {
|
||||
method public java.util.List<android.content.pm.VersionedPackage> getDependentPackages();
|
||||
method public java.lang.String getName();
|
||||
method public int getType();
|
||||
method public long getVersion();
|
||||
method public int getVersion();
|
||||
method public void writeToParcel(android.os.Parcel, int);
|
||||
field public static final android.os.Parcelable.Creator<android.content.pm.SharedLibraryInfo> CREATOR;
|
||||
field public static final int TYPE_BUILTIN = 0; // 0x0
|
||||
|
||||
@@ -10968,7 +10968,7 @@ package android.content.pm {
|
||||
method public java.util.List<android.content.pm.VersionedPackage> getDependentPackages();
|
||||
method public java.lang.String getName();
|
||||
method public int getType();
|
||||
method public long getVersion();
|
||||
method public int getVersion();
|
||||
method public void writeToParcel(android.os.Parcel, int);
|
||||
field public static final android.os.Parcelable.Creator<android.content.pm.SharedLibraryInfo> CREATOR;
|
||||
field public static final int TYPE_BUILTIN = 0; // 0x0
|
||||
|
||||
@@ -131,7 +131,7 @@ public final class SharedLibraryInfo implements Parcelable {
|
||||
*
|
||||
* @return The version.
|
||||
*/
|
||||
public @IntRange(from = -1) long getVersion() {
|
||||
public @IntRange(from = -1) int getVersion() {
|
||||
return mVersion;
|
||||
}
|
||||
|
||||
|
||||
@@ -4360,8 +4360,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
}
|
||||
|
||||
SharedLibraryInfo resLibInfo = new SharedLibraryInfo(libInfo.getName(),
|
||||
// TODO: Remove cast for lib version once internally we support longs.
|
||||
(int) libInfo.getVersion(), libInfo.getType(),
|
||||
libInfo.getVersion(), libInfo.getType(),
|
||||
libInfo.getDeclaringPackage(), getPackagesUsingSharedLibraryLPr(libInfo,
|
||||
flags, userId));
|
||||
|
||||
@@ -17750,8 +17749,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
for (int i = 0; i < versionCount; i++) {
|
||||
SharedLibraryEntry libEntry = versionedLib.valueAt(i);
|
||||
if (versionsCallerCanSee != null && versionsCallerCanSee.indexOfKey(
|
||||
// TODO: Remove cast for lib version once internally we support longs.
|
||||
(int) libEntry.info.getVersion()) < 0) {
|
||||
libEntry.info.getVersion()) < 0) {
|
||||
continue;
|
||||
}
|
||||
// TODO: We will change version code to long, so in the new API it is long
|
||||
|
||||
Reference in New Issue
Block a user