• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_library {
21    name: "pixelatoms-cpp",
22    vendor: true,
23    proto: {
24        type: "lite",
25        export_proto_headers: true,
26    },
27    srcs: [
28        "pixelatoms.proto",
29    ],
30}
31
32java_library {
33    name: "pixelatoms-java",
34    vendor: true,
35    proto: {
36        type: "lite",
37    },
38    srcs: [
39        "pixelatoms.proto",
40    ],
41    sdk_version: "current",
42}
43
44java_library_host {
45    name: "pixelatoms-java_host",
46    proto: {
47        type: "full",
48    },
49    srcs: [
50        "pixelatoms.proto",
51    ],
52}
53
54cc_library {
55  name: "libpixelstats",
56  vendor: true,
57  export_include_dirs: ["include"],
58
59  tidy_disabled_srcs: [
60    "MmMetricsReporter.cpp", // b/215238264
61    "WlcReporter.cpp", // b/215238264
62  ],
63  srcs: [
64    "BatteryCapacityReporter.cpp",
65    "BatteryEEPROMReporter.cpp",
66    "BatteryHealthReporter.cpp",
67    "ChargeStatsReporter.cpp",
68    "DropDetect.cpp",
69    "MmMetricsReporter.cpp",
70    "MitigationStatsReporter.cpp",
71    "OrientationCollector.cpp",
72    "PcaChargeStats.cpp",
73    "StatsHelper.cpp",
74    "SysfsCollector.cpp",
75    "ThermalStatsReporter.cpp",
76    "TempResidencyReporter.cpp",
77    "UeventListener.cpp",
78    "WirelessChargeStats.cpp",
79    "WlcReporter.cpp",
80  ],
81  cflags: [
82    "-Wall",
83    "-Werror",
84  ],
85  shared_libs: [
86    "android.frameworks.stats-V1-ndk",
87    "libbase",
88    "libbinder_ndk",
89    "libcutils",
90    "libhidlbase",
91    "liblog",
92    "libprotobuf-cpp-lite",
93    "libutils",
94    "libsensorndkbridge",
95    "pixelatoms-cpp",
96  ],
97  export_shared_lib_headers: [
98    "android.frameworks.stats-V1-ndk",
99    "pixelatoms-cpp",
100  ],
101  static_libs: [
102    "chre_client",
103  ],
104  header_libs: ["chre_api"],
105}
106