Home | History | Annotate | Download | only in activity

Lines Matching refs:service

120         public void onServiceConnected(ComponentName name, IBinder service) {
143 public void onServiceConnected(ComponentName name, IBinder service) {
149 service.transact(SET_REPORTER_CODE, data, null, 0);
191 void startExpectResult(Intent service) {
192 startExpectResult(service, new Bundle());
195 void startExpectResult(Intent service, Bundle bundle) {
201 getContext().startService(new Intent(service).putExtras(bundle));
202 waitForResultOrThrow(5 * 1000, "service to start first time");
205 getContext().startService(new Intent(service).putExtras(bundle));
206 waitForResultOrThrow(5 * 1000, "service to start second time");
211 getContext().stopService(service);
219 getContext().stopService(service);
220 waitForResultOrThrow(5 * 1000, "service to be destroyed");
223 void startExpectNoPermission(Intent service) {
225 getContext().startService(service);
226 fail("Expected security exception when starting " + service);
232 void bindExpectResult(Intent service) {
239 getContext().bindService(service, conn, 0);
240 getContext().startService(service);
241 waitForResultOrThrow(5 * 1000, "existing connection to receive service");
244 getContext().bindService(service, conn2, 0);
245 waitForResultOrThrow(5 * 1000, "new connection to receive service");
252 getContext().stopService(service);
263 getContext().stopService(service);
264 waitForResultOrThrow(5 * 1000, "existing connection to lose service");
274 getContext().bindService(service, conn, 0);
275 getContext().startService(service);
276 waitForResultOrThrow(5 * 1000, "existing connection to receive service");
282 getContext().stopService(service);
290 // Expect to see the service unbind and then destroyed.
293 getContext().stopService(service);
294 waitForResultOrThrow(5 * 1000, "existing connection to lose service");
304 getContext().bindService(service, conn, 0);
305 getContext().startService(service);
306 waitForResultOrThrow(5 * 1000, "existing connection to receive service");
312 getContext().stopService(service);
320 // Expect to see the service unbind but not destroyed.
324 waitForResultOrThrow(5 * 1000, "existing connection to unbind service");
326 // Expect to see the service rebound.
328 getContext().bindService(service, conn, 0);
329 waitForResultOrThrow(5 * 1000, "existing connection to rebind service");
331 // Expect to see the service unbind and then destroyed.
333 getContext().stopService(service);
334 waitForResultOrThrow(5 * 1000, "existing connection to lose service");
339 void bindAutoExpectResult(Intent service) {
346 service, conn, Context.BIND_AUTO_CREATE);
347 waitForResultOrThrow(5 * 1000, "connection to start and receive service");
360 waitForResultOrThrow(5 * 1000, "disconnecting from service");
363 void bindExpectNoPermission(Intent service) {
366 getContext().bindService(service, conn, Context.BIND_AUTO_CREATE);
367 fail("Expected security exception when binding " + service);