Home
last modified time | relevance | path

Searched refs:mCar (Results 1 – 25 of 33) 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/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/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppSearchActivity.java56 private Car mCar; field in AppSearchActivity
64 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager(
75 mCarPackageManager = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE);
93 mCar = Car.createCar(this, mCarConnectionListener); in onCreate()
145 mCar.connect(); in onStart()
164 if (mCar != null) { in onStop()
165 mCar.disconnect(); in onStop()
DAppGridActivity.java70 private Car mCar; field in AppGridActivity
78 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager(
89 mCarPackageManager = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE);
109 mCar = Car.createCar(this, mCarConnectionListener); in onCreate()
176 mCar.connect(); in onStart()
195 if (mCar != null) { in onStop()
196 mCar.disconnect(); in onStop()
/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/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportActivity.java88 private Car mCar; field in BugReportActivity
112 mDrivingStateManager = (CarDrivingStateManager) mCar.getCarManager(
147 mCar = Car.createCar(this, mServiceConnection); in onCreate()
148 mCar.connect(); in onCreate()
184 if (mCar != null && mCar.isConnected()) { in onDestroy()
185 mCar.disconnect(); in onDestroy()
186 mCar = null; in onDestroy()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DVolumeTestFragment.java51 private Car mCar; field in VolumeTestFragment
120 mCarAudioManager = (CarAudioManager) mCar.getCarManager(Car.AUDIO_SERVICE);
164 mCar = Car.createCar(getActivity(), mCarConnectionCallback); in onCreateView()
165 mCar.connect(); in onCreateView()
216 if (mCar != null) { in onDestroy()
217 mCar.disconnect(); in onDestroy()
/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/tests/carservice_test/src/com/android/car/
DMockedCarTestBase.java79 private Car mCar; field in MockedCarTestBase
168 mCar = new Car(context, mCarImpl, null /* handler */); in setUp()
173 if (mCar != null) { in tearDown()
174 mCar.disconnect(); in tearDown()
253 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/service/src/com/android/car/pm/
DActivityBlockingActivity.java54 private Car mCar; field in ActivityBlockingActivity
82 mCar = Car.createCar(this); in onCreate()
83 mUxRManager = (CarUxRestrictionsManager) mCar.getCarManager( in onCreate()
261 mCar.getCarManager(Car.PACKAGE_SERVICE); in handleRestartingTask()
/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