Searched refs:ProtocolConstants (Results 1 – 6 of 6) sorted by relevance
296 final ByteBuffer handshake = ByteBuffer.allocate(ProtocolConstants.QUERY_HEADER_SIZE); in onAccept()311 assert signature == ProtocolConstants.PACKET_SIGNATURE; in onAccept()313 final int remains = handshake.getInt() - ProtocolConstants.QUERY_HEADER_SIZE; in onAccept()316 assert msg_type == ProtocolConstants.PACKET_TYPE_QUERY; in onAccept()322 assert query_type == ProtocolConstants.QUERY_HANDSHAKE; in onAccept()324 if (msg_type != ProtocolConstants.PACKET_TYPE_QUERY) { in onAccept()341 handshake.putInt(ProtocolConstants.PACKET_SIGNATURE); in onAccept()343 handshake.putInt(ProtocolConstants.QUERY_RESP_HEADER_SIZE + 4); in onAccept()344 handshake.putInt(ProtocolConstants.PACKET_TYPE_QUERY_RESPONSE); in onAccept()348 if (query_type != ProtocolConstants.QUERY_HANDSHAKE) { in onAccept()[all …]
404 ByteBuffer bb = ByteBuffer.allocate(ProtocolConstants.MESSAGE_HEADER_SIZE + len); in sendMessage()408 bb.putInt(ProtocolConstants.PACKET_SIGNATURE); in sendMessage()409 bb.putInt(ProtocolConstants.MESSAGE_HEADER_SIZE + len); in sendMessage()410 bb.putInt(ProtocolConstants.PACKET_TYPE_MESSAGE); in sendMessage()542 ByteBuffer bb = ByteBuffer.allocate(ProtocolConstants.QUERY_RESP_HEADER_SIZE + len); in sendQueryResponse()546 bb.putInt(ProtocolConstants.PACKET_SIGNATURE); in sendQueryResponse()547 bb.putInt(ProtocolConstants.QUERY_RESP_HEADER_SIZE + len); in sendQueryResponse()548 bb.putInt(ProtocolConstants.PACKET_TYPE_QUERY_RESPONSE); in sendQueryResponse()619 ByteBuffer header = ByteBuffer.allocate(ProtocolConstants.PACKET_HEADER_SIZE); in runIOLooper()637 assert signature == ProtocolConstants.PACKET_SIGNATURE; in runIOLooper()[all …]
9 public final class ProtocolConstants { class
35 import com.android.tools.sdkcontroller.lib.ProtocolConstants;179 event.getPointerCount() * ProtocolConstants.MT_EVENT_ENTRY_SIZE); in onTouch()184 msg_type = ProtocolConstants.MT_MOVE; in onTouch()189 bb = ByteBuffer.allocate(ProtocolConstants.MT_EVENT_ENTRY_SIZE); in onTouch()192 msg_type = ProtocolConstants.MT_FISRT_DOWN; in onTouch()197 bb = ByteBuffer.allocate(ProtocolConstants.MT_EVENT_ENTRY_SIZE); in onTouch()200 msg_type = ProtocolConstants.MT_LAST_UP; in onTouch()205 bb = ByteBuffer.allocate(ProtocolConstants.MT_EVENT_ENTRY_SIZE); in onTouch()208 msg_type = ProtocolConstants.MT_POINTER_DOWN; in onTouch()213 bb = ByteBuffer.allocate(ProtocolConstants.MT_EVENT_ENTRY_SIZE); in onTouch()[all …]
24 import com.android.tools.sdkcontroller.lib.ProtocolConstants;108 case ProtocolConstants.MT_FB_UPDATE: in onEmulatorMessage()112 postMessage(ProtocolConstants.MT_FB_ACK, (byte[]) null); in onEmulatorMessage()
33 import com.android.tools.sdkcontroller.lib.ProtocolConstants;176 case ProtocolConstants.SENSORS_QUERY_LIST: in onEmulatorQuery()214 case ProtocolConstants.SENSORS_START: in onEmulatorMessage()218 case ProtocolConstants.SENSORS_STOP: in onEmulatorMessage()222 case ProtocolConstants.SENSORS_ENABLE: in onEmulatorMessage()227 case ProtocolConstants.SENSORS_DISABLE: in onEmulatorMessage()610 postMessage(ProtocolConstants.SENSORS_SENSOR_EVENT, mChangeMsg); in onSensorChanged()