Home
last modified time | relevance | path

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

1234567891011

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowActivityTest.java23 import android.app.Activity;
68 private Activity activity;
93 ActivityController<Activity> controller = Robolectric.buildActivity(Activity.class); in createActivity_noDisplayFinished_shouldFinishActivity()
107 ActivityController<Activity> controller = Robolectric.buildActivity(Activity.class); in createActivity_noDisplayNotFinished_shouldThrowIllegalStateException()
119 public static final class LabelTestActivity1 extends Activity {}
120 public static final class LabelTestActivity2 extends Activity {}
121 public static final class LabelTestActivity3 extends Activity {}
160 shadowOf(activity).receiveResult(new Intent().setType("image/*"), Activity.RESULT_OK, in startActivity_shouldDelegateToStartActivityForResult()
167 public static class TranscriptActivity extends Activity {
212 shadowOf(activity).receiveResult(new Intent().setType("image/*"), Activity.RESULT_OK, in startActivityForResultAndReceiveResult_shouldSendResponsesBackToActivity()
[all …]
DShadowNfcAdapterTest.java7 import android.app.Activity;
35 final Activity activity = Robolectric.setupActivity(Activity.class); in setNdefPushMesageCallback_shouldUseCallback()
46 final Activity activity = Robolectric.setupActivity(Activity.class); in setOnNdefPushCompleteCallback_shouldUseCallback()
57 final Activity activity = Robolectric.setupActivity(Activity.class); in setOnNdefPushCompleteCallback_throwsOnNullActivity()
58 final Activity nullActivity = null; in setOnNdefPushCompleteCallback_throwsOnNullActivity()
70 final Activity activity = Robolectric.setupActivity(Activity.class); in setOnNdefPushCompleteCallback_throwsOnNullInActivities()
71 final Activity nullActivity = null; in setOnNdefPushCompleteCallback_throwsOnNullInActivities()
114 final Activity activity = Robolectric.setupActivity(Activity.class); in setNdefPushMessage_setsNullMessage()
124 final Activity activity = Robolectric.setupActivity(Activity.class); in setNdefPushMessage_setsNonNullMessage()
136 final Activity activity = Robolectric.setupActivity(Activity.class); in getNdefPushMessage_messageNotSet_throwsIllegalStateException()
DShadowTest.java6 import android.app.Activity;
25 assertThat(Shadow.newInstanceOf(Activity.class.getName()).getClass().getClassLoader()) in newInstanceOf()
31 Activity activity = new Activity(); in extractor()
37 Activity activity = new Activity(); in otherDeprecated_extractor()
DShadowWindowTest.java9 import android.app.Activity;
28 Activity activity = Robolectric.buildActivity(Activity.class).create().get(); in getFlag_shouldReturnWindowFlags()
40 Activity activity = Robolectric.buildActivity(Activity.class).create().get(); in getTitle_shouldReturnWindowTitle()
48 Activity activity = Robolectric.buildActivity(Activity.class).create().get(); in getBackgroundDrawable_returnsSetDrawable()
71 Activity activity = Robolectric.buildActivity(TestActivity.class).create().get(); in getProgressBar_returnsTheProgressBar()
112 public static class TestActivity extends Activity {
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNfcAdapter.java3 import android.app.Activity;
20 private Activity enabledActivity;
24 private Activity disabledActivity;
40 Activity activity, PendingIntent intent, IntentFilter[] filters, String[][] techLists) { in enableForegroundDispatch()
48 protected void disableForegroundDispatch(Activity activity) { in disableForegroundDispatch()
58 NdefMessage message, Activity activity, Activity... activities) { in setNdefPushMessage()
62 for (Activity a : activities) { in setNdefPushMessage()
73 NfcAdapter.CreateNdefMessageCallback callback, Activity activity, Activity... activities) { in setNdefPushMessageCallback()
85 NfcAdapter.OnNdefPushCompleteCallback callback, Activity activity, Activity... activities) { in setOnNdefPushCompleteCallback()
89 for (Activity a : activities) { in setOnNdefPushCompleteCallback()
[all …]
DShadowActivity.java9 import android.app.Activity;
51 @Implements(Activity.class)
55 protected Activity realActivity;
59 private Activity parent;
68 private int mDefaultKeyMode = Activity.DEFAULT_KEYS_DISABLE;
100 Activity.class, in callAttach()
113 ReflectionHelpers.ClassParameter.from(Activity.class, null), in callAttach()
120 Activity.class, in callAttach()
133 ReflectionHelpers.ClassParameter.from(Activity.class, null), in callAttach()
141 Activity.class, in callAttach()
[all …]
DShadowActivityGroup.java3 import android.app.Activity;
10 private Activity currentActivity;
13 protected android.app.Activity getCurrentActivity() { in getCurrentActivity()
20 public void setCurrentActivity(Activity activity) { in setCurrentActivity()
/external/droiddriver/src/io/appium/droiddriver/util/
DActivityUtils.java19 import android.app.Activity;
31 private static final Callable<Activity> GET_RUNNING_ACTIVITY =
32 new Callable<Activity>() {
34 public Activity call() {
35 Iterator<Activity> activityIterator =
42 private static Supplier<Activity> runningActivitySupplier =
43 new Supplier<Activity>() {
45 public Activity get() {
65 public static synchronized void setRunningActivitySupplier(Supplier<Activity> activitySupplier) { in setRunningActivitySupplier()
70 public static Activity getRunningActivity() { in getRunningActivity()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/
DActivityController.java9 import android.app.Activity;
28 public class ActivityController<T extends Activity> extends ComponentController<ActivityController<…
30 public static <T extends Activity> ActivityController<T> of(T activity, Intent intent) { in of()
34 public static <T extends Activity> ActivityController<T> of(T activity) { in of()
271 ReflectionHelpers.callInstanceMethod(Activity.class, component, "onConfigurationChanged", in configurationChange()
287 Activity.class, component, "mChangingConfigurations", true); in configurationChange()
289 Activity.class, component, "mConfigChangeFlags", changedBits); in configurationChange()
296 ReflectionHelpers.callInstanceMethod(Activity.class, component, "performPause"); in configurationChange()
298 Activity.class, in configurationChange()
303 ReflectionHelpers.callInstanceMethod(Activity.class, component, "performStop"); in configurationChange()
[all …]
DFragmentController.java3 import android.app.Activity;
15 private final ActivityController<? extends Activity> activityController;
21 …public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> … in of()
38 …public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> … in of()
42 …public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> … in of()
46 …public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> … in of()
51 private FragmentController(F fragment, Class<? extends Activity> activityClass, Intent intent) { in FragmentController()
55 …private FragmentController(F fragment, Class<? extends Activity> activityClass, Bundle arguments) { in FragmentController()
59 private FragmentController(F fragment, Class<? extends Activity> activityClass, in FragmentController()
165 private static class FragmentControllerActivity extends Activity {
/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/robolectric-shadows/shadows/playservices/src/main/java/org/robolectric/shadows/gms/
DShadowGooglePlayServicesUtil.java3 import android.app.Activity;
56 public static synchronized boolean showErrorDialogFragment(int errorCode, Activity activity, in showErrorDialogFragment()
63 public static synchronized boolean showErrorDialogFragment(int errorCode, Activity activity, in showErrorDialogFragment()
71 int errorCode, Activity activity, int requestCode, OnCancelListener cancelListener) { in showErrorDialogFragment()
77 public static synchronized Dialog getErrorDialog(int errorCode, Activity activity, in getErrorDialog()
83 public static synchronized Dialog getErrorDialog(int errorCode, Activity activity, in getErrorDialog()
115 public Dialog getErrorDialog(int errorCode, Activity activity, int requestCode) { in getErrorDialog()
119 public Dialog getErrorDialog(int errorCode, Activity activity, int requestCode, in getErrorDialog()
152 public boolean showErrorDialogFragment(int errorCode, Activity activity, in showErrorDialogFragment()
157 public boolean showErrorDialogFragment(int errorCode, Activity activity, int requestCode) { in showErrorDialogFragment()
[all …]
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DLocalActivityInvoker.java8 import android.app.Activity;
30 @Nullable private ActivityController<? extends Activity> controller;
36 Class<? extends Activity> activityClass = Class.forName(ai.name).asSubclass(Activity.class); in startActivity()
60 public void resumeActivity(Activity activity) { in resumeActivity()
81 public void pauseActivity(Activity activity) { in pauseActivity()
98 public void stopActivity(Activity activity) { in stopActivity()
119 public void recreateActivity(Activity activity) { in recreateActivity()
134 Activity recreatedActivity = controller.get(); in recreateActivity()
165 public void finishActivity(Activity activity) { in finishActivity()
190 public Intent getIntentForActivity(Class<? extends Activity> activityClass) { in getIntentForActivity()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/util/
DFragmentTestUtil.java3 import android.app.Activity;
22 public static void startFragment(Fragment fragment, Class<? extends Activity> activityClass) { in startFragment()
33 Class<? extends Activity> activityClass, int containerViewId) { in startVisibleFragment()
38 private static FragmentManager buildFragmentManager(Class<? extends Activity> activityClass) { in buildFragmentManager()
39 Activity activity = Robolectric.setupActivity(activityClass); in buildFragmentManager()
43 private static class FragmentUtilActivity extends Activity {
/external/libchrome/base/debug/
Dactivity_tracker.cc253 void Activity::FillFrom(Activity* activity, in FillFrom()
612 OwningProcess::kExpectedInstanceSize + Activity::kExpectedInstanceSize +
651 Activity last_exception;
667 Activity::Type type, in ScopedActivity()
680 Activity::Type type, in ChangeTypeAndData()
688 stack_(reinterpret_cast<Activity*>(reinterpret_cast<char*>(base) + in ThreadActivityTracker()
694 static_cast<uint32_t>((size - sizeof(Header)) / sizeof(Activity))) { in ThreadActivityTracker()
701 size < sizeof(Header) + kMinStackDepth * sizeof(Activity) || in ThreadActivityTracker()
703 (size - sizeof(Header)) / sizeof(Activity) > in ThreadActivityTracker()
718 static_assert(offsetof(Activity, data) % sizeof(uint64_t) == 0, in ThreadActivityTracker()
[all …]
/external/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/
DSnackbarHelper.java19 import android.app.Activity;
43 public void showMessage(Activity activity, String message) { in showMessage()
50 public void showMessageWithDismiss(Activity activity, String message) { in showMessageWithDismiss()
58 public void showError(Activity activity, String errorMessage) { in showError()
66 public void hide(Activity activity) { in hide()
80 final Activity activity, final String message, final DismissBehavior dismissBehavior) { in show()
DCameraPermissionHelper.java20 import android.app.Activity;
38 public static boolean hasCameraPermission(Activity activity) { in hasCameraPermission()
46 public static void requestCameraPermission(Activity activity) { in requestCameraPermission()
54 public static boolean shouldShowRequestPermissionRationale(Activity activity) { in shouldShowRequestPermissionRationale()
61 public static void launchPermissionSettings(Activity activity) { in launchPermissionSettings()
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/
DSnackbarHelper.java19 import android.app.Activity;
43 public void showMessage(Activity activity, String message) { in showMessage()
50 public void showMessageWithDismiss(Activity activity, String message) { in showMessageWithDismiss()
58 public void showError(Activity activity, String errorMessage) { in showError()
66 public void hide(Activity activity) { in hide()
80 final Activity activity, final String message, final DismissBehavior dismissBehavior) { in show()
DCameraPermissionHelper.java20 import android.app.Activity;
38 public static boolean hasCameraPermission(Activity activity) { in hasCameraPermission()
46 public static void requestCameraPermission(Activity activity) { in requestCameraPermission()
54 public static boolean shouldShowRequestPermissionRationale(Activity activity) { in shouldShowRequestPermissionRationale()
61 public static void launchPermissionSettings(Activity activity) { in launchPermissionSettings()
/external/skia/platform_tools/android/apps/arcore/src/main/java/org/skia/arcore/
DCameraPermissionHelper.java18 import android.app.Activity;
36 public static boolean hasCameraPermission(Activity activity) { in hasCameraPermission()
44 public static void requestCameraPermission(Activity activity) { in requestCameraPermission()
52 public static boolean shouldShowRequestPermissionRationale(Activity activity) { in shouldShowRequestPermissionRationale()
59 public static void launchPermissionSettings(Activity activity) { in launchPermissionSettings()
/external/skqp/platform_tools/android/apps/arcore/src/main/java/org/skia/arcore/
DCameraPermissionHelper.java18 import android.app.Activity;
36 public static boolean hasCameraPermission(Activity activity) { in hasCameraPermission()
44 public static void requestCameraPermission(Activity activity) { in requestCameraPermission()
52 public static boolean shouldShowRequestPermissionRationale(Activity activity) { in shouldShowRequestPermissionRationale()
59 public static void launchPermissionSettings(Activity activity) { in launchPermissionSettings()
/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/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/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/fakes/
DRoboMonitoringInstrumentation.java6 import android.app.Activity;
41 public Activity startActivitySync(final Intent intent) { in startActivitySync()
44 Class<? extends Activity> activityClass = Class.forName(ai.name).asSubclass(Activity.class); in startActivitySync()
69 Activity target, in execStartActivity()
88 Activity target, in execStartActivity()
127 Activity target, in execStartActivity()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DRobolectric.java6 import android.app.Activity;
67 public static <T extends Activity> ActivityController<T> buildActivity(Class<T> activityClass) { in buildActivity()
71 …public static <T extends Activity> ActivityController<T> buildActivity(Class<T> activityClass, Int… in buildActivity()
75 public static <T extends Activity> T setupActivity(Class<T> activityClass) { in setupActivity()
89 … Class<? extends Activity> activityClass) { in buildFragment()
104 … Class<? extends Activity> activityClass, in buildFragment()
110 … Class<? extends Activity> activityClass, in buildFragment()
116 … Class<? extends Activity> activityClass, in buildFragment()

1234567891011