Lines Matching refs:Car
17 package android.car.apitest;
19 import android.car.Car;
20 import android.car.CarNotConnectedException;
21 import android.car.ICar;
22 import android.car.hardware.CarSensorManager;
65 Car car = Car.createCar(getContext(), mConnectionListener);
66 assertFalse(car.isConnected());
67 assertFalse(car.isConnecting());
68 car.connect();
70 // assertTrue(car.isConnecting()); // This makes test flaky.
72 assertTrue(car.isConnected());
73 assertFalse(car.isConnecting());
75 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE);
78 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE);
80 Object noSuchService = car.getCarManager("No such service");
83 car.disconnect();
84 car.disconnect();
85 assertFalse(car.isConnected());
86 assertFalse(car.isConnecting());
90 Car car = Car.createCar(getContext(), mConnectionListener);
91 assertFalse(car.isConnected());
92 assertFalse(car.isConnecting());
93 car.connect();
95 car.connect();
100 car.disconnect();
104 Car car = Car.createCar(getContext(), mConnectionListener);
105 car.connect();
108 Car car2 = new Car(getContext(), mICar, null);
114 Car.checkCarNotConnectedExceptionFromCarService(new IllegalStateException());
120 Car.checkCarNotConnectedExceptionFromCarService(
121 new IllegalStateException(Car.CAR_NOT_CONNECTED_EXCEPTION_MSG));