http://i-miss-erin.blogspot.com/2010/04/android-cts-compatibility-test-suite.htmlWhat is CTS?Compatibility Test Suite is a command mode tool to run a series of test cases in Android. They published all from Eclair branch on January 2010.git repository http://android.git.kernel.org/?p=platform/cts.git;a=summaryHow to run CTS in host machine?$ cd $MYDROID$ . build/envsetup.sh$ make cts(it would generate all test plans, packages, cases, result report format and then zip to a android-cts.zip file
...
message loop for an threadThis is a typical example of the implementation of a Looper thread, using the separation of and to create an initial Handler to communicate with the Looper. class LooperThread extends Thread { public Handler mHandler; public void run() { Looper.prepare(); mHandler = new Handler() {
...
$ cd test_jni$ cat com/jfo/check.javapackage com.jfo;public class check { public static native String hello();static {try {System.loadLibrary("test");} catch (UnsatisfiedLinkError ule) {System.err.println("WARNING: Could not load library!");}}public static void main(String[] args) {String s = new check().hello();System.out.println(s);}}$ javac com/jfo/check.java$ javah -jni com.jfo.check // this will generate "com_jfo_check.h" he
...
$ cd test_jni$ cat com/jfo/check.javapackage com.jfo;public class check { public native String hello();static {System.loadLibrary("test");}public static void main(String[] args) {String s = new check().hello();System.out.println(s);}}$ javac com/jfo/check.java$ javah -jni com.jfo.check // this will generate "com_jfo_check.h" header file.$ lscom com_jfo_check.h jni$ cat com_jfo_check.h/ DO NOT EDIT THIS FILE - it is machine gene
...