Home
last modified time | relevance | path

Searched refs:OccupantAwarenessDetection (Results 1 – 20 of 20) sorted by relevance

/packages/services/Car/service/src/com/android/car/
DOccupantAwarenessUtils.java23 import android.car.occupantawareness.OccupantAwarenessDetection;
24 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()
131 static @OccupantAwarenessDetection.VehicleOccupantRole int convertToRole(int inputRole) { in convertToRole()
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()
[all …]
DOccupantAwarenessService.java26 import android.car.occupantawareness.OccupantAwarenessDetection;
27 import android.car.occupantawareness.OccupantAwarenessDetection.VehicleOccupantRole;
354 void processDetectionEvent(@NonNull OccupantAwarenessDetection detection) { in processDetectionEvent()
/packages/services/Car/tests/OccupantAwareness/src/com/android/car/test/
DOccupantAwarenessServiceIntegrationTest.java21 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()
82 OccupantAwarenessDetection.VEHICLE_OCCUPANT_ROW_2_PASSENGER_RIGHT)) 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()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DOccupantAwarenessUtilsTest.java22 import android.car.occupantawareness.OccupantAwarenessDetection;
135 .isEqualTo(OccupantAwarenessDetection.CONFIDENCE_LEVEL_MAX); in testConvertToConfidenceScore_returnsConfidenceLevelMax()
142 .isEqualTo(OccupantAwarenessDetection.CONFIDENCE_LEVEL_HIGH); in testConvertToConfidenceScore_returnsConfidenceLevelHigh()
149 .isEqualTo(OccupantAwarenessDetection.CONFIDENCE_LEVEL_LOW); in testConvertToConfidenceScore_returnsConfidenceLevelLow()
156 .isEqualTo(OccupantAwarenessDetection.CONFIDENCE_LEVEL_NONE); in testConvertToConfidenceScore_returnsDefaultConfidenceLevel()
195 .isEqualTo(OccupantAwarenessDetection.VEHICLE_OCCUPANT_NONE); in testConvertToRole_returnsNoneWithRoleInvalid()
202 .isEqualTo(OccupantAwarenessDetection.VEHICLE_OCCUPANT_NONE); in testConvertToRole_returnsNoneWithRoleUnknown()
209 .isEqualTo(OccupantAwarenessDetection.VEHICLE_OCCUPANT_ALL_OCCUPANTS); in testConvertToRole_returnsAllOccupants()
216 .isEqualTo(OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER); in testConvertToRole_returnsDriver()
223 .isEqualTo(OccupantAwarenessDetection.VEHICLE_OCCUPANT_FRONT_PASSENGER); in testConvertToRole_returnsFrontPassenger()
[all …]
DOccupantAwarenessServiceTest.java21 import android.car.occupantawareness.OccupantAwarenessDetection;
90 if (occupantRole == OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER) { in getCapabilityForRole()
95 == OccupantAwarenessDetection.VEHICLE_OCCUPANT_FRONT_PASSENGER) { in getCapabilityForRole()
245 OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER)) in testGetCapabilityForRole_returnsAggregatedDriverStatus()
254 OccupantAwarenessDetection.VEHICLE_OCCUPANT_FRONT_PASSENGER)) in testGetCapabilityForRole_returnsPresence()
261 OccupantAwarenessDetection.VEHICLE_OCCUPANT_ROW_2_PASSENGER_LEFT)) in testGetCapabilityForRole_returnsNone_withRow2PassengerLeft()
268 OccupantAwarenessDetection.VEHICLE_OCCUPANT_ROW_2_PASSENGER_CENTER)) in testGetCapabilityForRole_returnsNone_withRow2PassengerCenter()
275 OccupantAwarenessDetection.VEHICLE_OCCUPANT_ROW_2_PASSENGER_RIGHT)) in testGetCapabilityForRole_returnsNone_withRow2PassengerRight()
282 OccupantAwarenessDetection.VEHICLE_OCCUPANT_NONE)) in testGetCapabilityForRole_returnsNone_withOccupantNone()
365 public void onDetectionEvent(OccupantAwarenessDetection detection) { in registerCallbackToService()
DOccupantAwarenessUtilsVehicleRegionTest.java21 import android.car.occupantawareness.OccupantAwarenessDetection;
/packages/services/Car/car-lib/src/android/car/occupantawareness/
DOccupantAwarenessDetection.java44 public final class OccupantAwarenessDetection implements Parcelable { class
171 public OccupantAwarenessDetection( in OccupantAwarenessDetection() method in OccupantAwarenessDetection
213 public static final @NonNull Parcelable.Creator<OccupantAwarenessDetection> CREATOR =
214 new Parcelable.Creator<OccupantAwarenessDetection>() {
215 public OccupantAwarenessDetection createFromParcel(Parcel in) {
216 return new OccupantAwarenessDetection(in);
219 public OccupantAwarenessDetection[] newArray(int size) {
220 return new OccupantAwarenessDetection[size];
224 private OccupantAwarenessDetection(Parcel in) { in OccupantAwarenessDetection() method in OccupantAwarenessDetection
DOccupantAwarenessManager.java24 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()
DIOccupantAwarenessEventCallback.aidl19 import android.car.occupantawareness.OccupantAwarenessDetection;
28 void onDetectionEvent(in OccupantAwarenessDetection detectionEvent) = 1;
DDriverMonitoringDetection.java22 import android.car.occupantawareness.OccupantAwarenessDetection.ConfidenceLevel;
51 confidenceLevel = OccupantAwarenessDetection.CONFIDENCE_LEVEL_NONE; in DriverMonitoringDetection()
DGazeDetection.java87 @OccupantAwarenessDetection.ConfidenceLevel public final int confidenceLevel;
132 @OccupantAwarenessDetection.ConfidenceLevel int confidenceLevel, in GazeDetection()
DOccupantAwarenessDetection.aidl19 parcelable OccupantAwarenessDetection;
/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/
DGazeDriverAwarenessSupplierTest.java27 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()
DGazeAttentionProcessorTest.java24 import android.car.occupantawareness.OccupantAwarenessDetection;
123 OccupantAwarenessDetection.CONFIDENCE_LEVEL_HIGH, in buildGazeDetection()
/packages/services/Car/experimental/service/src/com/android/experimentalcar/
DGazeDriverAwarenessSupplier.java24 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()
/packages/services/Car/tests/carservice_unit_test/res/raw/
Dcar_hidden_apis_release_33.2.txt442 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_NONE
443 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_DRIVER
444 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_FRONT_PASSENGER
445 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_2_PASSENGER_LEFT
446 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_2_PASSENGER_CENTER
447 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_2_PASSENGER_RIGHT
448 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_3_PASSENGER_LEFT
449 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_3_PASSENGER_CENTER
450 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_3_PASSENGER_RIGHT
451 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ALL_FRONT_OCCUPANTS
[all …]
Dcar_hidden_apis_release_33.1.txt442 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_NONE
443 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_DRIVER
444 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_FRONT_PASSENGER
445 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_2_PASSENGER_LEFT
446 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_2_PASSENGER_CENTER
447 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_2_PASSENGER_RIGHT
448 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_3_PASSENGER_LEFT
449 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_3_PASSENGER_CENTER
450 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_3_PASSENGER_RIGHT
451 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ALL_FRONT_OCCUPANTS
[all …]
Dcar_hidden_apis_release_33.3.txt493 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_NONE
494 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_DRIVER
495 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_FRONT_PASSENGER
496 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_2_PASSENGER_LEFT
497 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_2_PASSENGER_CENTER
498 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_2_PASSENGER_RIGHT
499 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_3_PASSENGER_LEFT
500 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_3_PASSENGER_CENTER
501 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ROW_3_PASSENGER_RIGHT
502 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ALL_FRONT_OCCUPANTS
[all …]
Dcar_hidden_apis.txt546 android.car.occupantawareness OccupantAwarenessDetection DriverMonitoringDetection driverMonitoring…
547 android.car.occupantawareness OccupantAwarenessDetection GazeDetection gazeDetection
548 android.car.occupantawareness OccupantAwarenessDetection Parcelable.Creator<OccupantAwarenessDetect…
549 android.car.occupantawareness OccupantAwarenessDetection String toString()
550 android.car.occupantawareness OccupantAwarenessDetection boolean isPresent
551 android.car.occupantawareness OccupantAwarenessDetection int CONFIDENCE_LEVEL_HIGH
552 android.car.occupantawareness OccupantAwarenessDetection int CONFIDENCE_LEVEL_LOW
553 android.car.occupantawareness OccupantAwarenessDetection int CONFIDENCE_LEVEL_MAX
554 android.car.occupantawareness OccupantAwarenessDetection int CONFIDENCE_LEVEL_NONE
555 android.car.occupantawareness OccupantAwarenessDetection int VEHICLE_OCCUPANT_ALL_FRONT_OCCUPANTS
[all …]
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt19 class @hiddenOnly @hide OccupantAwarenessDetection package android.car.occupantawareness
42 field TIRAMISU_0 Parcelable.Creator<OccupantAwarenessDetection> CREATOR;
97 method TIRAMISU_0 void onDetectionEvent(OccupantAwarenessDetection event);