Searched refs:LocalForegroundService (Results 1 – 9 of 9) sorted by relevance
19 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 …]
24 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 …]
43 import android.app.stubs.LocalForegroundService;1612 msg.what = LocalForegroundService.COMMAND_STOP_SELF; in testServiceDoneLRUPosition()
29 import static android.app.stubs.LocalForegroundService.ACTION_START_FGS_RESULT;
23 public class LocalPhoneCallService extends LocalForegroundService {
198 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()
41 public class LocalForegroundServiceSticky extends LocalForegroundService {
31 public class LocalForegroundServiceLocation extends LocalForegroundService {
37 public class LocalForegroundService extends LocalService { class