Searched refs:service2 (Results 1 – 4 of 4) sorted by relevance
49 Service service2 = Mockito.mock(Service.class); in successIfEveryThreadHasItsOwnMock() local56 Mockito.when(service2.verySlowMethod()).thenAnswer(new LockingAnswer(counter)); in successIfEveryThreadHasItsOwnMock()61 threads.execute(new ServiceRunner(service2)); in successIfEveryThreadHasItsOwnMock()
36 MyService service2 = new MyService(); in shouldNotComplainIfServiceIsDestroyedWhileAnotherServiceHasRegisteredBroadcastReceivers() local37 service2.registerReceiver(new AppWidgetProvider(), new IntentFilter()); in shouldNotComplainIfServiceIsDestroyedWhileAnotherServiceHasRegisteredBroadcastReceivers()
452 Service service2 = new Service() { in testPartiallyConstructedManager_transitionAfterAddListenerBeforeStateIsReady() local498 new ServiceManager(Arrays.asList(service1, service2)); in testPartiallyConstructedManager_transitionAfterAddListenerBeforeStateIsReady()
1371 ServiceDescriptorProto* service2 = AddService(&bar_file, "TestService2"); in SetUp() local1372 AddMethod(service2, "Foo", "FooRequest", "FooResponse"); in SetUp()1373 AddMethod(service2, "Baz", "BazRequest", "BazResponse"); in SetUp()