/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestableLooperTest.java | 132 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooper() 135 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper() 142 new Handler(Looper.getMainLooper()).post(r); in testMainLooper() 154 assertNotEquals(Looper.myLooper(), Looper.getMainLooper()); in testNonMainLooperAnnotation() 160 assertEquals(Looper.myLooper(), Looper.getMainLooper()); in testMainLooperAnnotation() 167 assertEquals("Should run on main looper", Looper.getMainLooper(), Looper.myLooper()); in testCorrectLooperExecution() 170 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testCorrectLooperExecution() 172 new Handler(Looper.getMainLooper()).post(r); in testCorrectLooperExecution()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/lights/ |
D | LightsServiceTest.java | 99 LightsService service = new LightsService(mContext, () -> mHal, Looper.getMainLooper()); in testGetLights_filtersSystemLights() 108 LightsService service = new LightsService(mContext, () -> mHal, Looper.getMainLooper()); in testControlMultipleLights() 130 LightsService service = new LightsService(mContext, () -> mHal, Looper.getMainLooper()); in testControlLights_onlyEffectiveForLifetimeOfClient() 152 LightsService service = new LightsService(mContext, () -> mHal, Looper.getMainLooper()); in testControlLights_firstCallerWinsContention() 180 LightsService service = new LightsService(mContext, () -> mHal, Looper.getMainLooper()); in testClearLight() 197 LightsService service = new LightsService(mContext, () -> mHal, Looper.getMainLooper()); in testControlLights_higherPriorityCallerWinsContention()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/remote/ |
D | RemoteCallTest.java | 142 runToEndOfTasks(Looper.getMainLooper()); in testCall_whenTimesOutBeforeCallbackIsCalled_returnsTimeOut() 154 runToEndOfTasks(Looper.getMainLooper()); in testCall_whenTimesOutBeforeCancelIsCalled_returnsTimeOut() 174 runToEndOfTasks(Looper.getMainLooper()); in testCall_whenCallbackIsCalledBeforeTimeOut_returnsResult() 217 runToEndOfTasks(Looper.getMainLooper()); in testCall_whenCancelIsCalledBeforeTimeOutButAfterCall_returnsCancel() 248 runToEndOfTasks(Looper.getMainLooper()); in testExecute_whenTimesOutBeforeCallback_returnsTimeOut()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | ThreadUtils.java | 37 sMainThread = Looper.getMainLooper().getThread(); in isMainThread() 47 sMainThreadHandler = new Handler(Looper.getMainLooper()); in getUiThreadHandler()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableInstrumentation.java | 85 mMainHandler = Handler.createAsync(Looper.getMainLooper()); in MainLooperManager() 159 mManager = acquireLooperManager(Looper.getMainLooper()); in startManaging() 177 if (Looper.myLooper() != Looper.getMainLooper()) { in startManaging()
|
D | TestableLooper.java | 87 if (HOLD_MAIN_THREAD && mLooper == Looper.getMainLooper()) { in destroy() 209 if (HOLD_MAIN_THREAD && l == Looper.getMainLooper()) { in acquireLooperManager() 239 mLooper = setAsMain ? Looper.getMainLooper() : createLooper(); in LooperFrameworkMethod() 308 if (HOLD_MAIN_THREAD && mLooper == Looper.getMainLooper()) { in invokeExplosively()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/demomode/ |
D | DemoModeAvailabilityTracker.kt | 68 private val allowedObserver = object : ContentObserver(Handler(Looper.getMainLooper())) { 84 private val onObserver = object : ContentObserver(Handler(Looper.getMainLooper())) {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/tv/ |
D | TvRemoteProviderWatcherTest.java | 96 mMockContext, new Object(), new Handler(Looper.getMainLooper())); in acceptsValidCsvPackageName() 109 mMockContext, new Object(), new Handler(Looper.getMainLooper())); in rejectsInvalidCsvPackageName() 155 mMockContext, new Object(), new Handler(Looper.getMainLooper())); in whitelistingPackageNameIsRequired()
|
/frameworks/base/core/tests/coretests/src/android/accessibilityservice/ |
D | AccessibilityServiceTest.java | 53 mLooper = InstrumentationRegistry.getContext().getMainLooper(); in AccessibilityServiceTestClass() 60 public Looper getMainLooper() { in getMainLooper() method in AccessibilityServiceTest.AccessibilityServiceTestClass
|
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/ |
D | AbstractAutofillPerfTestCase.java | 97 Looper.getMainLooper().getThread() == Thread.currentThread()); in prepareActivity() 99 Looper.myLooper() == Looper.getMainLooper()); in prepareActivity()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | ViewPreviewer.java | 41 private final Handler mMainHandler = new Handler(Looper.getMainLooper()); 74 if (Looper.myLooper() == Looper.getMainLooper()) { in createPreview()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | TextViewAutoSizeLayoutPerfTest.java | 77 Looper.getMainLooper().getThread() == Thread.currentThread()); in testConstruction() 79 Looper.myLooper() == Looper.getMainLooper()); in testConstruction()
|
D | LayoutPerfTest.java | 86 Looper.getMainLooper().getThread() == Thread.currentThread()); in testLayoutPerf() 88 Looper.myLooper() == Looper.getMainLooper()); in testLayoutPerf()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsStateTest.java | 139 SettingsState.MAX_BYTES_PER_APP_PACKAGE_UNLIMITED, Looper.getMainLooper()); in testReadWrite() 151 SettingsState.MAX_BYTES_PER_APP_PACKAGE_UNLIMITED, Looper.getMainLooper()); in testReadWrite() 178 SettingsState.MAX_BYTES_PER_APP_PACKAGE_UNLIMITED, Looper.getMainLooper()); in testUpgrade() 275 SettingsState.MAX_BYTES_PER_APP_PACKAGE_UNLIMITED, Looper.getMainLooper()); in getSettingStateObject()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/ |
D | Execution.kt | 31 private val mainLooper = Looper.getMainLooper() in assertIsMainThread()
|
D | GlobalConcurrencyModule.java | 49 return Looper.getMainLooper(); in provideMainLooper()
|
/frameworks/base/tests/ActivityManagerPerfTests/test-app/src/com/android/frameworks/perftests/amteststestapp/ |
D | StartProcessService.java | 35 Looper.getMainLooper().getQueue().addIdleHandler(() -> { in onBind()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | DropBoxTest.java | 91 Looper.getMainLooper()); in testAddText() 128 Looper.getMainLooper()); 179 Looper.getMainLooper()); 227 Looper.getMainLooper()); in testAddEntry_Success() 259 Looper.getMainLooper()); in testAddEntry_Failure() 307 Looper.getMainLooper()); in testAddEntriesInTheFuture() 359 Looper.getMainLooper()); in testIsTagEnabled() 393 Looper.getMainLooper()); in testGetNextEntry() 456 Looper.getMainLooper()); in testSizeLimits() 551 Looper.getMainLooper()); in testAgeLimits() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | Assert.java | 27 private static final Looper sMainLooper = Looper.getMainLooper();
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | BluetoothLeScanner.java | 104 mHandler = new Handler(Looper.getMainLooper()); in BluetoothLeScanner() 527 Handler handler = new Handler(Looper.getMainLooper()); in onScanResult() 539 Handler handler = new Handler(Looper.getMainLooper()); in onBatchScanResults() 561 Handler handler = new Handler(Looper.getMainLooper()); in onFoundOrLost()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/ |
D | MergedCarrierEntryTest.java | 68 when(mMockContext.getMainLooper()).thenReturn(Looper.getMainLooper()); in setUp()
|
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/ |
D | CrashingService.java | 48 mServiceHandler = new ServiceHandler(Looper.getMainLooper()); in onCreate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | DependencyTest.java | 41 Looper l = Looper.getMainLooper(); in testStringDependency()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerSignalTest.java | 68 Looper.getMainLooper(), mFakeExecutor, mCallbackHandler, in testNoIconWithoutMobile() 89 Looper.getMainLooper(), mFakeExecutor, mCallbackHandler, in testServiceStateInitialState() 97 Handler mainThreadHandler = new Handler(Looper.getMainLooper()); in testServiceStateInitialState() 158 Looper.getMainLooper(), mFakeExecutor, mCallbackHandler, in testNoSimlessIconWithoutMobile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | UdfpsEnrollView.java | 42 mHandler = new Handler(Looper.getMainLooper()); in UdfpsEnrollView()
|