/cts/tests/tests/systemui/src/android/systemui/cts/tv/ |
D | MicIndicatorTest.kt | 62 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 …]
|
D | TvTestBase.kt | 108 protected fun startForegroundService( in startForegroundService() method
|
/cts/tests/app/FgsTimeoutTest/src/android/app/cts/fgstimeouttest/ |
D | FgsTimeoutTest.java | 122 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/ |
D | ActivityManagerShortFgsTest.java | 287 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/ |
D | ForegroundModeAndActiveTest.kt | 201 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/ |
D | BubbleActivity.java | 29 startForegroundService(new Intent(this, PocService.class)); in onResume()
|
/cts/tests/AlarmManager/app_common/src/android/alarmmanager/alarmtestapp/cts/common/ |
D | FgsTester.java | 35 context.startForegroundService(i); in tryStartingFgs()
|
/cts/tests/app/src/android/app/cts/ |
D | ServiceTest.java | 959 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 …]
|
D | ActivityManagerApi29Test.java | 164 sTargetContext.startForegroundService(sServiceIntent); in startSimpleService()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | BootReceiver.java | 45 context.startForegroundService(fgsIntent); in onReceive()
|
D | CommandReceiver.java | 316 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/ |
D | ForegroundServiceUtil.java | 60 context.startForegroundService(intent); in requestStartForegroundService()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0478/src/android/security/cts/CVE_2021_0478/ |
D | PocActivity.java | 52 startForegroundService(new Intent(this, PocService.class)); in startServices()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39704/src/android/security/cts/CVE_2021_39704/ |
D | PocActivity.java | 36 startForegroundService(new Intent(this, PocService.class)); in onCreate()
|
/cts/tests/quicksettings/src/android/quicksettings/cts/ |
D | TestOnClickLaunchFgsTileService.java | 46 startForegroundService(new Intent(this, TestForegroundService.class)); in onClick()
|
/cts/tests/tests/batterysaving/apps/app_target_api_current/src/android/os/cts/batterysaving/app/ |
D | CommReceiver.java | 77 context.startForegroundService(intent); in handleBatterySaverBgServiceRequest()
|
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/ |
D | FgsTimeoutMessageReceiver.java | 103 sContext.startForegroundService( in onReceive()
|
/cts/tests/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/ |
D | ShortFgsMessageReceiver.java | 111 sContext.startForegroundService( in onReceive()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | MediaProjectionHelper.java | 251 targetContext.startForegroundService(serviceIntent); in authorizeMediaProjection()
|
/cts/tests/ServiceKillTest/src/com/android/cts/servicekilltest/ |
D | ServiceKillTests.java | 181 context.startForegroundService(getServiceIntent(action, testId)); in startService()
|
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/ |
D | SensitiveContentMediaProjectionHelper.java | 251 targetContext.startForegroundService(serviceIntent); in authorizeMediaProjection()
|
/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/ |
D | TestJobSchedulerReceiver.java | 194 context.startForegroundService(startFgsIntent); in onReceive()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | HidDeviceActivity.java | 174 startForegroundService(new Intent(getApplication(), in onCreate()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 606 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/ |
D | LowPowerStandbyTest.java | 497 mContext.startForegroundService(intent); in testLowPowerStandby_allowedReason_ongoingCall_phoneCallServiceExempt() 520 mContext.startForegroundService(intent); in testLowPowerStandby_allowedReason_ongoingCall_otherFgsServiceNotExempt()
|