Home
last modified time | relevance | path

Searched refs:getMainLooper (Results 1 – 25 of 443) sorted by relevance

12345678910>>...18

/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java132 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/
DLightsServiceTest.java99 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/
DRemoteCallTest.java142 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/
DThreadUtils.java37 sMainThread = Looper.getMainLooper().getThread(); in isMainThread()
47 sMainThreadHandler = new Handler(Looper.getMainLooper()); in getUiThreadHandler()
/frameworks/base/tests/testables/src/android/testing/
DTestableInstrumentation.java85 mMainHandler = Handler.createAsync(Looper.getMainLooper()); in MainLooperManager()
159 mManager = acquireLooperManager(Looper.getMainLooper()); in startManaging()
177 if (Looper.myLooper() != Looper.getMainLooper()) { in startManaging()
DTestableLooper.java87 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/
DDemoModeAvailabilityTracker.kt68 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/
DTvRemoteProviderWatcherTest.java96 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/
DAccessibilityServiceTest.java53 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/
DAbstractAutofillPerfTestCase.java97 Looper.getMainLooper().getThread() == Thread.currentThread()); in prepareActivity()
99 Looper.myLooper() == Looper.getMainLooper()); in prepareActivity()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DViewPreviewer.java41 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/
DTextViewAutoSizeLayoutPerfTest.java77 Looper.getMainLooper().getThread() == Thread.currentThread()); in testConstruction()
79 Looper.myLooper() == Looper.getMainLooper()); in testConstruction()
DLayoutPerfTest.java86 Looper.getMainLooper().getThread() == Thread.currentThread()); in testLayoutPerf()
88 Looper.myLooper() == Looper.getMainLooper()); in testLayoutPerf()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsStateTest.java139 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/
DExecution.kt31 private val mainLooper = Looper.getMainLooper() in assertIsMainThread()
DGlobalConcurrencyModule.java49 return Looper.getMainLooper(); in provideMainLooper()
/frameworks/base/tests/ActivityManagerPerfTests/test-app/src/com/android/frameworks/perftests/amteststestapp/
DStartProcessService.java35 Looper.getMainLooper().getQueue().addIdleHandler(() -> { in onBind()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java91 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/
DAssert.java27 private static final Looper sMainLooper = Looper.getMainLooper();
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java104 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/
DMergedCarrierEntryTest.java68 when(mMockContext.getMainLooper()).thenReturn(Looper.getMainLooper()); in setUp()
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
DCrashingService.java48 mServiceHandler = new ServiceHandler(Looper.getMainLooper()); in onCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DDependencyTest.java41 Looper l = Looper.getMainLooper(); in testStringDependency()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerSignalTest.java68 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/
DUdfpsEnrollView.java42 mHandler = new Handler(Looper.getMainLooper()); in UdfpsEnrollView()

12345678910>>...18