Esempio n. 1
0
Handler::Handler(Looper& looper) {
    mMessageQueue = &looper.myMessageQueue();
    mRunnableQueue = &looper.myRunnableQueue();
}
Esempio n. 2
0
Handler::Handler() {
    Looper* looper = Looper::myLooper();
    Assert::assertNotNull(looper);
    mMessageQueue = &looper->myMessageQueue();
    mRunnableQueue = &looper->myRunnableQueue();
}