• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2024 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.app.appfunctions;
18 
19 import android.app.appfunctions.ICancellationCallback;
20 import android.app.appfunctions.IExecuteAppFunctionCallback;
21 import android.app.appfunctions.ExecuteAppFunctionRequest;
22 
23 
24 /**
25  * Defines the interface for the system server to request the execution of an app function within
26  * the app process.
27  *
28  * This interface is implemented by the app and exposed to the system server via a {@code Service}.
29  *
30  * @hide
31  */
32 oneway interface IAppFunctionService {
33     /**
34      * Called by the system to execute a specific app function.
35      *
36      * @param request  the function execution request.
37      * @param callingPackage The package name of the app that is requesting the execution.
38      * @param callingPackageSigningInfo The signing information of the app that is requesting the
39      *      execution.
40      * @param cancellationCallback a callback to send back the cancellation transport.
41      * @param callback a callback to report back the result.
42      */
executeAppFunction( in ExecuteAppFunctionRequest request, in String callingPackage, in android.content.pm.SigningInfo callingPackageSigningInfo, in ICancellationCallback cancellationCallback, in IExecuteAppFunctionCallback callback )43     void executeAppFunction(
44         in ExecuteAppFunctionRequest request,
45         in String callingPackage,
46         in android.content.pm.SigningInfo callingPackageSigningInfo,
47         in ICancellationCallback cancellationCallback,
48         in IExecuteAppFunctionCallback callback
49     );
50 }
51