tree: 505e7db9a2035282483d4e97288c29704ef63894 [path history] [tgz]
  1. AdasLocationTestApp/
  2. android_car_api_test/
  3. BugReportApp/
  4. CarCtsFakeLauncher/
  5. CarEvsCameraPreviewApp/
  6. CarEvsMultiCameraPreviewApp/
  7. CarFrameworkPackageStubsTest/
  8. CarLibTests/
  9. carservice_test/
  10. carservice_unit_test/
  11. CarTelemetryApp/
  12. CarTestDpc/
  13. CarVoiceServiceTriggerApp/
  14. common_utils/
  15. ConcurrentHotwordDetector/
  16. ConcurrentHotwordDetectorOne/
  17. DefaultStorageMonitoringCompanionApp/
  18. DiagnosticTools/
  19. EmbeddedKitchenSinkApp/
  20. fixed_activity_mode_test/
  21. GarageModeTestApp/
  22. KitchenSinkServerlessRemoteTaskClientRRO/
  23. MultiDisplaySecondaryHomeTestLauncher/
  24. MultiDisplayTest/
  25. MultiDisplayTestHelloActivity/
  26. NetworkPreferenceApp/
  27. obd2_app/
  28. obd2_test/
  29. OccupantAwareness/
  30. OemCarServiceTestApp/
  31. RailwayReferenceApp/
  32. SampleCustomInputService/
  33. SampleRearViewCamera/
  34. SampleVoiceAssistInputService/
  35. ThemePlayground/
  36. usb/
  37. UserSwitchMonitorApp/
  38. UxRestrictionsSample/
  39. vehiclehal_test/
  40. README.md
tests/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