Dianne Hackborn | e22b3b1 | 2014-05-07 18:06:44 -0700 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (c) 2014, 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 | |
Adam Lesinski | 0debc9a | 2014-07-16 19:09:13 -0700 | [diff] [blame] | 17 | package android.app.usage; |
Dianne Hackborn | e22b3b1 | 2014-05-07 18:06:44 -0700 | [diff] [blame] | 18 | |
Adam Lesinski | 3516800 | 2014-07-21 15:25:30 -0700 | [diff] [blame] | 19 | import android.app.usage.UsageEvents; |
| 20 | import android.content.pm.ParceledListSlice; |
Adam Lesinski | 0debc9a | 2014-07-16 19:09:13 -0700 | [diff] [blame] | 21 | |
| 22 | /** |
| 23 | * System private API for talking with the UsageStatsManagerService. |
| 24 | * |
| 25 | * {@hide} |
| 26 | */ |
| 27 | interface IUsageStatsManager { |
Adam Lesinski | 3516800 | 2014-07-21 15:25:30 -0700 | [diff] [blame] | 28 | ParceledListSlice queryUsageStats(int bucketType, long beginTime, long endTime, |
| 29 | String callingPackage); |
Adam Lesinski | 7f61e96 | 2014-09-02 16:43:52 -0700 | [diff] [blame] | 30 | ParceledListSlice queryConfigurationStats(int bucketType, long beginTime, long endTime, |
| 31 | String callingPackage); |
Adam Lesinski | 3516800 | 2014-07-21 15:25:30 -0700 | [diff] [blame] | 32 | UsageEvents queryEvents(long beginTime, long endTime, String callingPackage); |
Amith Yamasani | e5f3304 | 2015-05-08 13:20:22 -0700 | [diff] [blame] | 33 | void setAppInactive(String packageName, boolean inactive, int userId); |
| 34 | boolean isAppInactive(String packageName, int userId); |
Amith Yamasani | af575b9 | 2015-05-29 15:35:26 -0700 | [diff] [blame] | 35 | void whitelistAppTemporarily(String packageName, long duration, int userId); |
Amith Yamasani | 4ec6368 | 2016-02-19 12:55:27 -0800 | [diff] [blame] | 36 | void onCarrierPrivilegedAppsChanged(); |
Kang Li | 53b4314 | 2016-11-14 14:38:25 -0800 | [diff] [blame] | 37 | void reportChooserSelection(String packageName, int userId, String contentType, |
| 38 | in String[] annotations, String action); |
Adam Lesinski | 0debc9a | 2014-07-16 19:09:13 -0700 | [diff] [blame] | 39 | } |