blob: cc266c5527600134f25896fdab00a70bbe465426 [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;
25import android.graphics.Rect;
26import android.os.Bundle;
27import android.os.UserHandle;
28import java.util.List;
29
30/**
31 * {@hide}
32 */
33interface ILauncherApps {
34 void addOnAppsChangedListener(in IOnAppsChangedListener listener);
35 void removeOnAppsChangedListener(in IOnAppsChangedListener listener);
Sunny Goyal6cbc2fe2015-11-24 09:34:20 -080036 ParceledListSlice getLauncherActivities(String packageName, in UserHandle user);
Amith Yamasani4f582632014-02-19 14:31:52 -080037 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 Guy466d2032014-07-23 12:23:35 +010040 void showAppDetailsAsUser(in ComponentName component, in Rect sourceBounds,
41 in Bundle opts, in UserHandle user);
Kenny Guy53fa4ec2014-04-29 14:24:18 +010042 boolean isPackageEnabled(String packageName, in UserHandle user);
43 boolean isActivityEnabled(in ComponentName component, in UserHandle user);
Kenny Guy77242752016-01-15 13:29:06 +000044 ApplicationInfo getApplicationInfo(String packageName, int flags, in UserHandle user);
Amith Yamasani4f582632014-02-19 14:31:52 -080045}