Amith Yamasani | 4f58263 | 2014-02-19 14:31:52 -0800 | [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 | |
| 17 | package android.content.pm; |
| 18 | |
| 19 | import android.content.ComponentName; |
| 20 | import android.content.Intent; |
Kenny Guy | 7724275 | 2016-01-15 13:29:06 +0000 | [diff] [blame] | 21 | import android.content.pm.ApplicationInfo; |
Amith Yamasani | 4f58263 | 2014-02-19 14:31:52 -0800 | [diff] [blame] | 22 | import android.content.pm.IOnAppsChangedListener; |
Sunny Goyal | 6cbc2fe | 2015-11-24 09:34:20 -0800 | [diff] [blame] | 23 | import android.content.pm.ParceledListSlice; |
Amith Yamasani | 4f58263 | 2014-02-19 14:31:52 -0800 | [diff] [blame] | 24 | import android.content.pm.ResolveInfo; |
Makoto Onuki | 6f7362d9 | 2016-03-04 13:39:41 -0800 | [diff] [blame] | 25 | import android.content.pm.ShortcutInfo; |
Amith Yamasani | 4f58263 | 2014-02-19 14:31:52 -0800 | [diff] [blame] | 26 | import android.graphics.Rect; |
| 27 | import android.os.Bundle; |
| 28 | import android.os.UserHandle; |
| 29 | import java.util.List; |
| 30 | |
| 31 | /** |
| 32 | * {@hide} |
| 33 | */ |
| 34 | interface ILauncherApps { |
| 35 | void addOnAppsChangedListener(in IOnAppsChangedListener listener); |
| 36 | void removeOnAppsChangedListener(in IOnAppsChangedListener listener); |
Sunny Goyal | 6cbc2fe | 2015-11-24 09:34:20 -0800 | [diff] [blame] | 37 | ParceledListSlice getLauncherActivities(String packageName, in UserHandle user); |
Amith Yamasani | 4f58263 | 2014-02-19 14:31:52 -0800 | [diff] [blame] | 38 | 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 Guy | 466d203 | 2014-07-23 12:23:35 +0100 | [diff] [blame] | 41 | void showAppDetailsAsUser(in ComponentName component, in Rect sourceBounds, |
| 42 | in Bundle opts, in UserHandle user); |
Kenny Guy | 53fa4ec | 2014-04-29 14:24:18 +0100 | [diff] [blame] | 43 | boolean isPackageEnabled(String packageName, in UserHandle user); |
| 44 | boolean isActivityEnabled(in ComponentName component, in UserHandle user); |
Kenny Guy | 7724275 | 2016-01-15 13:29:06 +0000 | [diff] [blame] | 45 | ApplicationInfo getApplicationInfo(String packageName, int flags, in UserHandle user); |
Makoto Onuki | 6f7362d9 | 2016-03-04 13:39:41 -0800 | [diff] [blame] | 46 | |
| 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 Onuki | 43204b8 | 2016-03-08 16:16:44 -0800 | [diff] [blame] | 53 | boolean startShortcut(String callingPackage, String packageName, String id, |
| 54 | in Rect sourceBounds, in Bundle startActivityOptions, in UserHandle user); |
Amith Yamasani | 4f58263 | 2014-02-19 14:31:52 -0800 | [diff] [blame] | 55 | } |