/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
D | SimulatedCommandsVerifier.java | 21 import android.os.Handler; 60 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged() 65 public void unregisterForRadioStateChanged(Handler h) { in unregisterForRadioStateChanged() 70 public void registerForVoiceRadioTechChanged(Handler h, int what, Object obj) { in registerForVoiceRadioTechChanged() 75 public void unregisterForVoiceRadioTechChanged(Handler h) { in unregisterForVoiceRadioTechChanged() 80 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged() 85 public void unregisterForImsNetworkStateChanged(Handler h) { in unregisterForImsNetworkStateChanged() 90 public void registerForOn(Handler h, int what, Object obj) { in registerForOn() 95 public void unregisterForOn(Handler h) { in unregisterForOn() 100 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CommandsInterface.java | 22 import android.os.Handler; 140 void registerForRadioStateChanged(Handler h, int what, Object obj); in registerForRadioStateChanged() 141 void unregisterForRadioStateChanged(Handler h); in unregisterForRadioStateChanged() 143 void registerForVoiceRadioTechChanged(Handler h, int what, Object obj); in registerForVoiceRadioTechChanged() 145 void unregisterForVoiceRadioTechChanged(Handler h); in unregisterForVoiceRadioTechChanged() 147 void registerForImsNetworkStateChanged(Handler h, int what, Object obj); in registerForImsNetworkStateChanged() 148 void unregisterForImsNetworkStateChanged(Handler h); in unregisterForImsNetworkStateChanged() 157 void registerForOn(Handler h, int what, Object obj); in registerForOn() 159 void unregisterForOn(Handler h); in unregisterForOn() 168 void registerForAvailable(Handler h, int what, Object obj); in registerForAvailable() [all …]
|
D | BaseCommands.java | 23 import android.os.Handler; 168 public void registerForRadioStateChanged(Handler h, int what, Object obj) { in registerForRadioStateChanged() 178 public void unregisterForRadioStateChanged(Handler h) { in unregisterForRadioStateChanged() 184 public void registerForImsNetworkStateChanged(Handler h, int what, Object obj) { in registerForImsNetworkStateChanged() 189 public void unregisterForImsNetworkStateChanged(Handler h) { in unregisterForImsNetworkStateChanged() 194 public void registerForOn(Handler h, int what, Object obj) { in registerForOn() 206 public void unregisterForOn(Handler h) { in unregisterForOn() 214 public void registerForAvailable(Handler h, int what, Object obj) { in registerForAvailable() 227 public void unregisterForAvailable(Handler h) { in unregisterForAvailable() 234 public void registerForNotAvailable(Handler h, int what, Object obj) { in registerForNotAvailable() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | PhoneMock.java | 23 import android.os.Handler; 174 public void registerForSilentRedial(Handler h, int what, Object obj) { in registerForSilentRedial() 178 public void unregisterForSilentRedial(Handler h) { in unregisterForSilentRedial() 198 public void registerForPreciseCallStateChanged(Handler h, int what, Object obj) { in registerForPreciseCallStateChanged() 202 public void unregisterForPreciseCallStateChanged(Handler h) { in unregisterForPreciseCallStateChanged() 213 public void registerForHandoverStateChanged(Handler h, int what, Object obj) { in registerForHandoverStateChanged() 217 public void unregisterForHandoverStateChanged(Handler h) { in unregisterForHandoverStateChanged() 234 public void registerForUnknownConnection(Handler h, int what, Object obj) { in registerForUnknownConnection() 238 public void unregisterForUnknownConnection(Handler h) { in unregisterForUnknownConnection() 243 Handler h, int what, Object obj) { in registerForNewRingingConnection() [all …]
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestableLooperTest.java | 32 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/ |
D | RequestHandlerThread.java | 20 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/p2p/ |
D | MockWifiP2pMonitor.java | 22 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockWifiMonitor.java | 22 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/base/core/java/android/os/ |
D | Broadcaster.java | 36 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 …]
|
D | Handler.java | 67 public class Handler { class 75 private static Handler MAIN_THREAD_HANDLER = null; 118 public Handler() { in Handler() method in Handler 132 public Handler(@Nullable Callback callback) { in Handler() method in Handler 141 public Handler(@NonNull Looper looper) { in Handler() method in Handler 152 public Handler(@NonNull Looper looper, @Nullable Callback callback) { in Handler() method in Handler 173 public Handler(boolean async) { in Handler() method in Handler 194 public Handler(@Nullable Callback callback, boolean async) { in Handler() method in Handler 196 final Class<? extends Handler> klass = getClass(); in Handler() 235 public Handler(@NonNull Looper looper, @Nullable Callback callback, boolean async) { in Handler() method in Handler [all …]
|
D | Registrant.java | 20 import android.os.Handler; 30 Registrant(Handler h, int what, Object obj) in Registrant() 78 Handler h = getHandler(); in internalNotifyRegistrant() 101 Handler h = getHandler(); in messageForRegistrant() 117 public Handler 123 return (Handler) refH.get(); in getHandler()
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityButtonController.java | 20 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()
|
D | FingerprintGestureController.java | 21 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/base/core/tests/coretests/src/android/animation/ |
D | EventsTest.java | 23 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/packages/SystemUI/src/com/android/systemui/ |
D | DependencyProvider.java | 29 import android.os.Handler; 72 public Handler provideHandler() { in provideHandler() 75 return new Handler(thread.getLooper()); in provideHandler() 91 public Handler provideBgHandler(@Named(BG_LOOPER_NAME) Looper bgLooper) { in provideBgHandler() 92 return new Handler(bgLooper); in provideBgHandler() 98 public Handler provideMainHandler() { in provideMainHandler() 99 return new Handler(Looper.getMainLooper()); in provideMainHandler() 112 @Named(BG_HANDLER_NAME) Handler bgHandler) { in provideLocalBluetoothController() 168 @Named(BG_HANDLER_NAME) Handler bgHandler) { in provideNightDisplayListener() 181 @Named(MAIN_HANDLER_NAME) Handler mainHandler) { in provideNavigationBarController() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/async/ |
D | AsyncMessageInvocation.java | 20 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/telecomm/java/android/telecom/ |
D | CallbackRecord.java | 19 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/media/java/android/media/session/ |
D | MediaSessionManager.java | 33 import android.os.Handler; 277 @Nullable ComponentName notificationListener, @Nullable Handler handler) { in addOnActiveSessionsChangedListener() 300 @Nullable ComponentName notificationListener, int userId, @Nullable Handler handler) { in addOnActiveSessionsChangedListener() 305 handler = new Handler(); in addOnActiveSessionsChangedListener() 359 addOnSession2TokensChangedListener(UserHandle.myUserId(), listener, new Handler()); in addOnSession2TokensChangedListener() 374 @NonNull OnSession2TokensChangedListener listener, @NonNull Handler handler) { in addOnSession2TokensChangedListener() 393 @NonNull OnSession2TokensChangedListener listener, @Nullable Handler handler) { in addOnSession2TokensChangedListener() 690 OnVolumeKeyLongPressListener listener, @Nullable Handler handler) { in setOnVolumeKeyLongPressListener() 698 handler = new Handler(); in setOnVolumeKeyLongPressListener() 725 public void setOnMediaKeyListener(OnMediaKeyListener listener, @Nullable Handler handler) { in setOnMediaKeyListener() [all …]
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | CameraAgent.java | 24 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/base/core/tests/coretests/src/android/os/ |
D | BroadcasterTest.java | 35 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/core/java/android/hardware/soundtrigger/ |
D | SoundTriggerModule.java | 20 import android.os.Handler; 46 SoundTriggerModule(int moduleId, SoundTrigger.StatusListener listener, Handler handler) { in SoundTriggerModule() 154 private final Handler mHandler; 157 Handler handler) { in NativeEventHandlerDelegate() 169 mHandler = new Handler(looper) { in NativeEventHandlerDelegate() 205 Handler handler() { in handler() 221 Handler handler = delegate.handler(); in postEventFromNative()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | WakeupMessage.java | 21 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/pip/phone/ |
D | ForegroundThread.java | 19 import android.os.Handler; 28 private static Handler sHandler; 38 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 49 public static Handler getHandler() { in getHandler()
|
/frameworks/base/media/apex/java/android/media/ |
D | RoutingDelegate.java | 19 import android.os.Handler; 24 private Handler mHandler; 28 Handler handler) { in RoutingDelegate() 38 public Handler getHandler() { in getHandler()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AnimationThread.java | 21 import android.os.Handler; 30 private static Handler sHandler; 41 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked() 52 public static Handler getHandler() { in getHandler()
|