Adds Occupant Awareness System APIs via a new service and corresponding manager.
The OAS APIs include detection data for:
(1) Presence detection (does the person exist at each seat location).
(2) Gaze detection (where is the person looking and for how long).
(3) Driver monitoring (is the driver looking on-road and for how long).
This change includes the new API surface. However, the service is not yet connected via HAL to the underlying detection graph. That functionality will come in a subsequent change.
Bug: 142383440
Test: Unit tests
Change-Id: I0acf0e5309483706eae49c1daef083e86c1deb02
diff --git a/tests/OccupantAwareness/AndroidManifest.xml b/tests/OccupantAwareness/AndroidManifest.xml
new file mode 100644
index 0000000..72085ed
--- /dev/null
+++ b/tests/OccupantAwareness/AndroidManifest.xml
@@ -0,0 +1,32 @@
+<!--
+ ~ Copyright (C) 2020 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.car.tests">
+
+ <!-- Needed for OAS testing -->
+ <uses-permission android:name="android.car.permission.READ_CAR_OCCUPANT_AWARENESS_STATE" />
+ <uses-permission android:name="android.car.permission.CONTROL_CAR_OCCUPANT_AWARENESS_SYSTEM" />
+
+ <application
+ android:debuggable="true">
+ <uses-library android:name="android.test.runner" />
+ </application>
+
+ <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
+ android:targetPackage="com.android.car.tests"
+ android:label="Occupant Awareness System Tests" />
+</manifest>