/packages/services/Telecomm/src/com/android/server/telecom/ |
D | AsyncRingtonePlayer.java | 44 private Handler mHandler; field in AsyncRingtonePlayer 73 if (mHandler == null && shouldCreateHandler) { in postMessage() 74 mHandler = getNewHandler(); in postMessage() 77 if (mHandler == null) { in postMessage() 80 mHandler.obtainMessage(messageCode, args).sendToTarget(); in postMessage() 89 Preconditions.checkState(mHandler == null); in getNewHandler() 120 if (mHandler.hasMessages(EVENT_STOP)) { 163 if (!mHandler.hasMessages(EVENT_REPEAT)) { 164 mHandler.sendEmptyMessageDelayed(EVENT_REPEAT, RESTART_RINGER_MILLIS); 185 mHandler.removeMessages(EVENT_REPEAT); [all …]
|
D | DtmfLocalTonePlayer.java | 52 private Handler mHandler; field in DtmfLocalTonePlayer 155 if (mHandler == null) { in postMessage() 156 mHandler = getNewHandler(); in postMessage() 159 if (mHandler == null) { in postMessage() 162 mHandler.obtainMessage(messageCode, null).sendToTarget(); in postMessage() 171 Preconditions.checkState(mHandler == null); in getNewHandler() 201 if (mHandler != null && !mHandler.hasMessages(EVENT_CREATE_OBJECT)) { in getNewHandler() 203 mHandler.removeMessages(EVENT_DELETE_OBJECT); in getNewHandler() 204 mHandler.getLooper().quitSafely(); in getNewHandler() 205 mHandler = null; in getNewHandler()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/job/ |
D | DishService.java | 38 private final Handler mHandler = new Handler() { field in DishService 71 Message msg = mHandler.obtainMessage(MSG_CANCEL_JOB, 0, 0, jobParameters); in onStopJob() 72 mHandler.sendMessage(msg); in onStopJob() 79 Message msg = mHandler.obtainMessage(MSG_RUN_JOB, 0, 0, jobParameters); in onStartJob() 80 mHandler.sendMessage(msg); in onStartJob() 85 private final WeakReference<Handler> mHandler; field in DishService.DishWasherTask 91 mHandler = new WeakReference<Handler>(handler); in DishWasherTask() 112 if (mHandler.get() == null) { in onPostExecute() 116 Message msg = mHandler.get().obtainMessage(MSG_RUN_JOB, in onPostExecute() 118 mHandler.get().sendMessageDelayed(msg, DELAY_MS); in onPostExecute() [all …]
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ProgramDataManager.java | 93 private final Handler mHandler; field in ProgramDataManager 124 mHandler = new MyHandler(looper); in ProgramDataManager() 125 mProgramObserver = new ContentObserver(mHandler) { in ProgramDataManager() 128 if (!mHandler.hasMessages(MSG_UPDATE_CURRENT_PROGRAMS)) { in ProgramDataManager() 129 mHandler.sendEmptyMessage(MSG_UPDATE_CURRENT_PROGRAMS); in ProgramDataManager() 138 mHandler.removeMessages(MSG_UPDATE_PREFETCH_PROGRAM); in ProgramDataManager() 139 mHandler.sendEmptyMessage(MSG_UPDATE_PREFETCH_PROGRAM); in ProgramDataManager() 173 mHandler.sendEmptyMessage(MSG_UPDATE_PREFETCH_PROGRAM); in start() 197 mHandler.removeCallbacksAndMessages(null); in stop() 218 if (!mHandler.hasMessages(MSG_UPDATE_CURRENT_PROGRAMS)) { in reload() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpControllerService.java | 63 private AvrcpMessageHandler mHandler; field in AvrcpControllerService 90 mHandler = new AvrcpMessageHandler(looper); in start() 119 if (mHandler != null) { in stop() 120 mHandler.removeCallbacksAndMessages(null); in stop() 121 Looper looper = mHandler.getLooper(); in stop() 131 if (mHandler != null) { in cleanup() 132 mHandler.removeCallbacksAndMessages(null); in cleanup() 133 Looper looper = mHandler.getLooper(); in cleanup() 214 Message msg = mHandler.obtainMessage(AvrcpControllerConstants. in sendGroupNavigationCmd() 216 mHandler.sendMessage(msg); in sendGroupNavigationCmd() [all …]
|
D | Avrcp.java | 73 private AvrcpMessageHandler mHandler; field in Avrcp 199 mHandler = new AvrcpMessageHandler(looper); in start() 202 … mMediaSessionManager.addOnActiveSessionsChangedListener(mSessionChangeListener, null, mHandler); in start() 218 mHandler.removeCallbacksAndMessages(null); in doQuit() 219 Looper looper = mHandler.getLooper(); in doQuit() 274 mMediaController.registerCallback(mMediaControllerCb, mHandler); in updateCurrentMediaController() 368 … Message msg1 = mHandler.obtainMessage(MESSAGE_SET_ABSOLUTE_VOLUME, mAbsVolThreshold , 0); in handleMessage() 369 mHandler.sendMessage(msg1); in handleMessage() 800 Message msg = mHandler.obtainMessage(MESSAGE_GET_RC_FEATURES, features, 0, in getRcFeatures() 802 mHandler.sendMessage(msg); in getRcFeatures() [all …]
|
/packages/services/Car/service/src/com/android/car/cluster/renderer/ |
D | ThreadSafeNavigationRenderer.java | 31 private final Handler mHandler; field in ThreadSafeNavigationRenderer 45 mHandler = new NavigationRendererHandler(looper, renderer); in ThreadSafeNavigationRenderer() 50 mHandler.sendMessage(mHandler.obtainMessage(MSG_NAV_START)); in onStartNavigation() 55 mHandler.sendMessage(mHandler.obtainMessage(MSG_NAV_STOP)); in onStopNavigation() 61 mHandler.sendMessage(mHandler.obtainMessage(MSG_NAV_NEXT_TURN, in onNextTurnChanged() 67 mHandler.sendMessage(mHandler.obtainMessage( in onNextTurnDistanceChanged()
|
/packages/services/Telephony/src/com/android/phone/ |
D | MMIDialogActivity.java | 43 private Handler mHandler; field in MMIDialogActivity 52 mHandler = new Handler() { in onCreate() 65 mCM.registerForMmiComplete(mHandler, PhoneGlobals.MMI_COMPLETE, null); in onCreate() 80 if (mHandler != null) { in onDestroy() 81 mCM.unregisterForMmiComplete(mHandler); in onDestroy() 82 mHandler = null; in onDestroy() 90 final Message message = Message.obtain(mHandler, PhoneGlobals.MMI_CANCEL); in showMMIDialog() 146 if (mHandler != null) { in dismissDialogsAndFinish() 147 mCM.unregisterForMmiComplete(mHandler); in dismissDialogsAndFinish() 148 mHandler = null; in dismissDialogsAndFinish()
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/ |
D | TunerSessionWorker.java | 162 private final Handler mHandler; field in TunerSessionWorker 202 mHandler = new Handler(handlerThread.getLooper(), this); in TunerSessionWorker() 225 mHandler.removeCallbacksAndMessages(null); in tune() 231 mHandler.removeCallbacksAndMessages(null); in stopTune() 288 mHandler.sendEmptyMessage(messageType); in sendMessage() 292 mHandler.obtainMessage(messageType, object).sendToTarget(); in sendMessage() 296 mHandler.obtainMessage(messageType, arg1, arg2, object).sendToTarget(); in sendMessage() 300 mHandler.removeCallbacksAndMessages(null); in release() 301 mHandler.sendEmptyMessage(MSG_RELEASE); in release() 307 mHandler.getLooper().quitSafely(); in release() [all …]
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RecommendationDataManager.java | 95 private final Handler mHandler; field in RecommendationDataManager 162 && !mHandler.hasMessages(MSG_NOTIFY_CHANNEL_RECORD_MAP_CHANGED)) { 163 mHandler.sendEmptyMessage(MSG_NOTIFY_CHANNEL_RECORD_MAP_CHANGED); 185 && !mHandler.hasMessages(MSG_NOTIFY_CHANNEL_RECORD_MAP_CHANGED)) { 186 mHandler.sendEmptyMessage(MSG_NOTIFY_CHANNEL_RECORD_MAP_CHANGED); 198 mHandler = new RecommendationHandler(mHandlerThread.getLooper(), this); in RecommendationDataManager() 200 mContentObserver = new RecommendationContentObserver(mHandler); in RecommendationDataManager() 250 mHandler.sendEmptyMessage(MSG_START); in start() 260 mHandler.removeMessages(what); in stop() 263 mHandler.sendEmptyMessage(MSG_STOP); in stop() [all …]
|
D | NotificationService.java | 107 private Handler mHandler; field in NotificationService 165 mHandler = new NotificationHandler(mHandlerThread.getLooper(), this); in onCreate() 166 mHandler.sendEmptyMessage(MSG_INITIALIZE_RECOMMENDER); in onCreate() 179 mHandler.removeMessages(MSG_SHOW_RECOMMENDATION); in onCurrentChannelChange() 180 mHandler.sendEmptyMessage(MSG_SHOW_RECOMMENDATION); in onCurrentChannelChange() 233 mHandler = null; in onDestroy() 244 mHandler.removeMessages(MSG_SHOW_RECOMMENDATION); in onStartCommand() 245 mHandler.removeMessages(MSG_HIDE_RECOMMENDATION); in onStartCommand() 246 mHandler.obtainMessage(MSG_SHOW_RECOMMENDATION).sendToTarget(); in onStartCommand() 248 mHandler.removeMessages(MSG_SHOW_RECOMMENDATION); in onStartCommand() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Screensaver.java | 49 private final Handler mHandler = new Handler(); field in Screensaver 55 ? new ContentObserver(mHandler) { 68 Utils.setMidnightUpdater(mHandler, mMidnightUpdater); 89 Utils.setMidnightUpdater(mHandler, mMidnightUpdater); 98 mMoveSaverRunnable = new ScreensaverMoveSaverRunnable(mHandler); in Screensaver() 119 mHandler.removeCallbacks(mMoveSaverRunnable); in onConfigurationChanged() 121 mHandler.postDelayed(mMoveSaverRunnable, ORIENTATION_CHANGE_DELAY_MS); in onConfigurationChanged() 142 Utils.setMidnightUpdater(mHandler, mMidnightUpdater); in onAttachedToWindow() 151 mHandler.post(mMoveSaverRunnable); in onAttachedToWindow() 159 mHandler.removeCallbacks(mMoveSaverRunnable); in onDetachedFromWindow() [all …]
|
D | ScreensaverActivity.java | 45 private final Handler mHandler = new Handler(); field in ScreensaverActivity 75 Utils.setMidnightUpdater(mHandler, mMidnightUpdater); 86 ? new ContentObserver(mHandler) { 99 Utils.setMidnightUpdater(mHandler, mMidnightUpdater); 105 mMoveSaverRunnable = new ScreensaverMoveSaverRunnable(mHandler); in ScreensaverActivity() 141 mHandler.post(mMoveSaverRunnable); in onResume() 143 Utils.setMidnightUpdater(mHandler, mMidnightUpdater); in onResume() 148 mHandler.removeCallbacks(mMoveSaverRunnable); in onPause() 149 Utils.cancelMidnightUpdater(mHandler, mMidnightUpdater); in onPause() 166 mHandler.removeCallbacks(mMoveSaverRunnable); in onConfigurationChanged() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidService.java | 145 private final Handler mHandler = new Handler() { field in HidService 409 Message msg = mHandler.obtainMessage(MESSAGE_CONNECT, device); in connect() 410 mHandler.sendMessage(msg); in connect() 416 Message msg = mHandler.obtainMessage(MESSAGE_DISCONNECT,device); in disconnect() 417 mHandler.sendMessage(msg); in disconnect() 471 Message msg = mHandler.obtainMessage(MESSAGE_GET_PROTOCOL_MODE,device); in getProtocolMode() 472 mHandler.sendMessage(msg); in getProtocolMode() 485 Message msg = mHandler.obtainMessage(MESSAGE_VIRTUAL_UNPLUG,device); in virtualUnplug() 486 mHandler.sendMessage(msg); in virtualUnplug() 497 Message msg = mHandler.obtainMessage(MESSAGE_SET_PROTOCOL_MODE); in setProtocolMode() [all …]
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | CameraThread.java | 42 private Handler mHandler = null; field in CameraThread 49 if (mHandler != null) { in start() 51 return mHandler; in start() 62 mHandler = new Handler(); in start() 73 return mHandler; in start() 80 if (mLooper == null || mHandler == null) { in close() 89 mHandler = null; in close()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | AsyncDataSetObservable.java | 27 private final Handler mHandler; field in AsyncDataSetObservable 45 mHandler = handler; in AsyncDataSetObservable() 50 if (mHandler == null) { in notifyChanged() 53 mHandler.post(mChangedRunnable); in notifyChanged() 59 if (mHandler == null) { in notifyInvalidated() 62 mHandler.post(mInvalidatedRunnable); in notifyInvalidated()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMnsObexClient.java | 53 public Handler mHandler = null; field in BluetoothMnsObexClient 88 mHandler = new MnsObexClientHandler(looper); in BluetoothMnsObexClient() 94 return mHandler; in getMessageHandler() 144 mHandler.obtainMessage(MSG_MNS_NOTIFICATION_REGISTRATION, in handleMessage() 147 mHandler.sendMessageDelayed(msgReg, MNS_SDP_SEARCH_DELAY); in handleMessage() 202 if (mHandler != null) { in shutdown() 204 mHandler.removeCallbacksAndMessages(null); in shutdown() 205 Looper looper = mHandler.getLooper(); in shutdown() 209 mHandler = null; in shutdown() 277 if (mHandler.hasMessages(MSG_MNS_NOTIFICATION_REGISTRATION)) { in setMnsRecord() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | RecordingTask.java | 78 private Handler mHandler; field in RecordingTask 98 mHandler = handler; in setHandler() 105 .checkState(msg.what == Scheduler.HandlerWrapper.MESSAGE_REMOVE || mHandler != null, in handleMessage() 120 mHandler = null; in handleMessage() 141 if (mHandler == null || !sendEmptyMessageAtAbsoluteTime(MESSAGE_START_RECORDING, in onTuned() 199 mHandler); in handleInit() 206 mDvrManager.addListener(this, mHandler); in handleInit() 220 if (mHandler != null) { in sendRemove() 221 mHandler.sendEmptyMessage(Scheduler.HandlerWrapper.MESSAGE_REMOVE); in sendRemove() 235 if (mHandler == null || !sendEmptyMessageAtAbsoluteTime(MESSAGE_STOP_RECORDING, in handleStartRecording() [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnnEN.java | 131 Handler mHandler = new Handler() { field in OpenWnnEN 268 mHandler.removeMessages(MSG_PREDICTION); in setSymbolMode() 276 mHandler.removeMessages(MSG_PREDICTION); in setSymbolMode() 351 mHandler.removeMessages(MSG_START_TUTORIAL); in hideWindow() 806 mHandler.removeMessages(MSG_PREDICTION); in updateComposingText() 807 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_PREDICTION), 0); in updateComposingText() 811 mHandler.removeMessages(MSG_PREDICTION); in updateComposingText() 813 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_PREDICTION), in updateComposingText() 816 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_PREDICTION), in updateComposingText() 820 mHandler.removeMessages(MSG_PREDICTION); in updateComposingText() [all …]
|
/packages/services/Car/bluetooth/bt-map-service/src/com/google/android/auto/mapservice/ |
D | BluetoothMapService.java | 120 private MapServiceHandler mHandler = new MapServiceHandler(this); field in BluetoothMapService 154 mHandler.obtainMessage(MSG_MAS_SDP_DONE, masRecord).sendToTarget(); 405 service.mHandler.obtainMessage(MSG_ENABLE_NOTIFICATIONS, enable).sendToTarget(); in enableNotifications() 429 service.mHandler.obtainMessage(MSG_PUSH_MESSAGE, message).sendToTarget(); in pushMessage() 452 service.mHandler.obtainMessage(MSG_GET_MESSAGE, handle).sendToTarget(); in getMessage() 484 service.mHandler.obtainMessage( in getMessagesListing() 546 mHandler.obtainMessage(MSG_MAS_CONNECT_DONE).sendToTarget(); in onConnectToSdpDone() 725 mHandler.obtainMessage(MSG_SET_PATH).sendToTarget(); in onSetPath() 811 mHandler.obtainMessage(MSG_MAS_SDP, device).sendToTarget(); in connectInternal() 850 mHandler.removeMessages(MSG_MAS_SDP); in clearCommandQueue() [all …]
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | TelephonyConnection.java | 83 private final Handler mHandler = new Handler() { field in TelephonyConnection 247 mHandler.obtainMessage(MSG_SET_VIDEO_STATE, videoState).sendToTarget(); 257 mHandler.obtainMessage(MSG_SET_ORIGNAL_CONNECTION_CAPABILITIES, 269 mHandler.obtainMessage(MSG_SET_VIDEO_PROVIDER, videoProvider).sendToTarget(); 291 mHandler.obtainMessage(MSG_SET_AUDIO_QUALITY, audioQuality).sendToTarget(); 301 mHandler.obtainMessage(MSG_SET_CONFERENCE_PARTICIPANTS, participants).sendToTarget(); 325 mHandler.obtainMessage(MSG_CONNECTION_EXTRAS_CHANGED, extras).sendToTarget(); 708 mHandler, MSG_PRECISE_CALL_STATE_CHANGED, null); in setOriginalConnection() 710 mHandler, MSG_HANDOVER_STATE_CHANGED, null); in setOriginalConnection() 711 getPhone().registerForRingbackTone(mHandler, MSG_RINGBACK_TONE, null); in setOriginalConnection() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | PeripheralHandoverService.java | 67 Handler mHandler; field in PeripheralHandoverService 95 mHandler = new MessageHandler(); in PeripheralHandoverService() 96 mMessenger = new Messenger(mHandler); in PeripheralHandoverService() 168 mHandler.sendMessageDelayed( in doPeripheralHandover() 169 mHandler.obtainMessage(MSG_PAUSE_POLLING), PAUSE_DELAY_MILLIS); in doPeripheralHandover() 173 mHandler.removeMessages(MSG_PAUSE_POLLING); in doPeripheralHandover() 218 if (mHandler.hasMessages(MSG_PAUSE_POLLING)) { in onBluetoothPeripheralHandoverComplete() 219 mHandler.removeMessages(MSG_PAUSE_POLLING); in onBluetoothPeripheralHandoverComplete()
|
/packages/apps/Launcher3/src/com/android/launcher3/testing/ |
D | MemoryTracker.java | 70 Handler mHandler = new Handler() { field in MemoryTracker 75 mHandler.removeMessages(MSG_UPDATE); 76 mHandler.sendEmptyMessage(MSG_UPDATE); 79 mHandler.removeMessages(MSG_UPDATE); 83 mHandler.removeMessages(MSG_UPDATE); 84 mHandler.sendEmptyMessageDelayed(MSG_UPDATE, UPDATE_RATE); 183 mHandler.sendEmptyMessage(MSG_STOP); in onDestroy() 199 mHandler.sendEmptyMessage(MSG_START); in onStartCommand() 213 mHandler.sendEmptyMessage(MSG_START); in onBind()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarUtils.java | 67 private static AsyncTZHandler mHandler; field in CalendarUtils.TimeZoneUtils 229 if (mHandler != null) { in setTimeZone() 230 mHandler.cancelOperation(mToken); in setTimeZone() 233 mHandler = new AsyncTZHandler(context.getContentResolver()); in setTimeZone() 243 mHandler.startUpdate(mToken, null, CalendarCache.URI, values, "key=?", in setTimeZone() 250 mHandler.startUpdate(mToken, null, CalendarCache.URI, values2, in setTimeZone() 286 if (mHandler == null) { in getTimeZone() 287 mHandler = new AsyncTZHandler(context.getContentResolver()); in getTimeZone() 289 mHandler.startQuery(0, context, CalendarCache.URI, CALENDAR_CACHE_POJECTION, in getTimeZone()
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/cc/ |
D | CaptionTrackRenderer.java | 70 private final Handler mHandler; field in CaptionTrackRenderer 74 mHandler = new Handler(this); in CaptionTrackRenderer() 108 mHandler.removeMessages(MSG_CAPTION_CLEAR); in stop() 259 mHandler.removeMessages(MSG_CAPTION_CLEAR); in reset() 290 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_DELAY_CANCEL), in delay() 316 mHandler.removeMessages(MSG_CAPTION_CLEAR); in sendBufferToCurrentWindow() 317 mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_CAPTION_CLEAR), in sendBufferToCurrentWindow()
|