Lines Matching refs:what
104 * @param what The message type.
108 public boolean sendMessage(int service, int what, ByteBuffer content) {
110 checkMessageId(what);
123 mOutputBuffer.putShort((short)what);
203 private void dispatchMessageReceived(int service, int what, ByteBuffer content) {
209 callback.onMessageReceived(service, what, content);
211 mLogger.log("Discarding message " + what
222 private static void checkMessageId(int what) {
223 if (what < 0 || what > 0xffff) {
224 throw new IllegalArgumentException("message id out of range: " + what);
244 * @param what The message type.
247 public void onMessageReceived(int service, int what, ByteBuffer content);
258 final int what = buffer.getShort() & 0xffff;
261 dispatchMessageReceived(service, what, null);
265 dispatchMessageReceived(service, what, buffer);