Home
last modified time | relevance | path

Searched refs:mEventHandler (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterTest.java82 private final SparseArray<EventStreamTransformation> mEventHandler = new SparseArray<>(0); field in AccessibilityInputFilterTest
151 mA11yInputFilter = new AccessibilityInputFilter(context, mAms, mEventHandler); in setUp()
168 assertEquals(0, mEventHandler.size()); in testEventHandler_shouldChangeAfterSetUserAndEnabledFeatures()
172 assertEquals(1, mEventHandler.size()); in testEventHandler_shouldChangeAfterSetUserAndEnabledFeatures()
175 assertEquals(0, mEventHandler.size()); in testEventHandler_shouldChangeAfterSetUserAndEnabledFeatures()
184 assertEquals(1, mEventHandler.size()); in testEventHandler_shouldIncreaseAndHaveCorrectOrderAfterOnDisplayAdded()
189 assertEquals(2, mEventHandler.size()); in testEventHandler_shouldIncreaseAndHaveCorrectOrderAfterOnDisplayAdded()
191 EventStreamTransformation next = mEventHandler.get(SECOND_DISPLAY); in testEventHandler_shouldIncreaseAndHaveCorrectOrderAfterOnDisplayAdded()
208 assertEquals(2, mEventHandler.size()); in testEventHandler_shouldDecreaseAfterOnDisplayRemoved()
212 assertEquals(1, mEventHandler.size()); in testEventHandler_shouldDecreaseAfterOnDisplayRemoved()
[all …]
/frameworks/base/media/java/android/media/
DSRTRenderer.java24 private final Handler mEventHandler; field in SRTRenderer
32 SRTRenderer(Context mContext, Handler mEventHandler) { in SRTRenderer() argument
34 this.mRender = (mEventHandler == null); in SRTRenderer()
35 this.mEventHandler = mEventHandler; in SRTRenderer()
59 return new SRTTrack(mEventHandler, format); in createTrack()
71 private final Handler mEventHandler; field in SRTTrack
75 mEventHandler = null; in SRTTrack()
80 mEventHandler = eventHandler; in SRTTrack()
165 if (mEventHandler == null) { in updateView()
187 Message msg = mEventHandler.obtainMessage(MEDIA_TIMED_TEXT, 0 /* arg1 */, 0 /* arg2 */, in updateView()
[all …]
DJetPlayer.java105 private NativeEventHandler mEventHandler = null; field in JetPlayer
483 mEventHandler = new NativeEventHandler(this, handler.getLooper()); in setEventListener()
486 mEventHandler = new NativeEventHandler(this, mInitializationLooper); in setEventListener()
489 mEventHandler = null; in setEventListener()
571 if ((jet != null) && (jet.mEventHandler != null)) { in postEventFromNative()
573 jet.mEventHandler.obtainMessage(what, arg1, arg2, null); in postEventFromNative()
574 jet.mEventHandler.sendMessage(m); in postEventFromNative()
DMediaCas.java127 private EventHandler mEventHandler; field in MediaCas
424 if (mEventHandler != null) {
425 mEventHandler.sendMessage(
426 mEventHandler.obtainMessage(
434 if (mEventHandler != null) {
435 Message msg = mEventHandler.obtainMessage();
443 mEventHandler.sendMessage(msg);
449 if (mEventHandler != null) {
450 mEventHandler.sendMessage(
451 mEventHandler.obtainMessage(
[all …]
DRemoteController.java115 mEventHandler = new EventHandler(this, looper); in RemoteController()
119 mEventHandler = new EventHandler(this, l); in RemoteController()
490 private final EventHandler mEventHandler; field in RemoteController
592 sendMsg(mEventHandler, MSG_CLIENT_CHANGE, SENDMSG_REPLACE, in updateController()
601 sendMsg(mEventHandler, MSG_CLIENT_CHANGE, SENDMSG_REPLACE, in updateController()
604 mCurrentSession.registerCallback(mSessionCb, mEventHandler); in updateController()
607 sendMsg(mEventHandler, MSG_NEW_PLAYBACK_STATE, SENDMSG_REPLACE, in updateController()
611 sendMsg(mEventHandler, MSG_NEW_MEDIA_METADATA, SENDMSG_REPLACE, in updateController()
DSoundPool.java128 private final AtomicReference<EventHandler> mEventHandler = new AtomicReference<>(null); field in SoundPool
499 mEventHandler.set(null); in setOnLoadCompleteListener()
505 mEventHandler.set(new EventHandler(looper, listener)); in setOnLoadCompleteListener()
507 mEventHandler.set(new EventHandler(looper, listener)); in setOnLoadCompleteListener()
509 mEventHandler.set(null); in setOnLoadCompleteListener()
528 Handler eventHandler = mEventHandler.get(); in postEventFromNative()
DMediaRecorder.java127 private EventHandler mEventHandler; field in MediaRecorder
156 mEventHandler = new EventHandler(this, looper); in MediaRecorder()
158 mEventHandler = new EventHandler(this, looper); in MediaRecorder()
160 mEventHandler = null; in MediaRecorder()
1386 mEventHandler.removeCallbacksAndMessages(null); in reset()
1733 handler != null ? handler : mEventHandler)); in addOnRoutingChangedListener()
1899 if (mr.mEventHandler != null) { in postEventFromNative()
1900 Message m = mr.mEventHandler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative()
1901 mr.mEventHandler.sendMessage(m); in postEventFromNative()
DMediaPlayer.java635 private EventHandler mEventHandler; field in MediaPlayer
689 mEventHandler = new EventHandler(this, looper); in MediaPlayer()
691 mEventHandler = new EventHandler(this, looper); in MediaPlayer()
693 mEventHandler = null; in MediaPlayer()
1653 handler != null ? handler : mEventHandler)); in addOnRoutingChangedListener()
2276 if (mEventHandler != null) { in reset()
2277 mEventHandler.removeCallbacksAndMessages(null); in reset()
2825 return timeProvider.mEventHandler.getLooper(); in setSubtitleAnchor()
2946 Handler h = mTimeProvider.mEventHandler; in addSubtitleSource()
2960 if (mEventHandler != null) { in addSubtitleSource()
[all …]
DAudioRecord.java265 private NativeEventHandler mEventHandler = null; field in AudioRecord
1880 mEventHandler = new NativeEventHandler(this, handler.getLooper()); in setRecordPositionUpdateListener()
1883 mEventHandler = new NativeEventHandler(this, mInitializationLooper); in setRecordPositionUpdateListener()
1886 mEventHandler = null; in setRecordPositionUpdateListener()
2420 if (recorder.mEventHandler != null) { in postEventFromNative()
2422 recorder.mEventHandler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative()
2423 recorder.mEventHandler.sendMessage(m); in postEventFromNative()
DMediaCodec.java1812 private EventHandler mEventHandler; field in MediaCodec
2139 mEventHandler = new EventHandler(this, looper); in MediaCodec()
2141 mEventHandler = new EventHandler(this, looper); in MediaCodec()
2143 mEventHandler = null; in MediaCodec()
2145 mCallbackHandler = mEventHandler; in MediaCodec()
2146 mOnFirstTunnelFrameReadyHandler = mEventHandler; in MediaCodec()
2147 mOnFrameRenderedHandler = mEventHandler; in MediaCodec()
5596 return mEventHandler; in getEventHandlerOn()
5696 EventHandler handler = mEventHandler; in postEventFromNative()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragDetector.java41 private final MotionEventHandler mEventHandler; field in DragDetector
52 mEventHandler = eventHandler; in DragDetector()
77 return mEventHandler.handleMotionEvent(v, ev); in onMotionEvent()
85 mResultOfDownAction = mEventHandler.handleMotionEvent(v, ev); in onMotionEvent()
103 return mEventHandler.handleMotionEvent(v, ev); in onMotionEvent()
111 return mEventHandler.handleMotionEvent(v, ev); in onMotionEvent()
114 return mEventHandler.handleMotionEvent(v, ev); in onMotionEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/
DSideFpsEventHandlerTest.java97 private SideFpsEventHandler mEventHandler; field in SideFpsEventHandlerTest
110 mEventHandler = in setup()
123 assertThat(mEventHandler.shouldConsumeSinglePress(60L)).isFalse(); in ignoresWithoutFingerprintFeature()
135 assertThat(mEventHandler.shouldConsumeSinglePress(200L)).isFalse(); in ignoresWithoutSfps()
148 assertThat(mEventHandler.shouldConsumeSinglePress(400L)).isFalse(); in ignoresWhileWaitingForSfps()
160 assertThat(mEventHandler.shouldConsumeSinglePress(80000L)).isFalse(); in ignoresWhenIdleOrUnknown()
163 assertThat(mEventHandler.shouldConsumeSinglePress(90000L)).isFalse(); in ignoresWhenIdleOrUnknown()
174 assertThat(mEventHandler.shouldConsumeSinglePress(80000L)).isFalse(); in ignoresOnKeyguard()
185 assertThat(mEventHandler.shouldConsumeSinglePress(80000L)).isTrue(); in doesNotpromptWhenBPisActive()
196 assertThat(mEventHandler.shouldConsumeSinglePress(80000L)).isTrue(); in promptsWhenEnrolling()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityInputFilter.java179 private final SparseArray<EventStreamTransformation> mEventHandler; field in AccessibilityInputFilter
277 mEventHandler = eventHandler; in AccessibilityInputFilter()
335 if (mEventHandler.size() == 0) { in onInputEventInternal()
427 final EventStreamTransformation eventHandler = mEventHandler.get(displayId); in clearEventStreamHandler()
523 mEventHandler.get(Display.DEFAULT_DISPLAY).onKeyEvent(event, policyFlags); in processKeyEvent()
533 EventStreamTransformation eventStreamTransformation = mEventHandler.get( in handleMotionEvent()
542 return mEventHandler.get(displayId) != null; in isDisplayIdValid()
605 for (int i = 0; i < mEventHandler.size(); i++) { in notifyAccessibilityEvent()
606 final EventStreamTransformation eventHandler = mEventHandler.valueAt(i); in notifyAccessibilityEvent()
746 EventStreamTransformation eventHandler = mEventHandler.get(displayId); in addFirstEventHandler()
[all …]
/frameworks/base/drm/java/android/drm/
DDrmManagerClient.java129 private EventHandler mEventHandler; field in DrmManagerClient
295 if (mEventHandler != null) { in close()
303 mEventHandler = null; in close()
533 if (null != mEventHandler) { in processDrmInfo()
534 Message msg = mEventHandler.obtainMessage(ACTION_PROCESS_DRM_INFO, drmInfo); in processDrmInfo()
535 result = (mEventHandler.sendMessage(msg)) ? ERROR_NONE : result; in processDrmInfo()
760 if (null != mEventHandler) { in removeAllRights()
761 Message msg = mEventHandler.obtainMessage(ACTION_REMOVE_ALL_RIGHTS); in removeAllRights()
762 result = (mEventHandler.sendMessage(msg)) ? ERROR_NONE : result; in removeAllRights()
935 if (mEventHandler == null && mInfoHandler == null) { in createEventThreads()
[all …]
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicy.java174 mEventHandler = new EventHandler(this, looper); in AudioPolicy()
176 mEventHandler = null; in AudioPolicy()
1203 private final EventHandler mEventHandler; field in AudioPolicy
1274 if (mEventHandler != null) { in sendMsg()
1275 mEventHandler.sendEmptyMessage(msg); in sendMsg()
1280 if (mEventHandler != null) { in sendMsg()
1281 mEventHandler.sendMessage( in sendMsg()
1282 mEventHandler.obtainMessage(msg, i /*arg1*/, 0 /*arg2, ignored*/, obj)); in sendMsg()
/frameworks/base/services/core/java/com/android/server/audio/
DPlaybackActivityMonitor.java469 mEventHandler.sendMessage( in portEvent()
470 mEventHandler.obtainMessage(MSG_IIL_UPDATE_PLAYER_MUTED_EVENT, piid, in portEvent()
474 mEventHandler.sendMessage( in portEvent()
475 mEventHandler.obtainMessage(MSG_IIL_UPDATE_PLAYER_FORMAT, piid, in portEvent()
1552 mEventHandler.removeMessages(MSG_L_TIMEOUT_MUTE_AWAIT_CONNECTION); in muteAwaitConnection()
1553 mEventHandler.sendMessageDelayed( in muteAwaitConnection()
1554 mEventHandler.obtainMessage(MSG_L_TIMEOUT_MUTE_AWAIT_CONNECTION, dev), in muteAwaitConnection()
1564 mEventHandler.removeMessages(MSG_L_TIMEOUT_MUTE_AWAIT_CONNECTION); in cancelMuteAwaitConnection()
1646 private Handler mEventHandler; field in PlaybackActivityMonitor
1680 mEventHandler = new Handler(mEventThread.getLooper()) { in initEventHandler()
/frameworks/base/media/java/android/media/tv/ad/
DTvAdManager.java979 p.mEventHandler = handler; in obtainPendingEventLocked()
1031 if (p.mEventHandler.getLooper().isCurrentThread()) { in invokeFinishedInputEventCallback()
1038 Message msg = Message.obtain(p.mEventHandler, p); in invokeFinishedInputEventCallback()
1121 public Handler mEventHandler; field in TvAdManager.Session.PendingEvent
1128 mEventHandler = null; in recycle()
1136 synchronized (mEventHandler) { in run()
/frameworks/base/wifi/java/src/android/net/wifi/nl80211/
DWifiNl80211Manager.java104 private Handler mEventHandler; field in WifiNl80211Manager
422 mEventHandler = new Handler(context.getMainLooper()); in WifiNl80211Manager()
587 TIMEOUT_ALARM_TAG, mTimeoutCallback, mEventHandler); in SendMgmtFrameEvent()
594 mEventHandler.post(() -> runIfFirstCall(() -> { in OnAck()
609 mEventHandler.post(() -> runIfFirstCall(() -> { in OnFailure()
628 mEventHandler.post(() -> { in binderDied()
/frameworks/base/core/java/android/hardware/
DCamera.java177 private EventHandler mEventHandler; field in Camera
538 mEventHandler = new EventHandler(this, looper); in cameraInit()
540 mEventHandler = new EventHandler(this, looper); in cameraInit()
542 mEventHandler = null; in cameraInit()
1181 if (c.mEventHandler != null) { in postEventFromNative()
1182 Message m = c.mEventHandler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative()
1183 c.mEventHandler.sendMessage(m); in postEventFromNative()
1308 mEventHandler.removeMessages(CAMERA_MSG_FOCUS); in cancelAutoFocus()
/frameworks/base/media/java/android/media/tv/interactive/
DTvInteractiveAppManager.java1888 p.mEventHandler = handler; in obtainPendingEventLocked()
1895 if (p.mEventHandler.getLooper().isCurrentThread()) { in invokeFinishedInputEventCallback()
1902 Message msg = Message.obtain(p.mEventHandler, p); in invokeFinishedInputEventCallback()
2030 public Handler mEventHandler; field in TvInteractiveAppManager.Session.PendingEvent
2037 mEventHandler = null; in recycle()
2045 synchronized (mEventHandler) { in run()
/frameworks/base/media/java/android/media/tv/
DTvInputManager.java3963 if (p.mEventHandler.getLooper().isCurrentThread()) {
3970 Message msg = Message.obtain(p.mEventHandler, p);
3997 p.mEventHandler = handler;
4146 public Handler mEventHandler;
4153 mEventHandler = null;
4161 synchronized (mEventHandler) {
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt14984 Landroid/drm/DrmManagerClient;->mEventHandler:Landroid/drm/DrmManagerClient$EventHandler;
19627 Landroid/hardware/Camera;->mEventHandler:Landroid/hardware/Camera$EventHandler;
24486 Landroid/media/audiopolicy/AudioPolicy;->mEventHandler:Landroid/media/audiopolicy/AudioPolicy$Event…
24629 Landroid/media/AudioRecord;->mEventHandler:Landroid/media/AudioRecord$NativeEventHandler;
26642 Landroid/media/JetPlayer;->mEventHandler:Landroid/media/JetPlayer$NativeEventHandler;
26745 Landroid/media/MediaCas;->mEventHandler:Landroid/media/MediaCas$EventHandler;
26846 Landroid/media/MediaCodec;->mEventHandler:Landroid/media/MediaCodec$EventHandler;
27168 Landroid/media/MediaDrm;->mEventHandler:Landroid/media/MediaDrm$EventHandler;
27543 Landroid/media/MediaPlayer$TimeProvider;->mEventHandler:Landroid/os/Handler;
27838 Landroid/media/MediaPlayer2Impl$TimeProvider;->mEventHandler:Landroid/media/MediaPlayer2Impl$TimePr…
[all …]