• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2018 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: "libdisppower-pixel",
22    proprietary: true,
23    srcs: [
24        "disp-power/DisplayLowPower.cpp",
25        "disp-power/InteractionHandler.cpp",
26    ],
27    shared_libs: [
28        "libbase",
29        "libcutils",
30        "liblog",
31        "libperfmgr",
32        "libutils",
33    ],
34}
35
36cc_library {
37    name: "libadaptivecpu",
38    proprietary: true,
39    vendor: true,
40    srcs: [
41        "adaptivecpu/AdaptiveCpu.cpp",
42        "adaptivecpu/AdaptiveCpuConfig.cpp",
43        "adaptivecpu/AdaptiveCpuStats.cpp",
44        "adaptivecpu/CpuFrequencyReader.cpp",
45        "adaptivecpu/CpuLoadReaderProcStat.cpp",
46        "adaptivecpu/CpuLoadReaderSysDevices.cpp",
47        "adaptivecpu/Device.cpp",
48        "adaptivecpu/KernelCpuFeatureReader.cpp",
49        "adaptivecpu/Model.cpp",
50        "adaptivecpu/RealFilesystem.cpp",
51        "adaptivecpu/ThrottleDecision.cpp",
52        "adaptivecpu/TimeSource.cpp",
53        "adaptivecpu/WorkDurationProcessor.cpp",
54    ],
55    shared_libs: [
56        "android.hardware.power-V3-ndk",
57        "libbase",
58        "liblog",
59        "libperfmgr",
60        "libutils",
61        "libcutils",
62    ],
63}
64
65cc_test {
66    name: "libadaptivecpu_test",
67    proprietary: true,
68    vendor: true,
69    srcs: [
70        "adaptivecpu/tests/AdaptiveCpuConfigTest.cpp",
71        "adaptivecpu/tests/AdaptiveCpuStatsTest.cpp",
72        "adaptivecpu/tests/CpuFrequencyReaderTest.cpp",
73        "adaptivecpu/tests/CpuLoadReaderProcStatTest.cpp",
74        "adaptivecpu/tests/CpuLoadReaderSysDevicesTest.cpp",
75        "adaptivecpu/tests/KernelCpuFeatureReaderTest.cpp",
76        "adaptivecpu/tests/ModelTest.cpp",
77        "adaptivecpu/tests/WorkDurationProcessorTest.cpp",
78    ],
79    static_libs: [
80        "libadaptivecpu",
81        "libgmock",
82        "android.hardware.power-V3-ndk",
83    ],
84    shared_libs: [
85        "liblog",
86        "libbase",
87        "libcutils",
88    ],
89    test_suites: ["device-tests"],
90}
91
92// Deprecated, do not use
93// Use pixel-power-ext for vendor extension
94cc_library_headers {
95    name: "pixel_power_headers",
96    vendor: true,
97    export_include_dirs: ["hidl"],
98}
99
100cc_binary {
101    name: "android.hardware.power-service.pixel-libperfmgr",
102    relative_install_path: "hw",
103    init_rc: ["aidl/android.hardware.power-service.pixel-libperfmgr.rc"],
104    vintf_fragments: ["aidl/android.hardware.power-service.pixel.xml"],
105    vendor: true,
106    shared_libs: [
107        "android.hardware.power-V3-ndk",
108        "libadaptivecpu",
109        "libbase",
110        "libcutils",
111        "liblog",
112        "libutils",
113        "libbinder_ndk",
114        "libdisppower-pixel",
115        "libperfmgr",
116        "libprocessgroup",
117        "pixel-power-ext-V1-ndk",
118    ],
119    srcs: [
120        "aidl/service.cpp",
121        "aidl/Power.cpp",
122        "aidl/PowerExt.cpp",
123        "aidl/PowerHintSession.cpp",
124        "aidl/PowerSessionManager.cpp",
125    ],
126}
127