blob: 31b235977a049ff1cc83a37d6540fbe0a40b0cbe [file] [log] [blame]
Dianne Hackborne22b3b12014-05-07 18:06:44 -07001/**
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 Lesinski0debc9a2014-07-16 19:09:13 -070017package android.app.usage;
Dianne Hackborne22b3b12014-05-07 18:06:44 -070018
Adam Lesinski35168002014-07-21 15:25:30 -070019import android.app.usage.UsageEvents;
20import android.content.pm.ParceledListSlice;
Adam Lesinski0debc9a2014-07-16 19:09:13 -070021
22/**
23 * System private API for talking with the UsageStatsManagerService.
24 *
25 * {@hide}
26 */
27interface IUsageStatsManager {
Adam Lesinski35168002014-07-21 15:25:30 -070028 ParceledListSlice queryUsageStats(int bucketType, long beginTime, long endTime,
29 String callingPackage);
Adam Lesinski7f61e962014-09-02 16:43:52 -070030 ParceledListSlice queryConfigurationStats(int bucketType, long beginTime, long endTime,
31 String callingPackage);
Adam Lesinski35168002014-07-21 15:25:30 -070032 UsageEvents queryEvents(long beginTime, long endTime, String callingPackage);
Amith Yamasanie5f33042015-05-08 13:20:22 -070033 void setAppInactive(String packageName, boolean inactive, int userId);
34 boolean isAppInactive(String packageName, int userId);
Amith Yamasaniaf575b92015-05-29 15:35:26 -070035 void whitelistAppTemporarily(String packageName, long duration, int userId);
Amith Yamasani4ec63682016-02-19 12:55:27 -080036 void onCarrierPrivilegedAppsChanged();
Kang Li53b43142016-11-14 14:38:25 -080037 void reportChooserSelection(String packageName, int userId, String contentType,
38 in String[] annotations, String action);
Adam Lesinski0debc9a2014-07-16 19:09:13 -070039}