Home
last modified time | relevance | path

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

12345678910>>...14

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/
DMediaPlayerWrapperTest.java176 MediaPlayerWrapperFactory.wrap(mMockContext, null, mThread.getLooper()); in testNullControllerLooper()
190 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testIsReady()
219 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testControllerUpdate()
251 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testNoQueueMediaUpdates()
253 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testNoQueueMediaUpdates()
313 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testDataOnUpdateNoQueue()
315 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testDataOnUpdateNoQueue()
357 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testNullMetadata()
359 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testNullMetadata()
386 TestLooperManager looperManager = new TestLooperManager(mThread.getLooper()); in testNullQueue()
[all …]
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()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
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()
831 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in testAvailablePlayersReceived_AddressedPlayerDoesNotExist()
896 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in testAddressedPlayerChangedToNewKnownPlayer()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
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()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
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()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
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 …]
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()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DBondStateMachineTest.java77 mRemoteDevices = new RemoteDevices(mAdapterService, mHandlerThread.getLooper()); in setUp()
113 TestUtils.waitForLooperToFinishScheduledTask(mBondStateMachine.getHandler().getLooper()); in testCreateBondAfterRemoveBond()
117 TestUtils.waitForLooperToFinishScheduledTask(mBondStateMachine.getHandler().getLooper()); in testCreateBondAfterRemoveBond()
124 TestUtils.waitForLooperToFinishScheduledTask(mBondStateMachine.getHandler().getLooper()); in testCreateBondAfterRemoveBond()
127 TestUtils.waitForLooperToFinishScheduledTask(mBondStateMachine.getHandler().getLooper()); in testCreateBondAfterRemoveBond()
136 TestUtils.waitForLooperToFinishScheduledTask(mBondStateMachine.getHandler().getLooper()); in testCreateBondAfterRemoveBond()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiThreadRunner.java87 wifiThreadThrowable.setStackTrace(mHandler.getLooper().getThread().getStackTrace()); in call()
113 wifiThreadThrowable.setStackTrace(mHandler.getLooper().getThread().getStackTrace()); in run()
234 if (Looper.myLooper() == handler.getLooper()) { in runWithScissors()
DWifiInjector.java253 Looper wifiLooper = mWifiHandlerThread.getLooper(); in WifiInjector()
357 new LastMileLogger(this), mClock, mWifiDiagnosticsHandlerThread.getLooper()); in WifiInjector()
706 return new SoftApManager(mContext, mWifiHandlerThread.getLooper(), in makeSoftApManager()
725 mContext, mWifiConfigManager, mBatteryStats, mWifiHandlerThread.getLooper(), in makeClientModeImpl()
738 mLockManager, mFrameworkFacade, mWifiHandlerThread.getLooper(), in makeClientModeImpl()
761 return new WifiNetworkAgent(mContext, mWifiHandlerThread.getLooper(), in makeWifiNetworkAgent()
777 mContext, mWifiHandlerThread.getLooper(), mClock, in makeClientModeManager()
963 mNetdWrapper = new NetdWrapper(mContext, new Handler(mWifiHandlerThread.getLooper())); in makeNetdWrapper()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanNetworkService.java181 Looper getLooper() { in getLooper() method in IwlanNetworkService.IwlanNetworkServiceProvider
184 return mHandlerThread.getLooper(); in getLooper()
206 mHandler = new NSPHandler(getLooper()); in initHandler()
297 Looper looper = mNetworkCallbackHandlerThread.getLooper(); in onCreateNetworkServiceProvider()
/packages/apps/Camera2/src/com/android/camera/async/
DHandlerFactory.java42 return new Handler(thread.getLooper()); in create()
63 return new Handler(thread.getLooper()); in create()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeAppFocusService.java68 public Looper getLooper() { in getLooper() method in FakeAppFocusService
69 return super.getLooper(); in getLooper()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProvisionerTest.java204 when(RedirectListener.createInstance(mLooper.getLooper())).thenReturn(mRedirectListener); in setUp()
293 mPasspointProvisioner.init(mLooper.getLooper()); in initAndStartProvisioning()
297 assertEquals(mHandler.getLooper(), mLooper.getLooper()); in initAndStartProvisioning()
542 when(RedirectListener.createInstance(mLooper.getLooper())).thenReturn(null); in verifyRedirectStartFailure()
543 mPasspointProvisioner.init(mLooper.getLooper()); in verifyRedirectStartFailure()
547 assertEquals(mHandler.getLooper(), mLooper.getLooper()); in verifyRedirectStartFailure()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pManagerTest.java66 mTestLooper.getLooper(), null, null, mDut)) { in testChannelFinalize() argument
78 mTestLooper.getLooper(), null, null, mDut); in testChannelClose()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java98 new HeadsetClientStateMachine(mHeadsetClientService, mHandlerThread.getLooper(), in setUp()
101 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in setUp()
109 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in tearDown()
303 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testInBandRingtone()
305 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testInBandRingtone()
329 TestUtils.waitForLooperToFinishScheduledTask(mHandlerThread.getLooper()); in testInBandRingtone()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java268 mHandler = spy(new Handler(mLooper.getLooper())); in setUp()
272 mWifiManager = new WifiManager(mContext, mWifiService, mLooper.getLooper()); in setUp()
779 assertEquals(altLooper.getLooper().getThread().getId(), callback.mCallingThreadId); in testMainLooperIsUsedWhenHandlerNotProvided()
792 Handler callbackHandler = new Handler(callbackLooper.getLooper()); in testOnStartedIsCalledWithReservation()
824 Handler callbackHandler = new Handler(callbackLooper.getLooper()); in testOnStartedIsCalledWithReservationAndSaeSoftApConfig()
851 Handler callbackHandler = new Handler(callbackLooper.getLooper()); in testOnStartedIsCalledWithNullConfig()
876 Handler callbackHandler = new Handler(callbackLooper.getLooper()); in testOnStoppedIsCalled()
899 Handler callbackHandler = new Handler(callbackLooper.getLooper()); in testOnFailedIsCalled()
1684 Handler altHandler = new Handler(altLooper.getLooper()); in softApCallbackIsCalledOnCorrectThread()
1731 assertEquals(altLooper.getLooper().getThread().getId(), observer.mCallingThreadId); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogicHandler.java74 mNonUIThreadHandler = new Handler(handlerThread.getLooper(), this); in InputLogicHandler()
86 LooperCompatUtils.quitSafely(mNonUIThreadHandler.getLooper()); in destroy()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
DFdEventsReader.java97 mQueue = mHandler.getLooper().getQueue(); in FdEventsReader()
268 return (mHandler.getLooper() == Looper.myLooper()); in onCorrectThread()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pMonitorTest.java51 mHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp()
52 mSecondHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp()
/packages/modules/Connectivity/service/src/com/android/server/
DTestNetworkService.java84 mHandler = new Handler(mHandlerThread.getLooper()); in TestNetworkService()
91 mNetworkProvider = new NetworkProvider(mContext, mHandler.getLooper(), in TestNetworkService()
336 mHandler.getLooper(), in setupTestNetwork()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DRedirectListenerTest.java53 private Handler mHandler = new Handler(mLooper.getLooper());
87 mRedirectListener = new RedirectListenerSpy(mLooper.getLooper(), TEST_PORT); in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/
DPbapStateMachineTest.java78 mHandler = new Handler(mHandlerThread.getLooper()); in setUp()
81 mPbapStateMachine = PbapStateMachine.make(mBluetoothPbapService, mHandlerThread.getLooper(), in setUp()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareSession.java160 mgr.publish(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in publish()
208 mgr.subscribe(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in subscribe()
/packages/services/Telecomm/src/com/android/server/telecom/
DAsyncRingtonePlayer.java132 return new Handler(thread.getLooper(), null /*callback*/, true /*async*/) { in getNewHandler()
252 mHandler.getLooper().quitSafely();

12345678910>>...14