/frameworks/base/core/java/android/os/ |
TestLooperManager.java | 36 private final Looper mLooper; 52 mLooper = looper; 53 mQueue = mLooper.getQueue(); 101 sHeldLoopers.remove(mLooper); 118 if (Looper.myLooper() == mLooper) {
|
Handler.java | 202 mLooper = Looper.myLooper(); 203 if (mLooper == null) { 207 mQueue = mLooper.mQueue; 232 mLooper = looper; 500 if (Looper.myLooper() == mLooper) { 728 return mLooper; 733 if (mLooper == null) { 736 mLooper.dump(pw, prefix + " "); 745 if (mLooper == null) { 748 mLooper.dump(pw, prefix + " ", this) [all...] |
/frameworks/av/media/libstagefright/wifi-display/source/ |
RepeaterSource.cpp | 63 mLooper = new ALooper; 64 mLooper->setName("repeater_looper"); 65 mLooper->start(); 68 mLooper->registerHandler(mReflector); 84 if (mLooper != NULL) { 85 mLooper->stop(); 86 mLooper.clear();
|
RepeaterSource.h | 50 sp<ALooper> mLooper;
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
ConnectionDetector.cpp | 109 mLooper(new Looper(true /*allowNonCallback*/)), mInotifyFd(-1) { 110 if (mLooper == nullptr) { 121 if (wd < 0 || !mLooper->addFd(mInotifyFd, POLL_IDENT, Looper::EVENT_INPUT, nullptr, nullptr)) { 128 // mLooper != null && mInotifyFd added to looper 135 mLooper->wake(); 214 Looper::setForThread(mLooper); 217 int ret = mLooper->pollOnce(-1); 232 mLooper->removeFd(mInotifyFd);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiStateMachineTest.java | 330 TestLooper mLooper; 382 mLooper = new TestLooper(); 467 Handler handler = new Handler(mLooper.getLooper()) { 486 mLooper.dispatchAll(); 490 mWsm = new WifiStateMachine(mContext, mFrameworkFacade, mLooper.getLooper(), 503 mLooper.dispatchAll(); 528 mLooper.dispatchAll(); 552 mLooper.dispatchAll(); 584 mLooper.dispatchAll(); 631 mLooper.dispatchAll() [all...] |
SoftApManagerTest.java | 69 TestLooper mLooper; 89 mLooper = new TestLooper(); 112 SoftApManager newSoftApManager = new SoftApManager(mLooper.getLooper(), 121 mLooper.dispatchAll(); 161 SoftApManager newSoftApManager = new SoftApManager(mLooper.getLooper(), 170 mLooper.dispatchAll(); 172 mLooper.dispatchAll(); 182 mLooper.dispatchAll(); 195 mLooper.dispatchAll(); 207 mLooper.dispatchAll() [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
NotificationPlayer.java | 68 private Looper mLooper; 85 // ok to modify mLooper as here we are 87 mLooper = Looper.myLooper(); 88 if (DEBUG) Log.d(mTag, "in run: new looper " + mLooper); 170 if((mLooper != null) 171 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { 172 if (DEBUG) { Log.d(mTag, "in startSound quitting looper " + mLooper); } 173 mLooper.quit(); 230 if ((mLooper != null) && 231 (mLooper.getThread().getState() != Thread.State.TERMINATED) [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
NotificationPlayer.java | 65 private Looper mLooper; 83 mLooper = Looper.myLooper(); 132 if ((mLooper != null) 133 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { 134 mLooper.quit(); 168 if ((mLooper != null) && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { 169 mLooper.quit(); 229 if (mLooper != null) { 230 mLooper.quit() [all...] |
/frameworks/base/tests/utils/testutils/java/android/os/test/ |
TestLooper.java | 38 protected final Looper mLooper; 72 mLooper = LOOPER_CONSTRUCTOR.newInstance(false); 76 threadLocalLooper.set(mLooper); 83 return mLooper; 88 MessageQueue queue = mLooper.getQueue(); 132 MESSAGE_QUEUE_MESSAGES_FIELD.set(mLooper.getQueue(),
|
/frameworks/base/libs/hwui/tests/common/ |
TestContext.cpp | 57 mLooper = new Looper(true); 59 mLooper->addFd(mDisplayEventReceiver.getFd(), IDENT_DISPLAYEVENT, 123 mLooper->pollOnce(-1);
|
/frameworks/av/media/libmediaplayerservice/ |
RemoteDisplay.h | 49 sp<ALooper> mLooper;
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
ALooperRoster.h | 40 wp<ALooper> mLooper;
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
Nat464XlatTest.java | 62 TestLooper mLooper; 71 mLooper = new TestLooper(); 72 mHandler = new Handler(mLooper.getLooper()); 100 mLooper.dispatchNext(); 117 mLooper.dispatchNext(); 141 mLooper.dispatchNext(); 152 mLooper.dispatchNext(); 187 mLooper.dispatchNext(); 192 mLooper.dispatchNext();
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
WifiScanningServiceTest.java | 100 TestLooper mLooper; 117 mLooper = new TestLooper(); 118 mWifiMetrics = new WifiMetrics(mClock, mLooper.getLooper(), new WifiAwareMetrics(mClock)); 130 mWifiScanningServiceImpl = new WifiScanningServiceImpl(mContext, mLooper.getLooper(), 152 controlChannel.connect(mLooper.getLooper(), mWifiScanningServiceImpl.getMessenger(), 154 mLooper.dispatchAll(); 372 mLooper.dispatchAll(); 420 mLooper.dispatchAll(); 429 mLooper.dispatchAll(); 432 mLooper.dispatchAll() [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
StreamingSource.cpp | 48 if (mLooper != NULL) { 49 mLooper->unregisterHandler(id()); 50 mLooper->stop(); 71 if (mLooper == NULL) { 72 mLooper = new ALooper; 73 mLooper->setName("streaming"); 74 mLooper->start(); 76 mLooper->registerHandler(this);
|
StreamingSource.h | 66 sp<ALooper> mLooper;
|
/frameworks/base/core/jni/ |
android_os_MessageQueue.cpp | 80 mLooper = Looper::getForThread(); 81 if (mLooper == NULL) { 82 mLooper = new Looper(false); 83 Looper::setForThread(mLooper); 110 mLooper->pollOnce(timeoutMillis); 122 mLooper->wake(); 134 mLooper->addFd(fd, Looper::POLL_CALLBACK, looperEvents, this, 137 mLooper->removeFd(fd);
|
/packages/services/Car/vehicle_monitor_service/ |
VehicleMonitorService.h | 50 const sp<Looper>& mLooper, VehicleMonitorService& service); 61 const sp<Looper> mLooper;
|
VehicleMonitorService.cpp | 39 : mLooper(looper), 42 mLooper->sendMessageDelayed(monitorInterval, this, Message(COLLECT_DATA)); 61 mLooper->sendMessageDelayed(monitorInterval, this, Message(COLLECT_DATA));
|
/frameworks/base/libs/androidfw/ |
DisplayEventDispatcher.cpp | 38 mLooper(looper), mReceiver(vsyncSource), mWaitingForVsync(false) { 49 int rc = mLooper->addFd(mReceiver.getFd(), 0, Looper::EVENT_INPUT, 61 mLooper->removeFd(mReceiver.getFd());
|
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/ |
ASensorEventQueue.cpp | 34 : mLooper(looper), 117 mLooper->signalSensorEvents(this); 134 mLooper->invalidateSensorQueue(this);
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
WifiManagerTest.java | 70 private TestLooper mLooper; 77 mLooper = new TestLooper(); 78 mHandler = spy(new Handler(mLooper.getLooper())); 83 mWifiManager = new WifiManager(mContext, mWifiService, mLooper.getLooper()); 346 mLooper.dispatchAll(); 383 mLooper.dispatchAll(); 391 mLooper.dispatchAll(); 410 mLooper.dispatchAll(); 417 mLooper.dispatchAll(); 435 mLooper.dispatchAll() [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
PostProcTestBase.java | 31 protected Looper mLooper = null;
|
/cts/tests/tests/os/src/android/os/cts/ |
TokenWatcherTest.java | 47 private Looper mLooper; 54 mLooper = Looper.myLooper(); 64 mHandler = new Handler(mLooper); 103 mLooper.quit();
|