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 com.android.internal.os.HandlerCaller$SomeArgs | obtainArgs()
synchronized (mH) {
SomeArgs args = mArgsPool;
if (args != null) {
mArgsPool = args.next;
args.next = null;
mArgsPoolSize--;
return args;
}
}
return new SomeArgs();
|
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 = obtainArgs();
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 = obtainArgs();
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 = obtainArgs();
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 = obtainArgs();
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 | 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 = obtainArgs();
args.arg1 = arg2;
args.arg2 = arg3;
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 = obtainArgs();
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 = obtainArgs();
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 = obtainArgs();
args.arg1 = arg1;
args.arg2 = arg2;
args.arg3 = arg3;
args.arg4 = arg4;
return mH.obtainMessage(what, 0, 0, args);
|
public void | recycleArgs(com.android.internal.os.HandlerCaller$SomeArgs args)
synchronized (mH) {
if (mArgsPoolSize < ARGS_POOL_MAX_SIZE) {
args.next = mArgsPool;
mArgsPool = args;
mArgsPoolSize++;
}
}
|
public void | sendMessage(android.os.Message msg)
mH.sendMessage(msg);
|