Merge "Fix calcuation of CMD_TO_STRING_COUNT."
This commit is contained in:
@@ -150,7 +150,7 @@ public class AsyncChannel {
|
||||
*/
|
||||
public static final int CMD_CHANNEL_DISCONNECTED = BASE + 4;
|
||||
|
||||
private static final int CMD_TO_STRING_COUNT = CMD_CHANNEL_DISCONNECTED + 1;
|
||||
private static final int CMD_TO_STRING_COUNT = CMD_CHANNEL_DISCONNECTED - BASE + 1;
|
||||
private static String[] sCmdToString = new String[CMD_TO_STRING_COUNT];
|
||||
static {
|
||||
sCmdToString[CMD_CHANNEL_HALF_CONNECTED - BASE] = "CMD_CHANNEL_HALF_CONNECTED";
|
||||
|
||||
@@ -209,7 +209,7 @@ public abstract class DataConnection extends StateMachine {
|
||||
protected static final int EVENT_RIL_CONNECTED = BASE + 5;
|
||||
protected static final int EVENT_DISCONNECT_ALL = BASE + 6;
|
||||
|
||||
private static final int CMD_TO_STRING_COUNT = EVENT_DISCONNECT_ALL + 1;
|
||||
private static final int CMD_TO_STRING_COUNT = EVENT_DISCONNECT_ALL - BASE + 1;
|
||||
private static String[] sCmdToString = new String[CMD_TO_STRING_COUNT];
|
||||
static {
|
||||
sCmdToString[EVENT_CONNECT - BASE] = "EVENT_CONNECT";
|
||||
|
||||
@@ -82,7 +82,7 @@ public class DataConnectionAc extends AsyncChannel {
|
||||
public static final int REQ_GET_RECONNECT_INTENT = BASE + 26;
|
||||
public static final int RSP_GET_RECONNECT_INTENT = BASE + 27;
|
||||
|
||||
private static final int CMD_TO_STRING_COUNT = RSP_GET_RECONNECT_INTENT + 1;
|
||||
private static final int CMD_TO_STRING_COUNT = RSP_GET_RECONNECT_INTENT - BASE + 1;
|
||||
private static String[] sCmdToString = new String[CMD_TO_STRING_COUNT];
|
||||
static {
|
||||
sCmdToString[REQ_IS_INACTIVE - BASE] = "REQ_IS_INACTIVE";
|
||||
|
||||
Reference in New Issue
Block a user