Home
last modified time | relevance | path

Searched refs:mServiceHandler (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
DCrashingService.java30 private ServiceHandler mServiceHandler; field in CrashingService
48 mServiceHandler = new ServiceHandler(Looper.getMainLooper()); in onCreate()
51 Message msg = mServiceHandler.obtainMessage(); in onCreate()
52 mServiceHandler.sendMessageDelayed(msg, CRASH_DELAY); in onCreate()
/frameworks/base/tests/net/java/android/net/nsd/
DNsdManagerTest.java58 MockServiceHandler mServiceHandler; field in NsdManagerTest
68 mServiceHandler = spy(MockServiceHandler.create(mContext)); in setUp()
69 when(mService.getMessenger()).thenReturn(new Messenger(mServiceHandler)); in setUp()
76 HandlerUtilsKt.waitForIdle(mServiceHandler, mTimeoutMs); in tearDown()
77 mServiceHandler.chan.disconnect(); in tearDown()
78 mServiceHandler.stop(); in tearDown()
329 verify(mServiceHandler, timeout(mTimeoutMs).times(2)).handleMessage(any()); in makeManager()
330 reset(mServiceHandler); in makeManager()
331 assertNotNull(mServiceHandler.chan); in makeManager()
336 HandlerUtilsKt.waitForIdle(mServiceHandler, mTimeoutMs); in verifyRequest()
[all …]
/frameworks/base/core/java/android/app/
DIntentService.java66 private volatile ServiceHandler mServiceHandler; field in IntentService
123 mServiceHandler = new ServiceHandler(mServiceLooper); in onCreate()
128 Message msg = mServiceHandler.obtainMessage(); in onStart()
131 mServiceHandler.sendMessage(msg); in onStart()
/frameworks/base/media/java/android/media/tv/
DTvInputService.java102 private final Handler mServiceHandler = new ServiceHandler(); field in TvInputService
138mServiceHandler.obtainMessage(ServiceHandler.DO_CREATE_SESSION, args).sendToTarget(); in onBind()
149 mServiceHandler.obtainMessage(ServiceHandler.DO_CREATE_RECORDING_SESSION, args) in onBind()
155 mServiceHandler.obtainMessage(ServiceHandler.DO_ADD_HARDWARE_INPUT, in onBind()
161 mServiceHandler.obtainMessage(ServiceHandler.DO_REMOVE_HARDWARE_INPUT, in onBind()
167 mServiceHandler.obtainMessage(ServiceHandler.DO_ADD_HDMI_INPUT, in onBind()
173 mServiceHandler.obtainMessage(ServiceHandler.DO_REMOVE_HDMI_INPUT, in onBind()
179 mServiceHandler.obtainMessage(ServiceHandler.DO_UPDATE_HDMI_INPUT, in onBind()
1867 private Handler mServiceHandler;
1899 mServiceHandler.obtainMessage(ServiceHandler.DO_NOTIFY_SESSION_CREATED, args)
[all …]
/frameworks/base/core/java/android/widget/
DRemoteViewsAdapter.java122 private final RemoteServiceHandler mServiceHandler; field in RemoteViewsAdapter
852 mServiceHandler = new RemoteServiceHandler(mWorkerThread.getLooper(), this, in RemoteViewsAdapter()
891 mServiceHandler.unbindNow(); in finalize()
1140 mServiceHandler.sendEmptyMessage(MSG_LOAD_NEXT_ITEM); in getView()
1151 mServiceHandler.sendEmptyMessage(MSG_LOAD_NEXT_ITEM); in getView()
1210 mServiceHandler.removeMessages(MSG_UNBIND_SERVICE); in notifyDataSetChanged()
1211 mServiceHandler.sendEmptyMessage(MSG_NOTIFY_DATA_SET_CHANGED); in notifyDataSetChanged()
1250 mServiceHandler.removeMessages(MSG_UNBIND_SERVICE); in requestBindService()
1251 Message.obtain(mServiceHandler, MSG_REQUEST_BIND, mAppWidgetId, 0, mIntent).sendToTarget(); in requestBindService()
/frameworks/base/core/java/com/android/internal/infra/
DAbstractRemoteService.java635 private final Handler mServiceHandler; field in AbstractRemoteService.PendingRequest
639 mServiceHandler = service.mHandler; in PendingRequest()
659 mServiceHandler.postAtTime(mTimeoutTrigger, in PendingRequest()
665 mServiceHandler.removeCallbacks(mTimeoutTrigger); in onFinished()
670 mServiceHandler.removeCallbacks(mTimeoutTrigger); in onCancel()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java109 private ServiceHandler mServiceHandler; field in WearPackageInstallerService
125 mServiceHandler = new ServiceHandler(thread.getLooper()); in onCreate()
174 msg = mServiceHandler.obtainMessage(START_INSTALL); in onStartCommand()
177 msg = mServiceHandler.obtainMessage(START_UNINSTALL); in onStartCommand()
187 mServiceHandler.sendMessage(msg); in onStartCommand()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java220 private ServiceHandler mServiceHandler; field in BugreportProgressService
252 mServiceHandler = new ServiceHandler("BugreportProgressServiceMainThread"); in onCreate()
281 final Message msg = mServiceHandler.obtainMessage(); in onStartCommand()
284 mServiceHandler.sendMessage(msg); in onStartCommand()
299 mServiceHandler.getLooper().quit(); in onDestroy()
673 final Message msg = mServiceHandler.obtainMessage(); in takeScreenshot()
677 mServiceHandler.sendMessageDelayed(msg, DateUtils.SECOND_IN_MILLIS); in takeScreenshot()
717 Message.obtain(mServiceHandler, MSG_SCREENSHOT_RESPONSE, requestMsg.arg1, taken ? 1 : 0, in handleScreenshotRequest()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt41717 Landroid/media/tv/TvInputService$HardwareSession;->mServiceHandler:Landroid/os/Handler;
41789 Landroid/media/tv/TvInputService;->mServiceHandler:Landroid/os/Handler;
83734 Landroid/widget/RemoteViewsAdapter;->mServiceHandler:Landroid/widget/RemoteViewsAdapter$RemoteServi…