Methods Summary |
---|
public void | executeOrSendMessage(android.os.Message msg)
// If we are calling this from the main thread, then we can call
// right through. Otherwise, we need to send the message to the
// main thread.
if (Looper.myLooper() == mMainLooper) {
mCallback.executeMessage(msg);
msg.recycle();
return;
}
mH.sendMessage(msg);
|
public android.os.Handler | getHandler()
return mH;
|
public boolean | hasMessages(int what)
return mH.hasMessages(what);
|
public android.os.Message | obtainMessage(int what)
return mH.obtainMessage(what);
|
public android.os.Message | obtainMessageBO(int what, boolean arg1, java.lang.Object arg2)
return mH.obtainMessage(what, arg1 ? 1 : 0, 0, arg2);
|
public android.os.Message | obtainMessageBOO(int what, boolean arg1, java.lang.Object arg2, java.lang.Object arg3)
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg2;
args.arg2 = arg3;
return mH.obtainMessage(what, arg1 ? 1 : 0, 0, args);
|
public android.os.Message | obtainMessageI(int what, int arg1)
return mH.obtainMessage(what, arg1, 0);
|
public android.os.Message | obtainMessageII(int what, int arg1, int arg2)
return mH.obtainMessage(what, arg1, arg2);
|
public android.os.Message | obtainMessageIIII(int what, int arg1, int arg2, int arg3, int arg4)
SomeArgs args = SomeArgs.obtain();
args.argi1 = arg1;
args.argi2 = arg2;
args.argi3 = arg3;
args.argi4 = arg4;
return mH.obtainMessage(what, 0, 0, args);
|
public android.os.Message | obtainMessageIIIIII(int what, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6)
SomeArgs args = SomeArgs.obtain();
args.argi1 = arg1;
args.argi2 = arg2;
args.argi3 = arg3;
args.argi4 = arg4;
args.argi5 = arg5;
args.argi6 = arg6;
return mH.obtainMessage(what, 0, 0, args);
|
public android.os.Message | obtainMessageIIIIO(int what, int arg1, int arg2, int arg3, int arg4, java.lang.Object arg5)
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg5;
args.argi1 = arg1;
args.argi2 = arg2;
args.argi3 = arg3;
args.argi4 = arg4;
return mH.obtainMessage(what, 0, 0, args);
|
public android.os.Message | obtainMessageIIO(int what, int arg1, int arg2, java.lang.Object arg3)
return mH.obtainMessage(what, arg1, arg2, arg3);
|
public android.os.Message | obtainMessageIIOO(int what, int arg1, int arg2, java.lang.Object arg3, java.lang.Object arg4)
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg3;
args.arg2 = arg4;
return mH.obtainMessage(what, arg1, arg2, args);
|
public android.os.Message | obtainMessageIO(int what, int arg1, java.lang.Object arg2)
return mH.obtainMessage(what, arg1, 0, arg2);
|
public android.os.Message | obtainMessageIOO(int what, int arg1, java.lang.Object arg2, java.lang.Object arg3)
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg2;
args.arg2 = arg3;
return mH.obtainMessage(what, arg1, 0, args);
|
public android.os.Message | obtainMessageIOOO(int what, int arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg2;
args.arg2 = arg3;
args.arg3 = arg4;
return mH.obtainMessage(what, arg1, 0, args);
|
public android.os.Message | obtainMessageO(int what, java.lang.Object arg1)
return mH.obtainMessage(what, 0, 0, arg1);
|
public android.os.Message | obtainMessageOO(int what, java.lang.Object arg1, java.lang.Object arg2)
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg1;
args.arg2 = arg2;
return mH.obtainMessage(what, 0, 0, args);
|
public android.os.Message | obtainMessageOOO(int what, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg1;
args.arg2 = arg2;
args.arg3 = arg3;
return mH.obtainMessage(what, 0, 0, args);
|
public android.os.Message | obtainMessageOOOO(int what, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg1;
args.arg2 = arg2;
args.arg3 = arg3;
args.arg4 = arg4;
return mH.obtainMessage(what, 0, 0, args);
|
public android.os.Message | obtainMessageOOOOO(int what, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
SomeArgs args = SomeArgs.obtain();
args.arg1 = arg1;
args.arg2 = arg2;
args.arg3 = arg3;
args.arg4 = arg4;
args.arg5 = arg5;
return mH.obtainMessage(what, 0, 0, args);
|
public void | removeMessages(int what)
mH.removeMessages(what);
|
public void | removeMessages(int what, java.lang.Object obj)
mH.removeMessages(what, obj);
|
public void | sendMessage(android.os.Message msg)
mH.sendMessage(msg);
|
public SomeArgs | sendMessageAndWait(android.os.Message msg)
if (Looper.myLooper() == mH.getLooper()) {
throw new IllegalStateException("Can't wait on same thread as looper");
}
SomeArgs args = (SomeArgs)msg.obj;
args.mWaitState = SomeArgs.WAIT_WAITING;
mH.sendMessage(msg);
synchronized (args) {
while (args.mWaitState == SomeArgs.WAIT_WAITING) {
try {
args.wait();
} catch (InterruptedException e) {
return null;
}
}
}
args.mWaitState = SomeArgs.WAIT_NONE;
return args;
|
public void | sendMessageDelayed(android.os.Message msg, long delayMillis)
mH.sendMessageDelayed(msg, delayMillis);
|