• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
17 package android.os;
18 
19 /**
20  * Battery stats local system service interface. This is used to pass internal data out of
21  * BatteryStatsImpl, as well as make unchecked calls into BatteryStatsImpl.
22  *
23  * @hide Only for use within Android OS.
24  */
25 public abstract class BatteryStatsInternal {
26     /**
27      * Returns the wifi interfaces.
28      */
getWifiIfaces()29     public abstract String[] getWifiIfaces();
30 
31     /**
32      * Returns the mobile data interfaces.
33      */
getMobileIfaces()34     public abstract String[] getMobileIfaces();
35 
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      */
noteJobsDeferred(int uid, int numDeferred, long sinceLast)43     public abstract void noteJobsDeferred(int uid, int numDeferred, long sinceLast);
44 }
45