/packages/services/Car/tests/CarLibUnitTest/src/android/car/content/pm/ |
D | CarPackageManagerUnitTest.java | 82 assertThat(mMgr.getTargetCarVersion()).isSameInstanceAs(apiVersion); in testGetTargetCarVersion_self_ok() 91 RuntimeException e = assertThrows(RuntimeException.class, () -> mMgr.getTargetCarVersion()); in testGetTargetCarVersion_self_remoteException() 99 when(mService.getTargetCarVersion("dr.evil")).thenReturn(apiVersion); in testGetTargetCarVersion_ok() 101 assertThat(mMgr.getTargetCarVersion("dr.evil")).isSameInstanceAs(apiVersion); in testGetTargetCarVersion_ok() 107 when(mService.getTargetCarVersion("the.meaning.of.life")).thenThrow(cause); in testGetTargetCarVersion_runtimeException() 110 () -> mMgr.getTargetCarVersion("the.meaning.of.life")); in testGetTargetCarVersion_runtimeException() 118 when(mService.getTargetCarVersion("the.meaning.of.life")).thenThrow(cause); in testGetTargetCarVersion_serviceException_unexpectedErrorCode() 121 () -> mMgr.getTargetCarVersion("the.meaning.of.life")); in testGetTargetCarVersion_serviceException_unexpectedErrorCode() 129 when(mService.getTargetCarVersion("the.meaning.of.life")) in testGetTargetCarVersion_serviceException_notFound() 134 () -> mMgr.getTargetCarVersion("the.meaning.of.life")); in testGetTargetCarVersion_serviceException_notFound()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/ |
D | CarPackageManagerServiceUnitTest.java | 213 .when(() -> CarPackageManagerService.getTargetCarVersion(mUserContext, pkgName)); in testGetTargetCarVersion_ok() 218 .that(mService.getTargetCarVersion(pkgName)).isSameInstanceAs(Version); in testGetTargetCarVersion_ok() 227 .when(() -> CarPackageManagerService.getTargetCarVersion(mUserContext, pkgName)); in testGetTargetCarVersion_byUser() 232 .that(mService.getTargetCarVersion(mUserHandle, pkgName)) in testGetTargetCarVersion_byUser() 244 .when(() -> CarPackageManagerService.getTargetCarVersion(mUserContext, pkgName)); in testGetTargetCarVersion_self_ok() 260 .when(() -> CarPackageManagerService.getTargetCarVersion(mUserContext, pkgName)); in testGetTargetCarVersion_self_wrongUid() 275 () -> CarPackageManagerService.getTargetCarVersion(mUserContext, null)); in testGetTargetCarVersion_static_null() 283 () -> CarPackageManagerService.getTargetCarVersion(mUserContext, "d.oh")); in testGetTargetCarVersion_static_noPermission() 293 () -> CarPackageManagerService.getTargetCarVersion(mUserContext, in testGetTargetCarVersion_static_noApp() 308 CarVersion actualVersion = CarPackageManagerService.getTargetCarVersion( in testGetTargetCarVersion_static_ok()
|
D | CarVersionParserTest.java | 37 CarVersion apiVersion = CarVersionParser.getTargetCarVersion(info); in testGetTargetCarApiVersion_noMetadata() 52 CarVersion apiVersion = CarVersionParser.getTargetCarVersion(info); in testGetTargetCarApiVersion_simpleCase()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarPackageManagerTest.java | 53 CarVersion apiVersion = mCarPackageManager.getTargetCarVersion(); in testGetTargetCarVersion_self() 69 () -> mCarPackageManager.getTargetCarVersion(pkg)); in testgetTargetCarVersion_noPackage() 78 CarVersion apiVersion = mCarPackageManager.getTargetCarVersion(pkg); in testGetTargetCarMajorAndMinorVersion_set()
|
/packages/services/Car/car-lib/src/android/car/content/pm/ |
D | CarPackageManager.java | 496 public CarVersion getTargetCarVersion(@NonNull String packageName) in getTargetCarVersion() method in CarPackageManager 499 return mService.getTargetCarVersion(packageName); in getTargetCarVersion() 523 public CarVersion getTargetCarVersion() { in getTargetCarVersion() method in CarPackageManager
|
D | ICarPackageManager.aidl | 39 CarVersion getTargetCarVersion(String packageName) = 10;
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | CarVersionParser.java | 47 public static CarVersion getTargetCarVersion(ApplicationInfo info) { in getTargetCarVersion() method in CarVersionParser
|
D | CarPackageManagerService.java | 1695 public CarVersion getTargetCarVersion(String packageName) { in getTargetCarVersion() method in CarPackageManagerService 1696 return getTargetCarVersion(Binder.getCallingUserHandle(), packageName); in getTargetCarVersion() 1703 return getTargetCarVersion(Binder.getCallingUserHandle(), packageName); in getSelfTargetCarVersion() 1709 public CarVersion getTargetCarVersion(UserHandle user, String packageName) { in getTargetCarVersion() method in CarPackageManagerService 1711 return getTargetCarVersion(context, packageName); in getTargetCarVersion() 1718 public static CarVersion getTargetCarVersion(Context context, String packageName) { in getTargetCarVersion() method in CarPackageManagerService 1737 return CarVersionParser.getTargetCarVersion(info); in getTargetCarVersion()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/mainline/ |
D | CarMainlineFragment.java | 122 apiVersion = mCarPm.getTargetCarVersion(ksPkg); in setTargetCarApiVersion()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarShellCommand.java | 1519 getTargetCarVersion(args, writer); in exec() 4237 private void getTargetCarVersion(String[] args, IndentingPrintWriter writer) { 4272 CarVersion Version = CarPackageManagerService.getTargetCarVersion(
|
/packages/services/Car/car-lib/api/ |
D | current.txt | 509 method @Deprecated @NonNull public android.car.CarVersion getTargetCarVersion();
|
D | system-current.txt | 646 …ifest.permission.QUERY_ALL_PACKAGES) public android.car.CarVersion getTargetCarVersion(@NonNull St…
|
D | test-current.txt | 717 …ifest.permission.QUERY_ALL_PACKAGES) public android.car.CarVersion getTargetCarVersion(@NonNull St…
|
/packages/services/Car/car-lib-module/api/ |
D | current.txt | 509 method @Deprecated @NonNull public android.car.CarVersion getTargetCarVersion();
|
D | system-current.txt | 646 …ifest.permission.QUERY_ALL_PACKAGES) public android.car.CarVersion getTargetCarVersion(@NonNull St…
|
/packages/services/Car/tools/GenericCarApiBuilder/ |
D | complete_car_api_list.txt | 330 method TIRAMISU_1 CarVersion getTargetCarVersion(String packageName); 331 method TIRAMISU_1 CarVersion getTargetCarVersion();
|