Home
last modified time | relevance | path

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

/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsProcessStateTests.java38 mContext.startForegroundService(intent); in testForegroundService()
/cts/tests/app/src/android/app/cts/
DServiceTest.java798 private void startForegroundService(int command) { in startForegroundService() method in ServiceTest
804 mContext.startForegroundService(foregroundServiceIntent(command)); in startRequiredForegroundService()
813 startForegroundService(LocalForegroundService.COMMAND_START_FOREGROUND); in testForegroundService_dontRemoveNotificationOnStop()
819 startForegroundService( in testForegroundService_dontRemoveNotificationOnStop()
831 startForegroundService(LocalForegroundService.COMMAND_START_FOREGROUND); in testForegroundService_dontRemoveNotificationOnStop()
866 startForegroundService(LocalForegroundService.COMMAND_START_FOREGROUND); in testForegroundServiceRemoveNotificationOnStop()
874 startForegroundService(LocalForegroundService in testForegroundServiceRemoveNotificationOnStop()
877 startForegroundService(LocalForegroundService in testForegroundServiceRemoveNotificationOnStop()
885 startForegroundService(LocalForegroundService.COMMAND_START_FOREGROUND); in testForegroundServiceRemoveNotificationOnStop()
964 startForegroundService(LocalForegroundService.COMMAND_START_FOREGROUND); in testForegroundService_detachNotificationOnStop()
[all …]
DActivityManagerProcessStateTest.java1046 mContext.startForegroundService(mServiceStartForegroundIntent); in testForegroundServiceAppOp()
1080 mContext.startForegroundService(mServiceStartForegroundIntent); in testForegroundServiceAppOp()
/cts/tests/app/app/src/android/app/stubs/
DCommandReceiver.java114 context.startForegroundService(fgsIntent); in doStartForegroundService()
122 context.startForegroundService(fgsIntent); in doStartForegroundServiceWithType()
/cts/tests/tests/batterysaving/apps/app_target_api_current/src/android/os/cts/batterysaving/app/
DCommReceiver.java77 context.startForegroundService(intent); in handleBatterySaverBgServiceRequest()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java1044 startForegroundService(); in launchComponentAndAssertNetworkAccess()
1077 private void startForegroundService() throws Exception { in startForegroundService() method in AbstractRestrictBackgroundNetworkTestCase
1079 mContext.startForegroundService(launchIntent); in startForegroundService()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java600 InstrumentationRegistry.getContext().startForegroundService(startExposedIntent); in testStartExposed06()
620 InstrumentationRegistry.getContext().startForegroundService(startExposedIntent); in testStartExposed07()
1204 context.startForegroundService(intent); in testStartForegroundService()
1217 context.startForegroundService(intent); in testStartForegroundService()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDeviceSuspendTestActivity.java87 startForegroundService(new Intent(this, DeviceSuspendTestService.class)); in activitySetUp()