Bob Badour | a3aa3db | 2021-02-26 02:54:21 -0800 | [diff] [blame^] | 1 | // *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE |
| 2 | // CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE |
| 3 | // DEPENDING ON IT IN YOUR PROJECT. *** |
| 4 | package { |
| 5 | // See: http://go/android-license-faq |
| 6 | // A large-scale-change added 'default_applicable_licenses' to import |
| 7 | // all of the 'license_kinds' from "prebuilts_sdk_license" |
| 8 | // to get the below license kinds: |
| 9 | // SPDX-license-identifier-Apache-2.0 |
| 10 | // SPDX-license-identifier-BSD |
| 11 | // SPDX-license-identifier-CC0-1.0 |
| 12 | // SPDX-license-identifier-OFL (by exception only) |
| 13 | // SPDX-license-identifier-Unicode-DFS |
| 14 | // legacy_unencumbered |
| 15 | default_applicable_licenses: ["prebuilts_sdk_license"], |
| 16 | } |
| 17 | |
Colin Cross | 0893401 | 2019-04-17 11:12:50 -0700 | [diff] [blame] | 18 | java_sdk_library_import { |
| 19 | name: "android.test.base", |
Paul Duffin | 5df5944 | 2020-01-31 18:20:23 +0000 | [diff] [blame] | 20 | public: { |
| 21 | jars: ["public/android.test.base.jar"], |
| 22 | sdk_version: "current", |
| 23 | }, |
| 24 | system: { |
| 25 | jars: ["system/android.test.base.jar"], |
| 26 | sdk_version: "system_current", |
| 27 | }, |
| 28 | test: { |
| 29 | jars: ["test/android.test.base.jar"], |
| 30 | sdk_version: "test_current", |
| 31 | }, |
Colin Cross | 85c6546 | 2019-04-16 13:22:19 -0700 | [diff] [blame] | 32 | } |
| 33 | |
Colin Cross | 0893401 | 2019-04-17 11:12:50 -0700 | [diff] [blame] | 34 | java_sdk_library_import { |
| 35 | name: "android.test.runner", |
Paul Duffin | 5df5944 | 2020-01-31 18:20:23 +0000 | [diff] [blame] | 36 | public: { |
| 37 | jars: ["public/android.test.runner.jar"], |
| 38 | sdk_version: "current", |
| 39 | }, |
| 40 | system: { |
| 41 | jars: ["system/android.test.runner.jar"], |
| 42 | sdk_version: "system_current", |
| 43 | }, |
| 44 | test: { |
| 45 | jars: ["test/android.test.runner.jar"], |
| 46 | sdk_version: "test_current", |
| 47 | }, |
Paul Duffin | 0ce9f44 | 2020-01-21 18:34:50 +0000 | [diff] [blame] | 48 | libs: [ |
| 49 | "android.test.base", |
| 50 | "android.test.mock", |
| 51 | ], |
Colin Cross | 85c6546 | 2019-04-16 13:22:19 -0700 | [diff] [blame] | 52 | } |
| 53 | |
Colin Cross | 0893401 | 2019-04-17 11:12:50 -0700 | [diff] [blame] | 54 | java_sdk_library_import { |
| 55 | name: "android.test.mock", |
Paul Duffin | 5df5944 | 2020-01-31 18:20:23 +0000 | [diff] [blame] | 56 | public: { |
| 57 | jars: ["public/android.test.mock.jar"], |
| 58 | sdk_version: "current", |
| 59 | }, |
| 60 | system: { |
| 61 | jars: ["system/android.test.mock.jar"], |
| 62 | sdk_version: "system_current", |
| 63 | }, |
| 64 | test: { |
| 65 | jars: ["test/android.test.mock.jar"], |
| 66 | sdk_version: "test_current", |
| 67 | }, |
Colin Cross | 85c6546 | 2019-04-16 13:22:19 -0700 | [diff] [blame] | 68 | } |
| 69 | |
Colin Cross | 0893401 | 2019-04-17 11:12:50 -0700 | [diff] [blame] | 70 | java_sdk_library_import { |
Paul Duffin | fe63c72 | 2020-02-05 10:36:20 +0000 | [diff] [blame] | 71 | name: "com.android.future.usb.accessory", |
| 72 | public: { |
| 73 | jars: ["public/com.android.future.usb.accessory.jar"], |
| 74 | sdk_version: "current", |
| 75 | }, |
| 76 | system: { |
| 77 | jars: ["system/com.android.future.usb.accessory.jar"], |
| 78 | sdk_version: "system_current", |
| 79 | }, |
| 80 | test: { |
| 81 | jars: ["test/com.android.future.usb.accessory.jar"], |
| 82 | sdk_version: "test_current", |
| 83 | }, |
| 84 | } |
| 85 | |
| 86 | java_sdk_library_import { |
| 87 | name: "com.android.location.provider", |
| 88 | public: { |
| 89 | jars: ["public/com.android.location.provider.jar"], |
| 90 | sdk_version: "current", |
| 91 | }, |
| 92 | system: { |
| 93 | jars: ["system/com.android.location.provider.jar"], |
| 94 | sdk_version: "system_current", |
| 95 | }, |
| 96 | test: { |
| 97 | jars: ["test/com.android.location.provider.jar"], |
| 98 | sdk_version: "test_current", |
| 99 | }, |
| 100 | } |
| 101 | |
| 102 | java_sdk_library_import { |
| 103 | name: "com.android.mediadrm.signer", |
| 104 | public: { |
| 105 | jars: ["public/com.android.mediadrm.signer.jar"], |
| 106 | sdk_version: "current", |
| 107 | }, |
| 108 | system: { |
| 109 | jars: ["system/com.android.mediadrm.signer.jar"], |
| 110 | sdk_version: "system_current", |
| 111 | }, |
| 112 | test: { |
| 113 | jars: ["test/com.android.mediadrm.signer.jar"], |
| 114 | sdk_version: "test_current", |
| 115 | }, |
| 116 | } |
| 117 | |
| 118 | java_sdk_library_import { |
| 119 | name: "com.android.media.remotedisplay", |
| 120 | public: { |
| 121 | jars: ["public/com.android.media.remotedisplay.jar"], |
| 122 | sdk_version: "current", |
| 123 | }, |
| 124 | system: { |
| 125 | jars: ["system/com.android.media.remotedisplay.jar"], |
| 126 | sdk_version: "system_current", |
| 127 | }, |
| 128 | test: { |
| 129 | jars: ["test/com.android.media.remotedisplay.jar"], |
| 130 | sdk_version: "test_current", |
| 131 | }, |
| 132 | } |
| 133 | |
| 134 | java_sdk_library_import { |
| 135 | name: "com.android.media.tv.remoteprovider", |
| 136 | public: { |
| 137 | jars: ["public/com.android.media.tv.remoteprovider.jar"], |
| 138 | sdk_version: "current", |
| 139 | }, |
| 140 | system: { |
| 141 | jars: ["system/com.android.media.tv.remoteprovider.jar"], |
| 142 | sdk_version: "system_current", |
| 143 | }, |
| 144 | test: { |
| 145 | jars: ["test/com.android.media.tv.remoteprovider.jar"], |
| 146 | sdk_version: "test_current", |
| 147 | }, |
| 148 | } |
| 149 | |
| 150 | java_sdk_library_import { |
| 151 | name: "com.android.nfc_extras", |
| 152 | public: { |
| 153 | jars: ["public/com.android.nfc_extras.jar"], |
| 154 | sdk_version: "current", |
| 155 | }, |
| 156 | system: { |
| 157 | jars: ["system/com.android.nfc_extras.jar"], |
| 158 | sdk_version: "system_current", |
| 159 | }, |
| 160 | test: { |
| 161 | jars: ["test/com.android.nfc_extras.jar"], |
| 162 | sdk_version: "test_current", |
| 163 | }, |
| 164 | } |
| 165 | |
| 166 | java_sdk_library_import { |
| 167 | name: "javax.obex", |
| 168 | public: { |
| 169 | jars: ["public/javax.obex.jar"], |
| 170 | sdk_version: "current", |
| 171 | }, |
| 172 | system: { |
| 173 | jars: ["system/javax.obex.jar"], |
| 174 | sdk_version: "system_current", |
| 175 | }, |
| 176 | test: { |
| 177 | jars: ["test/javax.obex.jar"], |
| 178 | sdk_version: "test_current", |
| 179 | }, |
| 180 | } |
| 181 | |
| 182 | java_sdk_library_import { |
Colin Cross | 0893401 | 2019-04-17 11:12:50 -0700 | [diff] [blame] | 183 | name: "org.apache.http.legacy", |
Paul Duffin | 5df5944 | 2020-01-31 18:20:23 +0000 | [diff] [blame] | 184 | public: { |
| 185 | jars: ["public/org.apache.http.legacy.jar"], |
| 186 | sdk_version: "current", |
| 187 | }, |
| 188 | system: { |
| 189 | jars: ["system/org.apache.http.legacy.jar"], |
| 190 | sdk_version: "system_current", |
| 191 | }, |
| 192 | test: { |
| 193 | jars: ["test/org.apache.http.legacy.jar"], |
| 194 | sdk_version: "test_current", |
| 195 | }, |
Colin Cross | 85c6546 | 2019-04-16 13:22:19 -0700 | [diff] [blame] | 196 | } |
| 197 | |
Colin Cross | 85c6546 | 2019-04-16 13:22:19 -0700 | [diff] [blame] | 198 | java_import { |
| 199 | name: "android-support-multidex-instrumentation", |
| 200 | jars: ["multidex/instrumentation/android-support-multidex-instrumentation.jar"], |
| 201 | sdk_version: "current", |
| 202 | } |
| 203 | |
| 204 | java_import { |
| 205 | name: "android-support-multidex", |
| 206 | jars: ["multidex/library/android-support-multidex.jar"], |
| 207 | sdk_version: "current", |
| 208 | } |
Felka Chang | 5be9f97 | 2020-04-15 19:58:06 +0800 | [diff] [blame] | 209 | |
| 210 | // To provide apexer_test_host_tool the current android jar file to execute the host test |
| 211 | filegroup { |
| 212 | name: "current_android_jar", |
| 213 | srcs: [ |
| 214 | "public/android.jar", |
| 215 | ], |
| 216 | visibility: [ |
| 217 | "//system/apex/apexer", |
| 218 | ], |
| 219 | } |