Home
last modified time | relevance | path

Searched refs:CarOccupantZoneManager (Results 1 – 25 of 142) sorted by relevance

123456

/packages/services/Car/tests/carservice_test/src/com/android/car/input/
DCarInputManagerTest.java19 import static android.car.CarOccupantZoneManager.DisplayTypeEnum;
29 import android.car.CarOccupantZoneManager;
259 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in testInvalidArgs()
264 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in testInvalidArgs()
269 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, new int[]{INVALID_INPUT_TYPE}, in testInvalidArgs()
273 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in testInvalidArgs()
285 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in testInjectKeyEvent_mainDisplay()
292 mCarInputManager.injectKeyEvent(keyEvent, CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in testInjectKeyEvent_mainDisplay()
296 new Pair<>(CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in testInjectKeyEvent_mainDisplay()
303 CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER, in testInjectKeyEvent_instrumentClusterDisplay()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java38 import android.car.CarOccupantZoneManager;
39 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
88 private CarOccupantZoneManager mManager;
151 CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER,
154 CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER,
157 CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER,
160 CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER,
185 private final CarOccupantZoneManager.OccupantZoneConfigChangeListener mChangeListener =
186 new CarOccupantZoneManager.OccupantZoneConfigChangeListener() {
279 mManager = new CarOccupantZoneManager(car, mService); in setUp()
[all …]
DOccupantZoneHelper.java19 import static android.car.CarOccupantZoneManager.USER_ASSIGNMENT_RESULT_FAIL_ALREADY_ASSIGNED;
20 import static android.car.CarOccupantZoneManager.USER_ASSIGNMENT_RESULT_FAIL_DRIVER_ZONE;
21 import static android.car.CarOccupantZoneManager.USER_ASSIGNMENT_RESULT_OK;
27 import android.car.CarOccupantZoneManager;
28 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
46 public final CarOccupantZoneManager.OccupantZoneInfo zoneDriverLHD = new OccupantZoneInfo(0,
47 CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER,
50 CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER,
53 CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER,
56 CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER,
[all …]
DCarInputServiceTest.java19 import static android.car.CarOccupantZoneManager.DisplayTypeEnum;
45 import android.car.CarOccupantZoneManager;
46 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
196 eq(CarOccupantZoneManager.DISPLAY_TYPE_MAIN))).thenReturn(DRIVER_DISPLAY_ID); in setUpCarOccupantZoneService()
198 eq(CarOccupantZoneManager.DISPLAY_TYPE_MAIN))).thenReturn(PASSENGER_DISPLAY_ID); in setUpCarOccupantZoneService()
235 same(CarOccupantZoneManager.DISPLAY_TYPE_MAIN), same(event))).thenReturn(true); in testOnRotaryEvent_injectingRotaryNavigationEvent()
238 mCarInputService.onRotaryEvent(event, CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in testOnRotaryEvent_injectingRotaryNavigationEvent()
255 same(CarOccupantZoneManager.DISPLAY_TYPE_MAIN), same(event))).thenReturn(false); in testOnRotaryEvent_injectingRotaryVolumeEvent()
258 mCarInputService.onRotaryEvent(event, CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in testOnRotaryEvent_injectingRotaryVolumeEvent()
264 eq(CarOccupantZoneManager.DISPLAY_TYPE_MAIN)); in testOnRotaryEvent_injectingRotaryVolumeEvent()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/
DCarSettingsApplicationTest.java31 import android.car.CarOccupantZoneManager;
32 import android.car.CarOccupantZoneManager.OccupantZoneConfigChangeListener;
33 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
62 private CarOccupantZoneManager mCarOccupantZoneManager;
67 CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER,
70 CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER,
123 CarOccupantZoneManager.OCCUPANT_TYPE_INVALID); in onLifecycleChanged_carServiceNotReady()
142 CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER); in onLifecycleChanged_carServiceReady_zoneInfoDriver()
152 CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER); in onLifecycleChanged_carServiceReady_zoneInfoPassenger()
162 CarOccupantZoneManager.OCCUPANT_TYPE_INVALID); in onLifecycleChanged_carServiceReady_zoneInfoNull()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarOccupantZoneService.java34 import android.car.CarOccupantZoneManager;
35 import android.car.CarOccupantZoneManager.DisplayTypeEnum;
36 import android.car.CarOccupantZoneManager.OccupantTypeEnum;
37 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
189 public int userId = CarOccupantZoneManager.INVALID_USER_ID;
344 if (zoneConfig.userId != CarOccupantZoneManager.INVALID_USER_ID in init()
360 config.userId = CarOccupantZoneManager.INVALID_USER_ID; in init()
372 CarOccupantZoneManager.DISPLAY_TYPE_MAIN) != Display.INVALID_DISPLAY in init()
373 && ozi.occupantType != CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER) { in init()
632 if (zoneInfo.occupantType == CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER) { in findDisplayForDriverLocked()
[all …]
/packages/services/Car/car-lib/src/android/car/
DICarOccupantZone.aidl19 import android.car.CarOccupantZoneManager;
25 List<CarOccupantZoneManager.OccupantZoneInfo> getAllOccupantZones(); in getAllOccupantZones()
29 CarOccupantZoneManager.OccupantZoneInfo getOccupantForAudioZoneId(in int audioZoneId); in getOccupantForAudioZoneId()
45 CarOccupantZoneManager.OccupantZoneInfo getOccupantZoneForUser(in UserHandle user); in getOccupantZoneForUser()
46 CarOccupantZoneManager.OccupantZoneInfo getMyOccupantZone(); in getMyOccupantZone()
47 CarOccupantZoneManager.OccupantZoneInfo getOccupantZone(in int type, in int seat); in getOccupantZone()
52 CarOccupantZoneManager.OccupantZoneInfo getOccupantZoneForDisplayId(int displayId); in getOccupantZoneForDisplayId()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DScreenOffHandlerUnitTest.java31 import android.car.CarOccupantZoneManager;
32 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
253 CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER, in testUpdateUserActivity_noUserAssignedInModeOn_shouldTurnOffDisplay()
258 zoneInfo.zoneId, CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in testUpdateUserActivity_noUserAssignedInModeOn_shouldTurnOffDisplay()
262 .isEqualTo(CarOccupantZoneManager.INVALID_USER_ID); in testUpdateUserActivity_noUserAssignedInModeOn_shouldTurnOffDisplay()
275 CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER, in testUpdateUserActivity_userAssignedInModeOn_shouldKeepScreenOn()
280 zoneInfo.zoneId, CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in testUpdateUserActivity_userAssignedInModeOn_shouldKeepScreenOn()
287 CarOccupantZoneManager.USER_ASSIGNMENT_RESULT_OK); in testUpdateUserActivity_userAssignedInModeOn_shouldKeepScreenOn()
290 callback.onOccupantZoneConfigChanged(CarOccupantZoneManager.ZONE_CONFIG_CHANGE_FLAG_USER); in testUpdateUserActivity_userAssignedInModeOn_shouldKeepScreenOn()
302 CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER, in testUserActivity_bootIncomplete()
[all …]
/packages/services/Car/car-lib/src/android/car/occupantconnection/
DIBackendReceiver.aidl19 import android.car.CarOccupantZoneManager;
38 void onPayloadReceived(in CarOccupantZoneManager.OccupantZoneInfo senderZone, in onPayloadReceived()
41 void onConnectionInitiated(in CarOccupantZoneManager.OccupantZoneInfo senderZone, in onConnectionInitiated()
44 void onConnected(in CarOccupantZoneManager.OccupantZoneInfo senderZone); in onConnected()
46 void onConnectionCanceled(in CarOccupantZoneManager.OccupantZoneInfo senderZone); in onConnectionCanceled()
48 void onDisconnected(in CarOccupantZoneManager.OccupantZoneInfo senderZone); in onDisconnected()
DICarOccupantConnection.aidl19 import android.car.CarOccupantZoneManager;
32 in CarOccupantZoneManager.OccupantZoneInfo receiverZone, in requestConnection()
35 in CarOccupantZoneManager.OccupantZoneInfo receiverZone); in cancelConnection()
38 in CarOccupantZoneManager.OccupantZoneInfo receiverZone, in sendPayload()
41 void disconnect(String packageName, in CarOccupantZoneManager.OccupantZoneInfo receiverZone); in disconnect()
44 in CarOccupantZoneManager.OccupantZoneInfo receiverZone); in isConnected()
DIConnectionRequestCallback.aidl19 import android.car.CarOccupantZoneManager;
24 void onConnected(in CarOccupantZoneManager.OccupantZoneInfo receiverZone); in onConnected()
26 void onFailed(in CarOccupantZoneManager.OccupantZoneInfo receiverZone, in onFailed()
29 void onDisconnected(in CarOccupantZoneManager.OccupantZoneInfo receiverZone); in onDisconnected()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DClusterDisplayProvider.java20 import android.car.CarOccupantZoneManager;
41 private CarOccupantZoneManager mOccupantZoneManager;
50 initClusterDisplayProvider(context, (CarOccupantZoneManager) car.getCarManager( in ClusterDisplayProvider()
62 Context context, CarOccupantZoneManager occupantZoneManager) { in initClusterDisplayProvider()
89 CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER); in getClusterDisplayId()
93 CarOccupantZoneManager.OccupantZoneConfigChangeListener {
97 if ((changeFlags & CarOccupantZoneManager.ZONE_CONFIG_CHANGE_FLAG_DISPLAY) == 0) { in onOccupantZoneConfigChanged()
/packages/apps/Car/Settings/src/com/android/car/settings/
DCarSettingsApplication.java19 import static android.car.CarOccupantZoneManager.DISPLAY_TYPE_MAIN;
25 import android.car.CarOccupantZoneManager;
26 import android.car.CarOccupantZoneManager.OccupantZoneConfigChangeListener;
27 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
39 private CarOccupantZoneManager mCarOccupantZoneManager;
50 private int mOccupantZoneType = CarOccupantZoneManager.OCCUPANT_TYPE_INVALID;
79 mCarOccupantZoneManager = (CarOccupantZoneManager) car.getCarManager(
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DCarServiceMediator.java19 import static android.car.CarOccupantZoneManager.DISPLAY_TYPE_MAIN;
20 import static android.car.CarOccupantZoneManager.INVALID_USER_ID;
21 import static android.car.CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER;
22 import static android.car.CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER;
23 import static android.car.CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER;
24 import static android.car.CarOccupantZoneManager.USER_ASSIGNMENT_RESULT_FAIL_DRIVER_ZONE;
39 import android.car.CarOccupantZoneManager;
40 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
74 private CarOccupantZoneManager mCarOccupantZoneManager;
102 mCarOccupantZoneManager = car.getCarManager(CarOccupantZoneManager.class); in onConnect()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/
DCarSystemUIApplication.java19 import static android.car.CarOccupantZoneManager.DISPLAY_TYPE_MAIN;
22 import android.car.CarOccupantZoneManager;
43 CarOccupantZoneManager manager = (CarOccupantZoneManager) car.getCarManager( in onCreate()
46 CarOccupantZoneManager.OccupantZoneInfo info = manager.getMyOccupantZone(); in onCreate()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java18 import static android.car.CarOccupantZoneManager.DisplayTypeEnum;
39 import android.car.CarOccupantZoneManager;
189 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in dispatchesInputEvent_single_toListener_mainDisplay()
200 CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER); in dispatchesInputEvent_single_toListener_clusterDisplay()
216 }).when(mInputListener).onKeyEvent(any(), eq(CarOccupantZoneManager.DISPLAY_TYPE_MAIN)); in dispatchesInputEvent_multiple_toListener_mainDisplay()
241 eq(CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER)); in dispatchesInputEvent_multiple_toListener_clusterDisplay()
282 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in handlesRepeatedKeys_anyDisplay()
291 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in handlesRepeatedKeys_anyDisplay()
301 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in handlesRepeatedKeys_anyDisplay()
311 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in handlesRepeatedKeys_anyDisplay()
[all …]
/packages/services/Car/tools/GenericCarApiBuilder/scripts/api-coverage/
Dapis-without-coverage.txt13 android.car.CarOccupantZoneManager#getSupportedInputTypes(OccupantZoneInfo,int)
29 android.car.CarOccupantZoneManager#getUserForDisplayId(int)
30 android.car.CarOccupantZoneManager#getOccupantZone(int,int)
32 android.car.CarOccupantZoneManager#hasPassengerZones()
39 android.car.CarOccupantZoneManager#hasDriverZone()
43 android.car.CarOccupantZoneManager#getOccupantZoneForDisplayId(int)
45 android.car.CarOccupantZoneManager#unassignOccupantZone(OccupantZoneInfo)
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DSimpleUserPickerFragment.java23 import android.car.CarOccupantZoneManager;
24 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
90 private CarOccupantZoneManager mZoneManager;
114 mZoneManager = car.getCarManager(CarOccupantZoneManager.class); in onViewCreated()
128 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in onViewCreated()
132 != CarOccupantZoneManager.INVALID_USER_ID; in onViewCreated()
194 CarOccupantZoneManager.OccupantZoneConfigChangeListener {
198 if ((changeFlags & CarOccupantZoneManager.ZONE_CONFIG_CHANGE_FLAG_DISPLAY) != 0) { in onOccupantZoneConfigChanged()
206 if ((changeFlags & CarOccupantZoneManager.ZONE_CONFIG_CHANGE_FLAG_USER) != 0) { in onOccupantZoneConfigChanged()
218 int userId = CarOccupantZoneManager.INVALID_USER_ID; in updateTextInfo()
[all …]
DProfileUserFragment.java23 import android.car.CarOccupantZoneManager;
83 private CarOccupantZoneManager mZoneManager;
97 mZoneManager = (CarOccupantZoneManager) car.getCarManager(Car.CAR_OCCUPANT_ZONE_SERVICE); in onViewCreated()
156 List<CarOccupantZoneManager.OccupantZoneInfo> zonelist = mZoneManager.getAllOccupantZones(); in updateTextInfo()
157 for (CarOccupantZoneManager.OccupantZoneInfo zone : zonelist) { in updateTextInfo()
350 CarOccupantZoneManager.OccupantZoneInfo zoneInfo = getZoneInfoForId(zoneId); in launchAppForZone()
384 private CarOccupantZoneManager.OccupantZoneInfo getZoneInfoForId(int zoneId) { in getZoneInfoForId()
385 List<CarOccupantZoneManager.OccupantZoneInfo> zonelist = mZoneManager.getAllOccupantZones(); in getZoneInfoForId()
386 for (CarOccupantZoneManager.OccupantZoneInfo zone : zonelist) { in getZoneInfoForId()
477 List<CarOccupantZoneManager.OccupantZoneInfo> zonelist = mZoneManager.getAllOccupantZones(); in getZones()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DCarServiceMediatorTest.java18 import static android.car.CarOccupantZoneManager.DISPLAY_TYPE_MAIN;
19 import static android.car.CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER;
20 import static android.car.CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER;
21 import static android.car.CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER;
40 import android.car.CarOccupantZoneManager;
41 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
75 private CarOccupantZoneManager mMockCarOccupantZoneManager;
98 .getCarManager(CarOccupantZoneManager.class); in setUp()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DVolumeKeyEventsButtonManager.java19 import android.car.CarOccupantZoneManager;
24 private final CarOccupantZoneManager mCarOccupantZoneManager;
26 VolumeKeyEventsButtonManager(CarOccupantZoneManager occupantZoneManager) { in VolumeKeyEventsButtonManager()
31 CarOccupantZoneManager.OccupantZoneInfo occupantZoneInfo = in sendClickEvent()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/users/
DCarMUPANDUserTrackerImpl.java19 import static android.car.CarOccupantZoneManager.INVALID_USER_ID;
27 import android.car.CarOccupantZoneManager;
64 private CarOccupantZoneManager mCarOccupantZoneManager;
131 List<CarOccupantZoneManager.OccupantZoneInfo> occupantZoneInfos = in getDisplayIdForUser()
134 CarOccupantZoneManager.OccupantZoneInfo zoneInfo = occupantZoneInfos.get(i); in getDisplayIdForUser()
138 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in getDisplayIdForUser()
172 mCarOccupantZoneManager = car.getCarManager(CarOccupantZoneManager.class);
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DQCLogoutButtonController.java25 import android.car.CarOccupantZoneManager;
64 private CarOccupantZoneManager mCarOccupantZoneManager;
71 mCarOccupantZoneManager = car.getCarManager(CarOccupantZoneManager.class);
161 CarOccupantZoneManager.OccupantZoneInfo zoneInfo = getOccupantZoneForDisplayId( in logoutUser()
172 if (result != android.car.CarOccupantZoneManager.USER_ASSIGNMENT_RESULT_OK) { in logoutUser()
194 private CarOccupantZoneManager.OccupantZoneInfo getOccupantZoneForDisplayId(int displayId) { in getOccupantZoneForDisplayId()
195 List<CarOccupantZoneManager.OccupantZoneInfo> occupantZoneInfos = in getOccupantZoneForDisplayId()
198 CarOccupantZoneManager.OccupantZoneInfo occupantZoneInfo = occupantZoneInfos.get(index); in getOccupantZoneForDisplayId()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DMediaRequestHandlerTest.java27 import android.car.CarOccupantZoneManager;
49 private static final CarOccupantZoneManager.OccupantZoneInfo TEST_PASSENGER_OCCUPANT =
51 CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER,
375 CarOccupantZoneManager.OccupantZoneInfo info = in getOccupantForRequest_withoutApproval()
391 CarOccupantZoneManager.OccupantZoneInfo info = in getOccupantForRequest_afterApproval()
407 CarOccupantZoneManager.OccupantZoneInfo info = in getOccupantForRequest_afterRejection()
422 CarOccupantZoneManager.OccupantZoneInfo info = in getOccupantForRequest_afterCanceled()
430 CarOccupantZoneManager.OccupantZoneInfo info = in getOccupantForRequest_withInvalidRequest()
653 private CarOccupantZoneManager.OccupantZoneInfo mInfo;
658 public void onRequestMediaOnPrimaryZone(CarOccupantZoneManager.OccupantZoneInfo info, in onRequestMediaOnPrimaryZone()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DMediaRequestHandler.java25 import android.car.CarOccupantZoneManager;
68 private final ArraySet<CarOccupantZoneManager.OccupantZoneInfo> mAssignedOccupants =
114 CarOccupantZoneManager.OccupantZoneInfo info) { in requestMediaAudioOnPrimaryZone()
202 CarOccupantZoneManager.OccupantZoneInfo getOccupantForRequest(long requestId) { in getOccupantForRequest()
210 long getRequestIdForOccupant(CarOccupantZoneManager.OccupantZoneInfo info) { in getRequestIdForOccupant()
223 @Nullable CarOccupantZoneManager.OccupantZoneInfo info) { in isMediaAudioAllowedInPrimaryZone()
233 CarOccupantZoneManager.OccupantZoneInfo occupantZoneInfo = null; in getAssignedRequestIdForOccupantZoneId()
236 CarOccupantZoneManager.OccupantZoneInfo info = mAssignedOccupants.valueAt(index); in getAssignedRequestIdForOccupantZoneId()
272 private void handleMediaAudioRequest(CarOccupantZoneManager.OccupantZoneInfo info, in handleMediaAudioRequest()
349 IMediaAudioRequestStatusCallback callback, CarOccupantZoneManager.OccupantZoneInfo info, in informMediaAudioRequestCallbackAndApprovers()
[all …]

123456