Home
last modified time | relevance | path

Searched refs:connectionId (Results 1 – 19 of 19) sorted by relevance

/external/chromium_org/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/
DSocketTunnelServer.java57 protected void onReceivedDataPacket(int connectionId, byte[] data) throws ProtocolError { in onReceivedDataPacket() argument
60 if (!mClientConnections.containsKey(connectionId)) { in onReceivedDataPacket()
64 mClientConnections.get(connectionId).onReceivedDataPacket(data); in onReceivedDataPacket()
68 protected void onReceivedControlPacket(int connectionId, byte opCode) throws ProtocolError { in onReceivedControlPacket() argument
73 onClientOpen(connectionId); in onReceivedControlPacket()
77 onClientClose(connectionId); in onReceivedControlPacket()
85 private void onClientOpen(int connectionId) throws ProtocolError { in onClientOpen() argument
88 if (mClientConnections.containsKey(connectionId) || in onClientOpen()
89 mServerConnections.containsKey(connectionId)) { in onClientOpen()
93 Connection connection = new Connection(connectionId); in onClientOpen()
[all …]
DSocketTunnelBase.java139 protected static void checkConnectionId(int connectionId) throws ProtocolError { in checkConnectionId() argument
140 if (connectionId < MIN_CONNECTION_ID || connectionId > MAX_CONNECTION_ID) { in checkConnectionId()
141 throw new ProtocolError("Invalid connection id: " + Integer.toString(connectionId)); in checkConnectionId()
158 protected abstract void onReceivedDataPacket(int connectionId, byte[] data) in onReceivedDataPacket() argument
160 protected abstract void onReceivedControlPacket(int connectionId, byte opCode) in onReceivedControlPacket() argument
162 protected void onSocketException(IOException e, int connectionId) {} in onSocketException() argument
166 static ByteBuffer buildControlPacket(int connectionId, byte opCode) { in buildControlPacket() argument
170 packet.put((byte) connectionId); in buildControlPacket()
174 static ByteBuffer buildDataPacket(int connectionId, byte[] buffer, int count) { in buildDataPacket() argument
176 packet.put((byte) connectionId); in buildDataPacket()
[all …]
/external/chromium_org/components/devtools_bridge/test/android/javatests/src/org/chromium/components/devtools_bridge/
DSocketTunnelClient.java138 protected void onReceivedDataPacket(int connectionId, byte[] data) throws ProtocolError { in onReceivedDataPacket() argument
141 if (!mServerConnections.containsKey(connectionId)) in onReceivedDataPacket()
144 mServerConnections.get(connectionId).onReceivedDataPacket(data); in onReceivedDataPacket()
148 protected void onReceivedControlPacket(int connectionId, byte opCode) throws ProtocolError { in onReceivedControlPacket() argument
151 onServerOpenAck(connectionId); in onReceivedControlPacket()
155 onServerClose(connectionId); in onReceivedControlPacket()
163 private void onServerOpenAck(int connectionId) throws ProtocolError { in onServerOpenAck() argument
166 if (mServerConnections.containsKey(connectionId)) { in onServerOpenAck()
170 if (!mPendingConnections.containsKey(connectionId)) { in onServerOpenAck()
175 Connection connection = mPendingConnections.get(connectionId); in onServerOpenAck()
[all …]
DLocalTunnelBridge.java49 protected void onReceivedDataPacket(int connectionId, byte[] data) in LocalTunnelBridge()
55 super.onReceivedDataPacket(connectionId, data); in LocalTunnelBridge()
59 protected void onReceivedControlPacket(int connectionId, byte opCode) in LocalTunnelBridge()
64 super.onReceivedControlPacket(connectionId, opCode); in LocalTunnelBridge()
68 protected void onSocketException(IOException e, int connectionId) { in LocalTunnelBridge()
70 " (connection " + Integer.toString(connectionId) + ")"); in LocalTunnelBridge()
71 super.onSocketException(e, connectionId); in LocalTunnelBridge()
96 protected void onReceivedDataPacket(int connectionId, byte[] data) in LocalTunnelBridge()
102 super.onReceivedDataPacket(connectionId, data); in LocalTunnelBridge()
106 protected void onReceivedControlPacket(int connectionId, byte opCode) in LocalTunnelBridge()
[all …]
DPacketDecoder.java19 protected void onReceivedDataPacket(int connectionId, byte[] data) { in onReceivedDataPacket() argument
21 mConnectionId = connectionId; in onReceivedDataPacket()
26 protected void onReceivedControlPacket(int connectionId, byte opCode) { in onReceivedControlPacket() argument
29 mConnectionId = connectionId; in onReceivedControlPacket()
59 public int connectionId() { in connectionId() method in PacketDecoder
/external/chromium_org/extensions/test/data/
Dserial_unittest.js23 var connectionId = null; variable
34 connectionId = connectionInfo.connectionId;
73 serial.disconnect(connectionId, test.callbackPass(function(success) {
75 connectionId = null;
104 serial.getInfo(connectionId, test.callbackPass(function(connectionInfo) {
108 test.assertEq(connectionId, result.connectionId);
116 serial.send(connectionId, buffer, test.callbackPass(function(sendInfo) {
131 return utils.promise(serial.send, connectionId, buffer);
136 test.assertEq(connectionId, result.connectionId);
214 serial.getInfo(connectionId,
[all …]
/external/chromium_org/components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/
DSocketTunnelServerTest.java71 Assert.assertEquals(CONNECTION_ID, decoder.connectionId()); in testDecodeControlPacket()
83 private LocalSocket connectToSocket(int connectionId) throws IOException { in connectToSocket() argument
85 buildControlPacket(connectionId, SocketTunnelBase.CLIENT_OPEN)); in connectToSocket()
89 private void sendClose(int connectionId) { in sendClose() argument
91 buildControlPacket(connectionId, SocketTunnelBase.CLIENT_CLOSE)); in sendClose()
94 private ByteBuffer buildControlPacket(int connectionId, byte opCode) { in buildControlPacket() argument
95 ByteBuffer packet = SocketTunnelBase.buildControlPacket(connectionId, opCode); in buildControlPacket()
102 private ByteBuffer buildDataPacket(int connectionId, byte[] data) { in buildDataPacket() argument
103 ByteBuffer packet = SocketTunnelBase.buildDataPacket(connectionId, data, data.length); in buildDataPacket()
120 private PacketDecoder receiveControlPacket(int connectionId) throws InterruptedException { in receiveControlPacket() argument
[all …]
/external/chromium_org/extensions/common/api/
Dhid.idl41 long connectionId;
91 // |connectionId|: The <code>connectionId</code> returned by $(ref:connect).
92 static void disconnect(long connectionId,
96 // |connectionId|: The <code>connectionId</code> returned by $(ref:connect).
97 static void receive(long connectionId,
101 // |connectionId|: The <code>connectionId</code> returned by $(ref:connect).
104 static void send(long connectionId,
110 // |connectionId|: The <code>connectionId</code> returned by $(ref:connect).
112 static void receiveFeatureReport(long connectionId,
117 // |connectionId|: The <code>connectionId</code> returned by $(ref:connect).
[all …]
Dserial.idl86 long connectionId;
211 long connectionId;
234 long connectionId;
255 // |connectionId| : The id of the opened connection.
258 static void update(long connectionId,
263 // |connectionId| : The id of the opened connection.
265 static void disconnect(long connectionId, DisconnectCallback callback);
268 // |connectionId| : The id of the opened connection.
272 static void setPaused(long connectionId,
277 // |connectionId| : The id of the opened connection.
[all …]
Dsockets_udp.idl172 // |connectionId| : The socket ID.
/external/chromium_org/extensions/renderer/resources/
Dserial_custom_bindings.js37 return function(connectionId) { argument
40 return serialService.getConnection(connectionId);
59 var id = result.info.connectionId;
62 'serial.onReceive', [{connectionId: id, data: data}]); property
66 'serial.onReceiveError', [{connectionId: id, error: error}]); property
Dserial_service.js217 connectionId: this.id_, property
/external/chromium_org/remoting/webapp/
Dgnubby_auth_handler.js49 function(connectionId, response) { argument
53 'connectionId': connectionId, property
60 'connectionId': connectionId property
/external/chromium_org/chrome/browser/resources/cryptotoken/
Dhidgnubbydevice.js73 chrome.hid.disconnect(dev.connectionId, function() {
75 console.warn(UTIL_fmt('Device ' + dev.connectionId +
80 console.log(UTIL_fmt('Device ' + dev.connectionId + ' closed'));
190 this.dev.connectionId,
400 this.dev.connectionId,
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/network/
DHAREntry.js61 if (this._request.connectionId !== "0")
62 entry.connection = this._request.connectionId;
DNetworkPanel.js93 …e, initiator: true, cookies: false, setCookies: false, size: true, time: true, connectionId: false, property
485 …this._sortingFunctions.connectionId = WebInspector.NetworkDataGridNode.RequestPropertyComparator.b…
2572 case "connectionId": cell.setTextAndTitle(this._request.connectionId); break;
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/sdk/
DNetworkManager.js202 networkRequest.connectionId = String(response.connectionId);
DNetworkRequest.js73 this.connectionId = "0";
/external/chromium_org/third_party/closure_compiler/externs/
Dchrome_extensions.js5794 chrome.hid.disconnect = function(connectionId, opt_callback) {}; argument
5804 chrome.hid.receive = function(connectionId, callback) {}; argument
5816 chrome.hid.send = function(connectionId, reportId, data, callback) {}; argument
5830 function(connectionId, reportId, size, callback) {}; argument
5844 function(connectionId, reportId, data, callback) {}; argument