blob: cf3e298fd6d70cee78175afacf7529bdfab23445 [file] [log] [blame]
Amith Yamasani4f582632014-02-19 14:31:52 -08001/**
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
17package android.content.pm;
18
19import android.content.ComponentName;
20import android.content.Intent;
Kenny Guy77242752016-01-15 13:29:06 +000021import android.content.pm.ApplicationInfo;
Amith Yamasani4f582632014-02-19 14:31:52 -080022import android.content.pm.IOnAppsChangedListener;
Sunny Goyal6cbc2fe2015-11-24 09:34:20 -080023import android.content.pm.ParceledListSlice;
Amith Yamasani4f582632014-02-19 14:31:52 -080024import android.content.pm.ResolveInfo;
Makoto Onuki6f7362d92016-03-04 13:39:41 -080025import android.content.pm.ShortcutInfo;
Amith Yamasani4f582632014-02-19 14:31:52 -080026import android.graphics.Rect;
27import android.os.Bundle;
28import android.os.UserHandle;
29import java.util.List;
30
31/**
32 * {@hide}
33 */
34interface ILauncherApps {
35 void addOnAppsChangedListener(in IOnAppsChangedListener listener);
36 void removeOnAppsChangedListener(in IOnAppsChangedListener listener);
Sunny Goyal6cbc2fe2015-11-24 09:34:20 -080037 ParceledListSlice getLauncherActivities(String packageName, in UserHandle user);
Amith Yamasani4f582632014-02-19 14:31:52 -080038 ResolveInfo resolveActivity(in Intent intent, in UserHandle user);
39 void startActivityAsUser(in ComponentName component, in Rect sourceBounds,
40 in Bundle opts, in UserHandle user);
Kenny Guy466d2032014-07-23 12:23:35 +010041 void showAppDetailsAsUser(in ComponentName component, in Rect sourceBounds,
42 in Bundle opts, in UserHandle user);
Kenny Guy53fa4ec2014-04-29 14:24:18 +010043 boolean isPackageEnabled(String packageName, in UserHandle user);
44 boolean isActivityEnabled(in ComponentName component, in UserHandle user);
Kenny Guy77242752016-01-15 13:29:06 +000045 ApplicationInfo getApplicationInfo(String packageName, int flags, in UserHandle user);
Makoto Onuki6f7362d92016-03-04 13:39:41 -080046
47 ParceledListSlice getShortcuts(String callingPackage, long changedSince, String packageName,
48 in ComponentName componentName, int flags, in UserHandle user);
49 ParceledListSlice getShortcutInfo(String callingPackage, String packageName, in List<String> ids,
50 in UserHandle user);
51 void pinShortcuts(String callingPackage, String packageName, in List<String> shortcutIds,
52 in UserHandle user);
Makoto Onuki43204b82016-03-08 16:16:44 -080053 boolean startShortcut(String callingPackage, String packageName, String id,
54 in Rect sourceBounds, in Bundle startActivityOptions, in UserHandle user);
Amith Yamasani4f582632014-02-19 14:31:52 -080055}