Home
last modified time | relevance | path

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

1234

/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/
DCarPublicPermissionTest.java36 private Car mCar = null; field in CarPublicPermissionTest
40 mCar = Car.createCar( in setUp()
46 mCar.disconnect(); in tearDown()
51 assertThrows(SecurityException.class, () -> mCar.getCarManager( in testGetCarManagerPermissions()
53 assertThrows(SecurityException.class, () -> mCar.getCarManager( in testGetCarManagerPermissions()
55 assertThrows(SecurityException.class, () -> mCar.getCarManager(Car.CAR_NAVIGATION_SERVICE)); in testGetCarManagerPermissions()
56 if (mCar.isFeatureEnabled(Car.DIAGNOSTIC_SERVICE)) { in testGetCarManagerPermissions()
57 assertThrows(SecurityException.class, () -> mCar.getCarManager(Car.DIAGNOSTIC_SERVICE)); in testGetCarManagerPermissions()
59 if (mCar.isFeatureEnabled(Car.VMS_SUBSCRIBER_SERVICE)) { in testGetCarManagerPermissions()
60 assertThrows(SecurityException.class, () -> mCar.getCarManager( in testGetCarManagerPermissions()
[all …]
DCarPermisisonTest.java36 private Car mCar = null; field in CarPermisisonTest
40 mCar = Car.createCar( in setUp()
46 mCar.disconnect(); in tearDown()
51 assertThrows(SecurityException.class, () -> mCar.enableFeature("some feature")); in testEnableFeaturePermission()
56 assertThrows(SecurityException.class, () -> mCar.disableFeature("some feature")); in testDisableFeaturePermission()
61 assertThrows(SecurityException.class, () -> mCar.getAllEnabledFeatures()); in testGetAllEnabledFeaturesPermission()
66 assertThrows(SecurityException.class, () -> mCar.getAllPendingDisabledFeatures()); in testGetAllPendingDisabledFeaturesPermission()
71 assertThrows(SecurityException.class, () -> mCar.getAllPendingEnabledFeatures()); in testGetAllPendingEnabledFeaturesPermission()
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DSampleCustomInputService.java43 private Car mCar; field in SampleCustomInputService
59 if (mCar != null && mCar.isConnected()) { in connectToCarService()
64 mCar = Car.createCar(this, /* handler= */ null, Car.CAR_WAIT_TIMEOUT_WAIT_FOREVER, in connectToCarService()
66 mCar = car; in connectToCarService()
69 (CarInputManager) mCar.getCarManager(Car.CAR_INPUT_SERVICE); in connectToCarService()
76 (CarAudioManager) mCar.getCarManager(Car.AUDIO_SERVICE), in connectToCarService()
77 (CarOccupantZoneManager) mCar.getCarManager( in connectToCarService()
92 if (mCar != null) { in onDestroy()
93 mCar.disconnect(); in onDestroy()
94 mCar = null; in onDestroy()
/packages/services/Car/experimental/service/src/com/android/experimentalcar/
DGazeDriverAwarenessSupplier.java61 private Car mCar; field in GazeDriverAwarenessSupplier
93 if (mCar != null && mCar.isConnected()) { in onDestroy()
94 mCar.disconnect(); in onDestroy()
120 mCar = Car.createCar(mContext); in onReady()
121 if (mCar != null) { in onReady()
122 if (mOasManager == null && mCar.isFeatureEnabled(Car.OCCUPANT_AWARENESS_SERVICE)) { in onReady()
125 mCar.getCarManager(Car.OCCUPANT_AWARENESS_SERVICE); in onReady()
154 if (mCar == null) { in supportsGaze()
DExperimentalCarService.java32 private Car mCar; field in ExperimentalCarService
39 mCar = Car.createCar(this); in onCreate()
45 if (mCar != null && mCar.isConnected()) { in onDestroy()
46 mCar.disconnect(); in onDestroy()
47 mCar = null; in onDestroy()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DPeakPerformancePreferenceController.java53 private Car mCar; field in PeakPerformancePreferenceController
66 if (mCar != null && mCar.isConnected()) { in onCreateInternal()
67 mCar.disconnect(); in onCreateInternal()
68 mCar = null; in onCreateInternal()
70 mCar = Car.createCar(getContext(), null, Car.CAR_WAIT_TIMEOUT_WAIT_FOREVER, in onCreateInternal()
85 if (mCar != null) { in onDestroyInternal()
86 mCar.disconnect(); in onDestroyInternal()
87 mCar = null; in onDestroyInternal()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/
DCarServiceProvider.java37 private Car mCar; field in CarServiceProvider
42 mCar = Car.createCar(mContext, /* handler= */ null, Car.CAR_WAIT_TIMEOUT_DO_NOT_WAIT, in CarServiceProvider()
44 mCar = car; in CarServiceProvider()
49 listener.onConnected(mCar); in CarServiceProvider()
59 mCar = car; in CarServiceProvider()
67 if (mCar.isConnected()) { in addListener()
68 listener.onConnected(mCar); in addListener()
/packages/services/Car/tests/DefaultStorageMonitoringCompanionApp/src/com/google/android/car/defaultstoragemonitoringcompanionapp/
DMainActivity.java114 if (!mCar.isFeatureEnabled(Car.STORAGE_MONITORING_SERVICE)) {
120 (CarStorageMonitoringManager) mCar.getCarManager(
145 mCar = null;
151 private Car mCar = null; field in MainActivity
161 mCar = Car.createCar(this, mCarConnectionListener); in onCreate()
162 mCar.connect(); in onCreate()
169 if (mCar != null) { in onDestroy()
170 mCar.disconnect(); in onDestroy()
/packages/services/Car/car-lib/src/android/car/
DCarManagerBase.java32 protected final Car mCar; field in CarManagerBase
35 mCar = car; in CarManagerBase()
39 return mCar.getContext(); in getContext()
43 return mCar.getEventHandler(); in getEventHandler()
47 return mCar.handleRemoteExceptionFromCarService(e, returnValue); in handleRemoteExceptionFromCarService()
51 mCar.handleRemoteExceptionFromCarService(e); in handleRemoteExceptionFromCarService()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DCarUxRestrictionsHelper.java35 @Nullable private final Car mCar; field in CarUxRestrictionsHelper
46 mCar = Car.createCar(context); in CarUxRestrictionsHelper()
48 mCar.getCarManager(Car.CAR_UX_RESTRICTION_SERVICE); in CarUxRestrictionsHelper()
64 if (mCar != null && mCar.isConnected()) { in destroy()
65 mCar.disconnect(); in destroy()
DPowerPolicyListener.java50 @Nullable private Car mCar; field in PowerPolicyListener
70 mCar = car; in PowerPolicyListener()
73 mCarPowerManager = (CarPowerManager) mCar.getCarManager(Car.POWER_SERVICE); in PowerPolicyListener()
80 mCar = null; in PowerPolicyListener()
95 if (mCar != null) { in release()
96 mCar.disconnect(); in release()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppGridActivity.java84 private Car mCar; field in AppGridActivity
117 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager(
128 mCarPackageManager = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE);
129 mCarMediaManager = (CarMediaManager) mCar.getCarManager(Car.CAR_MEDIA_SERVICE);
149 mCar = Car.createCar(this, mCarConnectionListener); in onCreate()
199 if (mCar != null && mCar.isConnected()) { in onDestroy()
200 mCar.disconnect(); in onDestroy()
201 mCar = null; in onDestroy()
263 mCar.connect(); in onStart()
282 if (mCar != null) { in onStop()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationApplication.java37 private Car mCar; field in NotificationApplication
50 mCar.getCarManager(Car.CAR_UX_RESTRICTION_SERVICE);
78 mCar = Car.createCar(this, mCarConnectionListener); in onCreate()
79 mCar.connect(); in onCreate()
88 if (mCar != null) { in onTerminate()
89 mCar.disconnect(); in onTerminate()
/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()
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java58 private Car mCar; field in MainActivity
109 mCar = Car.createCar(this); in onCreate()
111 mCarDrivingStateManager = (CarDrivingStateManager) mCar.getCarManager( in onCreate()
113 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager( in onCreate()
115 mCarPackageManager = (CarPackageManager) mCar.getCarManager( in onCreate()
127 if (mCar.isFeatureEnabled( in onCreate()
129 mDistractionManager = (CarDriverDistractionManager) mCar.getCarManager( in onCreate()
152 if (mCar != null) { in onDestroy()
153 mCar.disconnect(); in onDestroy()
/packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/components/
DCarDriverDistractionManagerAdapter.java30 private final Car mCar; field in CarDriverDistractionManagerAdapter
34 mCar = Car.createCar(ctx); in CarDriverDistractionManagerAdapter()
35 if (mCar.isFeatureEnabled( in CarDriverDistractionManagerAdapter()
37 mCarDriverDistractionManager = (CarDriverDistractionManager) mCar.getCarManager( in CarDriverDistractionManagerAdapter()
46 mCar.disconnect(); in destroy()
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DProjectionCallHandler.java58 private Car mCar; field in ProjectionCallHandler
79 if (mCar == null) { in start()
80 mCar = Car.createCar(mContext); in start()
83 mCarProjectionManager = mCarProjectionManagerProvider.getCarProjectionManager(mCar); in start()
93 if (mCar != null) { in stop()
94 mCar.disconnect(); in stop()
95 mCar = null; in stop()
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/
DLiveDataActivity.java46 private Car mCar; field in LiveDataActivity
111 mCar = Car.createCar(this); in onCreate()
115 (CarDiagnosticManager) mCar.getCarManager(Car.DIAGNOSTIC_SERVICE); in onCreate()
150 if (mCar != null && mCar.isConnected()) { in onDestroy()
151 mCar.disconnect(); in onDestroy()
152 mCar = null; in onDestroy()
DDTCDetailActivity.java50 private Car mCar; field in DTCDetailActivity
96 mCar = Car.createCar(this); in onCreate()
97 mCarDiagnosticManager = (CarDiagnosticManager) mCar.getCarManager(Car.DIAGNOSTIC_SERVICE); in onCreate()
136 if (mCar != null && mCar.isConnected()) { in onDestroy()
137 mCar.disconnect(); in onDestroy()
138 mCar = null; in onDestroy()
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/
DProjectionStateListener.java51 private Car mCar; field in ProjectionStateListener
59 mCar = car; in ProjectionStateListener()
60 mCarProjectionManager = (CarProjectionManager) mCar.getCarManager( in ProjectionStateListener()
73 if (mCar != null) { in destroy()
74 mCar.disconnect(); in destroy()
75 mCar = null; in destroy()
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/common/
DProjectionStateListener.java54 @Nullable private Car mCar; field in ProjectionStateListener
65 mCar = car; in ProjectionStateListener()
67 (CarProjectionManager) mCar.getCarManager(Car.PROJECTION_SERVICE); in ProjectionStateListener()
79 if (mCar != null) { in destroy()
80 mCar.disconnect(); in destroy()
81 mCar = null; in destroy()
/packages/services/Car/tests/UserSwitchMonitorApp/src/com/google/android/car/userswitchmonitor/
DUserSwitchMonitorService.java58 private Car mCar; field in UserSwitchMonitorService
65 mCar = Car.createCar(mContext); in onCreate()
66 mCarUserManager = (CarUserManager) mCar.getCarManager(Car.CAR_USER_SERVICE); in onCreate()
101 if (mCar != null && mCar.isConnected()) { in onDestroy()
102 mCar.disconnect(); in onDestroy()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarApiTestBase.java77 private Car mCar; field in CarApiTestBase
90 mCar = Car.createCar(getContext(), mConnectionListener); in setFixturesAndConnectToCar()
91 mCar.connect(); in setFixturesAndConnectToCar()
97 if (mCar == null) { in disconnectCar()
101 mCar.disconnect(); in disconnectCar()
105 return mCar; in getCar()
115 Object service = mCar.getCarManager(serviceName); in getCarService()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserManagerUnitTest.java70 private Car mCar; field in CarUserManagerUnitTest
87 mMgr = new CarUserManager(mCar, mService, mUserManager); in setFixtures()
88 when(mCar.getContext()).thenReturn(mMockContext); in setFixtures()
227 mockHandleRemoteExceptionFromCarServiceWithDefaultValue(mCar); in testSwitchUser_remoteException()
261 mockHandleRemoteExceptionFromCarServiceWithDefaultValue(mCar); in testRemoveUser_remoteException()
315 mockHandleRemoteExceptionFromCarServiceWithDefaultValue(mCar); in testCreateUser_withType_remoteException()
366 mockHandleRemoteExceptionFromCarServiceWithDefaultValue(mCar); in testCreateUser_remoteException()
403 mockHandleRemoteExceptionFromCarServiceWithDefaultValue(mCar); in testCreateGuest_remoteException()
439 mockHandleRemoteExceptionFromCarServiceWithDefaultValue(mCar); in testGetUserIdentificationAssociation_remoteException()
453 mockHandleRemoteExceptionFromCarServiceWithDefaultValue(mCar); in testGetUserIdentificationAssociation_runtimeException()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DCarAudioInputTestFragment.java50 private Car mCar; field in CarAudioInputTestFragment
60 mCar = Car.createCar(mContext, /* handler= */ null, in connectCar()
104 if (mCar != null && mCar.isConnected()) { in onDestroyView()
105 mCar.disconnect(); in onDestroyView()
106 mCar = null; in onDestroyView()

1234