Home
last modified time | relevance | path

Searched refs:mCar (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Car/Settings/src/com/android/car/settings/common/
DCarUxRestrictionsHelper.java39 @Nullable private final Car mCar; field in CarUxRestrictionsHelper
50 mCar = Car.createCar(context, mServiceConnection); in CarUxRestrictionsHelper()
63 if (mCar != null && !mCar.isConnected()) { in start()
64 mCar.connect(); in start()
80 if (mCar != null && mCar.isConnected()) { in stop()
81 mCar.disconnect(); in stop()
103 mCar.getCarManager(Car.CAR_UX_RESTRICTION_SERVICE);
/packages/services/Car/car-lib/src/android/car/
DCarManagerBase.java29 protected final Car mCar; field in CarManagerBase
32 mCar = car; in CarManagerBase()
36 return mCar.getContext(); in getContext()
40 return mCar.getEventHandler(); in getEventHandler()
44 return mCar.handleRemoteExceptionFromCarService(e, returnValue); in handleRemoteExceptionFromCarService()
48 mCar.handleRemoteExceptionFromCarService(e); in handleRemoteExceptionFromCarService()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DE2eCarTestBase.java53 protected Car mCar; field in E2eCarTestBase
68 mCar = Car.createCar(mContext, mConnectionListener); in connectToCarService()
69 assertNotNull(mCar); in connectToCarService()
70 mCar.connect(); in connectToCarService()
79 if (mCar != null) { in disconnect()
80 mCar.disconnect(); in disconnect()
81 mCar = null; in disconnect()
DE2ePerformanceTest.java87 CarSensorManager mgr = (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); in benchmarkEventBandwidthThroughCarService()
151 CarHvacManager mgr = (CarHvacManager) mCar.getCarManager(Car.HVAC_SERVICE); in benchmarkSetGetFromSingleClient()
176 CarHvacManager mgr = (CarHvacManager) mCar.getCarManager(Car.HVAC_SERVICE); in benchmarkSetGetFromSingleClientMultipleThreads()
266 CarSensorManager mgr = (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); in verifyEventsFromSingleProperty()
/packages/services/Car/tests/DefaultStorageMonitoringCompanionApp/src/com/google/android/car/defaultstoragemonitoringcompanionapp/
DMainActivity.java116 (CarStorageMonitoringManager) mCar.getCarManager(
139 mCar = null;
145 private Car mCar = null; field in MainActivity
155 mCar = Car.createCar(this, mCarConnectionListener); in onCreate()
156 mCar.connect(); in onCreate()
163 if (mCar != null) { in onDestroy()
164 mCar.disconnect(); in onDestroy()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarApiTestBase.java32 private Car mCar; field in CarApiTestBase
44 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
45 mCar.connect(); in setUp()
52 mCar.disconnect(); in tearDown()
56 return mCar; in getCar()
DCarSensorManagerTest.java37 private Car mCar; field in CarSensorManagerTest
64 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
65 mCar.connect(); in setUp()
68 (CarSensorManager) mCar.getCarManager(Car.SENSOR_SERVICE); in setUp()
74 mCar.disconnect(); in tearDown()
DCarPackageManagerTest.java37 private Car mCar; field in CarPackageManagerTest
65 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
66 mCar.connect(); in setUp()
68 mCarPackageManager = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE); in setUp()
75 mCar.disconnect(); in tearDown()
DCarDiagnosticManagerTest.java37 private Car mCar; field in CarDiagnosticManagerTest
66 mCar = Car.createCar(getContext(), mConnectionListener); in setUp()
67 mCar.connect(); in setUp()
69 mCarDiagnosticManager = (CarDiagnosticManager) mCar.getCarManager(Car.DIAGNOSTIC_SERVICE); in setUp()
76 mCar.disconnect(); in tearDown()
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java54 private Car mCar; field in MainActivity
100 mCar = Car.createCar(this); in onCreate()
102 mCarDrivingStateManager = (CarDrivingStateManager) mCar.getCarManager( in onCreate()
104 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager( in onCreate()
106 mCarPackageManager = (CarPackageManager) mCar.getCarManager( in onCreate()
128 if (mCar != null) { in onDestroy()
129 mCar.disconnect(); in onDestroy()
/packages/apps/Car/Cluster/src/android/car/cluster/
DClusterViewModel.java71 private Car mCar; field in ClusterViewModel
98 mCarAppFocusManager = (CarAppFocusManager) mCar.getCarManager( in registerAppFocusListener()
111 mCarPropertyManager = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in registerCarPropertiesListener()
166 mCar = Car.createCar(application, mCarServiceConnection); in ClusterViewModel()
167 mCar.connect(); in ClusterViewModel()
180 mCar.disconnect(); in onCleared()
181 mCar = null; in onCleared()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppGridActivity.java78 private Car mCar; field in AppGridActivity
110 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager(
121 mCarPackageManager = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE);
141 mCar = Car.createCar(this, mCarConnectionListener); in onCreate()
235 mCar.connect(); in onStart()
254 if (mCar != null) { in onStop()
255 mCar.disconnect(); in onStop()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportService.java142 private Car mCar; field in BugReportService
260 mCar = null; in onCarLifecycleChanged()
329 if (mCar != null) { in disconnectFromCarService()
330 mCar.disconnect(); in disconnectFromCarService()
331 mCar = null; in disconnectFromCarService()
337 if (mCar == null || !(mCar.isConnected() || mCar.isConnecting())) { in connectToCarServiceSync()
338 mCar = Car.createCar(this, /* handler= */ null, in connectToCarServiceSync()
DBugReportActivity.java117 private Car mCar; field in BugReportActivity
203 if (mCar != null && mCar.isConnected()) { in onDestroy()
204 mCar.disconnect(); in onDestroy()
205 mCar = null; in onDestroy()
247 mCar = Car.createCar(this, /* handler= */ null, in prepareUi()
277 mCar = null; in onCarLifecycleChanged()
/packages/apps/Car/Settings/src/com/android/car/settings/units/
DCarUnitsManager.java46 (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE);
60 private Car mCar; field in CarUnitsManager
66 mCar = Car.createCar(mContext, mServiceConnection); in CarUnitsManager()
86 mCar.connect(); in connect()
90 mCar.disconnect(); in disconnect()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationApplication.java38 private Car mCar; field in NotificationApplication
51 mCar.getCarManager(Car.CAR_UX_RESTRICTION_SERVICE);
78 mCar = Car.createCar(this, mCarConnectionListener); in onCreate()
79 mCar.connect(); in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DVolumeSettingsPreferenceController.java68 mCarAudioManager = (CarAudioManager) mCar.getCarManager(Car.AUDIO_SERVICE);
94 private Car mCar; field in VolumeSettingsPreferenceController
101 mCar = Car.createCar(getContext(), mServiceConnection); in VolumeSettingsPreferenceController()
114 mCar.connect(); in onCreateInternal()
120 mCar.disconnect(); in onDestroyInternal()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/
DCarLatinIME.java72 private Car mCar; field in CarLatinIME
111 mUxRManager = (CarUxRestrictionsManager) mCar.getCarManager(
152 mCar = Car.createCar(this, mCarConnectionListener); in onCreate()
153 mCar.connect(); in onCreate()
162 if (mCar != null) { in onDestroy()
163 mCar.disconnect(); in onDestroy()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DTrustedDeviceEntryPreferenceController.java41 private final Car mCar; field in TrustedDeviceEntryPreferenceController
49 mCar = Car.createCar(context); in TrustedDeviceEntryPreferenceController()
52 mCarTrustAgentEnrollmentManager = (CarTrustAgentEnrollmentManager) mCar.getCarManager( in TrustedDeviceEntryPreferenceController()
DAddTrustedDeviceActivity.java66 private Car mCar; field in AddTrustedDeviceActivity
156 mCar = Car.createCar(this); in onCreate()
157 mCarTrustAgentEnrollmentManager = (CarTrustAgentEnrollmentManager) mCar.getCarManager( in onCreate()
DTrustedDeviceListPreferenceController.java49 private final Car mCar; field in TrustedDeviceListPreferenceController
95 mCar = Car.createCar(context); in TrustedDeviceListPreferenceController()
96 mCarTrustAgentEnrollmentManager = (CarTrustAgentEnrollmentManager) mCar.getCarManager( in TrustedDeviceListPreferenceController()
/packages/services/Car/service/src/com/android/car/pm/
DActivityBlockingActivity.java49 private Car mCar; field in ActivityBlockingActivity
86 mCar = Car.createCar(this, /* handler= */ null, Car.CAR_WAIT_TIMEOUT_WAIT_FOREVER, in onCreate()
223 mCar.disconnect(); in onDestroy()
260 mCar.getCarManager(Car.PACKAGE_SERVICE); in handleRestartingTask()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DMockedCarTestBase.java80 private Car mCar; field in MockedCarTestBase
169 mCar = new Car(context, mCarImpl, null /* handler */); in setUp()
174 if (mCar != null) { in tearDown()
175 mCar.disconnect(); in tearDown()
258 return mCar; in getCar()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DCarEmulator.java44 private final Car mCar; field in CarEmulator
58 mCar = new Car(context, carService, null /* Handler */); in CarEmulator()
62 return mCar; in getCar()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeCar.java78 private final Car mCar; field in FakeCar
90 mCar = car; in FakeCar()
96 return mCar; in getCar()

12