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
17package android.content.pm;
18
19import android.content.ComponentName;
20import android.content.Intent;
21import android.content.pm.IOnAppsChangedListener;
22import android.content.pm.ResolveInfo;
23import android.graphics.Rect;
24import android.os.Bundle;
25import android.os.UserHandle;
26import java.util.List;
27
28/**
29 * {@hide}
30 */
31interface ILauncherApps {
32    void addOnAppsChangedListener(in IOnAppsChangedListener listener);
33    void removeOnAppsChangedListener(in IOnAppsChangedListener listener);
34    List<ResolveInfo> getLauncherActivities(String packageName, in UserHandle user);
35    ResolveInfo resolveActivity(in Intent intent, in UserHandle user);
36    void startActivityAsUser(in ComponentName component, in Rect sourceBounds,
37            in Bundle opts, in UserHandle user);
38    void showAppDetailsAsUser(in ComponentName component, in Rect sourceBounds,
39            in Bundle opts, in UserHandle user);
40    boolean isPackageEnabled(String packageName, in UserHandle user);
41    boolean isActivityEnabled(in ComponentName component, in UserHandle user);
42}
43