Home
last modified time | relevance | path

Searched refs:Activity (Results 1 – 25 of 224) sorted by relevance

123456789

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DActivityTest.java3 import android.app.Activity;
67 Activity activity = new Activity() { in startActivityForResultAndReceiveResult_shouldSendResponsesBackToActivity()
76 shadowOf(activity).receiveResult(new Intent().setType("image/*"), Activity.RESULT_OK, in startActivityForResultAndReceiveResult_shouldSendResponsesBackToActivity()
83 Activity activity = new Activity() { in startActivityForResultAndReceiveResult_whenNoIntentMatches_shouldThrowException()
94 shadowOf(activity).receiveResult(requestIntent, Activity.RESULT_OK, in startActivityForResultAndReceiveResult_whenNoIntentMatches_shouldThrowException()
151 Activity customActivity = new Activity() { in onContentChangedShouldBeCalledAfterContentViewIsSet()
164 assertThat("com.wacka.wa", equalTo(new Activity().getPackageName())); in shouldRetrievePackageNameFromTheManifest()
298 Activity activity = new Activity(); in shouldCallFinishInOnBackPressed()
325 Activity activity = new Activity(); in retrieveIdOfResource()
340 Activity activity = new Activity(); in getCurrentFocus_shouldBeNullWhenNoFocusRequested()
[all …]
DContextWrapperTest.java3 import android.app.Activity;
37 contextWrapper = new ContextWrapper(new Activity()); in setUp()
114 Activity activity = new Activity(); in shouldReturnSameApplicationEveryTime()
117 assertThat(activity.getApplication(), sameInstance(new Activity().getApplication())); in shouldReturnSameApplicationEveryTime()
122 Activity activity = new Activity(); in shouldReturnSameApplicationContextEveryTime()
125 …assertThat(activity.getApplicationContext(), sameInstance(new Activity().getApplicationContext())); in shouldReturnSameApplicationContextEveryTime()
130 Activity activity = new Activity(); in shouldReturnSameContentResolverEveryTime()
133 … assertThat(activity.getContentResolver(), sameInstance(new Activity().getContentResolver())); in shouldReturnSameContentResolverEveryTime()
166 Activity baseContext = new Activity(); in shouldReturnAContext()
172 Activity activity = new Activity(); in assertSameInstanceEveryTime()
[all …]
DResourcesTest.java14 import android.app.Activity;
38 resources = new Activity().getResources(); in setup()
126 Activity activity = new Activity(); in testDensity()
132 Activity anotherActivity = new Activity(); in testDensity()
138 Activity activity = new Activity(); in displayMetricsShouldNotHaveLotsOfZeros()
DKeyguardManagerTest.java3 import android.app.Activity;
21 Activity activity = new Activity(); in testIsInRestrcitedInputMode()
31 Activity activity = new Activity(); in testShouldBeAbleToDisableTheKeyguardLock()
DViewConfigurationTest.java3 import android.app.Activity;
18 Activity context = new Activity(); in methodsShouldReturnAndroidConstants()
55 Activity context = new Activity(); in methodsShouldReturnScaledAndroidConstantsDependingOnPixelDensity()
DCookieSyncManagerTest.java11 import android.app.Activity;
22 assertThat( CookieSyncManager.createInstance( new Activity() ) , notNullValue() ); in testCreateInstance()
27 CookieSyncManager.createInstance( new Activity() ); in testGetInstance()
33 CookieSyncManager.createInstance( new Activity() ); in testSyncAndReset()
DApplicationTest.java3 import android.app.Activity;
50 assertThat(new Activity().getApplication(), sameInstance(Robolectric.application)); in shouldBeAContext()
51 …assertThat(new Activity().getApplication().getApplicationContext(), sameInstance((Context) Robolec… in shouldBeAContext()
178 Activity activity = new Activity(); in shouldHaveStoppedServiceIntentAndIndicateServiceWasntRunning()
198 Activity activity = new Activity(); in shouldHaveStoppedServiceIntentAndIndicateServiceWasRunning()
223 Activity activity = new Activity(); in shouldThrowIfContainsRegisteredReceiverOfAction()
231 Activity activity = new Activity(); in shouldNotThrowIfDoesNotContainsRegisteredReceiverOfAction()
DSettingsTest.java3 import android.app.Activity;
19 private Activity activity;
24 activity = new Activity(); in setUp()
33 activity = new Activity(); in whileApplicationStaysSame_shouldRememberOldSettings()
44 activity = new Activity(); in whenApplicationChanges_shouldStartWithNewSettings()
DActivityGroupTest.java3 import android.app.Activity;
19 Activity activity = new Activity(); in getCurrentActivity_shouldReturnTheProvidedCurrentActivity()
DNotificationTest.java3 import android.app.Activity;
18 PendingIntent pendingIntent = PendingIntent.getActivity(new Activity(), 0, new Intent(), 0); in setLatestEventInfo__shouldCaptureContentIntent()
20 notification.setLatestEventInfo(new Activity(), "title", "content", pendingIntent); in setLatestEventInfo__shouldCaptureContentIntent()
/external/droiddriver/src/io/appium/droiddriver/runner/
DTestRunner.java19 import android.app.Activity;
49 private final Set<Activity> activities = new HashSet<Activity>();
51 private volatile Activity runningActivity;
85 final Activity[] activitiesCopy; in onStart()
90 activitiesCopy = activities.toArray(new Activity[activities.size()]); in onStart()
97 for (Activity activity : activitiesCopy) { in onStart()
130 ActivityUtils.setRunningActivitySupplier(new Supplier<Activity>() { in onStart()
132 public Activity get() { in onStart()
175 public void callActivityOnDestroy(Activity activity) { in callActivityOnDestroy()
183 public void callActivityOnCreate(Activity activity, Bundle bundle) { in callActivityOnCreate()
[all …]
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/
DActivityFlinger.java19 import android.app.Activity;
46 Class<? extends Activity> mLeft;
47 Class<? extends Activity> mRight;
49 public ActivityTransition(Class<? extends Activity> left, Class<? extends Activity> right) { in ActivityTransition()
63 List<Class<? extends Activity>> entries = new ArrayList<Class<? extends Activity>>();
69 Class<? extends Activity> left = null;
70 Class<? extends Activity> current = null;
71 Class<? extends Activity> right = null;
73 for (Iterator<Class<? extends Activity>> it = entries.iterator(); it.hasNext()
/external/droiddriver/droiddriver-android_support_test/src/io/appium/droiddriver/android_support_test/
DD2AndroidJUnitRunner.java19 import android.app.Activity;
39 private static final Callable<Activity> GET_RUNNING_ACTIVITY = new Callable<Activity>() {
41 public Activity call() {
42 Iterator<Activity> activityIterator = ActivityLifecycleMonitorRegistry.getInstance()
63 ActivityUtils.setRunningActivitySupplier(new ActivityUtils.Supplier<Activity>() { in onStart()
65 public Activity get() { in onStart()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/
DStartedMatcher.java3 import android.app.Activity;
22 public StartedMatcher(String packageName, Class<? extends Activity> expectedActivityClass) { in StartedMatcher()
26 public StartedMatcher(Class<? extends Activity> expectedActivityClass) { in StartedMatcher()
30 public StartedMatcher(Class<? extends Activity> expectedActivityClass, String expectedAction) { in StartedMatcher()
67 …public static Intent createIntent(Class<? extends Activity> activityClass, String extraKey, String… in createIntent()
73 public static Intent createIntent(Class<? extends Activity> activityClass, String action) { in createIntent()
79 public static Intent createIntent(Class<? extends Activity> activityClass) { in createIntent()
84 public static Intent createIntent(String packageName, Class<? extends Activity> activityClass) { in createIntent()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowNfcAdapter.java3 import android.app.Activity;
18 private Activity enabledActivity;
22 private Activity disabledActivity;
42 …public void enableForegroundDispatch(Activity activity, PendingIntent intent, IntentFilter[] filte… in enableForegroundDispatch()
50 public void disableForegroundDispatch(Activity activity) { in disableForegroundDispatch()
54 public Activity getEnabledActivity() { in getEnabledActivity()
70 public Activity getDisabledActivity() { in getDisabledActivity()
DShadowActivityGroup.java3 import android.app.Activity;
10 private Activity currentActivity;
13 public android.app.Activity getCurrentActivity() { in getCurrentActivity()
22 public void setCurrentActivity(Activity activity) { in setCurrentActivity()
DShadowTabHost.java4 import android.app.Activity;
96 if (getContext() instanceof Activity) { in getCurrentView()
97 v = ((Activity) getContext()).findViewById(viewId); in getCurrentView()
107 if (context instanceof Activity) { in getTabWidget()
108 return (TabWidget) ((Activity)context).findViewById(R.id.tabs); in getTabWidget()
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/
DActivityModule.java18 import android.app.Activity;
27 private final Activity activity;
29 public ActivityModule(Activity activity) { in ActivityModule()
36 @Provides @PerActivity Activity activity() { in activity()
/external/tcpdump/tests/
Dlacp-ev.out4 State Flags [Activity, Aggregation, Expired]
14 State Flags [Activity, Aggregation, Expired]
24 State Flags [Activity, Aggregation, Expired]
34 State Flags [Activity, Aggregation, Synchronization, Default]
44 State Flags [Activity, Aggregation, Synchronization, Collecting, Distributing, Default]
54 State Flags [Activity, Aggregation, Synchronization, Collecting, Distributing, Default]
64 State Flags [Activity, Aggregation, Synchronization, Collecting, Distributing, Default]
74 State Flags [Activity, Aggregation, Synchronization, Collecting, Distributing, Default]
87 State Flags [Activity, Aggregation, Collecting, Distributing, Default]
94 State Flags [Activity, Aggregation, Synchronization, Default]
[all …]
/external/droiddriver/src/io/appium/droiddriver/util/
DActivityUtils.java19 import android.app.Activity;
38 private static Supplier<Activity> runningActivitySupplier;
46 public static synchronized void setRunningActivitySupplier(Supplier<Activity> activitySupplier) { in setRunningActivitySupplier()
56 public static synchronized Activity getRunningActivity() { in getRunningActivity()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/
DRobolectricTest.java3 import android.app.Activity;
145 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.0f)); in shouldUseSetDensityForContexts()
147 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.5f)); in shouldUseSetDensityForContexts()
152 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(480)); in shouldUseSetDisplayForContexts()
153 assertThat(new Activity().getResources().getDisplayMetrics().heightPixels, equalTo(800)); in shouldUseSetDisplayForContexts()
161 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(100)); in shouldUseSetDisplayForContexts()
162 assertThat(new Activity().getResources().getDisplayMetrics().heightPixels, equalTo(200)); in shouldUseSetDisplayForContexts()
/external/sl4a/Common/src/com/googlecode/android_scripting/future/
DFutureActivityTask.java19 import android.app.Activity;
37 private Activity mActivity;
39 public void setActivity(Activity activity) { in setActivity()
43 public Activity getActivity() { in getActivity()
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/ui/
DActivityTitleController.java18 import android.app.Activity;
32 private final Activity activity;
34 @Inject public ActivityTitleController(Activity activity) { in ActivityTitleController()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/
DFinishListener.java19 import android.app.Activity;
30 private final Activity activityToFinish;
32 public FinishListener(Activity activityToFinish) { in FinishListener()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DCustomizeWindow.java19 import android.app.Activity;
33 …public static void requestCustomTitle(Activity activity, String title, int contentViewLayoutResId)… in requestCustomTitle()
43 public static void toggleProgressBarVisibility(Activity activity, boolean on) { in toggleProgressBarVisibility()

123456789