Home
last modified time | relevance | path

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

123456789

/frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/testapp/
DBaseDataBinderTest.java51 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/
DTwilightService.java76 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/
DSettingsStateTest.java130 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/core/java/android/bluetooth/le/
DBluetoothLeScanner.java74 mHandler = new Handler(Looper.getMainLooper()); in BluetoothLeScanner()
396 Handler handler = new Handler(Looper.getMainLooper()); in onScanResult()
408 Handler handler = new Handler(Looper.getMainLooper()); in onBatchScanResults()
429 Handler handler = new Handler(Looper.getMainLooper()); in onFoundOrLost()
/frameworks/base/tools/layoutlib/bridge/src/android/view/inputmethod/
DInputMethodManager_Delegate.java43 new BridgeIInputMethodManager(), Looper.getMainLooper()); in getInstance()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DThreadUtilTest.java166 assertThat(Looper.myLooper(), sameInstance(Looper.getMainLooper())); in assertMainThread()
170 assertThat(Looper.myLooper(), not(Looper.getMainLooper())); in assertBackgroundThread()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDejankUtils.java75 if (!Looper.getMainLooper().isCurrentThread()) { in throwIfNotCalledOnMainThread()
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DClearCacheRequest.java51 Handler handler = new Handler(Looper.getMainLooper()); in isCanceled()
DImageLoader.java64 private final Handler mHandler = new Handler(Looper.getMainLooper());
491 if (Looper.myLooper() != Looper.getMainLooper()) {
/frameworks/base/test-runner/src/android/test/
DLoaderTestCase.java77 final Handler mainThreadHandler = new Handler(Looper.getMainLooper()) { in getLoaderResultSynchronously()
/frameworks/base/core/java/android/print/
DPrinterDiscoverySession.java68 mHandler = new SessionHandler(context.getMainLooper()); in PrinterDiscoverySession()
262 if (!Looper.getMainLooper().isCurrentThread()) { in throwIfNotCalledOnMainThread()
DPrintServiceRecommendationsLoader.java109 super(getContext().getMainLooper()); in MyHandler()
DPrintServicesLoader.java114 super(getContext().getMainLooper()); in MyHandler()
/frameworks/volley/src/main/java/com/android/volley/
DRequest.java220 if (Looper.myLooper() != Looper.getMainLooper()) { in finish()
223 Handler mainThread = new Handler(Looper.getMainLooper()); in finish()
/frameworks/base/core/java/android/service/vr/
DVrListenerService.java99 mHandler = new VrListenerHandler(Looper.getMainLooper()); in VrListenerService()
/frameworks/base/tests/LockTaskTests/src/com/google/android/example/locktasktests/
DLaunchActivity.java53 mHandler = new Handler(Looper.getMainLooper()); in onCreate()
DMainActivity.java39 mHandler = new Handler(Looper.getMainLooper()); in onCreate()
/frameworks/base/core/java/android/printservice/recommendation/
DRecommendationService.java107 super(Looper.getMainLooper());
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
DCallbackFilter.java76 mUiThreadHandler = new Handler(Looper.getMainLooper()); in prepare()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DTestActivity.java46 mHandler = new Handler(Looper.getMainLooper()); in onCreate()
/frameworks/base/media/java/android/media/
DMediaSync.java260 looper = Looper.getMainLooper(); in setCallback()
293 looper = Looper.getMainLooper(); in setOnErrorListener()
/frameworks/base/core/java/android/printservice/
DPrintService.java261 mHandler = new ServiceHandler(base.getMainLooper()); in attachBaseContext()
358 if (!Looper.getMainLooper().isCurrentThread()) { in throwIfNotCalledOnMainThread()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationController.java752 final Looper mainLooper = context.getMainLooper(); in SpecAnimationBridge()
833 super(context.getMainLooper()); in UpdateHandler()
918 super(context.getMainLooper()); in StateChangeHandler()
1024 super(context.getMainLooper()); in CallbackHandler()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DGLEnvironment.java82 if (Looper.myLooper() != null && Looper.myLooper().equals(Looper.getMainLooper())) { in activate()
/frameworks/base/core/java/android/app/
DEphemeralResolverService.java59 mHandler = new ServiceHandler(base.getMainLooper()); in attachBaseContext()

123456789