1 /* 2 * Copyright 2020, 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.security.apc; 18 19 /** 20 * Used as service specific exception code by IProtectedConfirmation and as result 21 * code by IConfirmationCallback 22 * @hide 23 */ 24 @Backing(type="int") 25 enum ResponseCode { 26 /** 27 * The prompt completed successfully with the user confirming the message (callback result). 28 */ 29 OK = 0, 30 /** 31 * The user cancelled the TUI (callback result). 32 */ 33 CANCELLED = 1, 34 /** 35 * The prompt was aborted (callback result). This may happen when the app cancels the prompt, 36 * or when the prompt was cancelled due to an unexpected asynchronous event, such as an 37 * incoming phone call. 38 */ 39 ABORTED = 2, 40 /** 41 * Another prompt cannot be started because another prompt is pending. 42 */ 43 OPERATION_PENDING = 3, 44 /** 45 * The request was ignored. 46 */ 47 IGNORED = 4, 48 /** 49 * An unexpected system error occurred. 50 */ 51 SYSTEM_ERROR = 5, 52 /** 53 * Backend is not implemented. 54 */ 55 UNIMPLEMENTED = 6, 56 /** 57 * Permission Denied. 58 */ 59 PERMISSION_DENIED = 30, 60 } 61