Home
last modified time | relevance | path

Searched refs:OccupantZoneInfo (Results 1 – 25 of 101) sorted by relevance

12345

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DOccupantZoneHelper.java28 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
46 public final CarOccupantZoneManager.OccupantZoneInfo zoneDriverLHD = new OccupantZoneInfo(0,
49 public final OccupantZoneInfo zoneFrontPassengerLHD = new OccupantZoneInfo(1,
52 public final OccupantZoneInfo zoneRearLeft = new OccupantZoneInfo(2,
55 public final OccupantZoneInfo zoneRearRight = new OccupantZoneInfo(3,
58 public final OccupantZoneInfo zoneRearCenter = new OccupantZoneInfo(4,
62 private final List<CarOccupantZoneManager.OccupantZoneInfo> mZones = new ArrayList<>();
102 for (OccupantZoneInfo zone : mZones) { in setUpOccupantZones()
117 for (OccupantZoneInfo zone : mZones) { in setUpOccupantZones()
175 return OccupantZoneInfo.INVALID_ZONE_ID; in setUpOccupantZones()
[all …]
DCarRemoteDeviceManagerUnitTest.java34 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
69 private final OccupantZoneInfo mReceiverZone =
70 new OccupantZoneInfo(/* zoneId= */ 0, OCCUPANT_TYPE_DRIVER, SEAT_ROW_1_LEFT);
92 OccupantZoneInfo zone = in testGetEndpointPackageInfo()
93 new OccupantZoneInfo(zoneId, OCCUPANT_TYPE_DRIVER, SEAT_ROW_1_LEFT); in testGetEndpointPackageInfo()
191 OccupantZoneInfo zone = in testSetOccupantZonePowerOn()
192 new OccupantZoneInfo(zoneId, OCCUPANT_TYPE_DRIVER, SEAT_ROW_1_LEFT); in testSetOccupantZonePowerOn()
201 OccupantZoneInfo zone = in testSetOccupantZonePowerOff()
202 new OccupantZoneInfo(zoneId, OCCUPANT_TYPE_DRIVER, SEAT_ROW_1_LEFT); in testSetOccupantZonePowerOff()
211 OccupantZoneInfo zone = in testIsOccupantZonePowerOn()
[all …]
DCarOccupantConnectionManagerUnitTest.java39 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
82 private final OccupantZoneInfo mReceiverZone =
83 new OccupantZoneInfo(/* zoneId= */ 0, OCCUPANT_TYPE_DRIVER, SEAT_ROW_1_LEFT);
128 }).when(mService).requestConnection(anyString(), any(OccupantZoneInfo.class), any()); in testRequestConnectionWithEstablishedConnection_throwsException()
148 }).when(mService).requestConnection(anyString(), any(OccupantZoneInfo.class), any()); in testRequestConnectionWithRejectedConnection()
164 .when(mService).requestConnection(anyString(), any(OccupantZoneInfo.class), any()); in testRequestConnectionWithRemoteException()
171 .when(mService).requestConnection(anyString(), any(OccupantZoneInfo.class), any()); in testRequestConnectionWithRemoteException()
183 OccupantZoneInfo receiverZone = (OccupantZoneInfo) args[1]; in testRequestConnectionCallbackInvoked()
190 }).when(mService).requestConnection(anyString(), any(OccupantZoneInfo.class), any()); in testRequestConnectionCallbackInvoked()
271 OccupantZoneInfo senderZone = mock(OccupantZoneInfo.class); in testRegisterReceiverCallbackInvoked()
DCarOccupantZoneServiceTest.java39 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
150 private final OccupantZoneInfo mZoneDriverLHD = new OccupantZoneInfo(0,
153 private final OccupantZoneInfo mZoneFrontPassengerLHD = new OccupantZoneInfo(1,
156 private final OccupantZoneInfo mZoneRearLeft = new OccupantZoneInfo(2,
159 private final OccupantZoneInfo mZoneRearRight = new OccupantZoneInfo(3,
331 SparseArray<OccupantZoneInfo> configs = mService.getOccupantsConfig(); in testDefaultOccupantConfig()
355 SparseArray<OccupantZoneInfo> configs = mService.getOccupantsConfig(); in testDefaultOccupantConfigForRHD()
357 assertThat(new OccupantZoneInfo(0, CarOccupantZoneManager.OCCUPANT_TYPE_DRIVER, in testDefaultOccupantConfigForRHD()
359 assertThat(new OccupantZoneInfo(1, CarOccupantZoneManager.OCCUPANT_TYPE_FRONT_PASSENGER, in testDefaultOccupantConfigForRHD()
633 OccupantZoneInfo occupantZoneInfo = in testGetOccupantZoneForDisplayId_invalidDisplayId()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/occupantconnection/
DTestReceiverService.java18 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
32 public final List<Pair<OccupantZoneInfo, Payload>> onPayloadReceivedInvokedRecords =
35 public final List<OccupantZoneInfo> onConnectionInitiatedInvokedRecords = new ArrayList<>();
36 public final List<OccupantZoneInfo> onConnectedInvokedRecords = new ArrayList<>();
37 public final List<OccupantZoneInfo> onConnectionCanceledInvokedRecords = new ArrayList<>();
38 public final List<OccupantZoneInfo> onDisconnectedInvokedRecords = new ArrayList<>();
43 public void onPayloadReceived(OccupantZoneInfo senderZone, Payload payload) { in onPayloadReceived()
53 public void onConnectionInitiated(OccupantZoneInfo senderZone) { in onConnectionInitiated()
58 public void onConnected(OccupantZoneInfo senderZone) { in onConnected()
63 public void onConnectionCanceled(OccupantZoneInfo senderZone) { in onConnectionCanceled()
[all …]
/packages/services/Car/car-lib/src/android/car/
DCarOccupantZoneManager.java183 public static final class OccupantZoneInfo implements Parcelable { class in CarOccupantZoneManager
208 public OccupantZoneInfo(int zoneId, @OccupantTypeEnum int occupantType, in OccupantZoneInfo() method in CarOccupantZoneManager.OccupantZoneInfo
216 public OccupantZoneInfo(Parcel in) { in OccupantZoneInfo() method in CarOccupantZoneManager.OccupantZoneInfo
240 if (!(other instanceof OccupantZoneInfo)) { in equals()
243 OccupantZoneInfo that = (OccupantZoneInfo) other; in equals()
257 public static final Parcelable.Creator<OccupantZoneInfo> CREATOR =
259 public OccupantZoneInfo createFromParcel(Parcel in) {
260 return new OccupantZoneInfo(in);
263 public OccupantZoneInfo[] newArray(int size) {
264 return new OccupantZoneInfo[size];
[all …]
DICarOccupantZone.aidl25 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()
DCarRemoteDeviceManager.java26 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
170 void onOccupantZoneStateChanged(@NonNull OccupantZoneInfo occupantZone, in onOccupantZoneStateChanged()
182 void onAppStateChanged(@NonNull OccupantZoneInfo occupantZone, in onAppStateChanged()
197 public void onOccupantZoneStateChanged(OccupantZoneInfo occupantZone,
222 public void onAppStateChanged(OccupantZoneInfo occupantZone, int appStates) {
325 public PackageInfo getEndpointPackageInfo(@NonNull OccupantZoneInfo occupantZone) { in getEndpointPackageInfo()
347 public void setOccupantZonePower(@NonNull OccupantZoneInfo occupantZone, boolean powerOn) { in setOccupantZonePower()
362 public boolean isOccupantZonePowerOn(@NonNull OccupantZoneInfo occupantZone) { in isOccupantZonePowerOn()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/
DCarRemoteDeviceServiceTest.java60 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
142 private final ArrayMap<OccupantZoneInfo, Integer> mOccupantZoneStateMap = new ArrayMap<>();
144 private final OccupantZoneInfo mOccupantZone =
145 new OccupantZoneInfo(OCCUPANT_ZONE_ID, OCCUPANT_TYPE_DRIVER, SEAT_ROW_1_LEFT);
185 OccupantZoneInfo zone1 = new OccupantZoneInfo(/* zoneId= */ 0, in testInit()
187 OccupantZoneInfo zone2 = new OccupantZoneInfo(/* zoneId= */ 1, in testInit()
189 OccupantZoneInfo zone3 = new OccupantZoneInfo(/* zoneId= */ 2, in testInit()
191 List<OccupantZoneInfo> allZones = Arrays.asList(zone1, zone2, zone3); in testInit()
215 OccupantZoneInfo peerZone = new OccupantZoneInfo(/* zoneId= */ 0, in testPeerClientInstallUninstall()
225 List<OccupantZoneInfo> allZones = Arrays.asList(mOccupantZone, peerZone); in testPeerClientInstallUninstall()
[all …]
DConnectionIdTest.java28 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
37 private static final OccupantZoneInfo SENDER_ZONE = new OccupantZoneInfo(/* zoneId= */ 0,
39 private static final OccupantZoneInfo RECEIVER_ZONE = new OccupantZoneInfo(/* zoneId= */ 1,
DClientIdTest.java26 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
33 private static final OccupantZoneInfo OCCUPANT_ZONE =
34 new OccupantZoneInfo(/* zoneId= */ 0, OCCUPANT_TYPE_DRIVER, SEAT_ROW_1_LEFT);
60 OccupantZoneInfo zone2 = in testNotEqualWithDifferentZone()
61 new OccupantZoneInfo(/* zoneId= */ 1, OCCUPANT_TYPE_DRIVER, SEAT_ROW_1_LEFT); in testNotEqualWithDifferentZone()
/packages/services/Car/car-lib/src/android/car/occupantconnection/
DAbstractReceiverService.java30 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
133 public void onPayloadReceived(OccupantZoneInfo senderZone, Payload payload) {
143 public void onConnectionInitiated(OccupantZoneInfo senderZone, long senderVersion,
169 public void onConnected(OccupantZoneInfo senderZone) {
179 public void onConnectionCanceled(OccupantZoneInfo senderZone) {
189 public void onDisconnected(OccupantZoneInfo senderZone) {
251 public abstract void onPayloadReceived(@NonNull OccupantZoneInfo senderZone, in onPayloadReceived()
309 public abstract void onConnectionInitiated(@NonNull OccupantZoneInfo senderZone); in onConnectionInitiated()
320 public void onConnected(@NonNull OccupantZoneInfo senderZone) { in onConnected()
327 public void onConnectionCanceled(@NonNull OccupantZoneInfo senderZone) { in onConnectionCanceled()
[all …]
DCarOccupantConnectionManager.java27 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
263 void onConnected(@NonNull OccupantZoneInfo receiverZone); in onConnected()
273 void onFailed(@NonNull OccupantZoneInfo receiverZone, int connectionError); in onFailed()
283 void onDisconnected(@NonNull OccupantZoneInfo receiverZone); in onDisconnected()
292 void onPayloadReceived(@NonNull OccupantZoneInfo senderZone, in onPayloadReceived()
317 public void onConnected(OccupantZoneInfo receiverZone) {
341 public void onFailed(OccupantZoneInfo receiverZone, int connectionError) {
365 public void onDisconnected(OccupantZoneInfo receiverZone) {
398 public void onPayloadReceived(OccupantZoneInfo senderZone, String receiverEndpointId,
536 public void requestConnection(@NonNull OccupantZoneInfo receiverZone, in requestConnection()
[all …]
DIBackendReceiver.aidl38 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.aidl32 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()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioUserAssignmentFragment.java27 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
60 private final ArrayMap<Long, OccupantZoneInfo> mRequestIdToOccupantZone =
72 public void onRequestMediaOnPrimaryZone(OccupantZoneInfo info, long requestId) {
77 public void onMediaAudioRequestStatusChanged(OccupantZoneInfo info, long requestId,
100 private void handleResetMediaOnPrimaryZone(OccupantZoneInfo info, in handleResetMediaOnPrimaryZone()
111 private void handleRequestMediaOnPrimaryZone(OccupantZoneInfo info, in handleRequestMediaOnPrimaryZone()
133 private String getUserName(OccupantZoneInfo info) { in getUserName()
184 OccupantZoneInfo info = getOccupantZoneForUser(userId); in handleResetUserAudio()
193 OccupantZoneInfo info = getOccupantZoneForUser(userId); in handleToggleAssignUserAudio()
205 OccupantZoneInfo info = getOccupantZoneForUser(userId); in handleRequestUserToPlayInMainCabin()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DCarServiceMediatorTest.java41 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
83 private List<OccupantZoneInfo> mOccupantZoneInfos = new ArrayList<OccupantZoneInfo>();
84 private OccupantZoneInfo mDriverZoneInfo = new OccupantZoneInfo(/* zoneId= */ ZONE_ID_DRIVER,
86 private OccupantZoneInfo mFrontPassengerZoneInfo = new OccupantZoneInfo(
89 private OccupantZoneInfo mRearPassengerZoneInfo = new OccupantZoneInfo(
112 OccupantZoneInfo[] zones = new OccupantZoneInfo[seatDatas.length - 1]; in checkUserSeatDescription_byZoneInfo_validSeatDescription()
117 zones[i] = new OccupantZoneInfo(/* zoneId= */ i + 1, in checkUserSeatDescription_byZoneInfo_validSeatDescription()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/occupantconnection/
DReceiverService.java29 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
54 private OccupantZoneInfo mCachedSenderZone;
60 private final OccupantZoneInfo mSenderZone;
62 MessageReceiver(OccupantZoneInfo senderZone) { in MessageReceiver()
99 public void onPayloadReceived(@NonNull OccupantZoneInfo senderZone, in onPayloadReceived()
140 public void onConnectionInitiated(@NonNull OccupantZoneInfo senderZone) { in onConnectionInitiated()
163 public void onConnected(@NonNull OccupantZoneInfo senderZone) { in onConnected()
168 public void onConnectionCanceled(@NonNull OccupantZoneInfo senderZone) { in onConnectionCanceled()
174 public void onDisconnected(@NonNull OccupantZoneInfo senderZone) { in onDisconnected()
DOccupantConnectionFragment.java31 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
60 private final ArrayMap<OccupantZoneInfo, Integer> mOccupantZoneStateMap = new ArrayMap<>();
61 private final ArrayMap<OccupantZoneInfo, Integer> mAppStateMap = new ArrayMap<>();
62 private final List<OccupantZoneInfo> mAddedPeerZones = new ArrayList<>();
83 @androidx.annotation.NonNull OccupantZoneInfo occupantZone,
98 @androidx.annotation.NonNull OccupantZoneInfo occupantZone,
179 private void addPeerOccupantZoneItem(OccupantZoneInfo zone, int occupantZoneStates, in addPeerOccupantZoneItem()
248 private void updateOccupantZoneState(OccupantZoneInfo zone, int occupantZoneStates) { in updateOccupantZoneState()
254 private void updateAppState(OccupantZoneInfo zone, int appStates) { in updateAppState()
260 private TextView getStateViewForOccupantZone(OccupantZoneInfo zone) { in getStateViewForOccupantZone()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarOccupantZoneService.java37 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
117 private final SparseArray<OccupantZoneInfo> mOccupantsConfig = new SparseArray<>();
219 private int mDriverZoneId = OccupantZoneInfo.INVALID_ZONE_ID;
319 public List<OccupantZoneInfo> getOccupantZones(@OccupantTypeEnum int occupantType) { in init()
320 List<OccupantZoneInfo> zones = new ArrayList<OccupantZoneInfo>(); in init()
321 for (OccupantZoneInfo ozi : getAllOccupantZones()) { in init()
334 if (userZoneId != OccupantZoneInfo.INVALID_ZONE_ID in init()
370 for (OccupantZoneInfo ozi : getAllOccupantZones()) { in init()
409 public SparseArray<OccupantZoneInfo> getOccupantsConfig() { in getOccupantsConfig()
532 public List<OccupantZoneInfo> getAllOccupantZones() { in getAllOccupantZones()
[all …]
/packages/services/Car/service/src/com/android/car/occupantconnection/
DCarRemoteDeviceService.java47 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
168 private final ArrayMap<OccupantZoneInfo, Integer> mOccupantZoneStateMap;
186 private final OccupantZoneInfo mOccupantZone;
189 PackageChangeReceiver(int userId, OccupantZoneInfo occupantZone) { in PackageChangeReceiver()
240 public final OccupantZoneInfo zone;
252 PerUserInfo(OccupantZoneInfo zone, Context context, PackageManager pm, in PerUserInfo()
284 ArrayMap<OccupantZoneInfo, Integer> occupantZoneStateMap) { in CarRemoteDeviceService() argument
330 OccupantZoneInfo occupantZone = mOccupantZoneStateMap.keyAt(i); in dump()
405 public void setOccupantZonePower(OccupantZoneInfo occupantZone, boolean powerOn) { in setOccupantZonePower()
415 public boolean isOccupantZonePowerOn(OccupantZoneInfo occupantZone) { in isOccupantZonePowerOn()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DCarServiceMediator.java40 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
147 OccupantZoneInfo getOccupantZoneForDisplayId(int displayId) { in getOccupantZoneForDisplayId()
154 List<OccupantZoneInfo> occupantZoneInfos = mCarOccupantZoneManager.getAllOccupantZones(); in getOccupantZoneForDisplayId()
156 CarOccupantZoneManager.OccupantZoneInfo occupantZoneInfo = occupantZoneInfos.get(index); in getOccupantZoneForDisplayId()
174 List<OccupantZoneInfo> occupantZoneInfos = mCarOccupantZoneManager.getAllOccupantZones(); in getDisplayIdForUser()
176 OccupantZoneInfo zoneInfo = occupantZoneInfos.get(i); in getDisplayIdForUser()
197 OccupantZoneInfo zoneInfo = getOccupantZoneForDisplayId(displayId); in unassignOccupantZoneForDisplay()
208 OccupantZoneInfo zoneInfo = getOccupantZoneForDisplayId(displayId); in getSeatString()
/packages/services/Car/service/src/com/android/car/audio/
DMediaRequestHandler.java68 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()
410 CarOccupantZoneManager.OccupantZoneInfo info = mAssignedOccupants.valueAt(index); in dump()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DOccupantZoneStartActivity.java29 import android.car.CarOccupantZoneManager.OccupantZoneInfo;
70 OccupantZoneInfo zoneInfo = getOccupantZoneForDisplay(display); in startActivity()
84 private OccupantZoneInfo getOccupantZoneForDisplay(Display display) { in getOccupantZoneForDisplay()
85 List<OccupantZoneInfo> occupantZoneInfos = mOccupantZoneManager.getAllOccupantZones(); in getOccupantZoneForDisplay()
87 OccupantZoneInfo occupantZoneInfo = occupantZoneInfos.get(index); in getOccupantZoneForDisplay()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DMediaRequestHandlerTest.java49 private static final CarOccupantZoneManager.OccupantZoneInfo TEST_PASSENGER_OCCUPANT =
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()
667 CarOccupantZoneManager.OccupantZoneInfo info, in onMediaAudioRequestStatusChanged()
690 private CarOccupantZoneManager.OccupantZoneInfo mInfo;
[all …]

12345