Android.bp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. // A large-scale-change added 'default_applicable_licenses' to import
  17. // all of the 'license_kinds' from "packages_apps_Launcher3_license"
  18. // to get the below license kinds:
  19. // SPDX-license-identifier-Apache-2.0
  20. default_applicable_licenses: ["packages_apps_Launcher3_license"],
  21. }
  22. // Source code used for test
  23. filegroup {
  24. name: "launcher-tests-src",
  25. srcs: ["src/**/*.java"],
  26. }
  27. // Source code used for oop test helpers
  28. filegroup {
  29. name: "launcher-oop-tests-src",
  30. srcs: [
  31. "src/com/android/launcher3/ui/AbstractLauncherUiTest.java",
  32. "src/com/android/launcher3/ui/PortraitLandscapeRunner.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/ScreenRecordRule.java",
  38. "src/com/android/launcher3/util/rule/ShellCommandRule.java",
  39. "src/com/android/launcher3/util/rule/SimpleActivityRule.java",
  40. "src/com/android/launcher3/util/rule/TestStabilityRule.java",
  41. "src/com/android/launcher3/ui/TaplTestsLauncher3.java",
  42. "src/com/android/launcher3/testcomponent/BaseTestingActivity.java",
  43. "src/com/android/launcher3/testcomponent/CustomShortcutConfigActivity.java",
  44. "src/com/android/launcher3/testcomponent/TestCommandReceiver.java",
  45. "src/com/android/launcher3/testcomponent/TestLauncherActivity.java",
  46. ],
  47. }
  48. // Library with all the dependencies for building quickstep
  49. android_library {
  50. name: "Launcher3TestLib",
  51. srcs: [ ],
  52. resource_dirs: ["res"],
  53. static_libs: [
  54. "launcher-aosp-tapl",
  55. "androidx.test.core",
  56. "androidx.test.runner",
  57. "androidx.test.rules",
  58. "androidx.test.ext.junit",
  59. "androidx.test.espresso.core",
  60. "androidx.test.espresso.contrib",
  61. "androidx.test.espresso.intents",
  62. "androidx.test.uiautomator_uiautomator",
  63. "mockito-target-inline-minus-junit4",
  64. "launcher_log_protos_lite",
  65. "truth-prebuilt"
  66. ],
  67. manifest: "AndroidManifest-common.xml",
  68. platform_apis: true,
  69. }
  70. android_test {
  71. name: "Launcher3Tests",
  72. srcs: [
  73. ":launcher-tests-src",
  74. ],
  75. static_libs: ["Launcher3TestLib"],
  76. libs: [
  77. "android.test.base",
  78. "android.test.runner",
  79. "android.test.mock",
  80. ],
  81. jni_libs: [
  82. "libdexmakerjvmtiagent",
  83. "libstaticjvmtiagent",
  84. ],
  85. use_embedded_native_libs: false,
  86. compile_multilib: "both",
  87. instrumentation_for: "Launcher3",
  88. manifest: "AndroidManifest.xml",
  89. platform_apis: true,
  90. test_config: "Launcher3Tests.xml",
  91. data: [":Launcher3"]
  92. }