Home
last modified time | relevance | path

Searched refs:getLooper (Results 1 – 25 of 552) sorted by relevance

12345678910>>...23

/frameworks/base/core/java/android/os/
DHandlerThread.java77 public Looper getLooper() { in getLooper() method in HandlerThread
101 mHandler = new Handler(getLooper()); in getThreadHandler()
126 Looper looper = getLooper(); in quit()
153 Looper looper = getLooper(); in quitSafely()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccConnectorTest.java90 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testInitialState_unavailable_noPermission()
99 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testInitialState_unavailable_noBindPermission()
108 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testInitialState_unavailable_noPriority()
117 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testInitialState_commandRejected()
138 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testInitialState_switchCommandRejected()
160 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testInitialState_available()
167 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testPackageChange_unavailableToAvailable()
186 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testPackageChange_availableToUnavailable()
206 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testCommandDispatch_success()
238 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testCommandDispatch_remoteException()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DRequestHandlerThread.java47 mHandler = new Handler(getLooper(), mCallback); in onLooperPrepared()
69 synchronized (mHandler.getLooper().getQueue()) { in hasAnyMessages()
81 synchronized (mHandler.getLooper().getQueue()) { in removeMessages()
99 MessageQueue queue = handler.getLooper().getQueue(); in waitUntilIdle()
/frameworks/base/core/java/android/view/
DInsetsAnimationThread.java41 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_VIEW); in ensureThreadLocked()
42 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
51 sInstance.getLooper().quitSafely(); in release()
/frameworks/base/core/tests/coretests/src/android/os/
DHandlerThreadTest.java44 assertNull(th1.getLooper()); in testHandlerThread()
49 assertNotNull(th1.getLooper()); in testHandlerThread()
69 final Handler h1 = new Handler(th1.getLooper()) { in testHandlerThread()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSlicePermissionManagerTest.java59 TestableLooper.get(this).getLooper(), sliceDir); in testGrant()
80 TestableLooper.get(this).getLooper(), sliceDir); in testBackup()
99 TestableLooper.get(this).getLooper()); in testBackup()
124 TestableLooper.get(this).getLooper(), sliceDir); in testInvalid()
/frameworks/base/services/core/java/com/android/server/
DAnimationThread.java42 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in ensureThreadLocked()
43 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
DIoThread.java43 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked()
44 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
DDisplayThread.java45 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked()
46 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
DFgThread.java50 final Looper looper = sInstance.getLooper(); in ensureThreadLocked()
54 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
DUiThread.java52 final Looper looper = sInstance.getLooper(); in ensureThreadLocked()
56 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
DServiceWatcher.java294 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onBestServiceChanged()
315 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in rebind()
346 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceConnected()
367 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceDisconnected()
385 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onBindingDied()
468 if (Looper.myLooper() == mHandler.getLooper()) {
/frameworks/base/services/core/java/com/android/server/wm/
DSurfaceAnimationThread.java42 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in ensureThreadLocked()
43 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
/frameworks/base/graphics/java/android/graphics/
DHardwareRendererObserver.java66 if (handler == null || handler.getLooper() == null) { in HardwareRendererObserver()
70 if (handler.getLooper().getQueue() == null) { in HardwareRendererObserver()
/frameworks/base/core/java/com/android/internal/os/
DBackgroundThread.java45 final Looper looper = sInstance.getLooper(); in ensureThreadLocked()
49 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
/frameworks/base/cmds/hid/src/com/android/commands/hid/
DDevice.java66 mHandler = new DeviceHandler(mThread.getLooper()); in Device()
139 getLooper().quitSafely(); in handleMessage()
154 mBarrierToken = getLooper().myQueue().postSyncBarrier(); in pauseEvents()
158 getLooper().myQueue().removeSyncBarrier(mBarrierToken); in resumeEvents()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
DMffTestCase.java42 Handler handler = new Handler(mMffContextHandlerThread.getLooper()); in setUp()
60 mMffContextHandlerThread.getLooper().quit(); in tearDown()
/frameworks/base/wifi/tests/src/android/net/wifi/p2p/
DWifiP2pManagerTest.java66 mTestLooper.getLooper(), null, null, mDut)) { in testChannelFinalize() argument
78 mTestLooper.getLooper(), null, null, mDut); in testChannelClose()
/frameworks/native/services/displayservice/
DDisplayEventReceiver.cpp32 sp<Looper> getLooper() { in getLooper() function
50 mLooperAttached = getLooper()->addFd(mFwkReceiver.getFd(), in AttachedEvent()
68 return getLooper()->removeFd(mFwkReceiver.getFd()); in detach()
/frameworks/base/services/core/java/com/android/server/net/
DDelayedDiskWrite.java54 mDiskWriteHandler = new Handler(mDiskWriteHandlerThread.getLooper()); in write()
86 mDiskWriteHandler.getLooper().quit(); in doWrite()
/frameworks/base/tests/testables/src/android/testing/
DTestableLooper.java70 public Looper getLooper() { in getLooper() method in TestableLooper
168 new Handler(getLooper()).post(() -> { in runWithLooper()
242 mTestableLooper.getLooper().getThread().setName(test.getClass().getName()); in LooperFrameworkMethod()
319 return mHandlerThread.getLooper(); in createLooper()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiInjector.java189 Looper wifiLooper = mWifiHandlerThread.getLooper(); in WifiInjector()
561 return new SoftApManager(mContext, mWifiHandlerThread.getLooper(), in makeSoftApManager()
573 return new ClientModeManager(mContext, mWifiHandlerThread.getLooper(), mClock, in makeClientModeManager()
611 mWifiHandlerThread.getLooper(), mFrameworkFacade, mClock, mWifiMetrics, in makeWifiConnectivityManager()
615 mWifiMetrics, clientModeImpl, mWifiHandlerThread.getLooper(), mDeviceConfigFacade, in makeWifiConnectivityManager()
626 mWifiMetrics, new Handler(mWifiHandlerThread.getLooper()), in makeWifiConnectivityManager()
638 wifiConnectivityManager, new Handler(mWifiHandlerThread.getLooper())); in makeConnectionFailureNotifier()
648 mWifiHandlerThread.getLooper(), mContext, nc, in makeWifiNetworkFactory()
671 mWifiHandlerThread.getLooper(), mContext, nc, wifiConnectivityManager); in makeUntrustedWifiNetworkFactory()
820 mNetdWrapper = new NetdWrapper(mContext, new Handler(mWifiHandlerThread.getLooper())); in makeNetdWrapper()
/frameworks/native/libs/sensor/
DSensorEventQueue.cpp83 sp<Looper> SensorEventQueue::getLooper() const in getLooper() function in android::SensorEventQueue
96 sp<Looper> looper(getLooper()); in waitForEvent()
120 sp<Looper> looper(getLooper()); in wake()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DNetworkWatchlistServiceTests.java121 mHandlerThread.getLooper()); in setUp()
175 mHandlerThread.getLooper()) { in testNetworkEvents()
201 mHandlerThread.getLooper()) { in testNetworkEvents()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSysuiTestCase.java132 com.android.systemui.util.Assert.setTestableLooper(TestableLooper.get(this).getLooper()); in allowTestableLooperAsMainThread()
174 validateThread(h.getLooper()); in waitForIdleSync()
176 h.getLooper().getQueue().addIdleHandler(idler); in waitForIdleSync()

12345678910>>...23