@SdkSuppress(minSdkVersion = P) @Test public void getLongVersionCodeLowerAndUpperBits() { PackageInfo info = new PackageInfo(); info.setLongVersionCode(Long.MAX_VALUE); assertEquals(Long.MAX_VALUE, PackageInfoCompat.getLongVersionCode(info)); }
public static long getLongVersionCode(@NonNull PackageInfo info) { if (BuildCompat.isAtLeastP()) { return info.getLongVersionCode(); } return info.versionCode; }
PackageInfoCompat { public static long getLongVersionCode(@NonNull PackageInfo info) { if (BuildCompat.isAtLeastP()) { return info.getLongVersionCode(); } return info.versionCode; } }
PackageInfoCompat { public static long getLongVersionCode(@NonNull PackageInfo info) { if (BuildCompat.isAtLeastP()) { return info.getLongVersionCode(); } return info.versionCode; } private  PackageInfoCompat(); }
PackageInfoCompat { public static long getLongVersionCode(@NonNull PackageInfo info) { if (BuildCompat.isAtLeastP()) { return info.getLongVersionCode(); } return info.versionCode; } private  PackageInfoCompat(); static long getLongVersionCode(@NonNull PackageInfo info); }
PackageInfoCompat { public static long getLongVersionCode(@NonNull PackageInfo info) { if (BuildCompat.isAtLeastP()) { return info.getLongVersionCode(); } return info.versionCode; } private  PackageInfoCompat(); static long getLongVersionCode(@NonNull PackageInfo info);  }