Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_test/src/com/android/car/input/
DCarInputManagerTest.java19 import static android.car.CarOccupantZoneManager.DisplayTypeEnum;
31 import android.car.CarOccupantZoneManager;
245 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in testInvalidArgs()
250 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in testInvalidArgs()
255 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, new int[]{INVALID_INPUT_TYPE}, in testInvalidArgs()
259 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in testInvalidArgs()
271 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in testInjectKeyEvent_mainDisplay()
278 mCarInputManager.injectKeyEvent(keyEvent, CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in testInjectKeyEvent_mainDisplay()
282 new Pair<>(CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in testInjectKeyEvent_mainDisplay()
289 CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER, in testInjectKeyEvent_instrumentClusterDisplay()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java33 import android.car.CarOccupantZoneManager;
34 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
80 private CarOccupantZoneManager mManager;
138 CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER,
141 CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER,
144 CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER,
147 CarOccupantZoneManager.OCCUPANT_TYPE_REAR_PASSENGER,
169 private final CarOccupantZoneManager.OccupantZoneConfigChangeListener mChangeListener =
170 new CarOccupantZoneManager.OccupantZoneConfigChangeListener() {
247 mManager = new CarOccupantZoneManager(car, mService); in setUp()
[all …]
DCarInputServiceTest.java19 import static android.car.CarOccupantZoneManager.DisplayTypeEnum;
47 import android.car.CarOccupantZoneManager;
143 same(CarOccupantZoneManager.DISPLAY_TYPE_MAIN), same(event))).thenReturn(true); in testOnRotaryEvent_injectingRotaryNavigationEvent()
146 mCarInputService.onRotaryEvent(event, CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in testOnRotaryEvent_injectingRotaryNavigationEvent()
162 same(CarOccupantZoneManager.DISPLAY_TYPE_MAIN), same(event))).thenReturn(false); in testOnRotaryEvent_injectingRotaryVolumeEvent()
165 mCarInputService.onRotaryEvent(event, CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in testOnRotaryEvent_injectingRotaryVolumeEvent()
171 eq(CarOccupantZoneManager.DISPLAY_TYPE_MAIN)); in testOnRotaryEvent_injectingRotaryVolumeEvent()
184 same(CarOccupantZoneManager.DISPLAY_TYPE_MAIN), same(event))).thenReturn(false); in testOnRotaryEvent_injectingRotaryNavigation_notConsumedByCaptureController()
186 mCarInputService.onRotaryEvent(event, CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in testOnRotaryEvent_injectingRotaryNavigation_notConsumedByCaptureController()
192 eq(CarOccupantZoneManager.DISPLAY_TYPE_MAIN)); in testOnRotaryEvent_injectingRotaryNavigation_notConsumedByCaptureController()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarOccupantZoneService.java25 import android.car.CarOccupantZoneManager;
26 import android.car.CarOccupantZoneManager.DisplayTypeEnum;
27 import android.car.CarOccupantZoneManager.OccupantTypeEnum;
28 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
331 CarOccupantZoneManager.DISPLAY_TYPE_MAIN) != Display.INVALID_DISPLAY in init()
332 && ozi.occupantType != CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER) { in init()
507 if (zoneInfo.occupantType == CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER) { in findDisplayForDriverLocked()
554 public CarOccupantZoneManager.OccupantZoneInfo getOccupantForAudioZoneId(int audioZoneId) { in getOccupantForAudioZoneId()
596 return CarOccupantZoneManager.DISPLAY_TYPE_UNKNOWN; in getDisplayType()
653 sendConfigChangeEvent(CarOccupantZoneManager.ZONE_CONFIG_CHANGE_FLAG_AUDIO); in setAudioZoneIdsForOccupantZoneIds()
[all …]
DInputCaptureClientController.java19 import static android.car.CarOccupantZoneManager.DisplayTypeEnum;
25 import android.car.CarOccupantZoneManager;
107 CarOccupantZoneManager.DISPLAY_TYPE_MAIN,
108 CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER
257 if (targetDisplayType != CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER) { in requestInputEventCapture()
269 if (targetDisplayType != CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER in requestInputEventCapture()
270 && targetDisplayType != CarOccupantZoneManager.DISPLAY_TYPE_MAIN) { in requestInputEventCapture()
DCarInputService.java18 import static android.car.CarOccupantZoneManager.DisplayTypeEnum;
31 import android.car.CarOccupantZoneManager;
369 if (targetDisplayType == CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER in onKeyEvent()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DClusterDisplayProvider.java20 import android.car.CarOccupantZoneManager;
21 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
44 private CarOccupantZoneManager mOccupantZoneManager;
53 initClusterDisplayProvider(context, (CarOccupantZoneManager) car.getCarManager( in ClusterDisplayProvider()
65 Context context, CarOccupantZoneManager occupantZoneManager) { in initClusterDisplayProvider()
91 if (zone.occupantType == CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER) { in getClusterDisplay()
93 zone, CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER); in getClusterDisplay()
101 CarOccupantZoneManager.OccupantZoneConfigChangeListener {
105 if ((changeFlags & CarOccupantZoneManager.ZONE_CONFIG_CHANGE_FLAG_DISPLAY) == 0) { in onOccupantZoneConfigChanged()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java18 import static android.car.CarOccupantZoneManager.DisplayTypeEnum;
33 import android.car.CarOccupantZoneManager;
171 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in dispatchesInputEvent_single_toListener_mainDisplay()
182 CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER); in dispatchesInputEvent_single_toListener_clusterDisplay()
198 }).when(mInputListener).onKeyEvent(any(), eq(CarOccupantZoneManager.DISPLAY_TYPE_MAIN)); in dispatchesInputEvent_multiple_toListener_mainDisplay()
223 eq(CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER)); in dispatchesInputEvent_multiple_toListener_clusterDisplay()
243 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in handlesRepeatedKeys_anyDisplay()
252 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in handlesRepeatedKeys_anyDisplay()
262 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in handlesRepeatedKeys_anyDisplay()
272 CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in handlesRepeatedKeys_anyDisplay()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
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/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/
DCarOccupantZoneManagerPermissionTest.java19 import static android.car.CarOccupantZoneManager.OccupantZoneInfo;
26 import android.car.CarOccupantZoneManager;
47 private CarOccupantZoneManager mCarOccupantZoneManager;
53 mCarOccupantZoneManager = (CarOccupantZoneManager) mCar.getCarManager( in setUp()
70 CarOccupantZoneManager.DISPLAY_TYPE_MAIN)); in testDisplayIdForDriver()
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DSampleCustomInputService.java20 import android.car.CarOccupantZoneManager;
71 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in connectToCarService()
77 (CarOccupantZoneManager) mCar.getCarManager( in connectToCarService()
90 mCarInputManager.releaseInputEventCapture(CarOccupantZoneManager.DISPLAY_TYPE_MAIN); in onDestroy()
DCustomInputEventListener.java22 import android.car.CarOccupantZoneManager;
49 private final CarOccupantZoneManager mCarOccupantZoneManager;
83 @NonNull CarOccupantZoneManager carOccupantZoneManager, in CustomInputEventListener()
143 if (displayType == CarOccupantZoneManager.DISPLAY_TYPE_MAIN) { in isValidTargetDisplayType()
149 + CarOccupantZoneManager.DISPLAY_TYPE_MAIN + "}), current display type is {" in isValidTargetDisplayType()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DOccupantZoneStartActivity.java28 import android.car.CarOccupantZoneManager;
29 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
52 private CarOccupantZoneManager mOccupantZoneManager;
122 mOccupantZoneManager = (CarOccupantZoneManager) in connectCar()
/packages/services/Car/car-lib/src/android/car/
DCarOccupantZoneManager.java52 public class CarOccupantZoneManager extends CarManagerBase { class
54 private static final String TAG = CarOccupantZoneManager.class.getSimpleName();
273 public CarOccupantZoneManager(Car car, IBinder service) { in CarOccupantZoneManager() method in CarOccupantZoneManager
529 private final WeakReference<CarOccupantZoneManager> mManager;
531 private ICarOccupantZoneCallbackImpl(CarOccupantZoneManager manager) { in ICarOccupantZoneCallbackImpl()
537 CarOccupantZoneManager manager = mManager.get(); in onOccupantZoneConfigChanged()
DICarOccupantZone.aidl19 import android.car.CarOccupantZoneManager;
25 List<CarOccupantZoneManager.OccupantZoneInfo> getAllOccupantZones(); in getAllOccupantZones()
29 CarOccupantZoneManager.OccupantZoneInfo getOccupantForAudioZoneId(in int audioZoneId); in getOccupantForAudioZoneId()
DCarOccupantZoneManager.aidl19 parcelable CarOccupantZoneManager.OccupantZoneInfo;
/packages/services/Car/car-lib/api/
Dlint-baseline.txt22 …rRegistration: android.car.CarOccupantZoneManager#registerOccupantZoneConfigChangeListener(android…
38 HiddenSuperclass: android.car.CarOccupantZoneManager:
39 …Public class android.car.CarOccupantZoneManager stripped of unavailable superclass android.car.Car…
108 MissingNullability: android.car.CarOccupantZoneManager.OccupantZoneInfo#CREATOR:
109 …Missing nullability on field `CREATOR` in class `class android.car.CarOccupantZoneManager.Occupant…
110 MissingNullability: android.car.CarOccupantZoneManager.OccupantZoneInfo#writeToParcel(android.os.Pa…
172 MutableBareField: android.car.CarOccupantZoneManager.OccupantZoneInfo#zoneId:
194 …istrationName: android.car.CarOccupantZoneManager#registerOccupantZoneConfigChangeListener(android…
196 …strationName: android.car.CarOccupantZoneManager#unregisterOccupantZoneConfigChangeListener(androi…
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioService.java34 import android.car.CarOccupantZoneManager;
35 import android.car.CarOccupantZoneManager.OccupantZoneConfigChangeListener;
153 private CarOccupantZoneManager mOccupantZoneManager;
239 mOccupantZoneManager = new CarOccupantZoneManager(car, mOccupantZoneService); in init()
663 CarOccupantZoneManager occupantZoneManager; in setupOccupantZoneInfo()
1441 List<CarOccupantZoneManager.OccupantZoneInfo> occupantZoneInfos = in getOccupantZoneIdForDriver()
1443 for (CarOccupantZoneManager.OccupantZoneInfo info: occupantZoneInfos) { in getOccupantZoneIdForDriver()
1444 if (info.occupantType == CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER) { in getOccupantZoneIdForDriver()
1448 return CarOccupantZoneManager.OccupantZoneInfo.INVALID_ZONE_ID; in getOccupantZoneIdForDriver()
1555 if (((flags & CarOccupantZoneManager.ZONE_CONFIG_CHANGE_FLAG_USER) in onOccupantZoneConfigChanged()
[all …]
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/input/
DCarInputManagerPermisisonTest.java24 import android.car.CarOccupantZoneManager;
67 CarOccupantZoneManager.DISPLAY_TYPE_MAIN, in testEnableFeaturePermission()
80 CarOccupantZoneManager.DISPLAY_TYPE_MAIN)); in testInjectKeyEvent()
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DRotaryServiceTest.java43 import android.car.CarOccupantZoneManager;
435 int validDisplayId = CarOccupantZoneManager.DISPLAY_TYPE_MAIN; in testOnRotaryEvents_withoutFocusedView()
482 int validDisplayId = CarOccupantZoneManager.DISPLAY_TYPE_MAIN; in testOnRotaryEvents_withFocusedView()
535 int validDisplayId = CarOccupantZoneManager.DISPLAY_TYPE_MAIN; in testOnRotaryEvents_acceleration()
993 int validDisplayId = CarOccupantZoneManager.DISPLAY_TYPE_MAIN; in testOnKeyEvents_nudgeUp_moveFocus()
1072 int validDisplayId = CarOccupantZoneManager.DISPLAY_TYPE_MAIN; in testOnKeyEvents_nudgeUp_initFocus()
1162 int validDisplayId = CarOccupantZoneManager.DISPLAY_TYPE_MAIN; in testOnKeyEvents_nudgeToHunEscapeNudgeDirection_leaveTheHun()
1255 int validDisplayId = CarOccupantZoneManager.DISPLAY_TYPE_MAIN; in testOnKeyEvents_nudgeToNonHunEscapeNudgeDirection_stayInTheHun()
1324 int validDisplayId = CarOccupantZoneManager.DISPLAY_TYPE_MAIN; in testOnKeyEvents_centerButtonClick_initFocus()
1403 int validDisplayId = CarOccupantZoneManager.DISPLAY_TYPE_MAIN; in testOnKeyEvents_centerButtonClickInAppWindow_injectDpadCenterEvent()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DInputHalService.java18 import static android.car.CarOccupantZoneManager.DisplayTypeEnum;
29 import android.car.CarOccupantZoneManager;
410 return CarOccupantZoneManager.DISPLAY_TYPE_MAIN;
412 return CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER;
414 return CarOccupantZoneManager.DISPLAY_TYPE_UNKNOWN;
/packages/services/Car/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/
DCustomInputEventListenerTest.java18 import static android.car.CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER;
19 import static android.car.CarOccupantZoneManager.DISPLAY_TYPE_MAIN;
33 import android.car.CarOccupantZoneManager;
62 private static final int SOME_DISPLAY_TYPE = CarOccupantZoneManager.DISPLAY_TYPE_MAIN;
80 @Mock private CarOccupantZoneManager mCarOccupantZoneManager;
/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/
DClusterHomeApplication.java21 import static android.car.CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER;
38 import android.car.CarOccupantZoneManager;
266 public void onKeyEvents(@CarOccupantZoneManager.DisplayTypeEnum int targetDisplayType,
/packages/services/Car/service/src/com/android/car/cluster/
DClusterHomeService.java28 import android.car.CarOccupantZoneManager;
128 CarOccupantZoneManager.DISPLAY_TYPE_INSTRUMENT_CLUSTER); in initClusterDisplay()
162 if ((flags & CarOccupantZoneManager.ZONE_CONFIG_CHANGE_FLAG_DISPLAY) != 0) {
/packages/services/Car/car-lib/src/android/car/input/
DCarInputManager.java19 import static android.car.CarOccupantZoneManager.DisplayTypeEnum;
28 import android.car.CarOccupantZoneManager;

12