Home
last modified time | relevance | path

Searched refs:mainHandler (Results 1 – 25 of 36) sorted by relevance

12

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowPausedLooperTest.java198 Handler mainHandler = new Handler(); in idle_executesTask_mainLooper() local
199 mainHandler.post(mockRunnable); in idle_executesTask_mainLooper()
212 Handler mainHandler = new Handler(); in idle_executesTask_andIdleHandler() local
213 mainHandler.post(mockRunnable); in idle_executesTask_andIdleHandler()
228 Handler mainHandler = new Handler(); in idle_executesTask_andIdleHandler_removesIdleHandler() local
229 mainHandler.post(mockRunnable); in idle_executesTask_andIdleHandler_removesIdleHandler()
237 mainHandler.post(mockRunnable); in idle_executesTask_andIdleHandler_removesIdleHandler()
250 Handler mainHandler = new Handler(); in idle_executesTask_andIdleHandler_keepsIdleHandler() local
251 mainHandler.post(mockRunnable); in idle_executesTask_andIdleHandler_keepsIdleHandler()
259 mainHandler.post(mockRunnable); in idle_executesTask_andIdleHandler_keepsIdleHandler()
[all …]
DShadowInstrumentationTestLooperTest.java36 Handler mainHandler = new Handler(Looper.getMainLooper()); in idle() local
39 mainHandler.post(() -> hasRun.set(true)); in idle()
47 Handler mainHandler = new Handler(Looper.getMainLooper()); in pauseMainLooper() local
51 mainHandler.post(() -> hasRun.set(true)); in pauseMainLooper()
60 Handler mainHandler = new Handler(Looper.getMainLooper()); in unpauseMainLooper() local
64 mainHandler.post(hasRun::countDown); in unpauseMainLooper()
73 Handler mainHandler = new Handler(Looper.getMainLooper()); in idleFor() local
76 mainHandler.postDelayed(() -> hasRun.set(true), 99); in idleFor()
85 Handler mainHandler = new Handler(Looper.getMainLooper()); in exceptionOnMainThreadPropagated() local
87 mainHandler.post( in exceptionOnMainThreadPropagated()
DShadowIconTest.java37 private final Handler mainHandler = field in ShadowIconTest
86 Message andThen = Message.obtain(mainHandler, MSG_ICON_LOADED); in testLoadDrawableAsyncWithMessage()
101 icon.loadDrawableAsync(appContext, drawable -> this.loadedDrawable = drawable, mainHandler); in testLoadDrawableAsyncWithListener()
DShadowLegacyLooperTest.java512 Handler mainHandler = new Handler(); in isIdle() local
513 mainHandler.post(() -> {}); in isIdle()
523 Handler mainHandler = new Handler(); in getNextScheduledTime() local
524 mainHandler.postDelayed(() -> {}, 100); in getNextScheduledTime()
533 Handler mainHandler = new Handler(); in getLastScheduledTime() local
534 mainHandler.postDelayed(() -> {}, 200); in getLastScheduledTime()
535 mainHandler.postDelayed(() -> {}, 100); in getLastScheduledTime()
/external/glide/library/src/main/java/com/bumptech/glide/request/
DRequestFutureTarget.java41 private final Handler mainHandler; field in RequestFutureTarget
58 public RequestFutureTarget(Handler mainHandler, int width, int height) { in RequestFutureTarget() argument
59 this(mainHandler, width, height, true, DEFAULT_WAITER); in RequestFutureTarget()
62 …RequestFutureTarget(Handler mainHandler, int width, int height, boolean assertBackgroundThread, Wa… in RequestFutureTarget() argument
63 this.mainHandler = mainHandler; in RequestFutureTarget()
232 mainHandler.post(this); in clear()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
DGifFrameManager.java29 private final Handler mainHandler; field in GifFrameManager
48 …ic GifFrameManager(Context context, BitmapPool bitmapPool, GifDecoder decoder, Handler mainHandler, in GifFrameManager() argument
52 this.mainHandler = mainHandler; in GifFrameManager()
108 mainHandler.removeCallbacks(current); in clear()
113 mainHandler.removeCallbacks(next); in clear()
139 mainHandler.postAtTime(this, targetTime); in onResourceReady()
149 mainHandler.post(new Runnable() { in run()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DActionSchedule.java98 HandlerWrapper mainHandler, in start() argument
101 rootNode.schedule(player, trackSelector, surface, mainHandler); in start()
676 private @MonotonicNonNull HandlerWrapper mainHandler; field in ActionSchedule.ActionNode
720 HandlerWrapper mainHandler) { in schedule() argument
724 this.mainHandler = mainHandler; in schedule()
725 if (delayMs == 0 && Looper.myLooper() == mainHandler.getLooper()) { in schedule()
728 mainHandler.postDelayed(this, delayMs); in schedule()
738 Assertions.checkStateNotNull(mainHandler), in run()
741 mainHandler.postDelayed( in run()
746 player, trackSelector, surface, mainHandler, /* nextAction= */ null); in run()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DActionSchedule.java98 HandlerWrapper mainHandler, in start() argument
101 rootNode.schedule(player, trackSelector, surface, mainHandler); in start()
678 private @MonotonicNonNull HandlerWrapper mainHandler; field in ActionSchedule.ActionNode
722 HandlerWrapper mainHandler) { in schedule() argument
726 this.mainHandler = mainHandler; in schedule()
727 if (delayMs == 0 && Looper.myLooper() == mainHandler.getLooper()) { in schedule()
730 mainHandler.postDelayed(this, delayMs); in schedule()
740 Assertions.checkStateNotNull(mainHandler), in run()
743 mainHandler.postDelayed( in run()
748 player, trackSelector, surface, mainHandler, /* nextAction= */ null); in run()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/
DRtspServer.java70 private final Handler mainHandler; field in RtspServer
89 mainHandler = Util.createHandlerForCurrentLooper(); in RtspServer()
134 mainHandler.post(() -> handleRtspMessage(message)); in onRtspMessageReceived()
180 mainHandler.post(() -> handleNewClientConnected(acceptedClientSocket)); in listenToIncomingRtspConnection()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/rtsp/src/test/java/com/google/android/exoplayer2/source/rtsp/
DRtspServer.java70 private final Handler mainHandler; field in RtspServer
89 mainHandler = Util.createHandlerForCurrentLooper(); in RtspServer()
134 mainHandler.post(() -> handleRtspMessage(message)); in onRtspMessageReceived()
180 mainHandler.post(() -> handleNewClientConnected(acceptedClientSocket)); in listenToIncomingRtspConnection()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDownloadManager.java260 Handler mainHandler = Util.createHandlerForCurrentOrMainLooper(this::handleMainMessage); in DownloadManager() local
261 this.applicationHandler = mainHandler; in DownloadManager()
269 mainHandler, in DownloadManager()
701 private final Handler mainHandler; field in DownloadManager.InternalHandler
715 Handler mainHandler, in InternalHandler() argument
723 this.mainHandler = mainHandler; in InternalHandler()
790 mainHandler in handleMessage()
815 mainHandler.obtainMessage(MSG_INITIALIZED, downloadsForMessage).sendToTarget(); in initialize()
944 mainHandler.obtainMessage(MSG_DOWNLOAD_UPDATE, update).sendToTarget(); in removeAllDownloads()
1160 mainHandler.obtainMessage(MSG_DOWNLOAD_UPDATE, update).sendToTarget(); in onDownloadTaskStopped()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDownloadManager.java260 Handler mainHandler = Util.createHandlerForCurrentOrMainLooper(this::handleMainMessage); in DownloadManager() local
261 this.applicationHandler = mainHandler; in DownloadManager()
269 mainHandler, in DownloadManager()
702 private final Handler mainHandler; field in DownloadManager.InternalHandler
716 Handler mainHandler, in InternalHandler() argument
724 this.mainHandler = mainHandler; in InternalHandler()
791 mainHandler in handleMessage()
816 mainHandler.obtainMessage(MSG_INITIALIZED, downloadsForMessage).sendToTarget(); in initialize()
945 mainHandler.obtainMessage(MSG_DOWNLOAD_UPDATE, update).sendToTarget(); in removeAllDownloads()
1161 mainHandler.obtainMessage(MSG_DOWNLOAD_UPDATE, update).sendToTarget(); in onDownloadTaskStopped()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/
DVideoProcessingGLSurfaceView.java75 private final Handler mainHandler; field in VideoProcessingGLSurfaceView
96 mainHandler = new Handler(); in VideoProcessingGLSurfaceView()
178 mainHandler.post( in onDetachedFromWindow()
192 mainHandler.post( in onSurfaceTextureAvailable()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/
DVideoProcessingGLSurfaceView.java75 private final Handler mainHandler; field in VideoProcessingGLSurfaceView
96 mainHandler = new Handler(); in VideoProcessingGLSurfaceView()
178 mainHandler.post( in onDetachedFromWindow()
192 mainHandler.post( in onSurfaceTextureAvailable()
/external/robolectric/integration_tests/ctesque/src/sharedTest/java/android/app/
DInstrumentationTest.java34 Handler mainHandler = new Handler(Looper.getMainLooper()); in runOnMainSync() local
36 mainHandler.post(() -> events.add("before runOnMainSync")); in runOnMainSync()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/video/spherical/
DSphericalGLSurfaceView.java82 private final Handler mainHandler; field in SphericalGLSurfaceView
98 mainHandler = new Handler(Looper.getMainLooper()); in SphericalGLSurfaceView()
203 mainHandler.post( in onDetachedFromWindow()
233 mainHandler.post( in onSurfaceTextureAvailable()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/video/spherical/
DSphericalGLSurfaceView.java82 private final Handler mainHandler; field in SphericalGLSurfaceView
98 mainHandler = new Handler(Looper.getMainLooper()); in SphericalGLSurfaceView()
203 mainHandler.post( in onDetachedFromWindow()
233 mainHandler.post( in onSurfaceTextureAvailable()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DAdsMediaSource.java137 private final Handler mainHandler; field in AdsMediaSource
173 mainHandler = new Handler(Looper.getMainLooper()); in AdsMediaSource()
190 mainHandler.post( in prepareSourceInternal()
254 mainHandler.post(() -> adsLoader.stop(/* adsMediaSource= */ this, componentListener)); in releaseSourceInternal()
418 mainHandler.post( in onPrepareComplete()
437 mainHandler.post( in onPrepareError()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DAdsMediaSource.java134 private final Handler mainHandler; field in AdsMediaSource
170 mainHandler = new Handler(Looper.getMainLooper()); in AdsMediaSource()
187 mainHandler.post( in prepareSourceInternal()
251 mainHandler.post(() -> adsLoader.stop(/* adsMediaSource= */ this, componentListener)); in releaseSourceInternal()
415 mainHandler.post( in onPrepareComplete()
434 mainHandler.post( in onPrepareError()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/main/java/com/google/android/exoplayer2/util/
DNetworkTypeObserver.java81 private final Handler mainHandler; field in NetworkTypeObserver
108 mainHandler = new Handler(Looper.getMainLooper()); in NetworkTypeObserver()
129 mainHandler.post(() -> listener.onNetworkTypeChanged(getNetworkType())); in register()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/main/java/com/google/android/exoplayer2/util/
DNetworkTypeObserver.java81 private final Handler mainHandler; field in NetworkTypeObserver
109 mainHandler = new Handler(Looper.getMainLooper()); in NetworkTypeObserver()
130 mainHandler.post(() -> listener.onNetworkTypeChanged(getNetworkType())); in register()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothMediaFacade.java229 Handler mainHandler = new Handler(mContext.getMainLooper()); in setCurrentMediaController() local
241 mMediaController.registerCallback(mMediaCtrlCallback, mainHandler); in setCurrentMediaController()
440 Handler mainHandler = new Handler(mContext.getMainLooper()); in bluetoothMediaConnectToCarMBS() local
441 mainHandler.post(createAndConnectMediaBrowser); in bluetoothMediaConnectToCarMBS()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DPlayerNotificationManager.java676 private final Handler mainHandler; field in PlayerNotificationManager
742 Handler mainHandler = Util.createHandler(Looper.getMainLooper(), this::handleMessage); in PlayerNotificationManager() local
743 this.mainHandler = mainHandler; in PlayerNotificationManager()
1179 mainHandler.removeMessages(MSG_START_OR_UPDATE_NOTIFICATION); in stopNotification()
1399 if (!mainHandler.hasMessages(MSG_START_OR_UPDATE_NOTIFICATION)) { in postStartOrUpdateNotification()
1400 mainHandler.sendEmptyMessage(MSG_START_OR_UPDATE_NOTIFICATION); in postStartOrUpdateNotification()
1405 mainHandler in postUpdateNotificationBitmap()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DPlayerNotificationManager.java672 private final Handler mainHandler; field in PlayerNotificationManager
738 Handler mainHandler = Util.createHandler(Looper.getMainLooper(), this::handleMessage); in PlayerNotificationManager() local
739 this.mainHandler = mainHandler; in PlayerNotificationManager()
1175 mainHandler.removeMessages(MSG_START_OR_UPDATE_NOTIFICATION); in stopNotification()
1395 if (!mainHandler.hasMessages(MSG_START_OR_UPDATE_NOTIFICATION)) { in postStartOrUpdateNotification()
1396 mainHandler.sendEmptyMessage(MSG_START_OR_UPDATE_NOTIFICATION); in postStartOrUpdateNotification()
1401 mainHandler in postUpdateNotificationBitmap()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DWaltTcpConnection.java50 private final Handler mainHandler = new Handler(); field in WaltTcpConnection
106 mainHandler.post(new Runnable() { in connect()

12