Home
last modified time | relevance | path

Searched refs:startForegroundService (Results 1 – 18 of 18) sorted by relevance

/packages/services/Telecomm/testapps/transactionalVoipApp/src/com/android/server/telecom/transactionalVoipApp/
DVoipAppMainActivity.java73 findViewById(R.id.startForegroundService).setOnClickListener(new View.OnClickListener() { in onCreate()
76 Intent startForegroundService = new Intent(getApplicationContext(), in onCreate()
78 getApplicationContext().startForegroundService(startForegroundService); in onCreate()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java198 verify(mContext).startForegroundService(any()); in testInit_startsMediaConnectorService()
208 verify(mContext, never()).startForegroundService(any()); in testInit_powerDisabled_doesNotStartMediaConnectorService()
220 verify(mContext, never()).startForegroundService(any()); in testPowerPolicyListener_startsMediaConnectorService()
224 verify(mContext).startForegroundService(any()); in testPowerPolicyListener_startsMediaConnectorService()
714 verify(mContext, times(2)).startForegroundService(any()); in testActiveSessionListener_StateActiveChangesSource()
726 verify(mContext, times(2)).startForegroundService(any()); in testActiveSessionListener_StatePlayingChangesSource()
741 verify(mContext).startForegroundService(any()); in testActiveSessionListener_StatePlayingNonMediaAppDoesntChangesSource()
755 verify(mContext, times(2)).startForegroundService(any()); in testActiveSessionListener_IndependentBrowseUnchanged()
769 verify(mContext, times(2)).startForegroundService(any()); in testActiveSessionListener_DependentBrowseChanged()
780 verify(mContext).startForegroundService(any()); in testActiveSessionListener_StatePaused()
/packages/apps/Traceur/src/com/android/traceur/
DTraceService.java81 context.startForegroundService(intent); in startTracing()
87 context.startForegroundService(intent); in startStackSampling()
93 context.startForegroundService(intent); in startHeapDump()
99 context.startForegroundService(intent); in stopTracing()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DDvrRecordingService.java74 static void startForegroundService(Context context, boolean startForRecording) { in startForegroundService() method in DvrRecordingService
79 context.startForegroundService(intent); in startForegroundService()
DRecordingScheduler.java180 DvrRecordingService.startForegroundService(mContext, false); in updateAndStartServiceIfNeeded()
189 DvrRecordingService.startForegroundService(mContext, true); in updateInternal()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DScreenshotActivity.java49 startForegroundService(intent); in startScreenshotService()
DBugReportActivity.java833 mContext.startForegroundService(intent);
/packages/services/Car/tests/UserSwitchMonitorApp/src/com/google/android/car/userswitchmonitor/
DBootCompletedReceiver.java32 appContext.startForegroundService(service); in onReceive()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DBootUsbScanner.java35 context.startForegroundService(bootUsbServiceIntent); in onReceive()
/packages/apps/TV/src/com/android/tv/audiotvservice/
DAudioOnlyTvServiceUtil.java39 context.startForegroundService(intent); in startAudioOnlyInput()
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/
DDeviceAsWebcamReceiver.java58 context.startForegroundService(fgIntent); in onReceive()
/packages/services/Mtp/src/com/android/mtp/
DServiceIntentSender.java72 mContext.startForegroundService(intent); in sendUpdateNotificationIntent()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetySourceReceiver.kt62 context.startForegroundService(intent.setClass(context, ForegroundService::class.java)) in onReceive()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java959 startForegroundService(); in launchComponentAndAssertNetworkAccess()
1043 private void startForegroundService() throws Exception { in startForegroundService() method in AbstractRestrictBackgroundNetworkTestCase
1045 mContext.startForegroundService(launchIntent); in startForegroundService()
/packages/modules/Media/apex/framework/java/android/media/
DMediaSession2Service.java285 startForegroundService(mStartSelfIntent); in onPlaybackActiveChanged()
/packages/services/Car/service/src/com/android/car/pm/
DVendorServiceController.java547 mStarted = mUserContext.startForegroundService(intent) != null; in startOrBindService()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java179 public ComponentName startForegroundService(Intent service) { in startForegroundService() method in CaptivePortalLoginActivityTest.InstrumentedCaptivePortalLoginActivity
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java582 ComponentName result = userContext.startForegroundService(serviceStart); in startMediaConnectorServiceLocked()