1java_defaults { 2 name: "services_defaults", 3 plugins: [ 4 "error_prone_android_framework", 5 ], 6} 7 8filegroup { 9 name: "services-main-sources", 10 srcs: ["java/**/*.java"], 11 path: "java", 12 visibility: ["//visibility:private"], 13} 14 15filegroup { 16 name: "services-all-sources", 17 srcs: [ 18 ":services.core-sources", 19 ":services.accessibility-sources", 20 ":services.appprediction-sources", 21 ":services.appwidget-sources", 22 ":services.autofill-sources", 23 ":services.backup-sources", 24 ":backuplib-sources", 25 ":services.companion-sources", 26 ":services.contentcapture-sources", 27 ":services.contentsuggestions-sources", 28 ":services.coverage-sources", 29 ":services.devicepolicy-sources", 30 ":services.midi-sources", 31 ":services.net-sources", 32 ":services.print-sources", 33 ":services.restrictions-sources", 34 ":services.startop.iorap-sources", 35 ":services.systemcaptions-sources", 36 ":services.usage-sources", 37 ":services.usb-sources", 38 ":services.voiceinteraction-sources", 39 ":services.wifi-sources", 40 ":service-permission-sources", 41 ":service-statsd-sources", 42 ], 43 visibility: ["//visibility:private"], 44} 45 46// merge all required services into one jar 47// ============================================================ 48java_library { 49 name: "services", 50 installable: true, 51 52 dex_preopt: { 53 app_image: true, 54 profile: "art-profile", 55 }, 56 57 srcs: [":services-main-sources"], 58 59 // The convention is to name each service module 'services.$(module_name)' 60 static_libs: [ 61 "services.core", 62 "services.accessibility", 63 "services.appprediction", 64 "services.appwidget", 65 "services.autofill", 66 "services.backup", 67 "services.companion", 68 "services.contentcapture", 69 "services.contentsuggestions", 70 "services.coverage", 71 "services.devicepolicy", 72 "services.midi", 73 "services.net", 74 "services.people", 75 "services.print", 76 "services.restrictions", 77 "services.startop", 78 "services.systemcaptions", 79 "services.usage", 80 "services.usb", 81 "services.voiceinteraction", 82 "services.wifi", 83 "service-blobstore", 84 "service-jobscheduler", 85 "android.hidl.base-V1.0-java", 86 ], 87 88 libs: [ 89 "android.hidl.manager-V1.0-java", 90 "framework-tethering.stubs.module_lib", 91 ], 92 93 // Uncomment to enable output of certain warnings (deprecated, unchecked) 94 //javacflags: ["-Xlint"], 95} 96 97// native library 98// ============================================================= 99 100cc_library_shared { 101 name: "libandroid_servers", 102 defaults: ["libservices.core-libs"], 103 whole_static_libs: ["libservices.core"], 104} 105 106platform_compat_config { 107 name: "services-platform-compat-config", 108 src: ":services", 109} 110 111filegroup { 112 name: "art-profile", 113 srcs: ["art-profile"], 114} 115 116// API stub 117// ============================================================= 118 119droidstubs { 120 name: "services-stubs.sources", 121 srcs: [":services-all-sources"], 122 installable: false, 123 args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.SYSTEM_SERVER\\)" + 124 " --hide-annotation android.annotation.Hide" + 125 " --hide InternalClasses" + // com.android.* classes are okay in this interface 126 // TODO: remove the --hide options below 127 " --hide-package com.google.android.startop.iorap" + 128 " --hide ReferencesHidden" + 129 " --hide DeprecationMismatch" + 130 " --hide HiddenTypedefConstant", 131 visibility: ["//visibility:private"], 132 filter_packages: ["com.android."], 133 check_api: { 134 current: { 135 api_file: "api/current.txt", 136 removed_api_file: "api/removed.txt", 137 }, 138 last_released: { 139 api_file: ":android.api.system-server.latest", 140 removed_api_file: ":removed.api.system-server.latest", 141 baseline_file: ":system-server-api-incompatibilities-with-last-released" 142 }, 143 api_lint: { 144 enabled: true, 145 new_since: ":android.api.system-server.latest", 146 baseline_file: "api/lint-baseline.txt", 147 }, 148 }, 149 dist: { 150 targets: ["sdk", "win_sdk"], 151 dir: "apistubs/android/system-server/api", 152 dest: "android.txt", 153 }, 154} 155 156java_library { 157 name: "android_system_server_stubs_current", 158 srcs: [":services-stubs.sources"], 159 installable: false, 160 static_libs: ["android_module_lib_stubs_current"], 161} 162