1 // Copyright 2010 Google Inc. All Rights Reserved. 2 // Author: wink (a] google.com (Wink Saville) 3 4 package ril_proto; 5 6 option java_package='com.android.internal.telephony.ril_proto'; 7 option java_outer_classname='RilCtrlCmds'; 8 9 import "hardware/ril/mock-ril/src/proto/ril.proto"; 10 11 enum CtrlCmd { 12 CTRL_CMD_ECHO = 0; 13 CTRL_CMD_GET_RADIO_STATE = 1; 14 CTRL_CMD_SET_RADIO_STATE = 2; 15 CTRL_CMD_SET_MT_CALL = 1001; 16 CTRL_CMD_HANGUP_CONN_REMOTE = 1002; 17 CTRL_CMD_SET_CALL_TRANSITION_FLAG = 1003; 18 CTRL_CMD_SET_CALL_ALERT = 1004; 19 CTRL_CMD_SET_CALL_ACTIVE = 1005; 20 CTRL_CMD_ADD_DIALING_CALL = 1006; // this command is for testing 21 } 22 23 enum CtrlStatus { 24 CTRL_STATUS_OK = 0; 25 CTRL_STATUS_ERR = 1; 26 } 27 28 // request of setting radio state 29 message CtrlReqRadioState { 30 required ril_proto.RadioState state = 1; 31 } 32 33 // response of set/get radio state 34 message CtrlRspRadioState { 35 required ril_proto.RadioState state = 1; 36 } 37 38 // 1001: request of creating an incoming call 39 message CtrlReqSetMTCall { 40 required string phone_number = 1; // Phone number to display 41 } 42 43 // 1002: request of hangup a connection for the given disconnection cause 44 message CtrlHangupConnRemote { 45 required int32 connection_id = 1; // connection id 46 required int32 call_fail_cause = 2; // call failure cause 47 } 48 49 // 1003: set call transition flag: true for controlled transition 50 // false for auto-transition 51 message CtrlSetCallTransitionFlag { 52 required bool flag = 1; 53 } 54 55 // 1006: Add a dialing call 56 message CtrlReqAddDialingCall { 57 required string phone_number = 1; // phone number 58 } 59