From e97cf01874df6b8b1177e1cc8d062327614939ff Mon Sep 17 00:00:00 2001 From: Oluwarotimi Adesina Date: Wed, 30 Oct 2024 21:45:00 +0000 Subject: Add a dedicated error code for missing function ID Flag: android.app.appfunctions.flags.enable_app_function_manager Test: CTS Bug: 375121362 Change-Id: I917df5c09090e549dade1c666e3d2ccaa8e8ac92 --- .../appfunctions/sidecar/ExecuteAppFunctionResponse.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'libs/appfunctions/java') diff --git a/libs/appfunctions/java/com/google/android/appfunctions/sidecar/ExecuteAppFunctionResponse.java b/libs/appfunctions/java/com/google/android/appfunctions/sidecar/ExecuteAppFunctionResponse.java index bf4ab45ed939..4e88fb025a9d 100644 --- a/libs/appfunctions/java/com/google/android/appfunctions/sidecar/ExecuteAppFunctionResponse.java +++ b/libs/appfunctions/java/com/google/android/appfunctions/sidecar/ExecuteAppFunctionResponse.java @@ -76,18 +76,23 @@ public final class ExecuteAppFunctionResponse { /** * The caller tried to execute a disabled app function. * - *

This error is in the request error category. - * *

This error is in the {@link #ERROR_CATEGORY_REQUEST_ERROR} category. */ public static final int RESULT_DISABLED = 1002; + /** + * The caller tried to execute a function that does not exist. + * + *

This error is in the {@link #ERROR_CATEGORY_REQUEST_ERROR} category. + */ + public static final int RESULT_FUNCTION_NOT_FOUND = 1003; + /** * An internal unexpected error coming from the system. * *

This error is in the {@link #ERROR_CATEGORY_SYSTEM} category. */ - public static final int RESULT_INTERNAL_ERROR = 2000; + public static final int RESULT_SYSTEM_ERROR = 2000; /** * The operation was cancelled. Use this error code to report that a cancellation is done after @@ -327,7 +332,8 @@ public final class ExecuteAppFunctionResponse { RESULT_OK, RESULT_DENIED, RESULT_APP_UNKNOWN_ERROR, - RESULT_INTERNAL_ERROR, + RESULT_SYSTEM_ERROR, + RESULT_FUNCTION_NOT_FOUND, RESULT_INVALID_ARGUMENT, RESULT_DISABLED, RESULT_CANCELLED -- cgit v1.2.3-59-g8ed1b