Home | History | Annotate | Download | only in app

Lines Matching refs:intent

26 import android.content.Intent;
85 public int onStartCommand(Intent intent, int flags, int startId) {
86 if (ACTION_FOREGROUND.equals(intent.getAction())
87 || ACTION_FOREGROUND_WAKELOCK.equals(intent.getAction())) {
92 new Intent(this, Controller.class), 0);
101 .setContentIntent(contentIntent) // The intent to send when clicked
106 } else if (ACTION_BACKGROUND.equals(intent.getAction())
107 || ACTION_BACKGROUND_WAKELOCK.equals(intent.getAction())) {
111 if (ACTION_FOREGROUND_WAKELOCK.equals(intent.getAction())
112 || ACTION_BACKGROUND_WAKELOCK.equals(intent.getAction())) {
143 public IBinder onBind(Intent intent) {
183 Intent intent = new Intent(ForegroundService.ACTION_FOREGROUND);
184 intent.setClass(Controller.this, ForegroundService.class);
185 startService(intent);
191 Intent intent = new Intent(ForegroundService.ACTION_FOREGROUND_WAKELOCK);
192 intent.setClass(Controller.this, ForegroundService.class);
193 startService(intent);
199 Intent intent = new Intent(ForegroundService.ACTION_BACKGROUND);
200 intent.setClass(Controller.this, ForegroundService.class);
201 startService(intent);
207 Intent intent = new Intent(ForegroundService.ACTION_BACKGROUND_WAKELOCK);
208 intent.setClass(Controller.this, ForegroundService.class);
209 startService(intent);
215 stopService(new Intent(Controller.this,
222 Intent intent = new Intent(ForegroundService.ACTION_FOREGROUND);
223 intent.setClass(Controller.this, ForegroundService2.class);
224 startService(intent);
232 final Intent intent = new Intent(ForegroundService.ACTION_FOREGROUND);
233 intent.setClass(ctx, ForegroundService2.class);
235 PendingIntent pi = PendingIntent.getForegroundService(ctx, 0, intent, 0);
246 stopService(new Intent(Controller.this,