David Chen | c8a4324 | 2017-10-17 16:23:28 -0700 | [diff] [blame] | 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 |
Amith Yamasani | 977e11f | 2018-02-16 11:29:54 -0800 | [diff] [blame] | 21 | * BatteryStatsImpl, as well as make unchecked calls into BatteryStatsImpl. |
David Chen | c8a4324 | 2017-10-17 16:23:28 -0700 | [diff] [blame] | 22 | * |
| 23 | * @hide Only for use within Android OS. |
| 24 | */ |
| 25 | public 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 Yamasani | 977e11f | 2018-02-16 11:29:54 -0800 | [diff] [blame] | 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 | */ |
| 43 | public abstract void noteJobsDeferred(int uid, int numDeferred, long sinceLast); |
David Chen | c8a4324 | 2017-10-17 16:23:28 -0700 | [diff] [blame] | 44 | } |