Home
last modified time | relevance | path

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

12345678910>>...36

/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/
H A DMediaPlayerWrapperTest.java251 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testNoQueueMediaUpdates()
313 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testDataOnUpdateNoQueue()
357 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testNullMetadata()
386 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testNullQueue()
413 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testQueueCached()
436 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testPlaybackStateUpdateSpam()
493 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testWrapperCleanup()
513 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testIgnorePlaystateNone()
543 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testMetadataSync()
604 .acquireLooperManager(mThread.getLooper()); in testMetadataSyncFail()
[all …]
H A DBrowserPlayerWrapperTest.java175 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testWrap()
190 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testConnect_Successful()
204 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testConnect_Suspended()
221 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testConnect_Failed()
235 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testEmptyRoot()
253 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testDisconnect()
264 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testGetRootId()
277 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testPlayItem()
314 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testPlayItem_Timeout()
341 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testGetFolderItems()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
H A 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 …]
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/
H A DWMShellConcurrencyModule.java100 mainThread.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in provideShellMainHandler()
101 mainThread.getLooper().setSlowLogThresholdMs(MSGQ_SLOW_DISPATCH_THRESHOLD_MS, in provideShellMainHandler()
104 return Handler.createAsync(mainThread.getLooper()); in provideShellMainHandler()
135 shellAnimationThread.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in provideShellAnimationExecutor()
136 shellAnimationThread.getLooper().setSlowLogThresholdMs(MSGQ_SLOW_DISPATCH_THRESHOLD_MS, in provideShellAnimationExecutor()
139 return new HandlerExecutor(Handler.createAsync(shellAnimationThread.getLooper())); in provideShellAnimationExecutor()
/aosp12/frameworks/base/core/java/android/os/
H A 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()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DLooperExecutor.java44 if (getHandler().getLooper() == Looper.myLooper()) { in execute()
99 return getHandler().getLooper().getThread(); in getThread()
105 public Looper getLooper() { in getLooper() method in LooperExecutor
106 return getHandler().getLooper(); in getLooper()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
H A DAvrcpControllerStateMachineTest.java169 TestUtils.waitForLooperToFinishScheduledTask(sm.getHandler().getLooper()); in destroyStateMachine()
203 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in setUpConnectedState()
257 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in setCurrentTrack()
267 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in setPlaybackState()
276 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in setPlaybackPosition()
318 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in setNowPlayingList()
750 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in testAvailablePlayersReceived_AddressedPlayerExists()
775 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in testAvailablePlayersReceived_AddressedPlayerExists()
984 TestUtils.waitForLooperToBeIdle(mAvrcpStateMachine.getHandler().getLooper()); in testAddressedPlayerChangedToSamePlayerId()
1009 TestUtils.waitForLooperToBeIdle(mAvrcpStateMachine.getHandler().getLooper()); in testAddressedPlayerChangedToSamePlayerId()
[all …]
/aosp12/frameworks/base/core/java/android/view/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/
H A DThreadFactoryImpl.java35 return handlerThread.getLooper(); in buildLooperOnNewThread()
52 return buildDelayableExecutorOnLooper(handlerThread.getLooper()); in buildDelayableExecutorOnNewThread()
57 return buildDelayableExecutorOnLooper(handler.getLooper()); in buildDelayableExecutorOnHandler()
/aosp12/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
H A DIkeSessionTest.java96 assertNotNull(ikeSession.mIkeSessionStateMachine.getHandler().getLooper()); in testConstructIkeSession()
138 sessions[0].mIkeSessionStateMachine.getHandler().getLooper(), in testConstructFromDifferentThreads()
139 sessions[1].mIkeSessionStateMachine.getHandler().getLooper()); in testConstructFromDifferentThreads()
151 testLooper.getLooper(), in testOpensIkeSession()
196 new TestLooper().getLooper(), in testThrowWhenSetupMobikeWithTransport()
/aosp12/frameworks/base/core/tests/coretests/src/android/os/
H A DHandlerThreadTest.java44 assertNull(th1.getLooper()); in testHandlerThread()
49 assertNotNull(th1.getLooper()); in testHandlerThread()
69 final Handler h1 = new Handler(th1.getLooper()) { in testHandlerThread()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
H A 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()
H A 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()
H A 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()
/aosp12/frameworks/base/services/core/java/com/android/server/servicewatcher/
H A 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()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
H A 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()
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DCallAudioRouteStateMachineTest.java147 mThreadHandler.getLooper()); in testEarpieceAutodetect()
166 mThreadHandler.getLooper()); in testStreamRingMuteChange()
209 mThreadHandler.getLooper()); in testSpeakerPersistence()
254 mThreadHandler.getLooper()); in testUserBluetoothSwitchOff()
298 mThreadHandler.getLooper()); in testUserBluetoothSwitchOffAndOnAgain()
376 mThreadHandler.getLooper()); in testBluetoothRinging()
412 mThreadHandler.getLooper()); in testConnectBluetoothDuringRinging()
467 mThreadHandler.getLooper()); in testConnectSpecificBluetoothDevice()
517 mThreadHandler.getLooper()); in testFocusChangeFromQuiescentSpeaker()
548 mThreadHandler.getLooper()); in testFocusChangeWithAlreadyActiveBtDevice()
[all …]
H A DCallAudioModeStateMachineTest.java75 mAudioManager, mTestThread.getLooper()); in testNoFocusWhenRingerSilenced()
107 mAudioManager, mTestThread.getLooper()); in testNoRingWhenDeviceIsAtEar()
143 mAudioManager, mTestThread.getLooper()); in testRegainFocusWhenHfpIsConnectedSilenced()
187 mAudioManager, mTestThread.getLooper()); in testDoNotRingTwiceWhenHfpConnected()
225 mAudioManager, mTestThread.getLooper()); in testStartRingingAfterHfpConnectedIfNotAlreadyPlaying()
/aosp12/frameworks/base/cmds/uinput/src/com/android/commands/uinput/
H A 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()
/aosp12/packages/apps/Camera2/src/com/android/camera/async/
H A DHandlerFactory.java42 return new Handler(thread.getLooper()); in create()
63 return new Handler(thread.getLooper()); in create()
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DDisplayThread.java45 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked()
46 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
H A DAnimationThread.java42 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in ensureThreadLocked()
43 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
H A DIoThread.java43 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_SYSTEM_SERVER); in ensureThreadLocked()
44 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
/aosp12/packages/services/Car/car-test-lib/src/android/car/testapi/
H A DFakeAppFocusService.java68 public Looper getLooper() { in getLooper() method in FakeAppFocusService
69 return super.getLooper(); in getLooper()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DSurfaceAnimationThread.java42 sInstance.getLooper().setTraceTag(Trace.TRACE_TAG_WINDOW_MANAGER); in ensureThreadLocked()
43 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()

12345678910>>...36