Home
last modified time | relevance | path

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

/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.kt107 protected fun startForegroundService( in startForegroundService() method in android.systemui.cts.tv.TvTestBase
/cts/tests/tests/appop/src/android/app/appops/cts/
DForegroundModeTest.kt149 private fun startForegroundService(startingContext: Context) { in <lambda>() method
150 startingContext.startForegroundService(Intent().setComponent( in <lambda>()
157 startingContext.startForegroundService(Intent().setComponent( in <lambda>()
226 startForegroundService(fgActivity) in <lambda>()
257 startForegroundService(fgActivity) in <lambda>()
269 startForegroundService(fgActivity) in <lambda>()
322 startForegroundService(fgActivity) in <lambda>()
343 startForegroundService(fgActivity) in <lambda>()
/cts/tests/app/src/android/app/cts/
DServiceTest.java913 private void startForegroundService(Intent intent, int command) { in startForegroundService() method in ServiceTest
917 private void startForegroundService(int command) { in startForegroundService() method in ServiceTest
923 mContext.startForegroundService(foregroundServiceIntent(command)); in startRequiredForegroundService()
932 startForegroundService(COMMAND_START_FOREGROUND); in testForegroundService_dontRemoveNotificationOnStop()
938 startForegroundService(COMMAND_STOP_FOREGROUND_DONT_REMOVE_NOTIFICATION); in testForegroundService_dontRemoveNotificationOnStop()
949 startForegroundService(COMMAND_START_FOREGROUND); in testForegroundService_dontRemoveNotificationOnStop()
984 startForegroundService(COMMAND_START_FOREGROUND); in testForegroundServiceRemoveNotificationOnStop()
992 startForegroundService(LocalForegroundService in testForegroundServiceRemoveNotificationOnStop()
995 startForegroundService(LocalForegroundService in testForegroundServiceRemoveNotificationOnStop()
1003 startForegroundService(COMMAND_START_FOREGROUND); in testForegroundServiceRemoveNotificationOnStop()
[all …]
DActivityManagerApi29Test.java163 sTargetContext.startForegroundService(sServiceIntent); in startSimpleService()
DActivityManagerProcessStateTest.java1128 mContext.startForegroundService(mServiceStartForegroundIntent); in testForegroundServiceAppOp()
1163 mContext.startForegroundService(mServiceStartForegroundIntent); in testForegroundServiceAppOp()
DActivityManagerFgsBgStartTest.java1136 mContext.startForegroundService(intent); in testFgsStartFromBGException()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsProcessStateTests.java38 mContext.startForegroundService(intent); in testForegroundService()
/cts/tests/AlarmManager/app/src/android/alarmmanager/alarmtestapp/cts/
DPermissionStateChangedReceiver.java53 context.startForegroundService(i); in tryStartingFgs()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInputTests.java308 mActivity.startForegroundService(intent); in testFilterTouchesWhenObscuredByWindowFromDifferentUid()
362 mActivity.startForegroundService(intent); in testFlagTouchesWhenObscuredByWindowFromDifferentUid()
410 mActivity.startForegroundService(intent); in testDoNotFlagTouchesWhenObscuredByZeroOpacityWindow()
463 mActivity.startForegroundService(intent); in testFlagTouchesWhenObscuredByMinPositiveOpacityWindow()
518 mActivity.startForegroundService(intent); in testFlagTouchesWhenPartiallyObscuredByZeroOpacityWindow()
570 mActivity.startForegroundService(intent); in testDoNotFlagTouchesWhenPartiallyObscuredByNotTouchableZeroOpacityWindow()
/cts/tests/app/app/src/android/app/stubs/
DCommandReceiver.java201 context.startForegroundService(fgsIntent); in doStartForegroundService()
224 context.startForegroundService(fgsIntent); in doStartForegroundServiceWithType()
239 context.startForegroundService(fgsIntent); in doStartForegroundServiceSticky()
/cts/tests/tests/batterysaving/apps/app_target_api_current/src/android/os/cts/batterysaving/app/
DCommReceiver.java77 context.startForegroundService(intent); in handleBatterySaverBgServiceRequest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DHidDeviceActivity.java167 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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDeviceSuspendTestActivity.java87 startForegroundService(new Intent(this, DeviceSuspendTestService.class)); in activitySetUp()