/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | OccupantAwarenessUtils.java | 22 import android.car.occupantawareness.OccupantAwarenessDetection; 23 import android.car.occupantawareness.OccupantAwarenessDetection.ConfidenceLevel; 97 return OccupantAwarenessDetection.CONFIDENCE_LEVEL_MAX; in convertToConfidenceScore() 100 return OccupantAwarenessDetection.CONFIDENCE_LEVEL_HIGH; in convertToConfidenceScore() 103 return OccupantAwarenessDetection.CONFIDENCE_LEVEL_LOW; in convertToConfidenceScore() 107 return OccupantAwarenessDetection.CONFIDENCE_LEVEL_NONE; in convertToConfidenceScore() 134 return OccupantAwarenessDetection.VEHICLE_OCCUPANT_NONE; in convertToRole() 136 return OccupantAwarenessDetection.VEHICLE_OCCUPANT_ALL_OCCUPANTS; in convertToRole() 139 int outputRole = OccupantAwarenessDetection.VEHICLE_OCCUPANT_NONE; in convertToRole() 213 static OccupantAwarenessDetection convertToDetectionEvent( in convertToDetectionEvent() [all …]
|
H A D | OccupantAwarenessService.java | 22 import android.car.occupantawareness.OccupantAwarenessDetection; 23 import android.car.occupantawareness.OccupantAwarenessDetection.VehicleOccupantRole; 340 void processDetectionEvent(@NonNull OccupantAwarenessDetection detection) { in processDetectionEvent()
|
/aosp12/packages/services/Car/tests/OccupantAwareness/src/com/android/car/test/ |
H A D | OccupantAwarenessServiceIntegrationTest.java | 21 import android.car.occupantawareness.OccupantAwarenessDetection; 53 private CompletableFuture<OccupantAwarenessDetection> mFutureDriverDetection; 54 private CompletableFuture<OccupantAwarenessDetection> mFuturePassengerDetection; 73 OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER)) in testGetCapabilityForRole() 78 OccupantAwarenessDetection.VEHICLE_OCCUPANT_FRONT_PASSENGER)) in testGetCapabilityForRole() 86 OccupantAwarenessDetection.VEHICLE_OCCUPANT_NONE)) in testGetCapabilityForRole() 95 OccupantAwarenessDetection driverDetection = in testDetectionEvents() 97 OccupantAwarenessDetection passengerDetection = in testDetectionEvents() 116 public void onDetectionEvent(OccupantAwarenessDetection event) { in onDetectionEvent() 118 case OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER: in onDetectionEvent() [all …]
|
H A D | OccupantAwarenessUtilsTest.java | 20 import android.car.occupantawareness.OccupantAwarenessDetection; 75 .isEqualTo(OccupantAwarenessDetection.CONFIDENCE_LEVEL_MAX); in test_convertToConfidenceScore() 81 .isEqualTo(OccupantAwarenessDetection.CONFIDENCE_LEVEL_HIGH); in test_convertToConfidenceScore() 86 .isEqualTo(OccupantAwarenessDetection.CONFIDENCE_LEVEL_LOW); in test_convertToConfidenceScore() 92 .isEqualTo(OccupantAwarenessDetection.CONFIDENCE_LEVEL_NONE); in test_convertToConfidenceScore() 108 .isEqualTo(OccupantAwarenessDetection.VEHICLE_OCCUPANT_NONE); in test_convertToRole() 113 .isEqualTo(OccupantAwarenessDetection.VEHICLE_OCCUPANT_NONE); in test_convertToRole() 123 OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER in test_convertToRole() 124 | OccupantAwarenessDetection.VEHICLE_OCCUPANT_FRONT_PASSENGER in test_convertToRole() 125 | OccupantAwarenessDetection in test_convertToRole() [all …]
|
H A D | OccupantAwarenessSystemServiceTest.java | 21 import android.car.occupantawareness.OccupantAwarenessDetection; 95 if (occupantRole == OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER) { in getCapabilityForRole() 100 == OccupantAwarenessDetection.VEHICLE_OCCUPANT_FRONT_PASSENGER) { in getCapabilityForRole() 116 public void fireDetectionEvent(OccupantAwarenessDetection detectionEvent) in fireDetectionEvent() 143 private CompletableFuture<OccupantAwarenessDetection> mFutureDetection; 242 OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER)) in test_getCapabilityForRole() 250 OccupantAwarenessDetection.VEHICLE_OCCUPANT_FRONT_PASSENGER)) in test_getCapabilityForRole() 255 OccupantAwarenessDetection.VEHICLE_OCCUPANT_ROW_2_PASSENGER_RIGHT)) in test_getCapabilityForRole() 260 OccupantAwarenessDetection.VEHICLE_OCCUPANT_NONE)) in test_getCapabilityForRole() 298 public void onDetectionEvent(OccupantAwarenessDetection detectionEvent) { in registerCallbackToService()
|
/aosp12/packages/services/Car/car-lib/src/android/car/occupantawareness/ |
H A D | OccupantAwarenessDetection.java | 40 public final class OccupantAwarenessDetection implements Parcelable { class 167 public OccupantAwarenessDetection( in OccupantAwarenessDetection() method in OccupantAwarenessDetection 208 public static final @NonNull Parcelable.Creator<OccupantAwarenessDetection> CREATOR = 209 new Parcelable.Creator<OccupantAwarenessDetection>() { 210 public OccupantAwarenessDetection createFromParcel(Parcel in) { 211 return new OccupantAwarenessDetection(in); 214 public OccupantAwarenessDetection[] newArray(int size) { 215 return new OccupantAwarenessDetection[size]; 219 private OccupantAwarenessDetection(Parcel in) { in OccupantAwarenessDetection() method in OccupantAwarenessDetection
|
H A D | OccupantAwarenessManager.java | 24 import android.car.occupantawareness.OccupantAwarenessDetection.VehicleOccupantRole; 123 public abstract void onDetectionEvent(@NonNull OccupantAwarenessDetection event); in onDetectionEvent() 209 public void onDetectionEvent(OccupantAwarenessDetection event) { in onDetectionEvent() 254 private void handleDetectionEvent(OccupantAwarenessDetection detectionEvent) { in handleDetectionEvent() 267 private void dispatchDetectionEventToClient(OccupantAwarenessDetection detectionEvent) { in dispatchDetectionEventToClient() 304 mgr.dispatchDetectionEventToClient((OccupantAwarenessDetection) msg.obj); in handleMessage()
|
H A D | IOccupantAwarenessEventCallback.aidl | 19 import android.car.occupantawareness.OccupantAwarenessDetection; 28 void onDetectionEvent(in OccupantAwarenessDetection detectionEvent) = 1;
|
H A D | DriverMonitoringDetection.java | 20 import android.car.occupantawareness.OccupantAwarenessDetection.ConfidenceLevel; 47 confidenceLevel = OccupantAwarenessDetection.CONFIDENCE_LEVEL_NONE; in DriverMonitoringDetection()
|
H A D | GazeDetection.java | 83 @OccupantAwarenessDetection.ConfidenceLevel public final int confidenceLevel; 128 @OccupantAwarenessDetection.ConfidenceLevel int confidenceLevel, in GazeDetection()
|
H A D | OccupantAwarenessDetection.aidl | 19 parcelable OccupantAwarenessDetection;
|
/aosp12/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/ |
H A D | GazeDriverAwarenessSupplierTest.java | 27 import android.car.occupantawareness.OccupantAwarenessDetection; 121 OccupantAwarenessDetection detection = in testprocessDetectionEvent_neverExceedsOne() 147 OccupantAwarenessDetection detection = in testprocessDetectionEvent_neverFallsBelowZero() 161 private OccupantAwarenessDetection buildGazeDetection( in buildGazeDetection() 165 OccupantAwarenessDetection.CONFIDENCE_LEVEL_HIGH, in buildGazeDetection() 173 return new OccupantAwarenessDetection( in buildGazeDetection() 174 OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER, timestamp, true, gaze, null); in buildGazeDetection() 178 private OccupantAwarenessDetection buildEmptyDetection(long timestamp) { in buildEmptyDetection() 179 return new OccupantAwarenessDetection( in buildEmptyDetection() 180 OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER, timestamp, true, null, null); in buildEmptyDetection()
|
H A D | GazeAttentionProcessorTest.java | 24 import android.car.occupantawareness.OccupantAwarenessDetection; 123 OccupantAwarenessDetection.CONFIDENCE_LEVEL_HIGH, in buildGazeDetection()
|
/aosp12/packages/services/Car/experimental/service/src/com/android/experimentalcar/ |
H A D | GazeDriverAwarenessSupplier.java | 24 import android.car.occupantawareness.OccupantAwarenessDetection; 168 OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER); in supportsGaze() 188 void processDetectionEvent(@NonNull OccupantAwarenessDetection event) { in processDetectionEvent() 189 if (event.role == OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER in processDetectionEvent() 223 public void onDetectionEvent(@NonNull OccupantAwarenessDetection event) { in onDetectionEvent()
|