blob: 086904ee6f774ae0f00d9ebc5cc7f6831d41a2dc [file] [log] [blame]
Kumar Anandfc72a8d2017-01-26 12:23:09 -08001/*
2 * Copyright (C) 2016 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 android.hardware.power@1.1;
17
18import android.hardware.power@1.0;
19
20/**
21 * Interface to collect subsystem level sleep information
22 */
23interface IPower extends android.hardware.power@1.0::IPower {
24
25 /**
26 * Subsystem-level sleep state stats:
27 * Report cumulative info on the statistics on subsystem-level sleep states
28 * since boot.
29 *
30 * @return subsystems supported on this device and their sleep states
31 * @return retval SUCCESS on success or FILESYSTEM_ERROR on filesystem
32 * nodes access error.
33 */
34 getSubsystemLowPowerStats()
35 generates (vec<PowerStateSubsystem> subsystems, Status retval);
Philip Cuadra48750dc2017-07-11 15:26:53 -070036
37 /**
38 * powerHintAsync() is called to pass hints on power requirements which
39 * may result in adjustment of power/performance parameters of the
40 * cpufreq governor and other controls.
41 *
42 * A particular platform may choose to ignore any hint.
43 *
44 * @param hint PowerHint which is passed
45 * @param data contains additional information about the hint
46 * and is described along with the comments for each of the hints.
47 */
48 oneway powerHintAsync(PowerHint hint, int32_t data);
49
Kumar Anandfc72a8d2017-01-26 12:23:09 -080050};