Home
last modified time | relevance | path

Searched refs:LocalForegroundService (Results 1 – 9 of 9) sorted by relevance

/cts/tests/app/src/android/app/cts/
DServiceTest.java19 import static android.app.stubs.LocalForegroundService.COMMAND_START_FOREGROUND;
20 import static android.app.stubs.LocalForegroundService.COMMAND_START_FOREGROUND_DEFER_NOTIFICATION;
21 import static android.app.stubs.LocalForegroundService.COMMAND_STOP_FOREGROUND_DETACH_NOTIFICATION;
22 import static android.app.stubs.LocalForegroundService.COMMAND_STOP_FOREGROUND_DONT_REMOVE_NOTIFICA…
34 import android.app.stubs.LocalForegroundService;
704 mLocalForegroundService = new Intent(mContext, LocalForegroundService.class); in setUp()
905 .putExtras(LocalForegroundService.newCommand(mStateReceiver, command)); in foregroundServiceIntent()
934 assertNotification(1, LocalForegroundService.getNotificationTitle(1)); in testForegroundService_dontRemoveNotificationOnStop()
940 assertNotification(1, LocalForegroundService.getNotificationTitle(1)); in testForegroundService_dontRemoveNotificationOnStop()
952 assertNotification(2, LocalForegroundService.getNotificationTitle(2)); in testForegroundService_dontRemoveNotificationOnStop()
[all …]
DActivityManagerFgsBgStartTest.java24 import static android.app.stubs.LocalForegroundService.ACTION_START_FGS_RESULT;
47 import android.app.stubs.LocalForegroundService;
1403 Bundle extras = LocalForegroundService.newCommand( in testStartForegroundTimeout()
1404 LocalForegroundService.COMMAND_START_NO_FOREGROUND); in testStartForegroundTimeout()
1416 extras = LocalForegroundService.newCommand( in testStartForegroundTimeout()
1417 LocalForegroundService.COMMAND_START_FOREGROUND); in testStartForegroundTimeout()
1439 extras = LocalForegroundService.newCommand( in testStartForegroundTimeout()
1440 LocalForegroundService.COMMAND_START_FOREGROUND); in testStartForegroundTimeout()
1488 Bundle extras = LocalForegroundService.newCommand( in testSecondStartForeground()
1489 LocalForegroundService.COMMAND_STOP_FOREGROUND_REMOVE_NOTIFICATION); in testSecondStartForeground()
[all …]
DActivityManagerTest.java43 import android.app.stubs.LocalForegroundService;
1612 msg.what = LocalForegroundService.COMMAND_STOP_SELF; in testServiceDoneLRUPosition()
DActivityManagerProcessStateTest.java29 import static android.app.stubs.LocalForegroundService.ACTION_START_FGS_RESULT;
/cts/tests/app/app/src/android/app/stubs/
DLocalPhoneCallService.java23 public class LocalPhoneCallService extends LocalForegroundService {
DCommandReceiver.java198 int command = LocalForegroundService.COMMAND_START_FOREGROUND; in doStartForegroundService()
199 fgsIntent.putExtras(LocalForegroundService.newCommand(command)); in doStartForegroundService()
222 fgsIntent.putExtras(LocalForegroundService.newCommand(command)); in doStartForegroundServiceWithType()
236 int command = LocalForegroundService.COMMAND_START_FOREGROUND; in doStartForegroundServiceSticky()
237 fgsIntent.putExtras(LocalForegroundService.newCommand(command)); in doStartForegroundServiceSticky()
294 intent.putExtras(LocalForegroundService.newCommand(command)); in doCreateFgslPendingIntent()
DLocalForegroundServiceSticky.java41 public class LocalForegroundServiceSticky extends LocalForegroundService {
DLocalForegroundServiceLocation.java31 public class LocalForegroundServiceLocation extends LocalForegroundService {
DLocalForegroundService.java37 public class LocalForegroundService extends LocalService { class