blob: a69b9881aa015db6edff1a7aa4fdcca5225a20bb [file] [log] [blame]
Tony Mak1b708e62017-10-12 10:59:11 +01001/*
2 * Copyright (C) 2017 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
Tony Makb0d22622018-01-18 12:49:49 +000017package android.content.pm;
Tony Mak1b708e62017-10-12 10:59:11 +010018
Tony Makde32b832018-04-30 15:11:57 +010019import android.app.IApplicationThread;
Tony Mak1b708e62017-10-12 10:59:11 +010020import android.content.ComponentName;
21import android.content.Intent;
22import android.graphics.Rect;
23import android.os.Bundle;
24import android.os.UserHandle;
25
26/**
27 * @hide
28 */
29interface ICrossProfileApps {
Tony Makde32b832018-04-30 15:11:57 +010030 void startActivityAsUser(in IApplicationThread caller, in String callingPackage,
Philip P. Moltmanne7421e92020-02-10 16:14:12 +000031 in ComponentName component, int userId, boolean launchMainActivity);
Jonathan Scottd72fc8d2020-01-20 16:22:58 +000032 void startActivityAsUserByIntent(in IApplicationThread caller, in String callingPackage,
Philip P. Moltmanne7421e92020-02-10 16:14:12 +000033 in Intent intent, int userId);
Tony Mak1b708e62017-10-12 10:59:11 +010034 List<UserHandle> getTargetUserProfiles(in String callingPackage);
kholoud mohamed946df392019-12-12 17:43:32 +000035 boolean canInteractAcrossProfiles(in String callingPackage);
36 boolean canRequestInteractAcrossProfiles(in String callingPackage);
Alex Kershaw6fb8a022020-01-09 11:33:56 +000037 void setInteractAcrossProfilesAppOp(in String packageName, int newMode);
Alex Kershaw4b0197d2020-01-15 20:00:05 +000038 boolean canConfigureInteractAcrossProfiles(in String packageName);
39 void resetInteractAcrossProfilesAppOps(in List<String> packageNames);
Philip P. Moltmanne7421e92020-02-10 16:14:12 +000040}