Android.bp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // Copyright (C) 2021 The Android Open Source Project
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package {
  15. // See: http://go/android-license-faq
  16. default_applicable_licenses: ["Android-Apache-2.0"],
  17. }
  18. // Source code used for test
  19. filegroup {
  20. name: "launcher-tests-src",
  21. srcs: [
  22. "src/**/*.java",
  23. "src/**/*.kt"
  24. ],
  25. }
  26. // Source code used for oop test helpers
  27. filegroup {
  28. name: "launcher-oop-tests-src",
  29. srcs: [
  30. "src/com/android/launcher3/ui/AbstractLauncherUiTest.java",
  31. "src/com/android/launcher3/ui/PortraitLandscapeRunner.java",
  32. "src/com/android/launcher3/util/TestUtil.java",
  33. "src/com/android/launcher3/util/Wait.java",
  34. "src/com/android/launcher3/util/WidgetUtils.java",
  35. "src/com/android/launcher3/util/rule/FailureWatcher.java",
  36. "src/com/android/launcher3/util/rule/LauncherActivityRule.java",
  37. "src/com/android/launcher3/util/rule/SamplerRule.java",
  38. "src/com/android/launcher3/util/rule/ScreenRecordRule.java",
  39. "src/com/android/launcher3/util/rule/ShellCommandRule.java",
  40. "src/com/android/launcher3/util/rule/SimpleActivityRule.java",
  41. "src/com/android/launcher3/util/rule/TestStabilityRule.java",
  42. "src/com/android/launcher3/ui/TaplTestsLauncher3.java",
  43. "src/com/android/launcher3/testcomponent/BaseTestingActivity.java",
  44. "src/com/android/launcher3/testcomponent/OtherBaseTestingActivity.java",
  45. "src/com/android/launcher3/testcomponent/CustomShortcutConfigActivity.java",
  46. "src/com/android/launcher3/testcomponent/TestCommandReceiver.java",
  47. "src/com/android/launcher3/testcomponent/TestLauncherActivity.java",
  48. ],
  49. }
  50. // Library with all the dependencies for building quickstep
  51. android_library {
  52. name: "Launcher3TestLib",
  53. srcs: [ ],
  54. resource_dirs: ["res"],
  55. static_libs: [
  56. "launcher-aosp-tapl",
  57. "androidx.test.core",
  58. "androidx.test.runner",
  59. "androidx.test.rules",
  60. "androidx.test.ext.junit",
  61. "androidx.test.espresso.core",
  62. "androidx.test.espresso.contrib",
  63. "androidx.test.espresso.intents",
  64. "androidx.test.uiautomator_uiautomator",
  65. "mockito-target-inline-minus-junit4",
  66. "launcher_log_protos_lite",
  67. "truth-prebuilt",
  68. "platform-test-rules",
  69. ],
  70. manifest: "AndroidManifest-common.xml",
  71. platform_apis: true,
  72. }
  73. android_library {
  74. name: "Launcher3TestResources",
  75. resource_dirs: ["res"],
  76. }
  77. android_test {
  78. name: "Launcher3Tests",
  79. srcs: [
  80. ":launcher-tests-src",
  81. ],
  82. static_libs: ["Launcher3TestLib"],
  83. libs: [
  84. "android.test.base",
  85. "android.test.runner",
  86. "android.test.mock",
  87. ],
  88. jni_libs: [
  89. "libdexmakerjvmtiagent",
  90. "libstaticjvmtiagent",
  91. ],
  92. use_embedded_native_libs: false,
  93. compile_multilib: "both",
  94. instrumentation_for: "Launcher3",
  95. manifest: "AndroidManifest.xml",
  96. platform_apis: true,
  97. test_config: "Launcher3Tests.xml",
  98. data: [":Launcher3"]
  99. }