Home
last modified time | relevance | path

Searched refs:Handler (Results 1 – 25 of 1679) sorted by relevance

12345678910>>...68

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCommandsInterface.java23 import android.os.Handler;
146 void registerForRadioStateChanged(Handler h, int what, Object obj); in registerForRadioStateChanged()
147 void unregisterForRadioStateChanged(Handler h); in unregisterForRadioStateChanged()
149 void registerForVoiceRadioTechChanged(Handler h, int what, Object obj); in registerForVoiceRadioTechChanged()
151 void unregisterForVoiceRadioTechChanged(Handler h); in unregisterForVoiceRadioTechChanged()
153 void registerForImsNetworkStateChanged(Handler h, int what, Object obj); in registerForImsNetworkStateChanged()
154 void unregisterForImsNetworkStateChanged(Handler h); in unregisterForImsNetworkStateChanged()
163 void registerForOn(Handler h, int what, Object obj); in registerForOn()
165 void unregisterForOn(Handler h); in unregisterForOn()
174 void registerForAvailable(Handler h, int what, Object obj); in registerForAvailable()
[all …]
DBaseCommands.java23 import android.os.Handler;
181 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged()
189 public void unregisterForRadioStateChanged(Handler h) { in unregisterForRadioStateChanged()
195 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged()
199 public void unregisterForImsNetworkStateChanged(Handler h) { in unregisterForImsNetworkStateChanged()
204 public void registerForOn(Handler h, int what, Object obj) { in registerForOn()
214 public void unregisterForOn(Handler h) { in unregisterForOn()
222 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable()
233 public void unregisterForAvailable(Handler h) { in unregisterForAvailable()
240 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable()
[all …]
DCallManager.java22 import android.os.Handler;
1170 public void registerForDisconnect(Handler h, int what, Object obj) { in registerForDisconnect()
1179 public void unregisterForDisconnect(Handler h){ in unregisterForDisconnect()
1193 public void registerForPreciseCallStateChanged(Handler h, int what, Object obj){ in registerForPreciseCallStateChanged()
1202 public void unregisterForPreciseCallStateChanged(Handler h){ in unregisterForPreciseCallStateChanged()
1210 public void registerForUnknownConnection(Handler h, int what, Object obj){ in registerForUnknownConnection()
1217 public void unregisterForUnknownConnection(Handler h){ in unregisterForUnknownConnection()
1235 public void registerForNewRingingConnection(Handler h, int what, Object obj){ in registerForNewRingingConnection()
1245 public void unregisterForNewRingingConnection(Handler h){ in unregisterForNewRingingConnection()
1257 public void registerForIncomingRing(Handler h, int what, Object obj){ in registerForIncomingRing()
[all …]
DPhone.java30 import android.os.Handler;
119 public abstract class Phone extends Handler implements PhoneInternalInterface {
771 public void registerForSilentRedial(Handler h, int what, Object obj) { in registerForSilentRedial()
774 public void unregisterForSilentRedial(Handler h) { in unregisterForSilentRedial()
777 public void registerForVolteSilentRedial(Handler h, int what, Object obj) { in registerForVolteSilentRedial()
780 public void unregisterForVolteSilentRedial(Handler h) { in unregisterForVolteSilentRedial()
866 public void registerForPreciseCallStateChanged(Handler h, int what, Object obj) { in registerForPreciseCallStateChanged()
877 public void unregisterForPreciseCallStateChanged(Handler h) { in unregisterForPreciseCallStateChanged()
895 public void registerForHandoverStateChanged(Handler h, int what, Object obj) { in registerForHandoverStateChanged()
903 public void unregisterForHandoverStateChanged(Handler h) { in unregisterForHandoverStateChanged()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSimulatedCommandsVerifier.java22 import android.os.Handler;
64 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged()
69 public void unregisterForRadioStateChanged(Handler h) { in unregisterForRadioStateChanged()
74 public void registerForVoiceRadioTechChanged(Handler h, int what, Object obj) { in registerForVoiceRadioTechChanged()
79 public void unregisterForVoiceRadioTechChanged(Handler h) { in unregisterForVoiceRadioTechChanged()
84 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged()
89 public void unregisterForImsNetworkStateChanged(Handler h) { in unregisterForImsNetworkStateChanged()
94 public void registerForOn(Handler h, int what, Object obj) { in registerForOn()
99 public void unregisterForOn(Handler h) { in unregisterForOn()
104 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable()
[all …]
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java32 import android.os.Handler;
53 Handler h = new Handler(); in testMessageExecuted()
63 Handler h = new Handler(); in testMessageCallback()
83 Handler h = new Handler(); in testProcessNumberOfMessages()
96 Handler h = new Handler(); in testProcessAllMessages()
107 Handler h = new Handler(); in test3Chain()
119 Handler h = new Handler(); in testProcessAllMessages_2Messages()
142 new Handler(Looper.getMainLooper()).post(r); in testMainLooper()
172 new Handler(Looper.getMainLooper()).post(r); in testCorrectLooperExecution()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DRequestHandlerThread.java20 import android.os.Handler;
37 private Handler.Callback mCallback;
38 private volatile Handler mHandler;
40 public RequestHandlerThread(String name, Handler.Callback callback) { in RequestHandlerThread()
47 mHandler = new Handler(getLooper(), mCallback); in onLooperPrepared()
57 public Handler getHandler() { in getHandler()
62 public Handler waitAndGetHandler() { in waitAndGetHandler()
98 Handler handler = waitAndGetHandler(); in waitUntilIdle()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DMockWifiMonitor.java22 import android.os.Handler;
35 private final Map<String, SparseArray<Handler>> mHandlerMap = new HashMap<>();
42 public void registerHandler(String iface, int what, Handler handler) { in registerHandler()
43 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in registerHandler()
64 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in sendMessage()
70 for (Map.Entry<String, SparseArray<Handler>> entry : mHandlerMap.entrySet()) { in sendMessage()
80 private boolean sendMessage(SparseArray<Handler> ifaceHandlers, Message message) { in sendMessage()
81 Handler handler = ifaceHandlers.get(message.what); in sendMessage()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DMockWifiP2pMonitor.java22 import android.os.Handler;
37 private final Map<String, SparseArray<Handler>> mHandlerMap = new HashMap<>();
44 public void registerHandler(String iface, int what, Handler handler) { in registerHandler()
45 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in registerHandler()
66 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in sendMessage()
72 for (Map.Entry<String, SparseArray<Handler>> entry : mHandlerMap.entrySet()) { in sendMessage()
82 private boolean sendMessage(SparseArray<Handler> ifaceHandlers, Message message) { in sendMessage()
83 Handler handler = ifaceHandlers.get(message.what); in sendMessage()
/frameworks/base/core/tests/coretests/src/android/animation/
DEventsTest.java23 import android.os.Handler;
191 Handler handler = new Handler(); in FutureReleaseListener()
197 Handler handler = new Handler(); in onAnimationEnd()
365 Handler handler = new Handler(); in testPlayingCancel()
386 Handler handler = new Handler(); in testPlayingEnd()
408 Handler handler = new Handler(); in testPlayingDelayedCancel()
430 Handler handler = new Handler(); in testPlayingDelayedEnd()
455 Handler handler = new Handler(); in testPlayingDelayedCancelMidDelay()
479 Handler handler = new Handler(); in testPlayingDelayedEndMidDelay()
590 Handler handler = new Handler(); in testPauseResume()
[all …]
/frameworks/base/core/java/android/os/
DBroadcaster.java36 public void request(int senderWhat, Handler target, int targetWhat) in request()
43 r.targets = new Handler[1]; in request()
66 reg.targets = new Handler[1]; in request()
81 Handler[] oldTargets = r.targets; in request()
89 r.targets = new Handler[n+1]; in request()
104 public void cancelRequest(int senderWhat, Handler target, int targetWhat) in cancelRequest()
122 Handler[] targets = r.targets; in cancelRequest()
127 r.targets = new Handler[oldLen-1]; in cancelRequest()
194 Handler[] targets = r.targets; in broadcast()
198 Handler target = targets[i]; in broadcast()
[all …]
DHandler.java66 public class Handler { class
74 private static Handler MAIN_THREAD_HANDLER = null;
128 public Handler() { in Handler() method in Handler
152 public Handler(@Nullable Callback callback) { in Handler() method in Handler
161 public Handler(@NonNull Looper looper) { in Handler() method in Handler
172 public Handler(@NonNull Looper looper, @Nullable Callback callback) { in Handler() method in Handler
193 public Handler(boolean async) { in Handler() method in Handler
214 public Handler(@Nullable Callback callback, boolean async) { in Handler() method in Handler
216 final Class<? extends Handler> klass = getClass(); in Handler()
255 public Handler(@NonNull Looper looper, @Nullable Callback callback, boolean async) { in Handler() method in Handler
[all …]
/frameworks/base/non-updatable-api/
Dsystem-lint-baseline.txt74 …roid.app.Activity, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler):
76 …dOnAccountsUpdatedListener(android.accounts.OnAccountsUpdateListener, android.os.Handler, boolean):
78 …ntsUpdatedListener(android.accounts.OnAccountsUpdateListener, android.os.Handler, boolean, String[…
80 …roid.app.Activity, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler):
82 …roid.app.Activity, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler):
84 …roid.app.Activity, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler):
86 …String[], android.accounts.AccountManagerCallback<android.accounts.Account[]>, android.os.Handler):
88 …roid.app.Activity, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler):
90 …s.Bundle, boolean, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler):
92 …, String, boolean, android.accounts.AccountManagerCallback<android.os.Bundle>, android.os.Handler):
[all …]
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityButtonController.java20 import android.os.Handler;
58 private ArrayMap<AccessibilityButtonCallback, Handler> mCallbacks;
97 registerAccessibilityButtonCallback(callback, new Handler(Looper.getMainLooper())); in registerAccessibilityButtonCallback()
110 @NonNull Handler handler) { in registerAccessibilityButtonCallback()
149 final ArrayMap<AccessibilityButtonCallback, Handler> entries; in dispatchAccessibilityButtonClicked()
163 final Handler handler = entries.valueAt(i); in dispatchAccessibilityButtonClicked()
173 final ArrayMap<AccessibilityButtonCallback, Handler> entries; in dispatchAccessibilityButtonAvailabilityChanged()
188 final Handler handler = entries.valueAt(i); in dispatchAccessibilityButtonAvailabilityChanged()
DFingerprintGestureController.java21 import android.os.Handler;
70 private final ArrayMap<FingerprintGestureCallback, Handler> mCallbackHandlerMap =
106 @NonNull FingerprintGestureCallback callback, @Nullable Handler handler) { in registerFingerprintGestureCallback()
129 final ArrayMap<FingerprintGestureCallback, Handler> handlerMap; in onGestureDetectionActiveChanged()
136 Handler handler = handlerMap.valueAt(i); in onGestureDetectionActiveChanged()
150 final ArrayMap<FingerprintGestureCallback, Handler> handlerMap; in onGesture()
157 Handler handler = handlerMap.valueAt(i); in onGesture()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraAgent.java24 import android.os.Handler;
52 private final Handler mHandler;
56 Handler handler, CameraStartPreviewCallback cb) { in getNewInstance()
63 private CameraStartPreviewCallbackForward(Handler h, in CameraStartPreviewCallbackForward()
84 private final Handler mHandler;
96 Handler handler, CameraOpenCallback cb) { in getNewInstance()
103 private CameraOpenCallbackForward(Handler h, CameraOpenCallback cb) { in CameraOpenCallbackForward()
107 mHandler = new Handler(Looper.getMainLooper()); in CameraOpenCallbackForward()
286 public void openCamera(final Handler handler, final int cameraId, in openCamera()
355 protected abstract Handler getCameraHandler(); in getCameraHandler()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/async/
DAsyncMessageInvocation.java20 import android.os.Handler;
36 public abstract class AsyncMessageInvocation<Request, Response> implements Handler.Callback {
45 Request request, AsyncResultCallback<Response> resultCallback, Handler handler) { in invoke()
46 Handler h = new Handler(handler.getLooper(), this); in invoke()
/frameworks/base/core/tests/coretests/src/android/os/
DBroadcasterTest.java35 Handler h; in test1()
66 Handler mHandlers[];
71 mHandlers = new Handler[N]; in go()
131 Handler h1; in test4()
132 Handler h2; in test4()
166 Handler h1; in test5()
167 Handler h2; in test5()
201 Handler h1; in test6()
202 Handler h2; in test6()
/frameworks/base/telecomm/java/android/telecom/
DCallbackRecord.java19 import android.os.Handler;
30 private final Handler mHandler;
32 public CallbackRecord(T callback, Handler handler) { in CallbackRecord()
41 public Handler getHandler() { in getHandler()
/frameworks/base/core/java/com/android/internal/util/
DWakeupMessage.java21 import android.os.Handler;
43 protected final Handler mHandler;
53 public WakeupMessage(Context context, Handler handler, in WakeupMessage()
65 public WakeupMessage(Context context, Handler handler, String cmdName, int cmd, int arg1) { in WakeupMessage()
69 public WakeupMessage(Context context, Handler handler, in WakeupMessage()
74 public WakeupMessage(Context context, Handler handler, String cmdName, int cmd) { in WakeupMessage()
78 public WakeupMessage(Context context, Handler handler, String cmdName, Runnable runnable) { in WakeupMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DDelayedWakeLock.java20 import android.os.Handler;
32 private final Handler mHandler;
35 public DelayedWakeLock(Handler h, WakeLock inner) { in DelayedWakeLock()
66 private Handler mHandler;
88 public Builder setHandler(Handler handler) { in setHandler()
/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanCommissioningSession.java23 import android.os.Handler;
42 private Handler mHandler;
120 mHandler = new Handler(mLooper); in LowpanCommissioningSession()
122 mHandler = new Handler(); in LowpanCommissioningSession()
182 public synchronized void setCallback(@Nullable Callback cb, @Nullable Handler handler) { in setCallback()
197 mHandler = new Handler(mLooper); in setCallback()
199 mHandler = new Handler(); in setCallback()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothEventManager.java56 private final Map<String, Handler> mHandlerMap;
60 private final android.os.Handler mReceiverHandler;
64 interface Handler { interface in BluetoothEventManager
79 android.os.Handler handler, @Nullable UserHandle userHandle) { in BluetoothEventManager()
166 void addProfileHandler(String action, Handler handler) { in addProfileHandler()
242 void addHandler(String action, Handler handler) { in addHandler()
254 Handler handler = mHandlerMap.get(action); in onReceive()
261 private class AdapterStateChangedHandler implements Handler {
276 private class ScanningStateChangedHandler implements Handler {
291 private class DeviceFoundHandler implements Handler {
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipUpdateThread.java19 import android.os.Handler;
28 private static Handler sHandler;
38 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
54 public static Handler getHandler() { in getHandler()
/frameworks/base/test-mock/api/
Dsystem-lint-baseline.txt2 …Users(android.content.BroadcastReceiver, android.content.IntentFilter, String, android.os.Handler):
6 …Users(android.content.BroadcastReceiver, android.content.IntentFilter, String, android.os.Handler):
8 ….content.BroadcastReceiver, android.content.IntentFilter, String, android.os.Handler) parameter #0:
10 ….content.BroadcastReceiver, android.content.IntentFilter, String, android.os.Handler) parameter #1:
12 ….content.BroadcastReceiver, android.content.IntentFilter, String, android.os.Handler) parameter #2:
14 ….content.BroadcastReceiver, android.content.IntentFilter, String, android.os.Handler) parameter #3:

12345678910>>...68