Home
last modified time | relevance | path

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

12345678910>>...14

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowActivityTest.java24 import android.app.Activity;
69 private Activity activity;
94 ActivityController<Activity> controller = Robolectric.buildActivity(Activity.class); in createActivity_noDisplayFinished_shouldFinishActivity()
108 ActivityController<Activity> controller = Robolectric.buildActivity(Activity.class); in createActivity_noDisplayNotFinished_shouldThrowIllegalStateException()
120 public static final class LabelTestActivity1 extends Activity {}
121 public static final class LabelTestActivity2 extends Activity {}
122 public static final class LabelTestActivity3 extends Activity {}
161 shadowOf(activity).receiveResult(new Intent().setType("image/*"), Activity.RESULT_OK, in startActivity_shouldDelegateToStartActivityForResult()
168 public static class TranscriptActivity extends Activity {
213 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 {
DShadowAnimationUtilsTest.java6 import android.app.Activity;
20 …assertThat(AnimationUtils.loadAnimation(Robolectric.setupActivity(Activity.class), R.anim.fade_in)… in loadAnimation_shouldCreateAnimation()
25 …assertThat(AnimationUtils.loadLayoutAnimation(Robolectric.setupActivity(Activity.class), 1)).isNot… in loadLayoutAnimation_shouldCreateAnimation()
30 …ler anim = AnimationUtils.loadLayoutAnimation(Robolectric.setupActivity(Activity.class), R.anim.fa… in getLoadedFromResourceId_forAnimationController_shouldReturnAnimationResourceId()
/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;
101 Activity.class, in callAttach()
114 ReflectionHelpers.ClassParameter.from(Activity.class, null), in callAttach()
121 Activity.class, in callAttach()
134 ReflectionHelpers.ClassParameter.from(Activity.class, null), in callAttach()
142 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/libchrome/base/android/java/src/org/chromium/base/
DApplicationStatus.java8 import android.app.Activity;
89 private static Activity sActivity;
99 private static final Map<Activity, ActivityInfo> sActivityInfo = new ConcurrentHashMap<>();
141 void onActivityStateChange(Activity activity, @ActivityState int newState); in onActivityStateChange()
153 public void onWindowFocusChanged(Activity activity, boolean hasFocus); in onWindowFocusChanged()
183 private final Activity mActivity;
185 public WindowCallbackProxy(Activity activity, Window.Callback callback) { in WindowCallbackProxy()
234 public void onWindowFocusChanged(Activity activity, boolean hasFocus) { in initialize()
249 public void onActivityCreated(final Activity activity, Bundle savedInstanceState) { in initialize()
258 public void onActivityDestroyed(Activity activity) { in initialize()
[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;
41 Class<? extends Activity> activityClass = Class.forName(ai.name).asSubclass(Activity.class); in startActivity()
65 public void resumeActivity(Activity activity) { in resumeActivity()
86 public void pauseActivity(Activity activity) { in pauseActivity()
103 public void stopActivity(Activity activity) { in stopActivity()
124 public void recreateActivity(Activity activity) { in recreateActivity()
139 Activity recreatedActivity = controller.get(); in recreateActivity()
170 public void finishActivity(Activity activity) { in finishActivity()
195 public Intent getIntentForActivity(Class<? extends Activity> activityClass) { in getIntentForActivity()
/external/dagger2/javatests/dagger/android/
DDispatchingAndroidInjectorTest.java22 import android.app.Activity;
37 DispatchingAndroidInjector<Activity> dispatchingAndroidInjector = in withClassKeys()
47 DispatchingAndroidInjector<Activity> dispatchingAndroidInjector = in withStringKeys()
58 DispatchingAndroidInjector<Activity> dispatchingAndroidInjector = in withMixedKeys()
71 DispatchingAndroidInjector<Activity> dispatchingAndroidInjector = in maybeInject_returnsFalse_ifNoMatchingInjectorExists()
80 DispatchingAndroidInjector<Activity> dispatchingAndroidInjector = in throwsIfFactoryCreateReturnsNull()
94 DispatchingAndroidInjector<Activity> dispatchingAndroidInjector = in throwsIfClassMismatched()
117 static class FooActivity extends Activity {}
119 static class BarActivity extends Activity {}
DAndroidInjectionTest.java23 import android.app.Activity;
62 Activity activity = Robolectric.setupActivity(Activity.class);
71 public static class ActivityInjectsFragment extends Activity implements HasAndroidInjector {
118 Activity activity = Robolectric.setupActivity(Activity.class);
153 Activity activity = Robolectric.setupActivity(Activity.class);
180 AndroidInjection.inject((Activity) null);
/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/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/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/jackson-databind/src/test/java/com/fasterxml/jackson/databind/objectid/
DTestObjectIdWithPolymorphic.java65 public static abstract class Activity extends Base811 { class in TestObjectIdWithPolymorphic
66 protected Activity parent;
67 public Activity(Process owner, Activity parent) { in Activity() method in TestObjectIdWithPolymorphic.Activity
71 protected Activity() { in Activity() method in TestObjectIdWithPolymorphic.Activity
76 public static class Scope extends Activity {
78 public Scope(Process owner, Activity parent) { in Scope()
97 public Catch(Process owner, Activity parent) { in Catch()
/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/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/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/setupdesign/main/src/com/google/android/setupdesign/transition/
DTransitionHelper.java20 import android.app.Activity;
167 public static void applyForwardTransition(Activity activity) { in applyForwardTransition()
209 public static void applyForwardTransition(Activity activity, @TransitionType int transitionId) { in applyForwardTransition()
269 public static void applyBackwardTransition(Activity activity) { in applyBackwardTransition()
311 public static void applyBackwardTransition(Activity activity, @TransitionType int transitionId) { in applyBackwardTransition()
367 public static void startActivityWithTransition(Activity activity, Intent intent) { in startActivityWithTransition()
380 Activity activity, Intent intent, Bundle overrideActivityOptions) { in startActivityWithTransition()
431 Activity activity, Intent intent, Bundle overrideActivityOptions) { in startActivityWithTransitionInternal()
456 Activity activity, Intent intent, int requestCode) { in startActivityForResultWithTransition()
470 Activity activity, Intent intent, int requestCode, Bundle overrideActivityOptions) { in startActivityForResultWithTransition()
[all …]

12345678910>>...14