Home | History | Annotate | Download | only in shadows

Lines Matching refs:service

8 import android.app.Service;
24 private MyService service ;
33 service = Robolectric.setupService(MyService.class);
34 shadow = shadowOf(service);
35 notBuilder = new Notification.Builder(service)
45 service.bindService(new Intent("dummy"), conn, 0);
47 service.unbindService(conn);
54 service.unbindService(conn);
61 service.unbindService(conn);
67 service.startForeground(23, n);
76 service.stopForeground(true);
83 service.startForeground(21, notBuilder.build());
84 service.stopForeground(true);
90 * then it will be removed when the service is destroyed.
95 service.startForeground(21, n);
96 service.stopForeground(false);
102 * then it will be removed when the service is destroyed.
107 service.startForeground(21, n);
108 service.onDestroy();
114 service.stopSelf();
120 service.stopSelf(1);
124 public static class MyService extends Service {