...
try {
for (CallbackRecord c = callbacks; c != null; c = c.next) {
if (DEBUG) {
Xlog.d(TAG, "RunCallback: type=" + callbackType
+ ", action=" + c.action + ", token=" + c.token
+ ", latencyMillis=" + (SystemClock.uptimeMillis() - c.dueTime)
+ ",this = " + this);
}
c.run(frameTimeNanos);
}
} finally {
...
doCallbacks遍历postCallbackDelayedInternal里面添加的元素,并执行元素里的run函数,整个流程也就跑了一遍。