tree: 7c72a29119a9b4794b74abde2da42df5cff79089
  1. AdasLocationTestApp/
  2. android_car_api_test/
  3. BugReportApp/
  4. CarBuiltinLibUnitTest/
  5. CarCtsFakeLauncher/
  6. CarEvsCameraPreviewApp/
  7. CarEvsMultiCameraPreviewApp/
  8. CarFrameworkPackageStubsTest/
  9. CarLibHostUnitTest/
  10. CarLibTests/
  11. CarLibUnitTest/
  12. carservice_unit_test/
  13. CarServiceTest/
  14. CarTelemetryApp/
  15. CarTestDpc/
  16. CarTestLibUnitTest/
  17. CarVoiceServiceTriggerApp/
  18. CarWatchdogLibUnitTest/
  19. common_utils/
  20. ConcurrentHotwordDetector/
  21. ConcurrentHotwordDetectorOne/
  22. CustomizationTool/
  23. DefaultStorageMonitoringCompanionApp/
  24. DiagnosticTools/
  25. EmbeddedKitchenSinkApp/
  26. fixed_activity_mode_test/
  27. GarageModeTestApp/
  28. KitchenSinkServerlessRemoteTaskClientRRO/
  29. LaunchOnPrivateDisplayTestApp/
  30. MultiDisplaySecondaryHomeTestLauncher/
  31. MultiDisplayTest/
  32. MultiDisplayTestHelloActivity/
  33. NetworkPreferenceApp/
  34. obd2_app/
  35. obd2_test/
  36. OccupantAwareness/
  37. OemCarServiceTestApp/
  38. RailwayReferenceApp/
  39. SampleCustomInputService/
  40. SampleRearViewCamera/
  41. SampleVoiceAssistInputService/
  42. ThemePlayground/
  43. usb/
  44. UserSwitchMonitorApp/
  45. UxRestrictionsSample/
  46. vehiclehal_test/
  47. VendorServiceReferenceApp/
  48. 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