packages/services/Car/tests
cpeng b5f75efab3 android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
..
AdasLocationTestApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
BugReportApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
CarCtsFakeLauncher android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
CarEvsCameraPreviewApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
CarLibTests android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
CarSecurityPermissionTest android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
CarTelemetryApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
CarVoiceServiceTriggerApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
DefaultStorageMonitoringCompanionApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
DiagnosticTools android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
EmbeddedKitchenSinkApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
GarageModeTestApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
MultiDisplaySecondaryHomeTestLauncher android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
MultiDisplayTest android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
MultiDisplayTestHelloActivity android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
NetworkPreferenceApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
OccupantAwareness android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
OemCarServiceTestApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
RailwayReferenceApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
SampleCustomInputService android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
SampleRearViewCamera android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
ThemePlayground android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
UserSwitchMonitorApp android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
UxRestrictionsSample android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
android_car_api_test android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
carservice_test android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
carservice_unit_test android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
common_utils android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
fixed_activity_mode_test android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
obd2_app android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
obd2_test android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
usb android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
vehiclehal_test android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
OWNERS android 13 from xiaosuan 2025-08-25 08:38:42 +08:00
README.md android 13 from xiaosuan 2025-08-25 08:38:42 +08:00

README.md

Car Services Tests and Test Apps

This directory contains unit tests, instrumentation tests and sample apps.

Structure

android_car_api_test/        - Car API instrumentation tests, they use the real services
CarSecurityPermissionTest/   - Car API permission tests
carservice_test/             - Car API instrumentation tests, mocks VHAL
carservice_unit_test/        - Car services instrumented unit tests
common_utils/                - Shared utility library

# The following test directories are located relative to $ANDROID_BUILD_TOP
cts/hostsidetests/car/                      - Host-driven CTS tests
cts/tests/tests/car/                        - CTS tests (prefer this over hostsidetests)
frameworks/hardware/interfaces/automotive/  - Contains `vts/` folders for tests
hardware/interfaces/automotive/             - Contains `vts/` folders for tests
test/vts-testcase/hal/automotive/           - Host-side VTS tests

Where to add tests

Add necessary tests to all the test suits, and also don't forget to add ATS/CTS/VTS. See https://source.android.com/compatibility/tests to learn more about CTS/VTS.

Try not to repeat the same test in multiple suits, as it creates unnecessary test maintenance.

Add tests using these priorities:

  1. CTS/VTS
  2. CarSecurityPermissionTest
  3. android_car_api_test - if CTS doesn't cover
  4. carservice_test - if CTS doesn't cover
  5. carservice_unit_test