blob: 170aff34b065939587f0b44b38f10f5f25e8cfa5 [file] [log] [blame]
Craig Mautner4a1cb222013-12-04 16:14:06 -08001/**
2 * Copyright (c) 2013, 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.app;
18
19import android.app.IActivityContainerCallback;
20import android.content.Intent;
Craig Mautnerdf88d732014-01-27 09:21:32 -080021import android.content.IIntentSender;
Craig Mautner4a1cb222013-12-04 16:14:06 -080022import android.os.IBinder;
Jeff Brown38f96e52014-02-11 14:32:56 -080023import android.view.InputEvent;
Craig Mautner4504de52013-12-20 09:06:56 -080024import android.view.Surface;
Craig Mautner4a1cb222013-12-04 16:14:06 -080025
26/** @hide */
27interface IActivityContainer {
28 void attachToDisplay(int displayId);
Craig Mautnerf4c909b2014-04-17 18:39:38 -070029 void setSurface(in Surface surface, int width, int height, int density);
Craig Mautnere0a38842013-12-16 16:14:02 -080030 int startActivity(in Intent intent);
Craig Mautnerdf88d732014-01-27 09:21:32 -080031 int startActivityIntentSender(in IIntentSender intentSender);
Craig Mautner34b73df2014-01-12 21:11:08 -080032 int getDisplayId();
Winson Chungd16c5652015-01-26 16:11:07 -080033 int getStackId();
Jeff Brown38f96e52014-02-11 14:32:56 -080034 boolean injectEvent(in InputEvent event);
Craig Mautnerf4c909b2014-04-17 18:39:38 -070035 void release();
Craig Mautner4a1cb222013-12-04 16:14:06 -080036}