Home
last modified time | relevance | path

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

123

/packages/services/Car/service/src/com/android/car/
DICarImpl.java19 import android.car.Car;
163 case Car.AUDIO_SERVICE: in getCarService()
165 case Car.SENSOR_SERVICE: in getCarService()
167 case Car.INFO_SERVICE: in getCarService()
169 case Car.APP_CONTEXT_SERVICE: in getCarService()
171 case Car.PACKAGE_SERVICE: in getCarService()
173 case Car.CAMERA_SERVICE: in getCarService()
176 case Car.HVAC_SERVICE: in getCarService()
179 case Car.RADIO_SERVICE: in getCarService()
182 case Car.CAR_NAVIGATION_SERVICE: in getCarService()
[all …]
DCarRadioService.java19 import android.car.Car;
124 throw new IllegalStateException(Car.CAR_NOT_CONNECTED_EXCEPTION_MSG); in registerListener()
205 mContext.checkCallingOrSelfPermission(Car.PERMISSION_CAR_RADIO) != in checkRadioPremissions()
208 Car.PERMISSION_CAR_RADIO); in checkRadioPremissions()
/packages/services/Car/car-support-lib/src/android/support/car/
DCarServiceLoaderEmbedded.java52 private final android.car.Car mCar;
60 mCar = android.car.Car.createCar(context, mServiceConnection, looper); in CarServiceLoaderEmbedded()
116 case Car.AUDIO_SERVICE: in getCarManager()
118 case Car.SENSOR_SERVICE: in getCarManager()
120 case Car.INFO_SERVICE: in getCarManager()
122 case Car.APP_CONTEXT_SERVICE: in getCarManager()
124 case Car.PACKAGE_SERVICE: in getCarManager()
126 case Car.CAR_NAVIGATION_SERVICE: in getCarManager()
DCar.java49 public class Car { class
149 synchronized (Car.this) {
156 synchronized (Car.this) {
192 public static Car createCar(Context context, in createCar()
195 return new Car(context, serviceConnectionListener, looper); in createCar()
208 public static Car createCar(Context context, in createCar()
213 private Car(Context context, ServiceConnectionListener serviceConnectionListener, in Car() method in Car
269 public Car(Context context, CarServiceLoader serviceLoader, @Nullable Looper looper) { in Car() method in Car
/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/
DCarTest.java19 import android.car.Car;
60 Car car = Car.createCar(getContext(), mConnectionListener); in testCarConnection()
70 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); in testCarConnection()
73 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); in testCarConnection()
85 Car car = Car.createCar(getContext(), mConnectionListener); in testDoubleConnect()
DCarAppContextManagerTest.java18 import android.car.Car;
34 mManager = (CarAppContextManager) getCar().getCarManager(Car.APP_CONTEXT_SERVICE); in setUp()
69 Car car2 = Car.createCar(getContext(), connectionListener, null); in testContextChange()
73 car2.getCarManager(Car.APP_CONTEXT_SERVICE); in testContextChange()
171 Car car2 = Car.createCar(getContext(), connectionListener); in testFilter()
175 car2.getCarManager(Car.APP_CONTEXT_SERVICE); in testFilter()
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()
DCarNavigationManagerTest.java18 import android.car.Car;
46 (CarNavigationManager) getCar().getCarManager(Car.CAR_NAVIGATION_SERVICE); in setUp()
49 (CarAppContextManager) getCar().getCarManager(Car.APP_CONTEXT_SERVICE); in setUp()
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DCarTest.java21 import android.support.car.Car;
69 Car car = Car.createCar(getContext(), mConnectionListener); in testCarConnection()
79 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); in testCarConnection()
82 (CarSensorManager) car.getCarManager(Car.SENSOR_SERVICE); in testCarConnection()
94 Car car = Car.createCar(getContext(), mConnectionListener); in testDoubleConnect()
DCarAppContextManagerTest.java18 import android.support.car.Car;
34 mManager = (CarAppContextManager) getCar().getCarManager(Car.APP_CONTEXT_SERVICE); in setUp()
69 Car car2 = Car.createCar(getContext(), connectionListener, null); in testContextChange()
73 car2.getCarManager(Car.APP_CONTEXT_SERVICE); in testContextChange()
171 Car car2 = Car.createCar(getContext(), connectionListener); in testFilter()
175 car2.getCarManager(Car.APP_CONTEXT_SERVICE); in testFilter()
DCarApiTestBase.java22 import android.support.car.Car;
32 private Car mCar;
44 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
55 protected synchronized Car getCar() { in getCar()
DCarPackageManagerTest.java21 import android.support.car.Car;
36 private Car mCar;
73 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
76 mCarPackageManager = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE); in setUp()
DCarSensorManagerTest.java22 import android.support.car.Car;
37 private Car mCar;
74 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
78 (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); in setUp()
DCarNavigationManagerTest.java21 import android.support.car.Car;
45 (CarNavigationManager) getCar().getCarManager(Car.CAR_NAVIGATION_SERVICE); in setUp()
48 (CarAppContextManager) getCar().getCarManager(Car.APP_CONTEXT_SERVICE); in setUp()
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DMockedCarTestBase.java24 import android.support.car.Car;
41 private Car mSupportCar;
42 private android.car.Car mCar;
74 mSupportCar = Car.createCar(getContext(), mConnectionListener); in setUp()
76 mCar = android.car.Car.createCar(getContext(), new ServiceConnection() { in setUp()
104 protected synchronized Car getSupportCar() { in getSupportCar()
108 protected synchronized android.car.Car getCar() { in getCar()
/packages/services/Car/car-lib/src/android/car/
DCar.java53 public class Car { class
239 synchronized (Car.this) {
247 synchronized (Car.this) {
278 public static Car createCar(Context context, ServiceConnection serviceConnectionListener, in createCar()
285 return new Car(context, serviceConnectionListener, looper); in createCar()
298 public static Car createCar(Context context, ServiceConnection serviceConnectionListener) { in createCar()
302 private Car(Context context, ServiceConnection serviceConnectionListener, in Car() method in Car
327 public Car(Context context, ICar service, @Nullable Looper looper) { in Car() method in Car
513 intent.setAction(Car.CAR_SERVICE_INTERFACE_NAME); in startCarService()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSinkActivity.java26 import android.support.car.Car;
63 private Car mCarApi;
91 public KitchenSinkActivity(Proxy proxy, Context context, Car car) { in KitchenSinkActivity()
106 mCarApi = Car.createCar(getContext(), mServiceConnectionListener); in onCreate()
168 mCameraManager = (CarCameraManager) mCarApi.getCarManager(android.car.Car
170 mHvacManager = (CarHvacManager) mCarApi.getCarManager(android.car.Car.HVAC_SERVICE);
172 android.car.Car.CAR_NAVIGATION_SERVICE);
173 mCarSensorManager = (CarSensorManager) mCarApi.getCarManager(Car.SENSOR_SERVICE);
178 (CarAppContextManager) mCarApi.getCarManager(Car.APP_CONTEXT_SERVICE);
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
DCarSensorManager.java22 import android.support.car.Car;
203 @RequiresPermission(anyOf={Manifest.permission.ACCESS_FINE_LOCATION, Car.PERMISSION_SPEED,
204 Car.PERMISSION_MILEAGE, Car.PERMISSION_FUEL}, conditional=true)
/packages/services/Car/tests/vehiclenetworkservice_unit_tests/
DAndroid.mk24 packages/services/Car/libvehiclenetwork/include \
25 packages/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/include\
26 packages/services/Car/vehicle_network_service \
/packages/services/Car/tests/carservice_test/src/com/android/support/car/test/
DCarConnectionListenerInMockingTest.java22 import android.support.car.Car;
42 private Car mCar;
78 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
126 assertEquals(Car.CONNECTION_TYPE_EMBEDDED, event.intValue()); in waitForConnection()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/input/
DInputTestFragment.java19 import android.car.Car;
52 private Car mCar;
91 mCar = Car.createCar(getContext(), new ServiceConnection() { in onCreateView()
96 (CarTestManagerBinderWrapper) mCar.getCarManager(Car.TEST_SERVICE)); in onCreateView()
/packages/services/Car/car-support-lib/src/android/support/car/app/
DCarActivity.java26 import android.support.car.Car;
116 private final Car mCar;
119 public CarActivity(Proxy proxy, Context context, Car car) { in CarActivity()
129 public Car getCar() { in getCar()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarSensorManager.java21 import android.car.Car;
283 @RequiresPermission(anyOf={Manifest.permission.ACCESS_FINE_LOCATION, Car.PERMISSION_SPEED,
284 Car.PERMISSION_MILEAGE, Car.PERMISSION_FUEL}, conditional=true)

123