Home
last modified time | relevance | path

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

/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()
164 if (mEventHandler == null) { in updateView()
186 Message msg = mEventHandler.obtainMessage(MEDIA_TIMED_TEXT, 0 /* arg1 */, 0 /* arg2 */, in updateView()
[all …]
DSoundPool.java127 private EventHandler mEventHandler; field in SoundPool
499 mEventHandler = new EventHandler(looper); in setOnLoadCompleteListener()
501 mEventHandler = new EventHandler(looper); in setOnLoadCompleteListener()
503 mEventHandler = null; in setOnLoadCompleteListener()
506 mEventHandler = null; in setOnLoadCompleteListener()
531 if (soundPool.mEventHandler != null) { in postEventFromNative()
532 Message m = soundPool.mEventHandler.obtainMessage(msg, arg1, arg2, obj); in postEventFromNative()
533 soundPool.mEventHandler.sendMessage(m); in postEventFromNative()
DJetPlayer.java106 private NativeEventHandler mEventHandler = null; field in JetPlayer
481 mEventHandler = new NativeEventHandler(this, handler.getLooper()); in setEventListener()
484 mEventHandler = new NativeEventHandler(this, mInitializationLooper); in setEventListener()
487 mEventHandler = null; in setEventListener()
568 if ((jet != null) && (jet.mEventHandler != null)) { in postEventFromNative()
570 jet.mEventHandler.obtainMessage(what, arg1, arg2, null); in postEventFromNative()
571 jet.mEventHandler.sendMessage(m); in postEventFromNative()
DMediaDrm.java126 private EventHandler mEventHandler; field in MediaDrm
206 mEventHandler = new EventHandler(this, looper); in MediaDrm()
208 mEventHandler = new EventHandler(this, looper); in MediaDrm()
210 mEventHandler = null; in MediaDrm()
278 if (mEventHandler == null || mEventHandler.getLooper() != looper) {
279 mEventHandler = new EventHandler(this, looper);
320 if (mEventHandler == null || mEventHandler.getLooper() != looper) {
321 mEventHandler = new EventHandler(this, looper);
615 if (md.mEventHandler != null) { in postEventFromNative()
616 Message m = md.mEventHandler.obtainMessage(what, eventType, extra, obj); in postEventFromNative()
[all …]
DMediaRecorder.java97 private EventHandler mEventHandler; field in MediaRecorder
108 mEventHandler = new EventHandler(this, looper); in MediaRecorder()
110 mEventHandler = new EventHandler(this, looper); in MediaRecorder()
112 mEventHandler = null; in MediaRecorder()
995 mEventHandler.removeCallbacksAndMessages(null); in reset()
1256 if (mr.mEventHandler != null) { in postEventFromNative()
1257 Message m = mr.mEventHandler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative()
1258 mr.mEventHandler.sendMessage(m); in postEventFromNative()
DRemoteController.java114 mEventHandler = new EventHandler(this, looper); in RemoteController()
118 mEventHandler = new EventHandler(this, l); in RemoteController()
500 private final EventHandler mEventHandler; field in RemoteController
602 sendMsg(mEventHandler, MSG_CLIENT_CHANGE, SENDMSG_REPLACE, in updateController()
611 sendMsg(mEventHandler, MSG_CLIENT_CHANGE, SENDMSG_REPLACE, in updateController()
614 mCurrentSession.registerCallback(mSessionCb, mEventHandler); in updateController()
617 sendMsg(mEventHandler, MSG_NEW_PLAYBACK_STATE, SENDMSG_REPLACE, in updateController()
621 sendMsg(mEventHandler, MSG_NEW_MEDIA_METADATA, SENDMSG_REPLACE, in updateController()
DMediaCas.java102 private EventHandler mEventHandler; field in MediaCas
148 mEventHandler.sendMessage(mEventHandler.obtainMessage(
469 mEventHandler = null; in setEventListener()
484 mEventHandler = new EventHandler(looper); in setEventListener()
DMediaPlayer.java627 private EventHandler mEventHandler; field in MediaPlayer
661 mEventHandler = new EventHandler(this, looper); in MediaPlayer()
663 mEventHandler = new EventHandler(this, looper); in MediaPlayer()
665 mEventHandler = null; in MediaPlayer()
2041 if (mEventHandler != null) { in reset()
2042 mEventHandler.removeCallbacksAndMessages(null); in reset()
2637 Handler h = mTimeProvider.mEventHandler; in addSubtitleSource()
2648 if (mEventHandler != null) { in addSubtitleSource()
2649 Message m = mEventHandler.obtainMessage(MEDIA_INFO, res, 0, null); in addSubtitleSource()
2650 mEventHandler.sendMessage(m); in addSubtitleSource()
[all …]
DAudioRecord.java226 private NativeEventHandler mEventHandler = null; field in AudioRecord
1345 mEventHandler = new NativeEventHandler(this, handler.getLooper()); in setRecordPositionUpdateListener()
1348 mEventHandler = new NativeEventHandler(this, mInitializationLooper); in setRecordPositionUpdateListener()
1351 mEventHandler = null; in setRecordPositionUpdateListener()
1722 if (recorder.mEventHandler != null) { in postEventFromNative()
1724 recorder.mEventHandler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative()
1725 recorder.mEventHandler.sendMessage(m); in postEventFromNative()
DMediaCodec.java1592 private EventHandler mEventHandler; field in MediaCodec
1775 mEventHandler = new EventHandler(this, looper); in MediaCodec()
1777 mEventHandler = new EventHandler(this, looper); in MediaCodec()
1779 mEventHandler = null; in MediaCodec()
1781 mCallbackHandler = mEventHandler; in MediaCodec()
1782 mOnFrameRenderedHandler = mEventHandler; in MediaCodec()
3384 return mEventHandler; in getEventHandlerOn()
3439 EventHandler handler = mEventHandler; in postEventFromNative()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityInputFilter.java141 private EventStreamTransformation mEventHandler; field in AccessibilityInputFilter
187 if (mEventHandler == null) { in onInputEvent()
201 mEventHandler.clearEvents(eventSource); in onInputEvent()
207 mEventHandler.clearEvents(eventSource); in onInputEvent()
277 mEventHandler.onKeyEvent(event, policyFlags); in processKeyEvent()
334 if (mEventHandler != null) { in handleMotionEvent()
337 mEventHandler.onMotionEvent(transformedEvent, event, policyFlags); in handleMotionEvent()
385 if (mEventHandler != null) { in notifyAccessibilityEvent()
386 mEventHandler.onAccessibilityEvent(event); in notifyAccessibilityEvent()
440 if (mEventHandler != null) { in addFirstEventHandler()
[all …]
/frameworks/base/drm/java/android/drm/
DDrmManagerClient.java124 private EventHandler mEventHandler; field in DrmManagerClient
287 if (mEventHandler != null) { in close()
295 mEventHandler = null; in close()
514 if (null != mEventHandler) { in processDrmInfo()
515 Message msg = mEventHandler.obtainMessage(ACTION_PROCESS_DRM_INFO, drmInfo); in processDrmInfo()
516 result = (mEventHandler.sendMessage(msg)) ? ERROR_NONE : result; in processDrmInfo()
741 if (null != mEventHandler) { in removeAllRights()
742 Message msg = mEventHandler.obtainMessage(ACTION_REMOVE_ALL_RIGHTS); in removeAllRights()
743 result = (mEventHandler.sendMessage(msg)) ? ERROR_NONE : result; in removeAllRights()
915 if (mEventHandler == null && mInfoHandler == null) { in createEventThreads()
[all …]
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicy.java115 mEventHandler = new EventHandler(this, looper); in AudioPolicy()
117 mEventHandler = null; in AudioPolicy()
524 private final EventHandler mEventHandler; field in AudioPolicy
587 if (mEventHandler != null) { in sendMsg()
588 mEventHandler.sendEmptyMessage(msg); in sendMsg()
593 if (mEventHandler != null) { in sendMsg()
594 mEventHandler.sendMessage( in sendMsg()
595 mEventHandler.obtainMessage(msg, i /*arg1*/, 0 /*arg2, ignored*/, obj)); in sendMsg()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWificondScannerImpl.java63 private final Handler mEventHandler; field in WificondScannerImpl
133 mEventHandler = new Handler(looper, this); in WificondScannerImpl()
135 mHwPnoDebouncer = new HwPnoDebouncer(mWifiNative, mAlarmManager, mEventHandler, mClock); in WificondScannerImpl()
142 WifiMonitor.SCAN_FAILED_EVENT, mEventHandler); in WificondScannerImpl() local
144 WifiMonitor.PNO_SCAN_RESULTS_EVENT, mEventHandler); in WificondScannerImpl() local
146 WifiMonitor.SCAN_RESULTS_EVENT, mEventHandler); in WificondScannerImpl() local
388 BACKGROUND_PERIOD_ALARM_TAG, mScanPeriodListener, mEventHandler); in processPendingScans()
437 TIMEOUT_ALARM_TAG, mScanTimeoutListener, mEventHandler); in processPendingScans()
441 mEventHandler.post(new Runnable() { in processPendingScans()
466 mEventHandler.post(new Runnable() { in processPendingScans()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigStore.java89 private final Handler mEventHandler; field in WifiConfigStore
148 mEventHandler = new Handler(looper); in WifiConfigStore()
304 BUFFERED_WRITE_ALARM_TAG, mBufferedWriteListener, mEventHandler); in startBufferedWriteAlarm()
DWifiConnectivityManager.java141 private final Handler mEventHandler; field in WifiConnectivityManager
547 mEventHandler = new Handler(looper); in WifiConnectivityManager()
934 mWatchdogListener, mEventHandler); in scheduleWatchdogTimer()
942 mPeriodicScanTimerListener, mEventHandler); in schedulePeriodicScanTimer()
963 restartSingleScanListener, mEventHandler); in scheduleDelayedSingleScan()
973 mRestartScanListener, mEventHandler); in scheduleDelayedConnectivityScan()
DRttService.java693 private WifiNative.RttEventHandler mEventHandler = new WifiNative.RttEventHandler() { field in RttService.RttServiceImpl
705 if (mWifiNative.requestRtt(request.params, mEventHandler)) { in issueNextRequest()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.cpp68 mEventHandler(nullptr), in HWComposer()
89 bool wasNull = (mEventHandler == nullptr); in setEventHandler()
90 mEventHandler = handler; in setEventHandler()
168 mEventHandler->onHotplugReceived(this, disp, in hotplug()
173 mEventHandler->onInvalidateReceived(this); in invalidate()
219 mEventHandler->onVSyncReceived(this, disp, timestamp); in vsync()
DHWComposer_hwc1.cpp92 mEventHandler(handler), in HWComposer()
280 mEventHandler.onInvalidateReceived(this); in invalidate()
305 mEventHandler.onVSyncReceived(this, disp, timestamp); in vsync()
318 mEventHandler.onHotplugReceived(this, disp, bool(connected)); in hotplug()
1322 mHwc.mEventHandler.onVSyncReceived(&mHwc, 0, next_vsync); in threadLoop()
DHWComposer.h218 EventHandler* mEventHandler; variable
DHWComposer_hwc1.h383 EventHandler& mEventHandler; variable
/frameworks/base/core/java/android/hardware/
DCamera.java161 private EventHandler mEventHandler; field in Camera
472 mEventHandler = new EventHandler(this, looper); in cameraInitVersion()
474 mEventHandler = new EventHandler(this, looper); in cameraInitVersion()
476 mEventHandler = null; in cameraInitVersion()
1184 if (c.mEventHandler != null) { in postEventFromNative()
1185 Message m = c.mEventHandler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative()
1186 c.mEventHandler.sendMessage(m); in postEventFromNative()
1305 mEventHandler.removeMessages(CAMERA_MSG_FOCUS); in cancelAutoFocus()
/frameworks/base/media/java/android/media/tv/
DTvInputManager.java2426 if (p.mEventHandler.getLooper().isCurrentThread()) {
2433 Message msg = Message.obtain(p.mEventHandler, p);
2460 p.mEventHandler = handler;
2534 public Handler mEventHandler;
2541 mEventHandler = null;
2549 synchronized (mEventHandler) {