Searched refs:looper (Results 76 - 100 of 344) sorted by path

1234567891011>>

/frameworks/base/core/java/android/os/
H A DAsyncTask.java701 public InternalHandler(Looper looper) { argument
702 super(looper);
H A DHandler.java113 * If this thread does not have a looper, this handler won't be able to receive messages
125 * If this thread does not have a looper, this handler won't be able to receive messages
137 * @param looper The looper, must not be null.
139 public Handler(Looper looper) { argument
140 this(looper, null, false);
147 * @param looper The looper, must not be null.
150 public Handler(Looper looper, Callback callback) { argument
151 this(looper, callbac
230 Handler(Looper looper, Callback callback, boolean async) argument
[all...]
H A DHandlerThread.java23 * Handy class for starting a new thread that has a looper. The looper can then be
72 * has been started, this method will block until the looper has been initialized.
73 * @return The looper.
80 // If the thread has been started, wait until the looper has been created.
105 * Quits the handler thread's looper.
107 * Causes the handler thread's looper to terminate without processing any
110 * Any attempt to post messages to the queue after the looper is asked to quit will fail.
114 * before the looper terminates. Consider using {@link #quitSafely} instead to ensure
118 * @return True if the looper loope
[all...]
H A DStrictMode.java1476 // until the time the looper is idle again (right before
1479 Looper looper = Looper.myLooper();
1497 if (looper == null ||
1811 Looper looper = Looper.getMainLooper();
1812 if (looper != null) {
1813 MessageQueue mq = looper.mQueue;
H A DTestLooperManager.java22 * Blocks a looper from executing any messages, and allows the holder of this object
45 public TestLooperManager(Looper looper) { argument
47 if (sHeldLoopers.contains(looper)) {
48 throw new RuntimeException("TestLooperManager already held for this looper");
50 sHeldLoopers.add(looper);
52 mLooper = looper;
54 // Post a message that will keep the looper blocked as long as we are dispatching.
55 new Handler(looper).post(new LooperHolder());
80 // Wait for the looper block to come up, to make sure we don't accidentally get
95 * Releases the looper t
[all...]
/frameworks/base/core/java/android/os/storage/
H A DStorageManager.java265 public StorageEventListenerDelegate(StorageEventListener callback, Looper looper) { argument
267 mHandler = new Handler(looper, this);
443 * @param looper The {@link android.os.Looper} which events will be received on.
451 public StorageManager(Context context, Looper looper) throws ServiceNotFoundException { argument
454 mLooper = looper;
/frameworks/base/core/java/android/permissionpresenterservice/
H A DRuntimePermissionPresenterService.java93 public MyHandler(Looper looper) { argument
94 super(looper, null, false);
/frameworks/base/core/java/android/print/
H A DPrintManager.java1014 public MyHandler(Looper looper) { argument
1015 super(looper, null, true);
H A DPrinterDiscoverySession.java269 public SessionHandler(Looper looper) { argument
270 super(looper, null, false);
/frameworks/base/core/java/android/printservice/
H A DPrintService.java467 public ServiceHandler(Looper looper) { argument
468 super(looper, null, true);
/frameworks/base/core/java/android/service/notification/
H A DNotificationAssistantService.java182 public MyHandler(Looper looper) { argument
183 super(looper, null, false);
H A DNotificationListenerService.java1810 public MyHandler(Looper looper) { argument
1811 super(looper, null, false);
/frameworks/base/core/java/android/service/quicksettings/
H A DTileService.java381 public H(Looper looper) { argument
382 super(looper);
/frameworks/base/core/java/android/service/vr/
H A DVrListenerService.java79 public VrListenerHandler(Looper looper) { argument
80 super(looper);
/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperService.java264 public WallpaperInputEventReceiver(InputChannel inputChannel, Looper looper) { argument
265 super(inputChannel, looper);
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeechService.java473 public SynthHandler(Looper looper) { argument
474 super(looper);
/frameworks/base/core/java/android/view/
H A DAccessibilityInteractionController.java89 Looper looper = viewRootImpl.mHandler.getLooper();
90 mMyLooperThreadId = looper.getThread().getId();
92 mHandler = new PrivateHandler(looper);
1119 public PrivateHandler(Looper looper) { argument
1120 super(looper);
H A DBatchedInputEventReceiver.java30 InputChannel inputChannel, Looper looper, Choreographer choreographer) {
31 super(inputChannel, looper);
29 BatchedInputEventReceiver( InputChannel inputChannel, Looper looper, Choreographer choreographer) argument
H A DChoreographer.java104 Looper looper = Looper.myLooper();
105 if (looper == null) {
106 throw new IllegalStateException("The current thread must have a looper!");
108 return new Choreographer(looper, VSYNC_SOURCE_APP);
117 Looper looper = Looper.myLooper();
118 if (looper == null) {
119 throw new IllegalStateException("The current thread must have a looper!");
121 return new Choreographer(looper, VSYNC_SOURCE_SURFACE_FLINGER);
152 // The display event receiver can only be accessed by the looper thread to which
153 // it is attached. We take care to ensure that we post message to the looper
221 Choreographer(Looper looper, int vsyncSource) argument
818 FrameHandler(Looper looper) argument
844 FrameDisplayEventReceiver(Looper looper, int vsyncSource) argument
[all...]
H A DDisplayEventReceiver.java74 * @param looper The looper to use when invoking callbacks.
76 public DisplayEventReceiver(Looper looper) { argument
77 this(looper, VSYNC_SOURCE_APP);
83 * @param looper The looper to use when invoking callbacks.
86 public DisplayEventReceiver(Looper looper, int vsyncSource) { argument
87 if (looper == null) {
88 throw new IllegalArgumentException("looper must not be null");
91 mMessageQueue = looper
[all...]
H A DFrameMetricsObserver.java46 * @param looper the looper to use when invoking callbacks
48 FrameMetricsObserver(@NonNull Window window, @NonNull Looper looper, argument
50 if (looper == null) {
51 throw new NullPointerException("looper cannot be null");
54 mMessageQueue = looper.getQueue();
56 throw new IllegalStateException("invalid looper, null message queue\n");
H A DInputEventReceiver.java58 * @param looper The looper to use when invoking callbacks.
60 public InputEventReceiver(InputChannel inputChannel, Looper looper) { argument
64 if (looper == null) {
65 throw new IllegalArgumentException("looper must not be null");
69 mMessageQueue = looper.getQueue();
196 InputChannel inputChannel, Looper looper);
195 createInputEventReceiver( InputChannel inputChannel, Looper looper) argument
H A DInputEventSender.java53 * @param looper The looper to use when invoking callbacks.
55 public InputEventSender(InputChannel inputChannel, Looper looper) { argument
59 if (looper == null) {
60 throw new IllegalArgumentException("looper must not be null");
64 mMessageQueue = looper.getQueue();
H A DInputFilter.java118 * @param looper The looper to run callbacks on.
120 public InputFilter(Looper looper) { argument
121 mH = new H(looper);
214 public H(Looper looper) { argument
215 super(looper);
H A DViewRootImpl.java6739 public WindowInputEventReceiver(InputChannel inputChannel, Looper looper) { argument
6740 super(inputChannel, looper);

Completed in 9007 milliseconds

1234567891011>>