/packages/services/Car/service/src/com/android/car/ |
D | ICarImpl.java | 20 import android.car.Car; 188 case Car.AUDIO_SERVICE: in getCarService() 190 case Car.SENSOR_SERVICE: in getCarService() 192 case Car.INFO_SERVICE: in getCarService() 194 case Car.APP_FOCUS_SERVICE: in getCarService() 196 case Car.PACKAGE_SERVICE: in getCarService() 198 case Car.CABIN_SERVICE: in getCarService() 201 case Car.DIAGNOSTIC_SERVICE: in getCarService() 204 case Car.HVAC_SERVICE: in getCarService() 207 case Car.RADIO_SERVICE: in getCarService() [all …]
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarTest.java | 19 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()
|
D | CarApiTestBase.java | 23 import android.car.Car; 32 private Car mCar; 44 mCar = Car.createCar(getContext(), mConnectionListener); in setUp() 55 protected synchronized Car getCar() { in getCar()
|
D | CarPackageManagerTest.java | 23 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()
|
D | CarSensorManagerTest.java | 23 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()
|
D | CarDiagnosticManagerTest.java | 19 import android.car.Car; 37 private Car mCar; 66 mCar = Car.createCar(getContext(), mConnectionListener); in setUp() 69 mCarDiagnosticManager = (CarDiagnosticManager) mCar.getCarManager(Car.DIAGNOSTIC_SERVICE); in setUp()
|
D | CarAppFocusManagerTest.java | 22 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()
|
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/ |
D | CarTest.java | 20 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()
|
D | CarApiTestBase.java | 20 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()
|
D | CarPackageManagerTest.java | 20 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()
|
D | CarSensorManagerTest.java | 20 import android.support.car.Car; 41 private Car mCar; 47 public void onDisconnected(Car car) { 52 public void onConnected(Car car) { 68 mCar = Car.createCar(getContext(), mConnectionCallbacks); in setUp() 72 (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); in setUp()
|
D | CarAppFocusManagerTest.java | 18 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/ |
D | CarServiceLoaderEmbedded.java | 48 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()
|
D | Car.java | 57 public class Car { class 228 synchronized (Car.this) { 231 mCarConnectionCallback.onConnected(Car.this); 236 synchronized (Car.this) { 242 mCarConnectionCallback.onDisconnected(Car.this); 264 public static Car createCar(Context context, in createCar() 267 return new Car(context, carConnectionCallback, handler); in createCar() 280 public static Car createCar(Context context, in createCar() 285 private Car(Context context, CarConnectionCallback carConnectionCallback, in Car() method in Car 341 public Car(@NonNull CarServiceLoader serviceLoader) throws CarNotConnectedException { in Car() method in Car
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/ |
D | FakeClusterNavigationActivity.java | 24 import android.support.car.Car; 42 private Car mCarApi; 53 mCarApi = Car.createCar(this /* context */, new CarConnectionCallback() { in onCreate() 56 public void onConnected(Car car) { in onCreate() 61 public void onDisconnected(Car car) { in onCreate() 82 private void onCarConnected(Car car) { in onCarConnected() 86 android.car.Car.CAR_INSTRUMENT_CLUSTER_SERVICE); in onCarConnected() 100 private void onCarDisconnected(Car car) { in onCarDisconnected()
|
D | InstrumentClusterFragment.java | 24 import android.support.car.Car; 48 private Car mCarApi; 52 public void onConnected(Car car) { 64 public void onDisconnected(Car car) { 75 mCarApi = Car.createCar(getContext(), mCarConnectionCallback); in initCarApi() 103 android.car.Car.CAR_INSTRUMENT_CLUSTER_SERVICE); in startNavActivity() 198 if (getActivity().checkSelfPermission(android.car.Car.PERMISSION_CAR_DISPLAY_IN_CLUSTER) in onResume() 200 Log.i(TAG, "Requesting: " + android.car.Car.PERMISSION_CAR_DISPLAY_IN_CLUSTER); in onResume() 202 requestPermissions(new String[] {android.car.Car.PERMISSION_CAR_DISPLAY_IN_CLUSTER}, in onResume()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | KitchenSinkActivity.java | 23 import android.support.car.Car; 165 private Car mCarApi; 193 mCarApi = Car.createCar(this, mCarConnectionCallback); in onCreate() 250 public void onConnected(Car car) { 253 mHvacManager = (CarHvacManager) mCarApi.getCarManager(android.car.Car.HVAC_SERVICE); 254 mCarSensorManager = (CarSensorManager) mCarApi.getCarManager(Car.SENSOR_SERVICE); 259 (CarAppFocusManager) mCarApi.getCarManager(Car.APP_FOCUS_SERVICE); 266 public void onDisconnected(Car car) { 271 public Car getCar() { in getCar()
|
/packages/services/Car/car-lib/src/android/car/ |
D | Car.java | 59 public final class Car { class 346 synchronized (Car.this) { 354 synchronized (Car.this) { 386 public static Car createCar(Context context, ServiceConnection serviceConnectionListener, in createCar() 393 return new Car(context, serviceConnectionListener, handler); in createCar() 406 public static Car createCar(Context context, ServiceConnection serviceConnectionListener) { in createCar() 410 private Car(Context context, ServiceConnection serviceConnectionListener, in Car() method in Car 426 public Car(Context context, ICar service, @Nullable Handler handler) { in Car() method in Car 643 intent.setAction(Car.CAR_SERVICE_INTERFACE_NAME); in startCarService()
|
/packages/services/Car/car-support-lib/src/android/support/car/hardware/ |
D | CarSensorManager.java | 22 import android.support.car.Car; 252 @RequiresPermission(anyOf={Manifest.permission.ACCESS_FINE_LOCATION, Car.PERMISSION_SPEED, 253 Car.PERMISSION_MILEAGE, Car.PERMISSION_FUEL, Car.PERMISSION_VEHICLE_DYNAMICS_STATE},
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
D | MockedCarTestBase.java | 59 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/ |
D | RadioDemo.java | 26 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/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | E2ePerformanceTest.java | 26 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/apps/Car/Settings/ |
D | Android.mk | 41 include packages/apps/Car/libs/car-stream-ui-lib/car-stream-ui-lib.mk 60 include packages/apps/Car/libs/car-stream-ui-lib/car-stream-ui-lib.mk 61 include packages/apps/Car/libs/car-apps-common/car-apps-common.mk 62 include packages/services/Car/car-support-lib/car-support.mk
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | ActivityBlockingActivity.java | 19 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()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | SensorsTestFragment.java | 21 import android.car.Car; 60 Car.PERMISSION_MILEAGE, 61 Car.PERMISSION_FUEL, 62 Car.PERMISSION_SPEED, 63 Car.PERMISSION_VEHICLE_DYNAMICS_STATE 85 private Car mCar; 126 mActivity.getCar().getCarManager(Car.SENSOR_SERVICE); in initSensors()
|