blob: 477acc5e71a89a938aa60c40bcae4bd5fe5a7e7c [file] [log] [blame]
Colin Cross20bc2bf2019-07-24 15:53:15 -07001// Copyright (C) 2012 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
Bob Badoure539dba2021-02-12 17:07:05 -080015package {
16 default_applicable_licenses: [
17 "frameworks_base_packages_InputDevices_license",
18 ],
19}
20
21// Added automatically by a large-scale-change
22// See: http://go/android-license-faq
23license {
24 name: "frameworks_base_packages_InputDevices_license",
25 visibility: [":__subpackages__"],
26 license_kinds: [
27 "SPDX-license-identifier-Apache-2.0",
28 ],
29 license_text: [
30 "NOTICE",
31 ],
32}
33
Colin Cross20bc2bf2019-07-24 15:53:15 -070034android_app {
35 name: "InputDevices",
Jeff Sharkeyd23b5372020-10-23 14:30:42 -060036 defaults: ["platform_app_defaults"],
Colin Cross20bc2bf2019-07-24 15:53:15 -070037
38 srcs: [
39 "**/*.java",
40 ":validate_input_devices_keymaps",
41 ],
42
43 resource_dirs: ["res"],
44
45 sdk_version: "current",
46 certificate: "platform",
47 privileged: true,
48}
49
50// Validate all key maps.
51// Produces an empty srcjar that is used as an input to InputDevices to make sure
52// the check runs for platform builds.
53genrule {
54 name: "validate_input_devices_keymaps",
55 tools: [
56 "validatekeymaps",
57 "soong_zip",
58 ],
59 srcs: ["res/raw/*.kcm"],
60 out: ["validate_input_devices_keymaps.srcjar"],
61 cmd: "$(location validatekeymaps) -q $(in) && $(location soong_zip) -o $(out)",
62}