Home
last modified time | relevance | path

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

12

/cts/tests/tests/systemui/src/android/systemui/cts/tv/
DMicIndicatorTest.kt62 startForegroundService(AUDIO_RECORD_API_SERVICE, ACTION_START) in micIndicator_shown_whileRecordingUsing_AudioRecordApi()
65 startForegroundService(AUDIO_RECORD_API_SERVICE, ACTION_STOP) in micIndicator_shown_whileRecordingUsing_AudioRecordApi()
71 startForegroundService(MEDIA_RECORDER_API_SERVICE, ACTION_START) in micIndicator_shown_whileRecordingUsing_MediaRecorderApi()
74 startForegroundService(MEDIA_RECORDER_API_SERVICE, ACTION_STOP) in micIndicator_shown_whileRecordingUsing_MediaRecorderApi()
80 startForegroundService(AUDIO_RECORD_API_SERVICE, ACTION_START) in micIndicator_shown_whileRecordingUsing_AudioRecordApi_until_forceStopped()
89 startForegroundService(MEDIA_RECORDER_API_SERVICE, ACTION_START) in micIndicator_shown_whileRecordingUsing_MediaRecorderApi_until_forceStopped()
98 startForegroundService(AUDIO_RECORD_API_SERVICE, ACTION_START) in micIndicator_shown_whileRecordingUsing_AudioRecordApi_until_crashed()
101 startForegroundService(AUDIO_RECORD_API_SERVICE, ACTION_THROW) in micIndicator_shown_whileRecordingUsing_AudioRecordApi_until_crashed()
107 startForegroundService(MEDIA_RECORDER_API_SERVICE, ACTION_START) in micIndicator_shown_whileRecordingUsing_MediaRecorderApi_until_crashed()
110 startForegroundService(MEDIA_RECORDER_API_SERVICE, ACTION_THROW) in micIndicator_shown_whileRecordingUsing_MediaRecorderApi_until_crashed()
[all …]
DTvTestBase.kt108 protected fun startForegroundService( in startForegroundService() method
/cts/tests/app/FgsTimeoutTest/src/android/app/cts/fgstimeouttest/
DFgsTimeoutTest.java122 startForegroundService(FGS0, FOREGROUND_SERVICE_TYPE_MEDIA_PROCESSING); in testTimeout()
188 startForegroundService(FGS2, FOREGROUND_SERVICE_TYPE_DATA_SYNC); in testTimeout_withParallelNormalFgs()
194 startForegroundService(FGS1, FOREGROUND_SERVICE_TYPE_SPECIAL_USE); in testTimeout_withParallelNormalFgs()
227 startForegroundService(FGS0, FOREGROUND_SERVICE_TYPE_MEDIA_PROCESSING); in testTimeout_withParallelTimeRestrictedFgs()
234 startForegroundService(FGS1, FOREGROUND_SERVICE_TYPE_MEDIA_PROCESSING); in testTimeout_withParallelTimeRestrictedFgs()
276 startForegroundService(FGS0, FOREGROUND_SERVICE_TYPE_MEDIA_PROCESSING); in testCrash()
305 startForegroundService(FGS0, FOREGROUND_SERVICE_TYPE_MEDIA_PROCESSING); in testStop_stopService()
332 startForegroundService(FGS0, FOREGROUND_SERVICE_TYPE_MEDIA_PROCESSING); in testStop_stopSelf()
357 startForegroundService(FGS0, FOREGROUND_SERVICE_TYPE_MEDIA_PROCESSING); in testStartService_fromTimeRestrictedFgs()
362 startForegroundService(FGS1, FOREGROUND_SERVICE_TYPE_SPECIAL_USE); in testStartService_fromTimeRestrictedFgs()
[all …]
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/
DActivityManagerShortFgsTest.java287 public static void startForegroundService(ComponentName cn, int fgsTypes) { in startForegroundService() method in ActivityManagerShortFgsTest
288 startForegroundService(cn, fgsTypes, Service.START_NOT_STICKY); in startForegroundService()
291 public static void startForegroundService(ComponentName cn, int fgsTypes, in startForegroundService() method in ActivityManagerShortFgsTest
305 sContext.startForegroundService(i); in startForegroundService()
394 startForegroundService(FGS0, FOREGROUND_SERVICE_TYPE_SHORT_SERVICE); in testStartStop_stopService()
432 startForegroundService(FGS0, FOREGROUND_SERVICE_TYPE_SHORT_SERVICE); in testStartStop_stopSelf()
474 startForegroundService(FGS0, FOREGROUND_SERVICE_TYPE_SHORT_SERVICE); in testTimeout()
529 startForegroundService(FGS0, FOREGROUND_SERVICE_TYPE_SHORT_SERVICE); in testTimeout_withAnotherFgs()
537 startForegroundService(FGS1, FOREGROUND_SERVICE_TYPE_SPECIAL_USE); in testTimeout_withAnotherFgs()
582 startForegroundService(FGS0, FOREGROUND_SERVICE_TYPE_SHORT_SERVICE); in testTimeout_procStateDemotion()
[all …]
/cts/tests/tests/appop/src/android/app/appops/cts/
DForegroundModeAndActiveTest.kt201 private fun startForegroundService(startingContext: Context) { in <lambda>() method
202 startingContext.startForegroundService(Intent().setComponent( in <lambda>()
212 startingContext.startForegroundService(Intent().setComponent( in <lambda>()
293 startForegroundService(fgActivity) in <lambda>()
324 startForegroundService(fgActivity) in <lambda>()
336 startForegroundService(fgActivity) in <lambda>()
395 startForegroundService(fgActivity) in <lambda>()
419 startForegroundService(fgActivity) in <lambda>()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21129/src/android/security/cts/CVE_2023_21129/
DBubbleActivity.java29 startForegroundService(new Intent(this, PocService.class)); in onResume()
/cts/tests/AlarmManager/app_common/src/android/alarmmanager/alarmtestapp/cts/common/
DFgsTester.java35 context.startForegroundService(i); in tryStartingFgs()
/cts/tests/app/src/android/app/cts/
DServiceTest.java959 private void startForegroundService(Intent intent, int command) { in startForegroundService() method in ServiceTest
963 private void startForegroundService(int command) { in startForegroundService() method in ServiceTest
969 mContext.startForegroundService(foregroundServiceIntent(command)); in startRequiredForegroundService()
978 startForegroundService(COMMAND_START_FOREGROUND); in testForegroundService_canUpdateNotification()
1005 startForegroundService(COMMAND_START_FOREGROUND); in testForegroundService_dontRemoveNotificationOnStop()
1011 startForegroundService(COMMAND_STOP_FOREGROUND_DONT_REMOVE_NOTIFICATION); in testForegroundService_dontRemoveNotificationOnStop()
1022 startForegroundService(COMMAND_START_FOREGROUND); in testForegroundService_dontRemoveNotificationOnStop()
1058 startForegroundService(COMMAND_START_FOREGROUND); in testForegroundServiceRemoveNotificationOnStop()
1066 startForegroundService(LocalForegroundService in testForegroundServiceRemoveNotificationOnStop()
1069 startForegroundService(LocalForegroundService in testForegroundServiceRemoveNotificationOnStop()
[all …]
DActivityManagerApi29Test.java164 sTargetContext.startForegroundService(sServiceIntent); in startSimpleService()
/cts/tests/app/app/src/android/app/stubs/
DBootReceiver.java45 context.startForegroundService(fgsIntent); in onReceive()
DCommandReceiver.java316 context.startForegroundService(fgsIntent); in doStartForegroundService()
339 context.startForegroundService(fgsIntent); in doStartForegroundServiceWithType()
354 context.startForegroundService(fgsIntent); in doStartForegroundServiceSticky()
550 context.startForegroundService(fgsIntent); in doStartMediaPlayback()
/cts/tests/tests/media/common/src/android/media/cts/
DForegroundServiceUtil.java60 context.startForegroundService(intent); in requestStartForegroundService()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0478/src/android/security/cts/CVE_2021_0478/
DPocActivity.java52 startForegroundService(new Intent(this, PocService.class)); in startServices()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39704/src/android/security/cts/CVE_2021_39704/
DPocActivity.java36 startForegroundService(new Intent(this, PocService.class)); in onCreate()
/cts/tests/quicksettings/src/android/quicksettings/cts/
DTestOnClickLaunchFgsTileService.java46 startForegroundService(new Intent(this, TestForegroundService.class)); in onClick()
/cts/tests/tests/batterysaving/apps/app_target_api_current/src/android/os/cts/batterysaving/app/
DCommReceiver.java77 context.startForegroundService(intent); in handleBatterySaverBgServiceRequest()
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/
DFgsTimeoutMessageReceiver.java103 sContext.startForegroundService( in onReceive()
/cts/tests/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/
DShortFgsMessageReceiver.java111 sContext.startForegroundService( in onReceive()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DMediaProjectionHelper.java251 targetContext.startForegroundService(serviceIntent); in authorizeMediaProjection()
/cts/tests/ServiceKillTest/src/com/android/cts/servicekilltest/
DServiceKillTests.java181 context.startForegroundService(getServiceIntent(action, testId)); in startService()
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/
DSensitiveContentMediaProjectionHelper.java251 targetContext.startForegroundService(serviceIntent); in authorizeMediaProjection()
/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/
DTestJobSchedulerReceiver.java194 context.startForegroundService(startFgsIntent); in onReceive()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DHidDeviceActivity.java174 startForegroundService(new Intent(getApplication(), in onCreate()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java606 InstrumentationRegistry.getContext().startForegroundService(startExposedIntent); in testStartExposed06()
626 InstrumentationRegistry.getContext().startForegroundService(startExposedIntent); in testStartExposed07()
1257 context.startForegroundService(intent); in testStartForegroundService()
1270 context.startForegroundService(intent); in testStartForegroundService()
/cts/tests/tests/os/src/android/os/cts/
DLowPowerStandbyTest.java497 mContext.startForegroundService(intent); in testLowPowerStandby_allowedReason_ongoingCall_phoneCallServiceExempt()
520 mContext.startForegroundService(intent); in testLowPowerStandby_allowedReason_ongoingCall_otherFgsServiceNotExempt()

12