Home
last modified time | relevance | path

Searched refs:mHandler (Results 1 – 25 of 464) sorted by relevance

12345678910>>...19

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java87 private ActionHandler<TestActivity> mHandler; field in ActionHandlerTest
107 mHandler = createHandler(); in setUp()
116 mHandler.openSelectedInNewWindow(); in testOpenSelectedInNewWindow()
129 mHandler.springOpenDirectory(TestEnv.FOLDER_0); in testSpringOpenDirectory()
139 mHandler.cutToClipboard(); in testCutSelectedDocuments_NoGivenSelection()
148 mHandler.cutToClipboard(); in testCutSelectedDocuments_ContainsNonMovableItem()
159 mHandler.copyToClipboard(); in testCopySelectedDocuments_NoGivenSelection()
168 mHandler.deleteSelectedDocuments(); in testDeleteSelectedDocuments_NoSelection()
179 mHandler.deleteSelectedDocuments(); in testDeleteSelectedDocuments_Cancelable()
190 mHandler.deleteSelectedDocuments(); in testDeleteSelectedDocuments_RecentsRoot()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionWorker.java209 private final Handler mHandler; field in TunerSessionWorker
294 mHandler = handler; in TunerSessionWorker()
300 mHandler = new Handler(handlerThread.getLooper(), this); in TunerSessionWorker()
314 context, mHandler, this::handleMessageAudioCapabilitiesChanged); in TunerSessionWorker()
316 mHandler.post(() -> handleMessageAudioCapabilitiesChanged(audioCapabilities)); in TunerSessionWorker()
361 mHandler.removeCallbacksAndMessages(null); in tune()
368 mHandler.removeCallbacksAndMessages(null); in stopTune()
382 mHandler.sendEmptyMessage(MSG_SET_SURFACE); in setSurface()
392 mHandler.sendEmptyMessage(MSG_SET_STREAM_VOLUME); in setStreamVolume()
402 mHandler.sendEmptyMessage(MSG_UPDATE_CAPTION_TRACK); in setCaptionEnabled()
[all …]
DTunerSessionWorkerExoV2.java208 private final Handler mHandler; field in TunerSessionWorkerExoV2
296 mHandler = handler; in TunerSessionWorkerExoV2()
302 mHandler = new Handler(handlerThread.getLooper(), this); in TunerSessionWorkerExoV2()
316 context, mHandler, this::handleMessageAudioCapabilitiesChanged); in TunerSessionWorkerExoV2()
318 mHandler.post(() -> handleMessageAudioCapabilitiesChanged(audioCapabilities)); in TunerSessionWorkerExoV2()
361 mHandler.removeCallbacksAndMessages(null); in tune()
368 mHandler.removeCallbacksAndMessages(null); in stopTune()
382 mHandler.sendEmptyMessage(MSG_SET_SURFACE); in setSurface()
392 mHandler.sendEmptyMessage(MSG_SET_STREAM_VOLUME); in setStreamVolume()
402 mHandler.sendEmptyMessage(MSG_UPDATE_CAPTION_TRACK); in setCaptionEnabled()
[all …]
DTunerRecordingSessionWorker.java154 private final Handler mHandler; field in TunerRecordingSessionWorker
204 mHandler = new Handler(handlerThread.getLooper(), this); in TunerRecordingSessionWorker()
240 mHandler.obtainMessage(MSG_UPDATE_CC_INFO, Pair.create(channel, items)).sendToTarget(); in onEventDetected()
259 mHandler.removeCallbacksAndMessages(null); in tune()
260 mHandler.obtainMessage(MSG_TUNE, 0, 0, channelUri).sendToTarget(); in tune()
266 mHandler.obtainMessage(MSG_START_RECORDING, programUri).sendToTarget(); in startRecording()
272 mHandler.sendEmptyMessage(MSG_STOP_RECORDING); in stopRecording()
278 mHandler.removeCallbacksAndMessages(null); in release()
279 mHandler.sendEmptyMessage(MSG_RELEASE); in release()
297 mHandler.obtainMessage( in handleMessage()
[all …]
/packages/apps/Car/Radio/src/com/android/car/radio/platform/
DTunerCallbackAdapterExt.java53 private final Handler mHandler; field in TunerCallbackAdapterExt
73 mHandler = new Handler(Looper.getMainLooper()); in TunerCallbackAdapterExt()
75 mHandler = handler; in TunerCallbackAdapterExt()
108 mHandler.post(() -> mCallback.onError(status)); in onError()
117 mHandler.post(() -> mCallback.onTuneFailed(result, selector)); in onTuneFailed()
122 mHandler.post(() -> mCallback.onConfigurationChanged(config)); in onConfigurationChanged()
143 mHandler.post(() -> mCallback.onProgramInfoChanged(info)); in onProgramInfoChanged()
147 mHandler.post(() -> mCallback.onMetadataChanged(metadata)); in onMetadataChanged()
151 mHandler.post(() -> mCallback.onTrafficAnnouncement(active)); in onTrafficAnnouncement()
155 mHandler.post(() -> mCallback.onEmergencyAnnouncement(active)); in onEmergencyAnnouncement()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DInputTaskScheduler.java95 mHandler.removeMessages(MSG_BUILD_SCHEDULE); in handleMessage()
96 mHandler.sendEmptyMessage(MSG_BUILD_SCHEDULE); in handleMessage()
113 private final Handler mHandler; field in InputTaskScheduler
181 mHandler = new WorkerThreadHandler(looper); in InputTaskScheduler()
186 mHandler.sendMessage(mHandler.obtainMessage(MSG_ADD_SCHEDULED_RECORDING, schedule)); in addSchedule()
196 mHandler.removeMessages(MSG_BUILD_SCHEDULE); in handleAddSchedule()
197 mHandler.sendEmptyMessage(MSG_BUILD_SCHEDULE); in handleAddSchedule()
202 mHandler.sendMessage(mHandler.obtainMessage(MSG_REMOVE_SCHEDULED_RECORDING, schedule)); in removeSchedule()
214 mHandler.removeMessages(MSG_BUILD_SCHEDULE); in handleRemoveSchedule()
215 mHandler.sendEmptyMessage(MSG_BUILD_SCHEDULE); in handleRemoveSchedule()
[all …]
DRecordingTask.java126 private Handler mHandler; field in RecordingTask
155 mHandler = handler; in setHandler()
162 msg.what == HandlerWrapper.MESSAGE_REMOVE || mHandler != null, in handleMessage()
180 mHandler.removeCallbacksAndMessages(null); in handleMessage()
181 mHandler = null; in handleMessage()
219 if (mHandler == null in onTuned()
340 mHandler, in handleInit()
343 mDvrManager.addListener(this, mHandler); in handleInit()
361 if (mHandler != null) { in sendRemove()
362 mHandler.sendMessageAtFrontOfQueue( in sendRemove()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DRadioOnStateListener.java63 private final Handler mHandler = new Handler(Looper.getMainLooper()) { field in RadioOnStateListener
137 mHandler.obtainMessage(MSG_START_SEQUENCE, args).sendToTarget(); in waitForRadioOn()
293 mHandler.sendEmptyMessageDelayed(MSG_RETRY_TIMEOUT, TIME_BETWEEN_RETRIES_MILLIS); in startRetryTimer()
297 mHandler.removeMessages(MSG_RETRY_TIMEOUT); in cancelRetryTimer()
305 mPhone.registerForServiceStateChanged(mHandler, MSG_SERVICE_STATE_CHANGED, null); in registerForServiceStateChanged()
311 mPhone.unregisterForServiceStateChanged(mHandler); // Safe even if unnecessary in unregisterForServiceStateChanged()
313 mHandler.removeMessages(MSG_SERVICE_STATE_CHANGED); // Clean up any pending messages too in unregisterForServiceStateChanged()
317 mPhone.mCi.registerForOffOrNotAvailable(mHandler, MSG_RADIO_OFF_OR_NOT_AVAILABLE, null); in registerForRadioOff()
323 mPhone.mCi.unregisterForOffOrNotAvailable(mHandler); // Safe even if unnecessary in unregisterForRadioOff()
325 mHandler.removeMessages(MSG_RADIO_OFF_OR_NOT_AVAILABLE); // Clean up any pending messages in unregisterForRadioOff()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java69 private TestableActionHandler<TestActivity> mHandler; field in ActionHandlerTest
82 mHandler = new TestableActionHandler<>( in setUp()
137 mHandler.initLocation(mActivity.getIntent()); in testInitLocation_RestoresIfStackIsLoaded()
145 mHandler.initLocation(mActivity.getIntent()); in testInitLocation_LoadsRootDocIfStackOnlyHasRoot()
155 mHandler.initLocation(mActivity.getIntent()); in testInitLocation_CopyDestination_DefaultsToDownloads()
166 mHandler.initLocation(intent); in testInitLocation_CopyDestination_DocumentsRootEnabled()
190 mHandler.initLocation(intent); in testInitLocation_LaunchToDocuments()
205 mHandler.initLocation(mActivity.getIntent()); in testInitLocation_RestoresLastAccessedStack()
234 mHandler.openContainerDocument(TestEnv.FOLDER_0); in testOpenContainerDocument()
248 mHandler.finishPicking(TestEnv.FILE_JPG.derivedUri); in testIncreasePickCountRecordCalled()
[all …]
/packages/apps/TV/src/com/android/tv/data/
DProgramDataManager.java131 private final Handler mHandler; field in ProgramDataManager
184 mHandler = new MyHandler(looper); in ProgramDataManager()
190 new ContentObserver(mHandler) { in ProgramDataManager()
193 if (!mHandler.hasMessages(MSG_UPDATE_CURRENT_PROGRAMS)) { in ProgramDataManager()
194 mHandler.sendEmptyMessage(MSG_UPDATE_CURRENT_PROGRAMS); in ProgramDataManager()
205 mHandler.removeMessages(MSG_UPDATE_PREFETCH_PROGRAM); in ProgramDataManager()
206 mHandler.sendEmptyMessage(MSG_UPDATE_PREFETCH_PROGRAM); in ProgramDataManager()
237 mHandler.sendEmptyMessage(MSG_UPDATE_CONTENT_RATINGS); in start()
239 mHandler.sendEmptyMessage(MSG_UPDATE_PREFETCH_PROGRAM); in start()
255 mHandler.removeCallbacksAndMessages(null); in stop()
[all …]
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommendationDataManager.java89 private final Handler mHandler; field in RecommendationDataManager
155 && !mHandler.hasMessages(MSG_NOTIFY_CHANNEL_RECORD_MAP_CHANGED)) {
156 mHandler.sendEmptyMessage(MSG_NOTIFY_CHANNEL_RECORD_MAP_CHANGED);
178 && !mHandler.hasMessages(MSG_NOTIFY_CHANNEL_RECORD_MAP_CHANGED)) {
179 mHandler.sendEmptyMessage(MSG_NOTIFY_CHANNEL_RECORD_MAP_CHANGED);
191 mHandler = new RecommendationHandler(mHandlerThread.getLooper(), this); in RecommendationDataManager()
193 mContentObserver = new RecommendationContentObserver(mHandler); in RecommendationDataManager()
229 mHandler.sendEmptyMessage(MSG_START); in start()
242 mHandler.removeMessages(what); in stop()
245 mHandler.sendEmptyMessage(MSG_STOP); in stop()
[all …]
DNotificationService.java104 private Handler mHandler; field in NotificationService
156 mHandler = new NotificationHandler(mHandlerThread.getLooper(), this); in onCreate()
157 mHandler.sendEmptyMessage(MSG_INITIALIZE_RECOMMENDER); in onCreate()
170 mHandler.removeMessages(MSG_SHOW_RECOMMENDATION); in onCurrentChannelChange()
171 mHandler.sendEmptyMessage(MSG_SHOW_RECOMMENDATION); in onCurrentChannelChange()
231 mHandler = null; in onDestroy()
242 mHandler.removeMessages(MSG_SHOW_RECOMMENDATION); in onStartCommand()
243 mHandler.removeMessages(MSG_HIDE_RECOMMENDATION); in onStartCommand()
244 mHandler.obtainMessage(MSG_SHOW_RECOMMENDATION).sendToTarget(); in onStartCommand()
246 mHandler.removeMessages(MSG_SHOW_RECOMMENDATION); in onStartCommand()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java152 private final Handler mHandler = new Handler() { field in HidHostService
519 Message msg = mHandler.obtainMessage(MESSAGE_CONNECT, device); in connect()
520 mHandler.sendMessage(msg); in connect()
532 Message msg = mHandler.obtainMessage(MESSAGE_DISCONNECT, device); in disconnect()
533 mHandler.sendMessage(msg); in disconnect()
634 Message msg = mHandler.obtainMessage(MESSAGE_GET_PROTOCOL_MODE, device); in getProtocolMode()
635 mHandler.sendMessage(msg); in getProtocolMode()
649 Message msg = mHandler.obtainMessage(MESSAGE_VIRTUAL_UNPLUG, device); in virtualUnplug()
650 mHandler.sendMessage(msg); in virtualUnplug()
662 Message msg = mHandler.obtainMessage(MESSAGE_SET_PROTOCOL_MODE); in setProtocolMode()
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java140 private Handler mHandler; field in CellBroadcastAlertAudio
208 mHandler = new Handler(Looper.getMainLooper()) { in onCreate()
217 sendMessageDelayed(mHandler.obtainMessage(ALERT_PAUSE_FINISHED), in onCreate()
255 sendMessageDelayed(mHandler.obtainMessage( in onCreate()
446 mHandler.sendMessage(mHandler.obtainMessage(ALERT_LED_FLASH_TOGGLE, 1, 0)); in playAlertTone()
455 mHandler.sendMessage(mHandler.obtainMessage(ALERT_SOUND_FINISHED)); in playAlertTone()
463 mHandler.sendMessageDelayed(mHandler.obtainMessage(ALERT_SOUND_FINISHED), in playAlertTone()
469 mHandler.sendMessage(mHandler.obtainMessage(ALERT_SOUND_FINISHED)); in playAlertTone()
517 mHandler.sendMessage(mHandler.obtainMessage(ALERT_SOUND_FINISHED)); in playAlertTone()
525 mHandler.sendMessageDelayed(mHandler.obtainMessage(ALERT_SOUND_FINISHED), in playAlertTone()
[all …]
/packages/services/Telephony/src/com/android/phone/otasp/
DOtaspActivationService.java93 mHandler.sendEmptyMessage(EVENT_START_OTASP_CALL); in onCreate()
106 private Handler mHandler = new Handler() { field in OtaspActivationService
146 mPhone.registerForServiceStateChanged(mHandler, EVENT_SERVICE_STATE_CHANGED, null); in onStartOtaspCall()
150 mPhone.registerForCdmaOtaStatusChange(mHandler, EVENT_CDMA_PROVISION_STATUS_UPDATE, null); in onStartOtaspCall()
151 mPhone.registerForPreciseCallStateChanged(mHandler, EVENT_CALL_STATE_CHANGED, null); in onStartOtaspCall()
160 mHandler.sendEmptyMessageDelayed(EVENT_CDMA_OTASP_CALL_RETRY, in onStartOtaspCall()
203 mPhone.unregisterForCdmaOtaStatusChange(mHandler); in unregisterAll()
204 mPhone.unregisterForSubscriptionInfoReady(mHandler); in unregisterAll()
205 mPhone.unregisterForServiceStateChanged(mHandler); in unregisterAll()
206 mPhone.unregisterForPreciseCallStateChanged(mHandler); in unregisterAll()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DAsyncRingtonePlayer.java48 private Handler mHandler; field in AsyncRingtonePlayer
111 if (mHandler == null && shouldCreateHandler) { in postMessage()
112 mHandler = getNewHandler(); in postMessage()
115 if (mHandler == null) { in postMessage()
118 mHandler.obtainMessage(messageCode, args).sendToTarget(); in postMessage()
127 Preconditions.checkState(mHandler == null); in getNewHandler()
161 if (mHandler.hasMessages(EVENT_STOP)) {
248 if (mHandler.hasMessages(EVENT_PLAY)) {
251 mHandler.removeMessages(EVENT_STOP);
252 mHandler.getLooper().quitSafely();
[all …]
/packages/services/Telephony/src/com/android/phone/
DMMIDialogActivity.java45 private Handler mHandler; field in MMIDialogActivity
63 mHandler = new Handler() { in onCreate()
77 mCM.registerForMmiComplete(mHandler, PhoneGlobals.MMI_COMPLETE, null); in onCreate()
89 if (mHandler != null) { in onDestroy()
90 mCM.unregisterForMmiComplete(mHandler); in onDestroy()
91 mHandler = null; in onDestroy()
103 final Message message = Message.obtain(mHandler, PhoneGlobals.MMI_CANCEL); in showMMIDialog()
164 if (mHandler != null) { in dismissDialogsAndFinish()
165 mCM.unregisterForMmiComplete(mHandler); in dismissDialogsAndFinish()
166 mHandler = null; in dismissDialogsAndFinish()
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionTrackRenderer.java75 private final Handler mHandler; field in CaptionTrackRenderer
93 mHandler = new Handler(this); in CaptionTrackRenderer()
129 mHandler.removeMessages(MSG_CAPTION_CLEAR); in stop()
274 mHandler.sendEmptyMessage(MSG_CAPTION_CLEAR); in clear()
288 mHandler.removeMessages(MSG_CAPTION_CLEAR); in reset()
319 mHandler.sendMessageDelayed( in delay()
320 mHandler.obtainMessage(MSG_DELAY_CANCEL), tenthsOfSeconds * DELAY_IN_MILLIS); in delay()
345 mHandler.removeMessages(MSG_CAPTION_CLEAR); in sendCuesToCurrentWindow()
346 mHandler.sendMessageDelayed( in sendCuesToCurrentWindow()
347 mHandler.obtainMessage(MSG_CAPTION_CLEAR), CAPTION_CLEAR_INTERVAL_MS); in sendCuesToCurrentWindow()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DBrowsablePlayerConnector.java54 private Handler mHandler; field in BrowsablePlayerConnector
100 Message msg = newWrapper.mHandler.obtainMessage(MSG_CONNECT_CB); in connectToPlayers()
103 newWrapper.mHandler.sendMessage(msg); in connectToPlayers()
107 Message msg = newWrapper.mHandler.obtainMessage(MSG_TIMEOUT); in connectToPlayers()
108 newWrapper.mHandler.sendMessageDelayed(msg, CONNECT_TIMEOUT_MS); in connectToPlayers()
115 mHandler = new Handler(looper) { in BrowsablePlayerConnector()
160 mHandler.obtainMessage(MSG_GET_FOLDER_ITEMS_CB); in BrowsablePlayerConnector()
162 mHandler.sendMessage(success); in BrowsablePlayerConnector()
193 mHandler.removeMessages(MSG_TIMEOUT); in cleanup()
195 mHandler = null; in cleanup()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLooperExecutor.java32 private final Handler mHandler; field in LooperExecutor
35 mHandler = new Handler(looper); in LooperExecutor()
39 return mHandler; in getHandler()
44 if (mHandler.getLooper() == Looper.myLooper()) { in execute()
47 mHandler.post(runnable); in execute()
55 mHandler.post(runnable); in post()
99 return mHandler.getLooper().getThread(); in getThread()
106 return mHandler.getLooper(); in getLooper()
/packages/apps/TV/src/com/android/tv/ui/hideable/
DAutoHideScheduler.java44 private final HideHandler mHandler; field in AutoHideScheduler
58 mHandler = new HideHandler(looper, mRunnable); in AutoHideScheduler()
59 mHandler.setAllowAutoHide(!accessibilityManager.isEnabled()); in AutoHideScheduler()
63 mHandler.removeMessages(MSG_HIDE); in cancel()
68 if (mHandler.mAllowAutoHide) { in schedule()
69 mHandler.sendEmptyMessageDelayed(MSG_HIDE, delayMs); in schedule()
75 mHandler.onAccessibilityStateChanged(enabled); in onAccessibilityStateChanged()
79 return mHandler.hasMessages(MSG_HIDE); in isScheduled()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java53 public Handler mHandler = null; field in BluetoothMnsObexClient
88 mHandler = new MnsObexClientHandler(looper); in BluetoothMnsObexClient()
94 return mHandler; in getMessageHandler()
148 mHandler.obtainMessage(MSG_MNS_NOTIFICATION_REGISTRATION, msg.arg1, in handleMessage()
153 mHandler.sendMessageDelayed(msgReg, MNS_SDP_SEARCH_DELAY); in handleMessage()
218 if (mHandler != null) { in shutdown()
220 mHandler.removeCallbacksAndMessages(null); in shutdown()
221 Looper looper = mHandler.getLooper(); in shutdown()
302 if (mHandler.hasMessages(MSG_MNS_NOTIFICATION_REGISTRATION)) { in setMnsRecord()
303 mHandler.removeMessages(MSG_MNS_NOTIFICATION_REGISTRATION); in setMnsRecord()
[all …]
/packages/apps/Car/Cluster/src/android/car/cluster/
DSenderThread.java27 private Handler mHandler; field in SenderThread
30 mHandler = handler; in SenderThread()
41 if (mHandler.hasMessages(NetworkedVirtualDisplay.MSG_START)) return; in restart()
44 mHandler.sendMessage(Message.obtain(mHandler, NetworkedVirtualDisplay.MSG_STOP)); in restart()
45 mHandler.sendMessage(Message.obtain(mHandler, NetworkedVirtualDisplay.MSG_START)); in restart()
DNetworkedVirtualDisplay.java87 private Handler mHandler; field in NetworkedVirtualDisplay
137 mHandler = new BroadcastThreadHandler(mBroadcastThread.getLooper()); in start()
138 mHandler.sendMessage(Message.obtain(mHandler, MSG_START)); in start()
143 mHandler.sendMessage(Message.obtain(mHandler, MSG_STOP)); in release()
227 mHandler.removeMessages(MSG_SEND_FRAME); in doOutputBufferAvailable()
255 Message msg = mHandler.obtainMessage(MSG_SEND_FRAME); in sendFrameAsync()
256 mHandler.sendMessageDelayed(msg, delayMs); in sendFrameAsync()
322 mHandler.sendMessage(Message.obtain(mHandler, MSG_START)); in handleMessage()
381 return new PipeThread(mHandler, pipe); in tryPipeConnect()
402 return new SocketThread(mHandler, serverSocket, inputStream, outputStream); in tryNetworkConnect()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsTaskScheduler.java53 private MyHandler mHandler; field in ContactsTaskScheduler
106 mHandler = new MyHandler(mThread.getLooper()); in scheduleTask()
113 mHandler.sendEmptyMessage(taskId); in scheduleTask()
115 mHandler.sendMessage(mHandler.obtainMessage(taskId, arg)); in scheduleTask()
119 mHandler.removeCallbacks(mQuitter); in scheduleTask()
120 mHandler.postDelayed(mQuitter, mShutdownTimeoutSeconds * 1000); in scheduleTask()
146 mHandler = null; in stopThread()

12345678910>>...19