comparison src/com/five_ten_sg/connectbot/monitor/MonitorService.java @ 20:943df7400741

enable some debug logging
author Carl Byington <carl@five-ten-sg.com>
date Tue, 08 Jul 2014 09:14:29 -0700
parents a94ca5a89fe8
children 2586a4f5c8c3
comparison
equal deleted inserted replaced
19:b0475db2bb94 20:943df7400741
340 //// these functions run on the reader thread here and call your monitoring code 340 //// these functions run on the reader thread here and call your monitoring code
341 341
342 public void teInit(int connection, char[] buf) { 342 public void teInit(int connection, char[] buf) {
343 String fn = new String(buf); 343 String fn = new String(buf);
344 Log.i(TAG, String.format("teInit %d file %s", connection, fn)); 344 Log.i(TAG, String.format("teInit %d file %s", connection, fn));
345 //printer(String.format("init %d %s", connection, fn)); 345 printer(String.format("init %d %s", connection, fn));
346 } 346 }
347 347
348 public void teActivate(int connection, int lines, int columns, char[] buf) { 348 public void teActivate(int connection, int lines, int columns, char[] buf) {
349 Log.i(TAG, String.format("teActivate %d", connection)); 349 Log.i(TAG, String.format("teActivate %d", connection));
350 //printer(String.format("activate %d lines %d columns %d b.len %d", connection, lines, columns, buf.length)); 350 printer(String.format("activate %d lines %d columns %d b.len %d", connection, lines, columns, buf.length));
351 } 351 }
352 352
353 public void teKeyState(int connection, boolean down) { 353 public void teKeyState(int connection, boolean down) {
354 String d = (down) ? "yes" : "no"; 354 String d = (down) ? "yes" : "no";
355 Log.i(TAG, String.format("teKeyState %d isdown %s", connection, d)); 355 Log.i(TAG, String.format("teKeyState %d isdown %s", connection, d));
356 //printer(String.format("keystate %d isdown %s", connection, d)); 356 printer(String.format("keystate %d isdown %s", connection, d));
357 } 357 }
358 358
359 public void teCursorMove(int connection, int l, int c) { 359 public void teCursorMove(int connection, int l, int c) {
360 //Log.i(TAG, String.format("teCursorMove %d line %d column %d", connection, l, c)); 360 Log.i(TAG, String.format("teCursorMove %d line %d column %d", connection, l, c));
361 } 361 }
362 362
363 public void teScreenChange(int connection, int lines, int columns, char[] buf) { 363 public void teScreenChange(int connection, int lines, int columns, char[] buf) {
364 Log.i(TAG, String.format("teScreenChange %d lines %d columns %d b.len %d", connection, lines, columns, buf.length)); 364 Log.i(TAG, String.format("teScreenChange %d lines %d columns %d b.len %d", connection, lines, columns, buf.length));
365 } 365 }