Home
last modified time | relevance | path

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

123456789

/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.java7 import android.app.Activity;
60 private static Activity sActivity;
68 private static final Map<Activity, ActivityInfo> sActivityInfo =
69 new ConcurrentHashMap<Activity, ActivityInfo>();
104 public void onActivityStateChange(Activity activity, int newState); in onActivityStateChange()
118 public void onWindowFocusChanged(Activity activity, boolean hasFocus) { in initialize()
133 public void onActivityCreated(final Activity activity, Bundle savedInstanceState) { in initialize()
138 public void onActivityDestroyed(Activity activity) { in initialize()
143 public void onActivityPaused(Activity activity) { in initialize()
148 public void onActivityResumed(Activity activity) { in initialize()
[all …]
DBaseChromiumApplication.java7 import android.app.Activity;
57 public void onWindowFocusChanged(Activity activity, boolean hasFocus); in onWindowFocusChanged()
72 private final Activity mActivity;
74 public WindowCallbackProxy(Activity activity, Window.Callback callback) { in WindowCallbackProxy()
152 public void onActivityCreated(final Activity activity, Bundle savedInstanceState) { in startTrackingApplicationStatus()
160 public void onActivityDestroyed(Activity activity) { in startTrackingApplicationStatus()
171 public void onActivityPaused(Activity activity) { in startTrackingApplicationStatus()
182 public void onActivityResumed(Activity activity) { in startTrackingApplicationStatus()
193 public void onActivitySaveInstanceState(Activity activity, Bundle outState) { in startTrackingApplicationStatus()
204 public void onActivityStarted(Activity activity) { in startTrackingApplicationStatus()
[all …]
DMemoryPressureListener.java7 import android.app.Activity;
73 public static boolean handleDebugIntent(Activity activity, String action) { in handleDebugIntent()
101 private static void simulateLowMemoryPressureSignal(Activity activity) { in simulateLowMemoryPressureSignal()
109 private static void simulateTrimMemoryPressureSignal(Activity activity, int level) { in simulateTrimMemoryPressureSignal()
/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()
/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/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/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;
36 private Activity mActivity;
38 public void setActivity(Activity activity) { in setActivity()
42 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/libmojo/base/android/junit/src/org/chromium/base/
DBaseChromiumApplicationTest.java10 import android.app.Activity;
35 @Implements(Activity.class)
60 ActivityController<Activity> controller = in testWindowsFocusChanged()
61 Robolectric.buildActivity(Activity.class).create().start().visible(); in testWindowsFocusChanged()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DCustomizeWindow.java19 import android.app.Activity;
30 …public static void requestCustomTitle(Activity activity, String title, int contentViewLayoutResId)… in requestCustomTitle()
40 public static void toggleProgressBarVisibility(Activity activity, boolean on) { in toggleProgressBarVisibility()

123456789