Home
last modified time | relevance | path

Searched refs:mCar (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/
DCarPublicPermissionTest.java41 assertThrows(SecurityException.class, () -> mCar.getCarManager( in testGetCarManagerPermissions()
43 if (mCar.isFeatureEnabled(Car.CAR_NAVIGATION_SERVICE)) { in testGetCarManagerPermissions()
44 assertThrows(SecurityException.class, () -> mCar.getCarManager( in testGetCarManagerPermissions()
47 if (mCar.isFeatureEnabled(Car.DIAGNOSTIC_SERVICE)) { in testGetCarManagerPermissions()
48 assertThrows(SecurityException.class, () -> mCar.getCarManager(Car.DIAGNOSTIC_SERVICE)); in testGetCarManagerPermissions()
50 if (mCar.isFeatureEnabled(Car.VMS_SUBSCRIBER_SERVICE)) { in testGetCarManagerPermissions()
51 assertThrows(SecurityException.class, () -> mCar.getCarManager( in testGetCarManagerPermissions()
54 assertThrows(SecurityException.class, () -> mCar.getCarManager(Car.TEST_SERVICE)); in testGetCarManagerPermissions()
55 if (mCar.isFeatureEnabled(Car.STORAGE_MONITORING_SERVICE)) { in testGetCarManagerPermissions()
56 assertThrows(SecurityException.class, () -> mCar.getCarManager( in testGetCarManagerPermissions()
DCarPermissionTest.java41 assertThrows(SecurityException.class, () -> mCar.enableFeature("some feature")); in testEnableFeaturePermission()
46 assertThrows(SecurityException.class, () -> mCar.disableFeature("some feature")); in testDisableFeaturePermission()
51 assertThrows(SecurityException.class, () -> mCar.getAllEnabledFeatures()); in testGetAllEnabledFeaturesPermission()
56 assertThrows(SecurityException.class, () -> mCar.getAllPendingDisabledFeatures()); in testGetAllPendingDisabledFeaturesPermission()
61 assertThrows(SecurityException.class, () -> mCar.getAllPendingEnabledFeatures()); in testGetAllPendingEnabledFeaturesPermission()
DAbstractCarManagerPermissionTest.java43 protected Car mCar = null; field in AbstractCarManagerPermissionTest
55 mCar = Objects.requireNonNull(Car.createCar(mContext, (Handler) null)); in connectCar()
56 assertWithMessage("mCar").that(mCar).isNotNull(); in connectCar()
61 invokeMethodWithShellPermissionsNoReturn(mCar, car -> car.disconnect()); in disconnectCar()
DCarRemoteDeviceManagerPermissionTest.java62 mCarRemoteDeviceManager = mCar.getCarManager(CarRemoteDeviceManager.class); in setUp()
146 mCar.getCarManager(CarOccupantZoneManager.class); in getOtherPassengerZones()
DCarOccupantZoneManagerPermissionTest.java49 mCarOccupantZoneManager = (CarOccupantZoneManager) mCar.getCarManager( in setUp()
/cts/tests/tests/car/src/android/car/cts/
DCarTest.java60 private Car mCar; field in CarTest
65 if (mCar != null && mCar.isConnected()) { in tearDown()
66 mCar.disconnect(); in tearDown()
76 mCar = Car.createCar(mContext, mServiceConnectionListener); in testConnection()
77 assertThat(mCar.isConnected()).isFalse(); in testConnection()
78 assertThat(mCar.isConnecting()).isFalse(); in testConnection()
79 mCar.connect(); in testConnection()
82 assertThat(mCar.getCarConnectionType()).isEqualTo(Car.CONNECTION_TYPE_EMBEDDED); in testConnection()
83 mCar.disconnect(); in testConnection()
84 assertThat(mCar.isConnected()).isFalse(); in testConnection()
[all …]
DAbstractCarTestCase.java85 private Car mCar; field in AbstractCarTestCase
94 mCar = Car.createCar(mContext); in createCar()
99 if (mCar != null) { in disconnectCar()
100 mCar.disconnect(); in disconnectCar()
109 return mCar; in getCar()
DCarOccupantConnectionManagerTest.java281 private Car mCar; field in CarOccupantConnectionManagerTest.TestReceiverService
292 mCar = car;
362 mCar = Car.createCar(this, /* handler= */ null, in onCreate()
368 if (mCar != null && mCar.isConnected()) { in onDestroy()
369 mCar.disconnect(); in onDestroy()
370 mCar = null; in onDestroy()
/cts/hostsidetests/car/app/src/android/car/cts/app/
DCarWatchdogTestActivity.java57 private Car mCar; field in CarWatchdogTestActivity
183 if (mCar != null) { in onDestroy()
184 mCar.disconnect(); in onDestroy()
195 if (mCar != null && mCar.isConnected()) { in initCarApi()
196 mCar.disconnect(); in initCarApi()
197 mCar = null; in initCarApi()
199 mCar = Car.createCar(this, null, Car.CAR_WAIT_TIMEOUT_WAIT_FOREVER, in initCarApi()
/cts/hostsidetests/car/app/src/android/car/cts/app/watchdog/
DCarWatchdogDeviceAppTest.java101 private Car mCar; field in CarWatchdogDeviceAppTest
279 if (mCar != null && mCar.isConnected()) { in connectToCar()
281 mCar.disconnect(); in connectToCar()
282 mCar = null; in connectToCar()
285 mCar = Car.createCar( in connectToCar()
299 assertThat(mCar).isNotNull(); in connectToCar()
300 assertThat(mCar.isConnected()).isTrue(); in connectToCar()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/diagnostic/
DCarDiagnosticManagerPermissionTest.java53 assertThrows(SecurityException.class, () -> mCar.getCarManager(DIAGNOSTIC_SERVICE)); in testGetCarDiagnosticManager()
57 return (CarDiagnosticManager) mCar.getCarManager(DIAGNOSTIC_SERVICE); in getCarDiagnosticManager()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/cluster/
DClusterHomeManagerPermissionTest.java75 mClusterHomeManager = (ClusterHomeManager) mCar.getCarManager(Car.CLUSTER_HOME_SERVICE); in setUp()
81 mCar.disconnect(); in tearDown()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/os/
DCarPerformanceManagerPermissionTest.java49 (CarPerformanceManager) mCar.getCarManager(CAR_PERFORMANCE_SERVICE); in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/wifi/
DCarWifiManagerPermissionTest.java47 mCarWifiManager = (CarWifiManager) mCar.getCarManager(Car.CAR_WIFI_SERVICE); in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/media/
DCarAudioManagerPublicPermissionTest.java47 mCarAudioManager = (CarAudioManager) mCar.getCarManager(Car.AUDIO_SERVICE); in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/input/
DCarInputManagerPermissionTest.java51 mCarInputManager = (CarInputManager) mCar.getCarManager(Car.CAR_INPUT_SERVICE); in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/remoteaccess/
DCarRemoteAccessManagerPermissionTest.java73 mCarRemoteAccessManager = (CarRemoteAccessManager) mCar.getCarManager( in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/content/pm/
DCarPackageManagerPermissionTest.java50 mPm = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE); in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/admin/
DCarDevicePolicyManagerPermissionTest.java49 mManager = (CarDevicePolicyManager) mCar.getCarManager(CAR_DEVICE_POLICY_SERVICE); in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/telemetry/
DCarTelemetryManagerPermissionTest.java51 mCarTelemetryManager = (CarTelemetryManager) mCar.getCarManager(Car.CAR_TELEMETRY_SERVICE); in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/power/
DCarPowerManagerPermissionTest.java55 mCarPowerManager = (CarPowerManager) mCar.getCarManager(POWER_SERVICE); in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/occupantconnection/
DCarOccupantConnectionManagerPermissionTest.java65 mCarOccupantConnectionManager = mCar.getCarManager(CarOccupantConnectionManager.class); in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/hardware/property/
DCarVendorPropertyCustomPermissionTest.java75 mCarPropertyManager = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/am/
DCarActivityManagerPermissionTest.java57 mCarActivityManager = (CarActivityManager) mCar.getCarManager(Car.CAR_ACTIVITY_SERVICE); in setUp()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/watchdog/
DCarWatchdogManagerPermissionTest.java60 mCarWatchdogManager = (CarWatchdogManager) mCar.getCarManager(Car.CAR_WATCHDOG_SERVICE); in setUp()

12