1c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright/* 2c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * Copyright (C) 2014 The Android Open Source Project 3c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * 4c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * Licensed under the Apache License, Version 2.0 (the "License"); 5c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * you may not use this file except in compliance with the License. 6c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * You may obtain a copy of the License at 7c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * 8c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * http://www.apache.org/licenses/LICENSE-2.0 9c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * 10c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * Unless required by applicable law or agreed to in writing, software 11c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * distributed under the License is distributed on an "AS IS" BASIS, 12c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * See the License for the specific language governing permissions and 14c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright * limitations under the License. 15c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright */ 16c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright 17c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wrightpackage android.media.projection; 18c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright 19c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wrightimport android.media.projection.IMediaProjection; 20d86ecd26d78c7bcd7f820b9ef5e3f4c3eb037510Michael Wrightimport android.media.projection.IMediaProjectionCallback; 21d86ecd26d78c7bcd7f820b9ef5e3f4c3eb037510Michael Wrightimport android.media.projection.IMediaProjectionWatcherCallback; 22d86ecd26d78c7bcd7f820b9ef5e3f4c3eb037510Michael Wrightimport android.media.projection.MediaProjectionInfo; 23c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wrightimport android.os.IBinder; 24c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright 25c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright/** {@hide} */ 26c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wrightinterface IMediaProjectionManager { 27c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright boolean hasProjectionPermission(int uid, String packageName); 28c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright IMediaProjection createProjection(int uid, String packageName, int type, 29c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright boolean permanentGrant); 30c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright boolean isValidMediaProjection(IMediaProjection projection); 31d86ecd26d78c7bcd7f820b9ef5e3f4c3eb037510Michael Wright MediaProjectionInfo getActiveProjectionInfo(); 32d86ecd26d78c7bcd7f820b9ef5e3f4c3eb037510Michael Wright void stopActiveProjection(); 33d86ecd26d78c7bcd7f820b9ef5e3f4c3eb037510Michael Wright void addCallback(IMediaProjectionWatcherCallback callback); 34d86ecd26d78c7bcd7f820b9ef5e3f4c3eb037510Michael Wright void removeCallback(IMediaProjectionWatcherCallback callback); 35c39d47a8e7c74bd539104b0efab898ef6fc43ddfMichael Wright} 36