abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorjuloo2015-08-07 01:49:37 +0200
committerjuloo2015-08-07 01:49:37 +0200
commitf22452488de58684466a1a73fe4869009f1d38c7 (patch)
tree54964790d65ede7714d93094029dbc4e42d23b02
parent117e4a3d4f79de9a35654623a4064c0f568099f0 (diff)
downloadunexpected-keyboard-f22452488de58684466a1a73fe4869009f1d38c7.tar.gz
unexpected-keyboard-f22452488de58684466a1a73fe4869009f1d38c7.zip
Move logcat
-rwxr-xr-xlogcat.py60
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java2
2 files changed, 0 insertions, 62 deletions
diff --git a/logcat.py b/logcat.py
deleted file mode 100755
index 8a12490..0000000
--- a/logcat.py
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/usr/bin/python
-# **************************************************************************** #
-# #
-# ::: :::::::: #
-# logcat.py :+: :+: :+: #
-# +:+ +:+ +:+ #
-# By: juloo <juloo@student.42.fr> +#+ +:+ +#+ #
-# +#+#+#+#+#+ +#+ #
-# Created: 2015/08/04 18:31:55 by juloo #+# #+# #
-# Updated: 2015/08/04 20:10:14 by juloo ### ########.fr #
-# #
-# **************************************************************************** #
-
-from subprocess import Popen, PIPE
-from sys import argv, stdout, exit
-import re
-
-if len(argv) <= 1:
- print("\033[31mNot enougth argument\033[39m")
- print("Usage: %s <app name (package name)>" % argv[0])
- exit()
-
-prefixReg = re.compile('[^:]+\(\s*([0-9]+)\):.*')
-startAppReg = re.compile('[^:]+: Start proc ([^ ]+)[^:]+:\s*pid\s*=\s*([0-9]+)\s*.*')
-
-app_name = argv[1]
-pids = []
-
-Popen("adb logcat -c".split()).wait()
-
-cmd = Popen("adb shell ps".split(), stdout=PIPE)
-for l in cmd.stdout:
- if app_name in l:
- pids.append(int(l.split()[1]))
-
-if len(pids) <= 0:
- stdout.write("\033[91mApp not started. Waiting")
-else:
- stdout.write("\033[32mApplication pid:")
- for p in pids:
- stdout.write(" %d" % p)
-stdout.write("\033[39m\n")
-stdout.flush()
-
-cmd = Popen("adb logcat".split(), stdout=PIPE)
-for l in iter(cmd.stdout.readline, ""):
- m = startAppReg.match(l)
- if m != None and app_name in m.group(1):
- pid = int(m.group(2))
- if pid not in pids:
- pids.append(pid)
- stdout.write("\033[32mApplication started. pid:")
- for p in pids:
- stdout.write(" %d" % p)
- stdout.write("\033[39m\n")
- stdout.flush()
- m = prefixReg.match(l)
- if m != None and int(m.group(1)) in pids:
- stdout.write(l)
- stdout.flush()
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index 1c22a01..8059b00 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -39,8 +39,6 @@ public class Keyboard2 extends InputMethodService
if (getCurrentInputConnection() == null)
return ;
// DEBUG
- if (_inputView.isHardwareAccelerated())
- log("LOL isHardwareAccelerated");
String k = "Key ";
if ((flags & KeyValue.FLAG_CTRL) != 0)
k += "Ctrl-";