Searched refs:expectedIntent (Results 1 – 4 of 4) sorted by relevance
17 private final Intent expectedIntent; field in StartedServiceMatcher21 public StartedServiceMatcher(Intent expectedIntent) { in StartedServiceMatcher() argument22 this.expectedIntent = expectedIntent; in StartedServiceMatcher()36 expectedIntent.setAction(expectedAction); in StartedServiceMatcher()47 if (expectedIntent == null) { in matchesSafely()52 String expected = expectedIntent.toString(); in matchesSafely()66 …boolean intentsMatch = shadowOf(expectedIntent).getIntentClass().equals(shadowIntent.getIntentClas… in matchesSafely()72 Set<String> expectedKeys = shadowOf(expectedIntent).getExtras().keySet(); in matchesSafely()
14 private final Intent expectedIntent; field in StartedMatcher18 public StartedMatcher(Intent expectedIntent) { in StartedMatcher() argument19 this.expectedIntent = expectedIntent; in StartedMatcher()33 expectedIntent.setAction(expectedAction); in StartedMatcher()38 if (expectedIntent == null) { in matchesSafely()43 String expected = expectedIntent.toString(); in matchesSafely()55 boolean intentsMatch = shadowOf(expectedIntent).realIntentEquals(shadowIntent); in matchesSafely()
28 Intent expectedIntent = new Intent(); in shouldGetIntentSender() local29 PendingIntent service = PendingIntent.getService(null, 0, expectedIntent, 0); in shouldGetIntentSender()32 assertThat(expectedIntent, equalTo(((TestIntentSender) intentSender).intent)); in shouldGetIntentSender()
369 Intent expectedIntent = new Intent(Intent.ACTION_CHOOSER); in createChooser_shouldWrapIntent() local370 expectedIntent.putExtra(Intent.EXTRA_INTENT, originalIntent); in createChooser_shouldWrapIntent()371 expectedIntent.putExtra(Intent.EXTRA_TITLE, "The title"); in createChooser_shouldWrapIntent()372 assertEquals(expectedIntent, chooserIntent); in createChooser_shouldWrapIntent()