Home
last modified time | relevance | path

Searched refs:Car (Results 1 – 25 of 125) sorted by relevance

12345

/packages/services/Car/service/src/com/android/car/
DICarImpl.java20 import android.car.Car;
181 case Car.AUDIO_SERVICE: in getCarService()
183 case Car.SENSOR_SERVICE: in getCarService()
185 case Car.INFO_SERVICE: in getCarService()
187 case Car.APP_FOCUS_SERVICE: in getCarService()
189 case Car.PACKAGE_SERVICE: in getCarService()
191 case Car.CABIN_SERVICE: in getCarService()
194 case Car.DIAGNOSTIC_SERVICE: in getCarService()
200 case Car.HVAC_SERVICE: in getCarService()
203 case Car.RADIO_SERVICE: in getCarService()
[all …]
DCarRadioService.java19 import android.car.Car;
123 throw new IllegalStateException(Car.CAR_NOT_CONNECTED_EXCEPTION_MSG); in registerListener()
204 mContext.checkCallingOrSelfPermission(Car.PERMISSION_CAR_RADIO) != in checkRadioPremissions()
207 Car.PERMISSION_CAR_RADIO); in checkRadioPremissions()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarTest.java19 import android.car.Car;
65 Car car = Car.createCar(getContext(), mConnectionListener); in testCarConnection()
75 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); in testCarConnection()
78 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); in testCarConnection()
90 Car car = Car.createCar(getContext(), mConnectionListener); in testDoubleConnect()
104 Car car = Car.createCar(getContext(), mConnectionListener); in testConstructorWithICar()
108 Car car2 = new Car(getContext(), mICar, null); in testConstructorWithICar()
114 Car.checkCarNotConnectedExceptionFromCarService(new IllegalStateException()); in testCheckCarNotConnectedExceptionFromCarService()
120 Car.checkCarNotConnectedExceptionFromCarService( in testCheckCarNotConnectedExceptionFromCarService()
121 new IllegalStateException(Car.CAR_NOT_CONNECTED_EXCEPTION_MSG)); in testCheckCarNotConnectedExceptionFromCarService()
DCarApiTestBase.java23 import android.car.Car;
32 private Car mCar;
44 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
55 protected synchronized Car getCar() { in getCar()
DCarPackageManagerTest.java23 import android.car.Car;
37 private Car mCar;
65 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
68 mCarPackageManager = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE); in setUp()
DCarSensorManagerTest.java23 import android.car.Car;
38 private Car mCar;
65 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
69 (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); in setUp()
DCarAppFocusManagerTest.java22 import android.car.Car;
46 mManager = (CarAppFocusManager) getCar().getCarManager(Car.APP_FOCUS_SERVICE); in setUp()
311 Car car = createCar(context, eventThread); in createManager()
312 CarAppFocusManager manager = (CarAppFocusManager) car.getCarManager(Car.APP_FOCUS_SERVICE); in createManager()
317 private static Car createCar(Context context, LooperThread eventThread) in createCar()
321 Car car = Car.createCar(context, connectionListener, eventThread.mHandler); in createCar()
DCarDiagnosticManagerTest.java19 import android.car.Car;
41 private Car mCar;
74 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
81 (CarDiagnosticManager) mCar.getCarManager(Car.DIAGNOSTIC_SERVICE); in setUp()
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DCarTest.java20 import android.support.car.Car;
39 public void onDisconnected(Car car) {
44 public void onConnected(Car car) {
59 Car car = Car.createCar(getContext(), mConnectionCallbacks); in testCarConnection()
69 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); in testCarConnection()
72 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); in testCarConnection()
84 Car car = Car.createCar(getContext(), mConnectionCallbacks); in testDoubleConnect()
DCarApiTestBase.java20 import android.support.car.Car;
30 private Car mCar;
42 mCar = Car.createCar(getContext(), mConnectionCallbacks); in setUp()
53 protected synchronized Car getCar() { in getCar()
64 public void onDisconnected(Car car) { in onDisconnected()
69 public void onConnected(Car car) { in onConnected()
DCarPackageManagerTest.java20 import android.support.car.Car;
35 private Car mCar;
41 public void onDisconnected(Car car) {
47 public void onConnected(Car car) {
64 mCar = Car.createCar(getContext(), mConnectionCallbacks); in setUp()
67 mCarPackageManager = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE); in setUp()
DCarSensorManagerTest.java20 import android.support.car.Car;
40 private Car mCar;
46 public void onDisconnected(Car car) {
51 public void onConnected(Car car) {
67 mCar = Car.createCar(getContext(), mConnectionCallbacks); in setUp()
71 (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); in setUp()
DCarAppFocusManagerTest.java18 import android.support.car.Car;
34 mManager = (CarAppFocusManager) getCar().getCarManager(Car.APP_FOCUS_SERVICE); in setUp()
75 Car car2 = Car.createCar(getContext(), connectionCallbacks, null); in testFocusChange()
79 car2.getCarManager(Car.APP_FOCUS_SERVICE); in testFocusChange()
179 Car car2 = Car.createCar(getContext(), connectionCallbacks); in testFilter()
183 car2.getCarManager(Car.APP_FOCUS_SERVICE); in testFilter()
/packages/services/Car/car-support-lib/src/android/support/car/
DCarServiceLoaderEmbedded.java48 private final android.car.Car mEmbeddedCar;
54 mEmbeddedCar = android.car.Car.createCar(context, mServiceConnection, handler); in CarServiceLoaderEmbedded()
74 @android.support.car.Car.ConnectionType in getCarConnectionType()
93 case Car.AUDIO_SERVICE: in getCarManager()
95 case Car.SENSOR_SERVICE: in getCarManager()
97 case Car.INFO_SERVICE: in getCarManager()
99 case Car.APP_FOCUS_SERVICE: in getCarManager()
101 case Car.PACKAGE_SERVICE: in getCarManager()
103 case Car.CAR_NAVIGATION_SERVICE: in getCarManager()
DCar.java56 public class Car { class
221 synchronized (Car.this) {
224 mCarConnectionCallback.onConnected(Car.this);
229 synchronized (Car.this) {
235 mCarConnectionCallback.onDisconnected(Car.this);
257 public static Car createCar(Context context, in createCar()
260 return new Car(context, carConnectionCallback, handler); in createCar()
273 public static Car createCar(Context context, in createCar()
278 private Car(Context context, CarConnectionCallback carConnectionCallback, in Car() method in Car
334 public Car(@NonNull CarServiceLoader serviceLoader) throws CarNotConnectedException { in Car() method in Car
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSinkActivity.java23 import android.support.car.Car;
74 private Car mCarApi;
113 mCarApi = Car.createCar(this, mCarConnectionCallback); in onCreate()
170 public void onConnected(Car car) {
173 mHvacManager = (CarHvacManager) mCarApi.getCarManager(android.car.Car.HVAC_SERVICE);
174 mCarSensorManager = (CarSensorManager) mCarApi.getCarManager(Car.SENSOR_SERVICE);
179 (CarAppFocusManager) mCarApi.getCarManager(Car.APP_FOCUS_SERVICE);
186 public void onDisconnected(Car car) {
191 public Car getCar() { in getCar()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/
DInstrumentClusterFragment.java21 import android.support.car.Car;
42 private Car mCarApi;
47 public void onConnected(Car car) {
51 android.car.Car.CAR_NAVIGATION_SERVICE);
53 (CarAppFocusManager) mCarApi.getCarManager(Car.APP_FOCUS_SERVICE);
60 public void onDisconnected(Car car) {
71 mCarApi = Car.createCar(getContext(), mCarConnectionCallback); in initCarApi()
/packages/services/Car/car-lib/src/android/car/
DCar.java59 public final class Car { class
319 synchronized (Car.this) {
327 synchronized (Car.this) {
359 public static Car createCar(Context context, ServiceConnection serviceConnectionListener, in createCar()
366 return new Car(context, serviceConnectionListener, handler); in createCar()
379 public static Car createCar(Context context, ServiceConnection serviceConnectionListener) { in createCar()
383 private Car(Context context, ServiceConnection serviceConnectionListener, in Car() method in Car
399 public Car(Context context, ICar service, @Nullable Handler handler) { in Car() method in Car
618 intent.setAction(Car.CAR_SERVICE_INTERFACE_NAME); in startCarService()
/packages/services/Car/tests/VmsSubscriberClientSample/src/com/google/android/car/vms/subscriber/
DVmsSubscriberClientSampleActivity.java24 import android.support.car.Car;
41 private Car mCarApi;
51 mCarApi = Car.createCar(this, mCarConnectionCallback); in onCreate()
69 public void onConnected(Car car) {
76 public void onDisconnected(Car car) {
83 android.car.Car.VMS_SUBSCRIBER_SERVICE);
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DMockedCarTestBase.java59 private android.car.Car mCar;
97 mCar = new android.car.Car(context, mCarImpl, null /* handler */); in setUp()
163 protected synchronized android.car.Car getCar() { in getCar()
212 android.car.Car car = android.car.Car.createCar(context, new ServiceConnection() { in releaseRealCarService()
234 (CarTestManagerBinderWrapper) car.getCarManager(android.car.Car.TEST_SERVICE); in releaseRealCarService()
/packages/apps/Car/Radio/src/com/android/car/radio/demo/
DRadioDemo.java26 import android.support.car.Car;
60 private Car mCarApi;
71 mCarApi = Car.createCar(context, mCarConnectionCallback); in RadioDemo()
297 public void onConnected(Car car) {
305 android.car.Car.AUDIO_SERVICE);
317 public void onDisconnected(Car car) {
/packages/services/Car/car-support-lib/src/android/support/car/app/
DCarProxyActivity.java25 import android.support.car.Car;
53 private Car mCar;
64 public void onDisconnected(Car car) {
69 public void onConnected(Car car) {
180 mCar = Car.createCar(this, mConnectionListener); in createCarActivity()
186 Context.class, Car.class); in createCarActivity()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DE2ePerformanceTest.java26 import android.car.Car;
85 private Car mCar;
121 mCar = Car.createCar(mContext, mConnectionListener, sEventHandler); in connectToCarService()
164 CarSensorManager mgr = (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); in benchmarkEventBandwidthThroughCarService()
226 CarHvacManager mgr = (CarHvacManager) mCar.getCarManager(Car.HVAC_SERVICE); in benchmarkSetGetFromSingleClient()
251 CarHvacManager mgr = (CarHvacManager) mCar.getCarManager(Car.HVAC_SERVICE); in benchmarkSetGetFromSingleClientMultipleThreads()
328 CarSensorManager mgr = (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); in verifyEventsFromSingleProperty()
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
DCarSensorManager.java22 import android.support.car.Car;
232 @RequiresPermission(anyOf={Manifest.permission.ACCESS_FINE_LOCATION, Car.PERMISSION_SPEED,
233 Car.PERMISSION_MILEAGE, Car.PERMISSION_FUEL}, conditional=true)
/packages/services/Car/service/src/com/android/car/pm/
DActivityBlockingActivity.java19 import android.car.Car;
53 private Car mCar;
66 mCar = Car.createCar(this, new ServiceConnection() { in onCreate()
105 CarPackageManager carPm = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE); in handleFinish()

12345