Implement action to update ss test ref images This change implements the `UpdateReferenceImagesAction` and the backend logic required to run screenshot tests and display the results in the UI. This action triggers the build system to generate and display new screenshots in the UI. The action's workflow is as follows: 1. Identifies all `@PreviewTest` functions within the current context. 2. Runs the screenshot test task (e.g., `validateDebugScreenshotTest`) using a new `ScreenshotTestRunner`. 3. Upon task completion, a `TestResultParser` parses the JUnit XML output to extract the paths of newly generated images. 4. These image paths are passed to the `UpdateReferenceImagesDialog` to be displayed to the user. 5. 'ScreenshotTestBuildSystemAdapter' interface decouples the core features from a specific build system, making it extensible Bug: 439995792 Test: Existing. Tested in local env Change-Id: Idd09cabf0684444abc4da9ec277200a45be573c4 
18 files changed
tree: 9f60acfa06b75ee03b5649b2c5fe3586beb1473b
  1. .idea/
  2. adt-testutils/
  3. adt-ui/
  4. adt-ui-compose/
  5. adt-ui-model/
  6. analytics/
  7. android/
  8. android-adb/
  9. android-adb-ui/
  10. android-common/
  11. android-kotlin/
  12. android-lang/
  13. android-lang-databinding/
  14. android-lint/
  15. android-material/
  16. android-navigator/
  17. android-npw/
  18. android-plugin/
  19. android-templates/
  20. android-test-framework/
  21. android-transport/
  22. apkanalyzer/
  23. app-inspection/
  24. app-quality-insights/
  25. artwork/
  26. artwork-compose/
  27. as-driver/
  28. assistant/
  29. aswb/
  30. avd/
  31. backup/
  32. bleak/
  33. bleak-config/
  34. build-attribution/
  35. build-common/
  36. codenavigation/
  37. completion/
  38. compose-designer/
  39. compose-ide-plugin/
  40. connection-assistant/
  41. dagger/
  42. databinding/
  43. debuggers/
  44. deploy/
  45. design-plugin/
  46. designer/
  47. designer-perf-tests/
  48. device-explorer/
  49. device-explorer-common/
  50. device-explorer-files/
  51. device-explorer-monitor/
  52. device-manager-v2/
  53. execution/
  54. glance-designer/
  55. glasses-pairing/
  56. gmaven/
  57. gmd-code-completion/
  58. gradle-declarative-lang/
  59. gradle-declarative-lang-flags/
  60. gradle-declarative-lang-ide/
  61. gradle-declarative-lang-sync/
  62. gradle-dsl/
  63. gradle-dsl-declarative/
  64. gradle-dsl-flags/
  65. gradle-dsl-groovy/
  66. gradle-dsl-kotlin/
  67. gradle-dsl-toml/
  68. gradle-tooling/
  69. ide-perf-tests/
  70. ij-debugger-tests/
  71. inspectors-common/
  72. intellij-integration/
  73. intellij.android.avdmanager.tests/
  74. intellij.android.compose-common/
  75. intellij.android.device/
  76. intellij.android.device.tests/
  77. jps-build/
  78. jps-model/
  79. layout-inspector/
  80. layout-ui/
  81. layoutlib/
  82. layoutlib-loader/
  83. lint/
  84. logcat/
  85. manual-tests/
  86. memory-usage/
  87. ml-api/
  88. mlkit/
  89. native/
  90. native-symbolizer/
  91. nav/
  92. observable/
  93. observable-demo/
  94. observable-ui/
  95. old-agp-tests/
  96. platform-performance-testing/
  97. preview-designer/
  98. preview-elements/
  99. preview-fast-compile/
  100. profilers/
  101. profilers-android/
  102. profilers-atrace/
  103. profilers-integration/
  104. profilers-ui/
  105. project-system/
  106. project-system-apk/
  107. project-system-gradle/
  108. project-system-gradle-models/
  109. project-system-gradle-psd/
  110. project-system-gradle-repository-search/
  111. project-system-gradle-sync/
  112. project-system-gradle-sync-test-utils/
  113. project-system-gradle-upgrade/
  114. project-system-integration-tests/
  115. render-resources/
  116. rendering/
  117. room/
  118. rt/
  119. samples-browser/
  120. screenshot-testing/
  121. sdk-updates/
  122. searchable-options/
  123. server-flags/
  124. settings-sync/
  125. smali/
  126. streaming/
  127. studio/
  128. studio-labs/
  129. studio-updater/
  130. swingp/
  131. sync-memory-tests/
  132. sync-perf-tests/
  133. testartifacts/
  134. threading-checker/
  135. transport-database/
  136. ultimate/
  137. utp/
  138. visual-lint/
  139. wear-designer/
  140. wear-dwf/
  141. wear-pairing/
  142. wear-preview-elements/
  143. wear-whs/
  144. whats-new-assistant/
  145. wizard/
  146. wizard-model/
  147. .editorconfig
  148. .gitallowed
  149. .gitattributes
  150. .gitignore
  151. get_aosp_changes.sh
  152. icon-robots.txt
  153. intellij.yaml
  154. PREUPLOAD.cfg
  155. README.md
README.md