1 /* 2 * Copyright 2021 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 17 package android.server.wm.backgroundactivity.common; 18 19 import android.app.PendingIntent; 20 import android.content.ComponentName; 21 import android.content.IntentSender; 22 import android.os.ResultReceiver; 23 24 interface ITestService { generatePendingIntent(in ComponentName componentName, in int flags, in Bundle createOptions, in ResultReceiver resultReceiver)25 PendingIntent generatePendingIntent(in ComponentName componentName, in int flags, in Bundle createOptions, in ResultReceiver resultReceiver); generatePendingIntentBroadcast(in ComponentName componentName, in ResultReceiver resultReceiver)26 PendingIntent generatePendingIntentBroadcast(in ComponentName componentName, in ResultReceiver resultReceiver); startManageSpaceActivity()27 void startManageSpaceActivity(); sendByTextClassification(in TextClassification classification)28 void sendByTextClassification(in TextClassification classification); sendPendingIntent(in PendingIntent pendingIntent, in Bundle sendOptions)29 void sendPendingIntent(in PendingIntent pendingIntent, in Bundle sendOptions); sendPendingIntentWithActivity(in PendingIntent pendingIntent, in Bundle sendOptions)30 void sendPendingIntentWithActivity(in PendingIntent pendingIntent, in Bundle sendOptions); sendPendingIntentWithActivityForResult(in PendingIntent pendingIntent, in Bundle sendOptions)31 void sendPendingIntentWithActivityForResult(in PendingIntent pendingIntent, in Bundle sendOptions); sendIntentSender(in IntentSender intentSender, in Bundle sendOptions)32 void sendIntentSender(in IntentSender intentSender, in Bundle sendOptions); startActivityIntent(in Intent intent)33 void startActivityIntent(in Intent intent); 34 }