/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestableLooperTest.java | 131 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooper() 134 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper() 141 new Handler(Looper.getMainLooper()).post(r); in testMainLooper() 153 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testNonMainLooperAnnotation() 159 assertEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooperAnnotation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | Assert.java | 27 if (!Looper.getMainLooper().isCurrentThread()) { in isMainThread() 33 if (Looper.getMainLooper().isCurrentThread()) { in isNotMainThread()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableInstrumentation.java | 80 mMainHandler = new Handler(Looper.getMainLooper()); in MainLooperManager() 154 mManager = acquireLooperManager(Looper.getMainLooper()); in startManaging() 172 if (Looper.myLooper() != Looper.getMainLooper()) { in startManaging()
|
D | TestableLooper.java | 80 if (mLooper == Looper.getMainLooper()) { in destroy() 202 if (l == Looper.getMainLooper()) { in acquireLooperManager() 228 mLooper = setAsMain ? Looper.getMainLooper() : createLooper(); in LooperFrameworkMethod() 294 if (mLooper == Looper.getMainLooper()) { in invokeExplosively()
|
/frameworks/support/app-toolkit/runtime/src/main/java/android/arch/core/executor/ |
D | DefaultTaskExecutor.java | 48 mMainHandler = new Handler(Looper.getMainLooper()); in postToMainThread() 58 return Looper.getMainLooper().getThread() == Thread.currentThread(); in isMainThread()
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/testapp/ |
D | BaseDataBinderTest.java | 51 return Looper.myLooper() == Looper.getMainLooper(); in isMainThread() 64 if (Looper.myLooper() == Looper.getMainLooper()) { in runTestOnUiThread() 76 if (Looper.myLooper() != Looper.getMainLooper()) { in initBinder()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightService.java | 76 mHandler = new Handler(Looper.getMainLooper(), this); in TwilightService() 158 null /* default */, this, Looper.getMainLooper()); in startListening() 164 LocationManager.NETWORK_PROVIDER, this, Looper.getMainLooper()); in startListening() 167 LocationManager.GPS_PROVIDER, this, Looper.getMainLooper()); in startListening()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsStateTest.java | 130 SettingsState.MAX_BYTES_PER_APP_PACKAGE_UNLIMITED, Looper.getMainLooper()); in testReadWrite() 142 SettingsState.MAX_BYTES_PER_APP_PACKAGE_UNLIMITED, Looper.getMainLooper()); in testReadWrite() 169 SettingsState.MAX_BYTES_PER_APP_PACKAGE_UNLIMITED, Looper.getMainLooper()); in testUpgrade()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 105 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncBondState() 126 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncConnectionState() 149 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testNullAsync_DoesNotCrash()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | TextViewAutoSizeLayoutPerfTest.java | 83 Looper.getMainLooper().getThread() == Thread.currentThread()); in testConstruction() 85 Looper.myLooper() == Looper.getMainLooper()); in testConstruction()
|
D | LayoutPerfTest.java | 84 Looper.getMainLooper().getThread() == Thread.currentThread()); in testLayoutPerf() 86 Looper.myLooper() == Looper.getMainLooper()); in testLayoutPerf()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | ThreadUtils.java | 28 sMainThread = Looper.getMainLooper().getThread(); in isMainThread()
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | WifiAwareSession.java | 141 mgr.publish(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in publish() 187 mgr.subscribe(mClientId, (handler == null) ? Looper.getMainLooper() : handler.getLooper(), in subscribe()
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | BluetoothLeScanner.java | 95 mHandler = new Handler(Looper.getMainLooper()); in BluetoothLeScanner() 474 Handler handler = new Handler(Looper.getMainLooper()); in onScanResult() 485 Handler handler = new Handler(Looper.getMainLooper()); in onBatchScanResults() 506 Handler handler = new Handler(Looper.getMainLooper()); in onFoundOrLost()
|
/frameworks/layoutlib/bridge/src/android/view/inputmethod/ |
D | InputMethodManager_Delegate.java | 43 new BridgeIInputMethodManager(), Looper.getMainLooper()); in getInstance()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
D | ThreadUtilTest.java | 177 assertThat(Looper.myLooper(), sameInstance(Looper.getMainLooper())); in assertMainThread() 181 assertThat(Looper.myLooper(), not(Looper.getMainLooper())); in assertBackgroundThread()
|
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/ |
D | CrashingService.java | 48 mServiceHandler = new ServiceHandler(Looper.getMainLooper()); in onCreate()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | DropBoxTest.java | 84 Looper.getMainLooper()); in testAddText() 121 Looper.getMainLooper()); 172 Looper.getMainLooper()); 239 Looper.getMainLooper()); in testAddEntriesInTheFuture() 291 Looper.getMainLooper()); in testIsTagEnabled() 325 Looper.getMainLooper()); in testGetNextEntry() 388 Looper.getMainLooper()); in testSizeLimits() 483 Looper.getMainLooper()); in testAgeLimits() 515 Looper.getMainLooper()); in testFileCountLimits() 569 Looper.getMainLooper()); in testCreateDropBoxManagerWithInvalidDirectory()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardMessageAreaTest.java | 37 private Handler mHandler = new Handler(Looper.getMainLooper());
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/test/ |
D | InvalidationTest.java | 73 Handler mHandler = new Handler(Looper.getMainLooper()); in setSingleThreadedIO() 87 return Thread.currentThread() == Looper.getMainLooper().getThread(); in setSingleThreadedIO()
|
/frameworks/base/test-runner/src/android/test/ |
D | LoaderTestCase.java | 77 final Handler mainThreadHandler = new Handler(Looper.getMainLooper()) { in getLoaderResultSynchronously()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 348 verify(mContext, never()).getMainLooper(); in testCorrectLooperIsUsedForHandler() 359 when(mContext.getMainLooper()).thenReturn(altLooper.getLooper()); in testMainLooperIsUsedWhenHandlerNotProvided() 367 verify(mContext).getMainLooper(); in testMainLooperIsUsedWhenHandlerNotProvided() 642 verify(mContext, never()).getMainLooper(); in testCorrectLooperIsUsedForObserverHandler() 653 when(mContext.getMainLooper()).thenReturn(altLooper.getLooper()); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver() 659 verify(mContext).getMainLooper(); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver()
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
D | ActivityUtils.java | 52 if (Looper.getMainLooper() == Looper.myLooper()) { in runOnUiThreadRethrow()
|
/frameworks/base/tests/LockTaskTests/src/com/google/android/example/locktasktests/ |
D | LaunchActivity.java | 53 mHandler = new Handler(Looper.getMainLooper()); in onCreate()
|
/frameworks/base/core/java/android/print/ |
D | PrinterDiscoverySession.java | 68 mHandler = new SessionHandler(context.getMainLooper()); in PrinterDiscoverySession() 262 if (!Looper.getMainLooper().isCurrentThread()) { in throwIfNotCalledOnMainThread()
|