1// Copyright (c) 2015, Motorola Mobility LLC 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are met: 6// - Redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer. 8// - Redistributions in binary form must reproduce the above copyright 9// notice, this list of conditions and the following disclaimer in the 10// documentation and/or other materials provided with the distribution. 11// - Neither the name of Motorola Mobility nor the 12// names of its contributors may be used to endorse or promote products 13// derived from this software without specific prior written permission. 14// 15// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 17// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 18// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MOTOROLA MOBILITY LLC BE LIABLE 19// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 25// DAMAGE. 26 27package { 28 default_applicable_licenses: ["external_ims_rcs_presencepolling_license"], 29} 30 31// Added automatically by a large-scale-change that took the approach of 32// 'apply every license found to every target'. While this makes sure we respect 33// every license restriction, it may not be entirely correct. 34// 35// e.g. GPL in an MIT project might only apply to the contrib/ directory. 36// 37// Please consider splitting the single license below into multiple licenses, 38// taking care not to lose any license_kind information, and overriding the 39// default license using the 'licenses: [...]' property on targets as needed. 40// 41// For unused files, consider creating a 'fileGroup' with "//visibility:private" 42// to attach the license to, and including a comment whether the files may be 43// used in the current project. 44// See: http://go/android-license-faq 45license { 46 name: "external_ims_rcs_presencepolling_license", 47 visibility: [":__subpackages__"], 48 license_kinds: [ 49 "SPDX-license-identifier-Apache-2.0", 50 "SPDX-license-identifier-BSD", 51 ], 52 license_text: [ 53 "LICENSE", 54 ], 55} 56 57java_defaults { 58 name: "presence_polling_defaults", 59 srcs: ["src/**/*.java"], 60 static_libs: ["com.android.ims.rcsmanager"], 61 certificate: "platform", 62 system_ext_specific: true, 63 platform_apis: true, 64 optimize: { 65 proguard_flags_files: ["proguard.flags"], 66 }, 67} 68 69android_app { 70 name: "PresencePolling", 71 defaults: ["presence_polling_defaults"], 72} 73 74android_test_helper_app { 75 name: "PresencePollingTestHelper", 76 defaults: ["presence_polling_defaults"], 77 test_suites: ["device-tests"], 78} 79