/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInputFilterTest.java | 69 private final SparseArray<EventStreamTransformation> mEventHandler = new SparseArray<>(0); field in AccessibilityInputFilterTest 131 mA11yInputFilter = new AccessibilityInputFilter(context, mAms, mEventHandler); in setUp() 148 assertEquals(0, mEventHandler.size()); in testEventHandler_shouldChangeAfterSetUserAndEnabledFeatures() 152 assertEquals(1, mEventHandler.size()); in testEventHandler_shouldChangeAfterSetUserAndEnabledFeatures() 155 assertEquals(0, mEventHandler.size()); in testEventHandler_shouldChangeAfterSetUserAndEnabledFeatures() 164 assertEquals(1, mEventHandler.size()); in testEventHandler_shouldChangeAfterOnDisplayChanged() 169 assertEquals(4, mEventHandler.size()); in testEventHandler_shouldChangeAfterOnDisplayChanged() 173 assertEquals(2, mEventHandler.size()); in testEventHandler_shouldChangeAfterOnDisplayChanged() 182 assertEquals(2, mEventHandler.size()); in testEventHandler_shouldHaveCorrectOrderForEventStreamTransformation() 186 EventStreamTransformation next = mEventHandler.get(DEFAULT_DISPLAY); in testEventHandler_shouldHaveCorrectOrderForEventStreamTransformation() [all …]
|
/frameworks/base/media/java/android/media/ |
D | SRTRenderer.java | 24 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 …]
|
D | SoundPool.java | 127 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()
|
D | JetPlayer.java | 107 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()
|
D | RemoteController.java | 114 mEventHandler = new EventHandler(this, looper); in RemoteController() 118 mEventHandler = new EventHandler(this, l); in RemoteController() 501 private final EventHandler mEventHandler; field in RemoteController 603 sendMsg(mEventHandler, MSG_CLIENT_CHANGE, SENDMSG_REPLACE, in updateController() 612 sendMsg(mEventHandler, MSG_CLIENT_CHANGE, SENDMSG_REPLACE, in updateController() 615 mCurrentSession.registerCallback(mSessionCb, mEventHandler); in updateController() 618 sendMsg(mEventHandler, MSG_NEW_PLAYBACK_STATE, SENDMSG_REPLACE, in updateController() 622 sendMsg(mEventHandler, MSG_NEW_MEDIA_METADATA, SENDMSG_REPLACE, in updateController()
|
D | MediaCas.java | 105 private EventHandler mEventHandler; field in MediaCas 175 mEventHandler.sendMessage(mEventHandler.obtainMessage( 182 Message msg = mEventHandler.obtainMessage(); 190 mEventHandler.sendMessage(msg); 519 mEventHandler = null; in setEventListener() 534 mEventHandler = new EventHandler(looper); in setEventListener()
|
D | MediaRecorder.java | 120 private EventHandler mEventHandler; field in MediaRecorder 135 mEventHandler = new EventHandler(this, looper); in MediaRecorder() 137 mEventHandler = new EventHandler(this, looper); in MediaRecorder() 139 mEventHandler = null; in MediaRecorder() 1130 mEventHandler.removeCallbacksAndMessages(null); in reset() 1484 handler != null ? handler : mEventHandler)); in addOnRoutingChangedListener() 1647 if (mr.mEventHandler != null) { in postEventFromNative() 1648 Message m = mr.mEventHandler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative() 1649 mr.mEventHandler.sendMessage(m); in postEventFromNative()
|
D | MediaPlayer.java | 626 private EventHandler mEventHandler; field in MediaPlayer 659 mEventHandler = new EventHandler(this, looper); in MediaPlayer() 661 mEventHandler = new EventHandler(this, looper); in MediaPlayer() 663 mEventHandler = null; in MediaPlayer() 1512 handler != null ? handler : mEventHandler)); in addOnRoutingChangedListener() 2146 if (mEventHandler != null) { in reset() 2147 mEventHandler.removeCallbacksAndMessages(null); in reset() 2662 return timeProvider.mEventHandler.getLooper(); in setSubtitleAnchor() 2783 Handler h = mTimeProvider.mEventHandler; in addSubtitleSource() 2797 if (mEventHandler != null) { in addSubtitleSource() [all …]
|
D | AudioRecord.java | 247 private NativeEventHandler mEventHandler = null; field in AudioRecord 1460 mEventHandler = new NativeEventHandler(this, handler.getLooper()); in setRecordPositionUpdateListener() 1463 mEventHandler = new NativeEventHandler(this, mInitializationLooper); in setRecordPositionUpdateListener() 1466 mEventHandler = null; in setRecordPositionUpdateListener() 1907 if (recorder.mEventHandler != null) { in postEventFromNative() 1909 recorder.mEventHandler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative() 1910 recorder.mEventHandler.sendMessage(m); in postEventFromNative()
|
D | MediaCodec.java | 1664 private EventHandler mEventHandler; field in MediaCodec 1850 mEventHandler = new EventHandler(this, looper); in MediaCodec() 1852 mEventHandler = new EventHandler(this, looper); in MediaCodec() 1854 mEventHandler = null; in MediaCodec() 1856 mCallbackHandler = mEventHandler; in MediaCodec() 1857 mOnFrameRenderedHandler = mEventHandler; in MediaCodec() 3678 return mEventHandler; in getEventHandlerOn() 3733 EventHandler handler = mEventHandler; in postEventFromNative()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityInputFilter.java | 110 private final SparseArray<EventStreamTransformation> mEventHandler; field in AccessibilityInputFilter 145 mEventHandler = eventHandler; in AccessibilityInputFilter() 183 if (mEventHandler.size() == 0) { in onInputEvent() 257 for (int i = 0; i < mEventHandler.size(); i++) { in clearEventsForAllEventHandlers() 258 final EventStreamTransformation eventHandler = mEventHandler.valueAt(i); in clearEventsForAllEventHandlers() 286 mEventHandler.get(Display.DEFAULT_DISPLAY).onKeyEvent(event, policyFlags); in processKeyEvent() 296 mEventHandler.get(isDisplayIdValid(displayId) ? displayId : Display.DEFAULT_DISPLAY) in handleMotionEvent() 302 return mEventHandler.get(displayId) != null; in isDisplayIdValid() 357 for (int i = 0; i < mEventHandler.size(); i++) { in notifyAccessibilityEvent() 358 final EventStreamTransformation eventHandler = mEventHandler.valueAt(i); in notifyAccessibilityEvent() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | WificondScannerImpl.java | 67 private final Handler mEventHandler; field in WificondScannerImpl 105 mEventHandler = new Handler(looper, this); in WificondScannerImpl() 113 WifiMonitor.SCAN_FAILED_EVENT, mEventHandler); in WificondScannerImpl() 115 WifiMonitor.PNO_SCAN_RESULTS_EVENT, mEventHandler); in WificondScannerImpl() 117 WifiMonitor.SCAN_RESULTS_EVENT, mEventHandler); in WificondScannerImpl() 127 WifiMonitor.SCAN_FAILED_EVENT, mEventHandler); in cleanup() 129 WifiMonitor.PNO_SCAN_RESULTS_EVENT, mEventHandler); in cleanup() 131 WifiMonitor.SCAN_RESULTS_EVENT, mEventHandler); in cleanup() 215 TIMEOUT_ALARM_TAG, mScanTimeoutListener, mEventHandler); in startSingleScan() 218 mEventHandler.post(new Runnable() { in startSingleScan()
|
/frameworks/base/drm/java/android/drm/ |
D | DrmManagerClient.java | 124 private EventHandler mEventHandler; field in DrmManagerClient 290 if (mEventHandler != null) { in close() 298 mEventHandler = null; in close() 517 if (null != mEventHandler) { in processDrmInfo() 518 Message msg = mEventHandler.obtainMessage(ACTION_PROCESS_DRM_INFO, drmInfo); in processDrmInfo() 519 result = (mEventHandler.sendMessage(msg)) ? ERROR_NONE : result; in processDrmInfo() 744 if (null != mEventHandler) { in removeAllRights() 745 Message msg = mEventHandler.obtainMessage(ACTION_REMOVE_ALL_RIGHTS); in removeAllRights() 746 result = (mEventHandler.sendMessage(msg)) ? ERROR_NONE : result; in removeAllRights() 919 if (mEventHandler == null && mInfoHandler == null) { in createEventThreads() [all …]
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioPolicy.java | 151 mEventHandler = new EventHandler(this, looper); in AudioPolicy() 153 mEventHandler = null; in AudioPolicy() 860 private final EventHandler mEventHandler; field in AudioPolicy 931 if (mEventHandler != null) { in sendMsg() 932 mEventHandler.sendEmptyMessage(msg); in sendMsg() 937 if (mEventHandler != null) { in sendMsg() 938 mEventHandler.sendMessage( in sendMsg() 939 mEventHandler.obtainMessage(msg, i /*arg1*/, 0 /*arg2, ignored*/, obj)); in sendMsg()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WificondControl.java | 91 private Handler mEventHandler; field in WificondControl 138 mEventHandler = new Handler(looper); in WificondControl() 228 TIMEOUT_ALARM_TAG, mTimeoutCallback, mEventHandler); in SendMgmtFrameEvent() 235 mEventHandler.post(() -> runIfFirstCall(() -> { in OnAck() 245 mEventHandler.post(() -> runIfFirstCall(() -> { in OnFailure() 258 mEventHandler.post(() -> { in binderDied()
|
D | HostapdHal.java | 57 private final Handler mEventHandler; field in HostapdHal 93 mEventHandler.post(() -> { in serviceDied() 105 mEventHandler.post(() -> { in serviceDied() 115 mEventHandler = new Handler(looper); in HostapdHal()
|
D | WifiConnectivityManager.java | 150 private final Handler mEventHandler; field in WifiConnectivityManager 611 mEventHandler = new Handler(looper); in WifiConnectivityManager() 1052 mWatchdogListener, mEventHandler); in scheduleWatchdogTimer() 1060 mPeriodicScanTimerListener, mEventHandler); in schedulePeriodicScanTimer() 1081 restartSingleScanListener, mEventHandler); in scheduleDelayedSingleScan() 1091 mRestartScanListener, mEventHandler); in scheduleDelayedConnectivityScan()
|
D | WifiConfigStore.java | 155 private final Handler mEventHandler; field in WifiConfigStore 217 mEventHandler = new Handler(looper); in WifiConfigStore() 431 BUFFERED_WRITE_ALARM_TAG, mBufferedWriteListener, mEventHandler); in startBufferedWriteAlarm()
|
D | SupplicantStaIfaceHal.java | 137 private final Handler mEventHandler; field in SupplicantStaIfaceHal 160 mEventHandler.post(() -> { in serviceDied() 172 mEventHandler.post(() -> { in serviceDied() 186 mEventHandler = new Handler(looper); in SupplicantStaIfaceHal()
|
/frameworks/base/core/java/android/hardware/ |
D | Camera.java | 171 private EventHandler mEventHandler; field in Camera 513 mEventHandler = new EventHandler(this, looper); in cameraInitVersion() 515 mEventHandler = new EventHandler(this, looper); in cameraInitVersion() 517 mEventHandler = null; in cameraInitVersion() 1288 if (c.mEventHandler != null) { in postEventFromNative() 1289 Message m = c.mEventHandler.obtainMessage(what, arg1, arg2, obj); in postEventFromNative() 1290 c.mEventHandler.sendMessage(m); in postEventFromNative() 1415 mEventHandler.removeMessages(CAMERA_MSG_FOCUS); in cancelAutoFocus()
|
/frameworks/base/media/java/android/media/tv/ |
D | TvInputManager.java | 2437 if (p.mEventHandler.getLooper().isCurrentThread()) { 2444 Message msg = Message.obtain(p.mEventHandler, p); 2471 p.mEventHandler = handler; 2545 public Handler mEventHandler; 2552 mEventHandler = null; 2560 synchronized (mEventHandler) {
|