Home
last modified time | relevance | path

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

/cts/tests/app/app/src/android/app/stubs/
DCommandReceiver.java313 int command = LocalForegroundService.COMMAND_START_FOREGROUND; in doStartForegroundService()
314 fgsIntent.putExtras(LocalForegroundService.newCommand(command)); in doStartForegroundService()
337 fgsIntent.putExtras(LocalForegroundService.newCommand(command)); in doStartForegroundServiceWithType()
351 int command = LocalForegroundService.COMMAND_START_FOREGROUND; in doStartForegroundServiceSticky()
352 fgsIntent.putExtras(LocalForegroundService.newCommand(command)); in doStartForegroundServiceSticky()
409 intent.putExtras(LocalForegroundService.newCommand(command)); in doCreateFgslPendingIntent()
503 int command = LocalForegroundService.COMMAND_START_FOREGROUND; in doStartForegroundServiceSpoofPackageName()
504 fgsIntent.putExtras(LocalForegroundService.newCommand(command)); in doStartForegroundServiceSpoofPackageName()
546 final Intent fgsIntent = new Intent(context, LocalForegroundService.class); in doStartMediaPlayback()
547 fgsIntent.putExtras(LocalForegroundService.newCommand( in doStartMediaPlayback()
[all …]
DLocalPhoneCallService.java23 public class LocalPhoneCallService extends LocalForegroundService {
DLocalForegroundServiceSticky.java41 public class LocalForegroundServiceSticky extends LocalForegroundService {
DLocalForegroundServiceLocation.java31 public class LocalForegroundServiceLocation extends LocalForegroundService {
DLocalForegroundService.java38 public class LocalForegroundService extends LocalService { class
/cts/tests/app/src/android/app/cts/
DServiceTest.java22 import static android.app.stubs.LocalForegroundService.COMMAND_START_FOREGROUND;
23 import static android.app.stubs.LocalForegroundService.COMMAND_START_FOREGROUND_DEFER_NOTIFICATION;
24 import static android.app.stubs.LocalForegroundService.COMMAND_STOP_FOREGROUND_DETACH_NOTIFICATION;
25 import static android.app.stubs.LocalForegroundService.COMMAND_STOP_FOREGROUND_DONT_REMOVE_NOTIFICA…
37 import android.app.stubs.LocalForegroundService;
738 mLocalForegroundService = new Intent(mContext, LocalForegroundService.class); in setUp()
740 mLocalPhoneCallService.putExtra(LocalForegroundService.EXTRA_FOREGROUND_SERVICE_TYPE, in setUp()
951 .putExtras(LocalForegroundService.newCommand(mStateReceiver, command)); in foregroundServiceIntent()
980 assertNotification(1, LocalForegroundService.getNotificationTitle(1), true); in testForegroundService_canUpdateNotification()
1007 assertNotification(1, LocalForegroundService.getNotificationTitle(1), true); in testForegroundService_dontRemoveNotificationOnStop()
[all …]
DActivityManagerFgsBgStartTest.java25 import static android.app.stubs.LocalForegroundService.ACTION_START_FGS_RESULT;
49 import android.app.stubs.LocalForegroundService;
1543 Bundle extras = LocalForegroundService.newCommand( in testStartForegroundTimeout()
1544 LocalForegroundService.COMMAND_START_NO_FOREGROUND); in testStartForegroundTimeout()
1556 extras = LocalForegroundService.newCommand( in testStartForegroundTimeout()
1557 LocalForegroundService.COMMAND_START_FOREGROUND); in testStartForegroundTimeout()
1579 extras = LocalForegroundService.newCommand( in testStartForegroundTimeout()
1580 LocalForegroundService.COMMAND_START_FOREGROUND); in testStartForegroundTimeout()
1630 Bundle extras = LocalForegroundService.newCommand( in testSecondStartForeground()
1631 LocalForegroundService.COMMAND_STOP_FOREGROUND_REMOVE_NOTIFICATION); in testSecondStartForeground()
[all …]
DBroadcastOptionsIntegrationTest.java23 import static android.app.stubs.LocalForegroundService.ACTION_START_FGS_RESULT;
DActivityManagerFgsDelegateTest.java33 import android.app.stubs.LocalForegroundService;
141 Bundle extras = LocalForegroundService.newCommand( in prepareProcess()
142 LocalForegroundService.COMMAND_START_NO_FOREGROUND); in prepareProcess()
DActivityManagerTest.java71 import android.app.stubs.LocalForegroundService;
1681 PACKAGE_NAME_APP1, PACKAGE_NAME_APP1, 0, LocalForegroundService.newCommand( in testTrimMemActivityFg()
1682 LocalForegroundService.COMMAND_START_NO_FOREGROUND)); in testTrimMemActivityFg()
1793 msg.what = LocalForegroundService.COMMAND_STOP_SELF; in testServiceDoneLRUPosition()
DActivityManagerProcessStateTest.java32 import static android.app.stubs.LocalForegroundService.ACTION_START_FGS_RESULT;