/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/ |
D | CarPublicPermissionTest.java | 41 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()
|
D | CarPermissionTest.java | 41 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()
|
D | AbstractCarManagerPermissionTest.java | 43 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()
|
D | CarRemoteDeviceManagerPermissionTest.java | 62 mCarRemoteDeviceManager = mCar.getCarManager(CarRemoteDeviceManager.class); in setUp() 146 mCar.getCarManager(CarOccupantZoneManager.class); in getOtherPassengerZones()
|
D | CarOccupantZoneManagerPermissionTest.java | 49 mCarOccupantZoneManager = (CarOccupantZoneManager) mCar.getCarManager( in setUp()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarTest.java | 60 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 …]
|
D | AbstractCarTestCase.java | 85 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()
|
D | CarOccupantConnectionManagerTest.java | 281 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/ |
D | CarWatchdogTestActivity.java | 57 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/ |
D | CarWatchdogDeviceAppTest.java | 101 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/ |
D | CarDiagnosticManagerPermissionTest.java | 53 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/ |
D | ClusterHomeManagerPermissionTest.java | 75 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/ |
D | CarPerformanceManagerPermissionTest.java | 49 (CarPerformanceManager) mCar.getCarManager(CAR_PERFORMANCE_SERVICE); in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/wifi/ |
D | CarWifiManagerPermissionTest.java | 47 mCarWifiManager = (CarWifiManager) mCar.getCarManager(Car.CAR_WIFI_SERVICE); in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/media/ |
D | CarAudioManagerPublicPermissionTest.java | 47 mCarAudioManager = (CarAudioManager) mCar.getCarManager(Car.AUDIO_SERVICE); in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/input/ |
D | CarInputManagerPermissionTest.java | 51 mCarInputManager = (CarInputManager) mCar.getCarManager(Car.CAR_INPUT_SERVICE); in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/remoteaccess/ |
D | CarRemoteAccessManagerPermissionTest.java | 73 mCarRemoteAccessManager = (CarRemoteAccessManager) mCar.getCarManager( in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/content/pm/ |
D | CarPackageManagerPermissionTest.java | 50 mPm = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE); in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/admin/ |
D | CarDevicePolicyManagerPermissionTest.java | 49 mManager = (CarDevicePolicyManager) mCar.getCarManager(CAR_DEVICE_POLICY_SERVICE); in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/telemetry/ |
D | CarTelemetryManagerPermissionTest.java | 51 mCarTelemetryManager = (CarTelemetryManager) mCar.getCarManager(Car.CAR_TELEMETRY_SERVICE); in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/power/ |
D | CarPowerManagerPermissionTest.java | 55 mCarPowerManager = (CarPowerManager) mCar.getCarManager(POWER_SERVICE); in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/occupantconnection/ |
D | CarOccupantConnectionManagerPermissionTest.java | 65 mCarOccupantConnectionManager = mCar.getCarManager(CarOccupantConnectionManager.class); in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/hardware/property/ |
D | CarVendorPropertyCustomPermissionTest.java | 75 mCarPropertyManager = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/am/ |
D | CarActivityManagerPermissionTest.java | 57 mCarActivityManager = (CarActivityManager) mCar.getCarManager(Car.CAR_ACTIVITY_SERVICE); in setUp()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/watchdog/ |
D | CarWatchdogManagerPermissionTest.java | 60 mCarWatchdogManager = (CarWatchdogManager) mCar.getCarManager(Car.CAR_WATCHDOG_SERVICE); in setUp()
|