Home
last modified time | relevance | path

Searched refs:createIntent (Results 1 – 4 of 4) sorted by relevance

/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/
DStartedMatcher.java23 this(createIntent(packageName, expectedActivityClass)); in StartedMatcher()
27 this(createIntent(expectedActivityClass)); in StartedMatcher()
31 this(createIntent(expectedActivityClass)); in StartedMatcher()
67 …public static Intent createIntent(Class<? extends Activity> activityClass, String extraKey, String… in createIntent() method in StartedMatcher
68 Intent intent = createIntent(activityClass); in createIntent()
73 public static Intent createIntent(Class<? extends Activity> activityClass, String action) { in createIntent() method in StartedMatcher
74 Intent intent = createIntent(activityClass); in createIntent()
79 public static Intent createIntent(Class<? extends Activity> activityClass) { in createIntent() method in StartedMatcher
81 return createIntent(packageName, activityClass); in createIntent()
84 public static Intent createIntent(String packageName, Class<? extends Activity> activityClass) { in createIntent() method in StartedMatcher
DStartedServiceMatcher.java26 this(createIntent(packageName, expectedServiceClass)); in StartedServiceMatcher()
30 this(createIntent(expectedServiceClass)); in StartedServiceMatcher()
34 this(createIntent(expectedServiceClass)); in StartedServiceMatcher()
87 …public static Intent createIntent(Class<? extends Service> serviceClass, String extraKey, String e… in createIntent() method in StartedServiceMatcher
88 Intent intent = createIntent(serviceClass); in createIntent()
93 public static Intent createIntent(Class<? extends Service> serviceClass, String action) { in createIntent() method in StartedServiceMatcher
94 Intent intent = createIntent(serviceClass); in createIntent()
99 public static Intent createIntent(Class<? extends Service> serviceClass) { in createIntent() method in StartedServiceMatcher
106 return createIntent(packageName, serviceClass); in createIntent()
109 public static Intent createIntent(String packageName, Class<? extends Service> serviceClass) { in createIntent() method in StartedServiceMatcher
/external/robolectric/src/test/java/com/xtremelabs/robolectric/matchers/
DStartedMatcherTest.java19 import static com.xtremelabs.robolectric.matchers.StartedMatcher.createIntent;
33 intentWithExtra = createIntent(AliasActivity.class, "someExtra", "value"); in setUp()
39 …givesFailureMessage((Context) activity, "to start " + createIntent(ActivityGroup.class) + ", but d… in shouldSayDidntStartAnythingIfNothingWasStarted()
42 …givesFailureMessage((Context) activity, "to start " + createIntent(ActivityGroup.class, "view") + … in shouldSayDidntStartAnythingIfNothingWasStarted()
50 Intent actualIntent = createIntent(ListActivity.class, "anotherExtra", "anotherValue"); in shouldSayStartedSomethingIfWrongThingWasStarted()
54 …givesFailureMessage((Context) activity, "to start " + createIntent(ActivityGroup.class) + ", but s… in shouldSayStartedSomethingIfWrongThingWasStarted()
58 …givesFailureMessage((Context) activity, "to start " + createIntent(ActivityGroup.class, "view") + … in shouldSayStartedSomethingIfWrongThingWasStarted()
DStartedServiceMatcherTest.java16 import static com.xtremelabs.robolectric.matchers.StartedServiceMatcher.createIntent;
35 intentWithExtra = createIntent(WallpaperService.class, "someExtra", "value"); in setUp()
41 …givesFailureMessage((Context) service, "to start " + createIntent(WallpaperService.class) + ", but… in shouldSayDidntStartAnythingIfNothingWasStarted()
44 …givesFailureMessage((Context) service, "to start " + createIntent(WallpaperService.class, "view") … in shouldSayDidntStartAnythingIfNothingWasStarted()
52 Intent actualIntent = createIntent(WallpaperService.class, "anotherExtra", "anotherValue"); in shouldSayStartedSomethingIfWrongThingWasStarted()
56 …givesFailureMessage((Context) service, "to start " + createIntent(IntentService.class) + ", but st… in shouldSayStartedSomethingIfWrongThingWasStarted()
60 …givesFailureMessage((Context) service, "to start " + createIntent(IntentService.class, "view") + "… in shouldSayStartedSomethingIfWrongThingWasStarted()