1/* 2 * Copyright 2018 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 17syntax = "proto2"; 18package android.bluetooth.rfcomm; 19 20option java_outer_classname = "BluetoothRfcommProtoEnums"; 21option java_multiple_files = true; 22 23enum RfcommConnectionResult { 24 RFCOMM_CONN_RESULT_FAILURE_UNKNOWN = 0; 25 RFCOMM_CONN_RESULT_SUCCESS = 1; 26 RFCOMM_CONN_RESULT_SOCKET_CONNECTION_FAILED = 2; 27 RFCOMM_CONN_RESULT_SOCKET_CONNECTION_CLOSED = 3; 28 RFCOMM_CONN_RESULT_UNABLE_TO_SEND_RPC = 4; 29 RFCOMM_CONN_RESULT_NULL_BLUETOOTH_DEVICE = 5; 30 RFCOMM_CONN_RESULT_GET_SOCKET_MANAGER_FAILED = 6; 31 RFCOMM_CONN_RESULT_NULL_FILE_DESCRIPTOR = 7; 32} 33 34enum SocketConnectionSecurity { 35 SOCKET_SECURITY_UNKNOWN = 0; 36 SOCKET_SECURITY_SECURE = 1; 37 SOCKET_SECURITY_INSECURE = 2; 38} 39