Home
last modified time | relevance | path

Searched refs:SystemStatusEvent (Results 1 – 15 of 15) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DOccupantAwarenessServiceTest.java22 import android.car.occupantawareness.SystemStatusEvent;
91 return SystemStatusEvent.DETECTION_TYPE_PRESENCE in getCapabilityForRole()
92 | SystemStatusEvent.DETECTION_TYPE_GAZE in getCapabilityForRole()
93 | SystemStatusEvent.DETECTION_TYPE_DRIVER_MONITORING; in getCapabilityForRole()
96 return SystemStatusEvent.DETECTION_TYPE_PRESENCE; in getCapabilityForRole()
98 return SystemStatusEvent.DETECTION_TYPE_NONE; in getCapabilityForRole()
125 private SystemStatusEvent mSystemStatus;
164 .isEqualTo(SystemStatusEvent.DETECTION_TYPE_PRESENCE); in testRegisterEventListener_returnsSystemStatusReady()
165 assertThat(mSystemStatus.systemStatus).isEqualTo(SystemStatusEvent.SYSTEM_STATUS_READY); in testRegisterEventListener_returnsSystemStatusReady()
178 assertThat(mSystemStatus.detectionType).isEqualTo(SystemStatusEvent.DETECTION_TYPE_GAZE); in testRegisterEventListener_returnsSystemStatusFailure()
[all …]
DOccupantAwarenessUtilsTest.java23 import android.car.occupantawareness.SystemStatusEvent;
43 SystemStatusEvent event = in testConvertToStatusEvent_returnsSystemStatusReady()
47 assertThat(event.systemStatus).isEqualTo(SystemStatusEvent.SYSTEM_STATUS_READY); in testConvertToStatusEvent_returnsSystemStatusReady()
52 SystemStatusEvent event = in testConvertToStatusEvent_returnsSystemStatusNotSupported()
56 assertThat(event.systemStatus).isEqualTo(SystemStatusEvent.SYSTEM_STATUS_NOT_SUPPORTED); in testConvertToStatusEvent_returnsSystemStatusNotSupported()
61 SystemStatusEvent event = in testConvertToStatusEvent_returnsSystemStatusNotReady()
65 assertThat(event.systemStatus).isEqualTo(SystemStatusEvent.SYSTEM_STATUS_NOT_READY); in testConvertToStatusEvent_returnsSystemStatusNotReady()
70 SystemStatusEvent event = in testConvertToStatusEvent_returnsSystemStatusSystemFailure()
74 assertThat(event.systemStatus).isEqualTo(SystemStatusEvent.SYSTEM_STATUS_SYSTEM_FAILURE); in testConvertToStatusEvent_returnsSystemStatusSystemFailure()
79 SystemStatusEvent event = in testConvertToStatusEvent_returnsSystemStatusNotReadyWithInvalidAwarenessStatus()
[all …]
/packages/services/Car/car-lib/src/android/car/occupantawareness/
DSystemStatusEvent.java39 public final class SystemStatusEvent implements Parcelable { class
102 public SystemStatusEvent(@SystemStatus int status, @DetectionTypeFlags int type) { in SystemStatusEvent() method in SystemStatusEvent
107 public SystemStatusEvent() { in SystemStatusEvent() method in SystemStatusEvent
134 public static final @NonNull Parcelable.Creator<SystemStatusEvent> CREATOR =
135 new Parcelable.Creator<SystemStatusEvent>() {
136 public SystemStatusEvent createFromParcel(Parcel in) {
137 return new SystemStatusEvent(in);
140 public SystemStatusEvent[] newArray(int size) {
141 return new SystemStatusEvent[size];
145 private SystemStatusEvent(Parcel in) { in SystemStatusEvent() method in SystemStatusEvent
DOccupantAwarenessManager.java25 import android.car.occupantawareness.SystemStatusEvent.DetectionTypeFlags;
116 public abstract void onSystemStateChanged(@NonNull SystemStatusEvent systemStatus); in onSystemStateChanged()
201 public void onStatusChanged(SystemStatusEvent systemStatus) { in onStatusChanged()
223 private void handleSystemStatusChanged(SystemStatusEvent systemStatus) { in handleSystemStatusChanged()
235 private void dispatchSystemStatusToClient(SystemStatusEvent systemStatus) { in dispatchSystemStatusToClient()
300 mgr.dispatchSystemStatusToClient((SystemStatusEvent) msg.obj); in handleMessage()
DIOccupantAwarenessEventCallback.aidl20 import android.car.occupantawareness.SystemStatusEvent;
27 void onStatusChanged(in SystemStatusEvent event) = 0;
DSystemStatusEvent.aidl19 parcelable SystemStatusEvent;
/packages/services/Car/service/src/com/android/car/
DOccupantAwarenessUtils.java26 import android.car.occupantawareness.SystemStatusEvent;
27 import android.car.occupantawareness.SystemStatusEvent.DetectionTypeFlags;
28 import android.car.occupantawareness.SystemStatusEvent.SystemStatus;
38 static SystemStatusEvent convertToStatusEvent(int inputDetectionFlags, byte inputStatus) { in convertToStatusEvent()
40 @SystemStatus int outputStatus = SystemStatusEvent.SYSTEM_STATUS_NOT_READY; in convertToStatusEvent()
44 outputStatus = SystemStatusEvent.SYSTEM_STATUS_READY; in convertToStatusEvent()
48 outputStatus = SystemStatusEvent.SYSTEM_STATUS_NOT_SUPPORTED; in convertToStatusEvent()
52 outputStatus = SystemStatusEvent.SYSTEM_STATUS_NOT_READY; in convertToStatusEvent()
56 outputStatus = SystemStatusEvent.SYSTEM_STATUS_SYSTEM_FAILURE; in convertToStatusEvent()
65 @DetectionTypeFlags int outputFlags = SystemStatusEvent.DETECTION_TYPE_NONE; in convertToStatusEvent()
[all …]
DOccupantAwarenessService.java28 import android.car.occupantawareness.SystemStatusEvent;
29 import android.car.occupantawareness.SystemStatusEvent.DetectionTypeFlags;
272 return SystemStatusEvent.DETECTION_TYPE_NONE; in getCapabilityForRole()
277 return SystemStatusEvent.DETECTION_TYPE_NONE; in getCapabilityForRole()
338 void processStatusEvent(@NonNull SystemStatusEvent statusEvent) { in processStatusEvent()
/packages/services/Car/tests/OccupantAwareness/src/com/android/car/test/
DOccupantAwarenessServiceIntegrationTest.java23 import android.car.occupantawareness.SystemStatusEvent;
52 private CompletableFuture<SystemStatusEvent> mFutureStatus;
74 .isEqualTo(SystemStatusEvent.DETECTION_TYPE_PRESENCE in testGetCapabilityForRole()
75 | SystemStatusEvent.DETECTION_TYPE_DRIVER_MONITORING); in testGetCapabilityForRole()
79 .isEqualTo(SystemStatusEvent.DETECTION_TYPE_PRESENCE); in testGetCapabilityForRole()
83 .isEqualTo(SystemStatusEvent.DETECTION_TYPE_NONE); in testGetCapabilityForRole()
87 .isEqualTo(SystemStatusEvent.DETECTION_TYPE_NONE); in testGetCapabilityForRole()
109 SystemStatusEvent status; in testSystemTransitionsToReady()
111 assertThat(status.systemStatus).isEqualTo(SystemStatusEvent.SYSTEM_STATUS_READY); in testSystemTransitionsToReady()
128 public void onSystemStateChanged(SystemStatusEvent systemStatus) { in onSystemStateChanged()
/packages/services/Car/experimental/service/src/com/android/experimentalcar/
DGazeDriverAwarenessSupplier.java26 import android.car.occupantawareness.SystemStatusEvent;
172 return (driver_capability & SystemStatusEvent.DETECTION_TYPE_DRIVER_MONITORING) > 0; in supportsGaze()
217 public void onSystemStateChanged(@NonNull SystemStatusEvent status) { in onSystemStateChanged()
/packages/services/Car/tests/carservice_unit_test/res/raw/
Dcar_hidden_apis_release_33.3.txt533 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_READY
534 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_NOT_SUPPORTED
535 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_NOT_READY
536 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_SYSTEM_FAILURE
537 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_NONE
538 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_PRESENCE
539 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_GAZE
540 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_DRIVER_MONITORING
541 android.car.occupantawareness SystemStatusEvent int systemStatus
542 android.car.occupantawareness SystemStatusEvent int detectionType
[all …]
Dcar_hidden_apis_release_33.2.txt479 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_READY
480 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_NOT_SUPPORTED
481 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_NOT_READY
482 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_SYSTEM_FAILURE
483 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_NONE
484 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_PRESENCE
485 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_GAZE
486 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_DRIVER_MONITORING
487 android.car.occupantawareness SystemStatusEvent int systemStatus
488 android.car.occupantawareness SystemStatusEvent int detectionType
[all …]
Dcar_hidden_apis_release_33.1.txt479 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_READY
480 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_NOT_SUPPORTED
481 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_NOT_READY
482 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_SYSTEM_FAILURE
483 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_NONE
484 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_PRESENCE
485 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_GAZE
486 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_DRIVER_MONITORING
487 android.car.occupantawareness SystemStatusEvent int systemStatus
488 android.car.occupantawareness SystemStatusEvent int detectionType
[all …]
Dcar_hidden_apis.txt583 android.car.occupantawareness SystemStatusEvent Parcelable.Creator<SystemStatusEvent> CREATOR
584 android.car.occupantawareness SystemStatusEvent String toString()
585 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_DRIVER_MONITORING
586 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_GAZE
587 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_NONE
588 android.car.occupantawareness SystemStatusEvent int DETECTION_TYPE_PRESENCE
589 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_NOT_READY
590 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_NOT_SUPPORTED
591 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_READY
592 android.car.occupantawareness SystemStatusEvent int SYSTEM_STATUS_SYSTEM_FAILURE
[all …]
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt54 class @hiddenOnly @hide SystemStatusEvent package android.car.occupantawareness
65 field TIRAMISU_0 Parcelable.Creator<SystemStatusEvent> CREATOR;
96 method TIRAMISU_0 void onSystemStateChanged(SystemStatusEvent systemStatus);