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