xref: /aosp_15_r20/cts/tests/appfunctions/helper-app/assets/appfunctions.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1<?xml version="1.0" encoding="utf-8" standalone="yes"?><!--
2  ~ Copyright (C) 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<appfunctions>
17    <appfunction>
18        <function_id>add</function_id>
19        <schema_name>AppFunctionStaticMetadata-android.app.appfunctions.cts.helper</schema_name>
20        <schema_version>1</schema_version>
21        <schema_category>utils</schema_category>
22        <enabled_by_default>true</enabled_by_default>
23        <display_name_string_res>10</display_name_string_res>
24        <restrict_callers_with_execute_app_functions>true</restrict_callers_with_execute_app_functions>
25    </appfunction>
26    <appfunction>
27        <function_id>noOp</function_id>
28        <schema_name>AppFunctionStaticMetadata-android.app.appfunctions.cts.helper</schema_name>
29        <schema_version>1</schema_version>
30        <schema_category>utils</schema_category>
31        <enabled_by_default>false</enabled_by_default>
32        <display_name_string_res>10</display_name_string_res>
33        <restrict_callers_with_execute_app_functions>true</restrict_callers_with_execute_app_functions>
34    </appfunction>
35
36    <appfunction>
37        <function_id>addWithRestrictCallersWithExecuteAppFunctionsFalse</function_id>
38        <schema_name>AppFunctionStaticMetadata-android.app.appfunctions.cts.helper</schema_name>
39        <schema_version>1</schema_version>
40        <enabled_by_default>true</enabled_by_default>
41        <schema_category>utils</schema_category>
42        <restrict_callers_with_execute_app_functions>false</restrict_callers_with_execute_app_functions>
43    </appfunction>
44    <appfunction>
45        <function_id>addWithRestrictCallersWithExecuteAppFunctionsTrue</function_id>
46        <schema_name>AppFunctionStaticMetadata-android.app.appfunctions.cts.helper</schema_name>
47        <schema_version>1</schema_version>
48        <schema_category>utils</schema_category>
49        <enabled_by_default>true</enabled_by_default>
50        <restrict_callers_with_execute_app_functions>true</restrict_callers_with_execute_app_functions>
51    </appfunction>
52</appfunctions>