Home
last modified time | relevance | path

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

12345678910>>...22

/frameworks/base/core/java/android/os/
DHandlerThread.java77 public Looper getLooper() { in getLooper() method in HandlerThread
113 mHandler = new Handler(getLooper()); in getThreadHandler()
138 Looper looper = getLooper(); in quit()
165 Looper looper = getLooper(); in quitSafely()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wmshell/
DWMShellConcurrencyModule.java86 mainThread.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in provideShellMainHandler()
87 mainThread.getLooper().setSlowLogThresholdMs(MSGQ_SLOW_DISPATCH_THRESHOLD_MS, in provideShellMainHandler()
90 return Handler.createAsync(mainThread.getLooper()); in provideShellMainHandler()
120 shellAnimationThread.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in provideShellAnimationExecutor()
121 shellAnimationThread.getLooper().setSlowLogThresholdMs(MSGQ_SLOW_DISPATCH_THRESHOLD_MS, in provideShellAnimationExecutor()
124 return new HandlerExecutor(Handler.createAsync(shellAnimationThread.getLooper())); in provideShellAnimationExecutor()
/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/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/packages/SystemUI/src/com/android/systemui/util/concurrency/
DThreadFactoryImpl.java35 return handlerThread.getLooper(); in buildLooperOnNewThread()
52 return buildDelayableExecutorOnLooper(handlerThread.getLooper()); in buildDelayableExecutorOnNewThread()
57 return buildDelayableExecutorOnLooper(handler.getLooper()); in buildDelayableExecutorOnHandler()
/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/servicestests/src/com/android/server/hdmi/
DArcTerminationActionFromAvrTest.java76 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
79 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
91 mIThermalServiceMock, new Handler(mTestLooper.getLooper())); in setUp()
115 return mTestLooper.getLooper(); in setUp()
119 Looper looper = mTestLooper.getLooper(); in setUp()
DArcInitiationActionFromAvrTest.java75 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
78 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
95 mIThermalServiceMock, new Handler(mTestLooper.getLooper())); in setUp()
114 return mTestLooper.getLooper(); in setUp()
125 Looper looper = mTestLooper.getLooper(); in setUp()
DActiveSourceActionTest.java73 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
76 mIThermalServiceMock, new Handler(mTestLooper.getLooper()))); in setUp()
103 mIThermalServiceMock, new Handler(mTestLooper.getLooper())); in setUp()
112 Looper looper = mTestLooper.getLooper(); in setUp()
/frameworks/base/services/core/java/com/android/server/servicewatcher/
DServiceWatcherImpl.java194 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in bind()
218 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in unbind()
239 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in runOnBinder()
258 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceConnected()
278 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceDisconnected()
294 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onBindingDied()
/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/
DDisplayThread.java45 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked()
46 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()
DAnimationThread.java42 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in ensureThreadLocked()
43 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()
/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/services/core/java/com/android/server/vcn/
DVcnContext.java53 public Looper getLooper() { in getLooper() method in VcnContext
72 if (getLooper().getThread() != Thread.currentThread()) { in ensureRunningOnLooperThread()
/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/apex/jobscheduler/service/java/com/android/server/
DJobSchedulerBackgroundThread.java47 final Looper looper = sInstance.getLooper(); in ensureThreadLocked()
51 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
/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/cmds/uinput/src/com/android/commands/uinput/
DDevice.java76 mHandler = new DeviceHandler(mThread.getLooper()); in Device()
159 getLooper().quitSafely(); in handleMessage()
175 mBarrierToken = getLooper().myQueue().postSyncBarrier(); in pauseEvents()
179 getLooper().myQueue().removeSyncBarrier(mBarrierToken); in resumeEvents()
/frameworks/base/cmds/hid/src/com/android/commands/hid/
DDevice.java77 mHandler = new DeviceHandler(mThread.getLooper()); in Device()
151 getLooper().quitSafely(); in handleMessage()
166 mBarrierToken = getLooper().myQueue().postSyncBarrier(); in pauseEvents()
170 getLooper().myQueue().removeSyncBarrier(mBarrierToken); in resumeEvents()
/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()

12345678910>>...22