Home
last modified time | relevance | path

Searched refs:getTargetCarVersion (Results 1 – 16 of 16) sorted by relevance

/packages/services/Car/tests/CarLibUnitTest/src/android/car/content/pm/
DCarPackageManagerUnitTest.java82 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/
DCarPackageManagerServiceUnitTest.java213 .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()
DCarVersionParserTest.java37 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/
DCarPackageManagerTest.java53 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/
DCarPackageManager.java496 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
DICarPackageManager.aidl39 CarVersion getTargetCarVersion(String packageName) = 10;
/packages/services/Car/service/src/com/android/car/pm/
DCarVersionParser.java47 public static CarVersion getTargetCarVersion(ApplicationInfo info) { in getTargetCarVersion() method in CarVersionParser
DCarPackageManagerService.java1695 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/
DCarMainlineFragment.java122 apiVersion = mCarPm.getTargetCarVersion(ksPkg); in setTargetCarApiVersion()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java1519 getTargetCarVersion(args, writer); in exec()
4237 private void getTargetCarVersion(String[] args, IndentingPrintWriter writer) {
4272 CarVersion Version = CarPackageManagerService.getTargetCarVersion(
/packages/services/Car/car-lib/api/
Dcurrent.txt509 method @Deprecated @NonNull public android.car.CarVersion getTargetCarVersion();
Dsystem-current.txt646 …ifest.permission.QUERY_ALL_PACKAGES) public android.car.CarVersion getTargetCarVersion(@NonNull St…
Dtest-current.txt717 …ifest.permission.QUERY_ALL_PACKAGES) public android.car.CarVersion getTargetCarVersion(@NonNull St…
/packages/services/Car/car-lib-module/api/
Dcurrent.txt509 method @Deprecated @NonNull public android.car.CarVersion getTargetCarVersion();
Dsystem-current.txt646 …ifest.permission.QUERY_ALL_PACKAGES) public android.car.CarVersion getTargetCarVersion(@NonNull St…
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt330 method TIRAMISU_1 CarVersion getTargetCarVersion(String packageName);
331 method TIRAMISU_1 CarVersion getTargetCarVersion();