blob: 679f18e1e86090553d2288ebe6f8bde48e863a71 [file] [log] [blame]
David Chenc8a43242017-10-17 16:23:28 -07001/*
2 * Copyright 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 */
16
17package android.os;
18
19/**
20 * Battery stats local system service interface. This is used to pass internal data out of
Amith Yamasani977e11f2018-02-16 11:29:54 -080021 * BatteryStatsImpl, as well as make unchecked calls into BatteryStatsImpl.
David Chenc8a43242017-10-17 16:23:28 -070022 *
23 * @hide Only for use within Android OS.
24 */
25public abstract class BatteryStatsInternal {
26 /**
27 * Returns the wifi interfaces.
28 */
29 public abstract String[] getWifiIfaces();
30
31 /**
32 * Returns the mobile data interfaces.
33 */
34 public abstract String[] getMobileIfaces();
Amith Yamasani977e11f2018-02-16 11:29:54 -080035
36 /**
37 * Inform battery stats how many deferred jobs existed when the app got launched and how
38 * long ago was the last job execution for the app.
39 * @param uid the uid of the app.
40 * @param numDeferred number of deferred jobs.
41 * @param sinceLast how long in millis has it been since a job was run
42 */
43 public abstract void noteJobsDeferred(int uid, int numDeferred, long sinceLast);
David Chenc8a43242017-10-17 16:23:28 -070044}