Lines Matching refs:service

40  * service. The service itself is interacting with the platform. Note: Testing
41 * the service in full isolation would require significant amount of work for
59 * Timeout used for testing that a service is notified only upon a
65 * The interface used to talk to the tested service.
175 assertTrue("First mock service must be installed", firstMockServiceInstalled);
176 assertTrue("Second mock service must be installed", secondMockServiceInstalled);
185 // enable the mock accessibility service
188 // configure the mock service
189 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance;
190 service.setServiceInfo(MockAccessibilityService.createDefaultInfo());
200 service.expectEvent(sentEvent);
201 service.replay();
207 assertMockServiceVerifiedWithinTimeout(service);
215 // enable the mock accessibility service
218 // configure the mock service
219 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance;
220 service.setServiceInfo(MockAccessibilityService.createDefaultInfo());
228 sentEvent.setPackageName("no.service.registered.for.this.package");
231 service.replay();
237 assertMockServiceVerifiedWithinTimeout(service);
245 // enable the mock accessibility service
248 // configure the mock service
249 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance;
250 service.setServiceInfo(MockAccessibilityService.createDefaultInfo());
261 service.replay();
267 assertMockServiceVerifiedWithinTimeout(service);
275 // enable the mock accessibility service
278 // configure the mock service
279 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance;
282 service.setServiceInfo(info);
296 service.expectEvent(secondEvent);
297 service.replay();
303 // wait for #sendAccessibilityEvent to reach the backing service
307 service.verify();
317 assertMockServiceVerifiedWithinTimeout(service);
329 // configure the first mock service
335 // configure the second mock service
348 // set expectations for the first mock service
352 // set expectations for the second mock service
373 // configure the first mock service
377 // configure the second mock service
388 // set expectations for the first mock service
392 // set expectations for the second mock service
412 // configure the first mock service
418 // configure the second mock service
429 // set expectations for the first mock service
432 // set expectations for the second mock service
453 // configure the first mock service
459 // configure the second mock service
472 // set expectations for the first mock service
476 // set expectations for the second mock service
495 // configure the first mock service
499 // configure the second mock service
506 // set expectations for the first mock service
510 // set expectations for the second mock service
562 * settings and waiting until the accessibility manager service pick it up.
579 // wait the accessibility manager service to pick the change up
586 * accessibility manager service picks that up or the
590 * @param firstMockServiceEnabled If the first mock accessibility service is enabled.
591 * @param secondMockServiceEnabled If the second mock accessibility service is enabled.
652 * Asserts the the mock accessibility service has been successfully verified
657 * @param service The service to verify.
661 private void assertMockServiceVerifiedWithinTimeout(MockAccessibilityService service)
678 service.verify();
680 service.reset();
688 service.reset();
700 * The service {@link ComponentName} flattened as a string.
705 * Handle to the service instance.
723 * The service {@link ComponentName} flattened as a string.
728 * Handle to the service instance.