Home
last modified time | relevance | path

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

12345678910>>...12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowActivityTest.java22 import android.app.Activity;
67 private Activity activity;
90 public static final class LabelTestActivity1 extends Activity {}
91 public static final class LabelTestActivity2 extends Activity {}
92 public static final class LabelTestActivity3 extends Activity {}
127 Activity activity = new Activity() { in startActivity_shouldDelegateToStartActivityForResult()
134 shadowOf(activity).receiveResult(new Intent().setType("image/*"), Activity.RESULT_OK, in startActivity_shouldDelegateToStartActivityForResult()
166 Activity activity = new Activity() { in startActivityForResultAndReceiveResult_shouldSendResponsesBackToActivity()
175 shadowOf(activity).receiveResult(new Intent().setType("image/*"), Activity.RESULT_OK, in startActivityForResultAndReceiveResult_shouldSendResponsesBackToActivity()
182 Activity activity = new Activity() { in startActivityForResultAndReceiveResult_whenNoIntentMatches_shouldThrowException()
[all …]
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()
110 public static class TestActivity extends Activity {
/external/droiddriver/src/io/appium/droiddriver/util/
DActivityUtils.java19 import android.app.Activity;
29 private static final Callable<Activity> GET_RUNNING_ACTIVITY =
30 new Callable<Activity>() {
32 public Activity call() {
33 Iterator<Activity> activityIterator =
40 private static Supplier<Activity> runningActivitySupplier =
41 new Supplier<Activity>() {
43 public Activity get() {
63 public static synchronized void setRunningActivitySupplier(Supplier<Activity> activitySupplier) { in setRunningActivitySupplier()
68 public static Activity getRunningActivity() { in getRunningActivity()
[all …]
/external/libmojo/base/android/java/src/org/chromium/base/
DApplicationStatus.java8 import android.app.Activity;
65 private static Activity sActivity;
73 private static final Map<Activity, ActivityInfo> sActivityInfo =
74 new ConcurrentHashMap<Activity, ActivityInfo>();
109 public void onActivityStateChange(Activity activity, @ActivityStateEnum int newState); in onActivityStateChange()
123 public void onWindowFocusChanged(Activity activity, boolean hasFocus) { in initialize()
138 public void onActivityCreated(final Activity activity, Bundle savedInstanceState) { in initialize()
143 public void onActivityDestroyed(Activity activity) { in initialize()
148 public void onActivityPaused(Activity activity) { in initialize()
153 public void onActivityResumed(Activity activity) { in initialize()
[all …]
DBaseChromiumApplication.java7 import android.app.Activity;
59 public void onWindowFocusChanged(Activity activity, boolean hasFocus); in onWindowFocusChanged()
74 private final Activity mActivity;
76 public WindowCallbackProxy(Activity activity, Window.Callback callback) { in WindowCallbackProxy()
166 public void onActivityCreated(final Activity activity, Bundle savedInstanceState) { in startTrackingApplicationStatus()
174 public void onActivityDestroyed(Activity activity) { in startTrackingApplicationStatus()
185 public void onActivityPaused(Activity activity) { in startTrackingApplicationStatus()
196 public void onActivityResumed(Activity activity) { in startTrackingApplicationStatus()
207 public void onActivitySaveInstanceState(Activity activity, Bundle outState) { in startTrackingApplicationStatus()
218 public void onActivityStarted(Activity activity) { in startTrackingApplicationStatus()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/
DActivityController.java9 import android.app.Activity;
23 public class ActivityController<T extends Activity> extends ComponentController<ActivityController<…
25 public static <T extends Activity> ActivityController<T> of(T activity, Intent intent) { in of()
29 public static <T extends Activity> ActivityController<T> of(T activity) { in of()
59 …ReflectionHelpers.callInstanceMethod(Activity.class, component, "performCreate", from(Bundle.class… in create()
247 ReflectionHelpers.callInstanceMethod(Activity.class, component, "onConfigurationChanged", in configurationChange()
261 ReflectionHelpers.setField(Activity.class, component, "mChangingConfigurations", true); in configurationChange()
262 ReflectionHelpers.setField(Activity.class, component, "mConfigChangeFlags", changedBits); in configurationChange()
269 ReflectionHelpers.callInstanceMethod(Activity.class, component, "performPause"); in configurationChange()
271 Activity.class, in configurationChange()
[all …]
DFragmentController.java3 import android.app.Activity;
16 private final ActivityController<? extends Activity> activityController;
22 …public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> … in of()
39 …public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> … in of()
43 …public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> … in of()
47 …public static <F extends Fragment> FragmentController<F> of(F fragment, Class<? extends Activity> … in of()
52 private FragmentController(F fragment, Class<? extends Activity> activityClass, Intent intent) { in FragmentController()
56 …private FragmentController(F fragment, Class<? extends Activity> activityClass, Bundle arguments) { in FragmentController()
60 private FragmentController(F fragment, Class<? extends Activity> activityClass, in FragmentController()
166 private static class FragmentControllerActivity extends Activity {
/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()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNfcAdapter.java3 import android.app.Activity;
17 private Activity enabledActivity;
21 private Activity disabledActivity;
30 …public void enableForegroundDispatch(Activity activity, PendingIntent intent, IntentFilter[] filte… in enableForegroundDispatch()
38 public void disableForegroundDispatch(Activity activity) { in disableForegroundDispatch()
43 …MessageCallback(NfcAdapter.CreateNdefMessageCallback callback, Activity activity, Activity... acti… in setNdefPushMessageCallback()
56 public Activity getEnabledActivity() { in getEnabledActivity()
72 public Activity getDisabledActivity() { in getDisabledActivity()
DShadowActivity.java10 import android.app.Activity;
51 @Implements(Activity.class)
55 protected Activity realActivity;
59 private Activity parent;
71 private int mDefaultKeyMode = Activity.DEFAULT_KEYS_DISABLE;
80 invokeConstructor(Activity.class, realActivity); in __constructor__()
103 ReflectionHelpers.callInstanceMethod(Activity.class, realActivity, "attach", in callAttach()
113 ReflectionHelpers.ClassParameter.from(Activity.class, null), in callAttach()
118 ReflectionHelpers.callInstanceMethod(Activity.class, realActivity, "attach", in callAttach()
128 ReflectionHelpers.ClassParameter.from(Activity.class, null), in callAttach()
[all …]
DShadowActivityGroup.java3 import android.app.Activity;
10 private Activity currentActivity;
13 public android.app.Activity getCurrentActivity() { in getCurrentActivity()
20 public void setCurrentActivity(Activity activity) { in setCurrentActivity()
/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/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()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/fakes/
DRoboInstrumentation.java3 import android.app.Activity;
34 public Activity startActivitySync(final Intent intent) { in startActivitySync()
37 Class<? extends Activity> activityClass = Class.forName(ai.name).asSubclass(Activity.class); in startActivitySync()
38 ActivityController<? extends Activity> controller = Robolectric.buildActivity(activityClass); in startActivitySync()
39 Activity activity = controller.get(); in startActivitySync()
/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()
611 OwningProcess::kExpectedInstanceSize + Activity::kExpectedInstanceSize +
652 Activity last_exception;
668 Activity::Type type, in ScopedActivity()
681 Activity::Type type, in ChangeTypeAndData()
689 stack_(reinterpret_cast<Activity*>(reinterpret_cast<char*>(base) + in ThreadActivityTracker()
692 static_cast<uint32_t>((size - sizeof(Header)) / sizeof(Activity))) { in ThreadActivityTracker()
700 size < sizeof(Header) + kMinStackDepth * sizeof(Activity) || in ThreadActivityTracker()
702 (size - sizeof(Header)) / sizeof(Activity) > in ThreadActivityTracker()
717 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/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()

12345678910>>...12