HomeSort by relevance Sort by last modified time
    Searched refs:activity (Results 201 - 225 of 1098) sorted by null

1 2 3 4 5 6 7 891011>>

  /frameworks/support/v7/appcompat/src/android/support/v7/app/
ActionBarDrawerToggle.java 18 import android.app.Activity;
40 * <p>To use <code>ActionBarDrawerToggle</code>, create one in your Activity and call through
41 * to the following methods corresponding to your Activity callbacks:</p>
44 * <li>{@link android.app.Activity#onConfigurationChanged(android.content.res.Configuration)
46 * <li>{@link android.app.Activity#onOptionsItemSelected(android.view.MenuItem)
50 * <p>Call {@link #syncState()} from your <code>Activity</code>'s
51 * {@link android.app.Activity#onPostCreate(android.os.Bundle) onPostCreate} to synchronize the
67 * Allows an implementing Activity to return an {@link ActionBarDrawerToggle.Delegate} to use
73 * @return Delegate to use for ActionBarDrawableToggles, or null if the Activity
132 * <p>The given {@link Activity} will be linked to the specified {@link DrawerLayout} an
    [all...]
  /development/samples/training/basic/FragmentBasics/src/com/example/fragments/
HeadlinesFragment.java 18 import android.app.Activity;
28 // The container Activity must implement this interface so the frag can deliver messages
58 public void onAttach(Activity activity) {
59 super.onAttach(activity);
61 // This makes sure that the container activity has implemented
64 mCallback = (OnHeadlineSelectedListener) activity;
66 throw new ClassCastException(activity.toString()
73 // Notify the parent activity of selected item
  /device/google/accessory/demokit/app/src/com/google/android/DemoKit/
DemoKitLaunch.java 3 import android.app.Activity;
10 public class DemoKitLaunch extends Activity {
13 static Intent createIntent(Activity activity) {
14 Display display = activity.getWindowManager().getDefaultDisplay();
20 intent = new Intent(activity, DemoKitTablet.class);
23 intent = new Intent(activity, DemoKitPhone.class);
39 Log.e(TAG, "unable to start DemoKit activity", e);
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/signin/
AndroidProfileOAuth2TokenServiceHelper.java 8 import android.app.Activity;
29 public static void getOAuth2AccessToken(Context context, @Nullable Activity activity,
31 OAuth2TokenService.getOAuth2AccessToken(context, activity, account, scope, callback);
47 @Nullable Activity activity, Account account, String scope,
50 context, activity, account, scope, timeout, unit);
  /external/droiddriver/src/com/google/android/droiddriver/runner/
TestRunner.java 19 import android.app.Activity;
46 * Adds activity watcher to InstrumentationTestRunner.
49 private final Set<Activity> activities = new HashSet<Activity>();
51 private volatile Activity runningActivity;
74 // Try to finish activity on best-effort basis - TestListener should
76 final Activity[] activitiesCopy;
81 activitiesCopy = activities.toArray(new Activity[activities.size()]);
87 for (Activity activity : activitiesCopy)
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowNfcAdapter.java 3 import android.app.Activity;
18 private Activity enabledActivity;
22 private Activity disabledActivity;
42 public void enableForegroundDispatch(Activity activity, PendingIntent intent, IntentFilter[] filters, String[][] techLists) {
43 this.enabledActivity = activity;
50 public void disableForegroundDispatch(Activity activity) {
51 disabledActivity = activity;
54 public Activity getEnabledActivity()
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ContextWrapperTest.java 3 import android.app.Activity;
37 contextWrapper = new ContextWrapper(new Activity());
114 Activity activity = new Activity(); local
115 assertThat(activity.getApplication(), sameInstance(activity.getApplication()));
117 assertThat(activity.getApplication(), sameInstance(new Activity().getApplication()));
122 Activity activity = new Activity() local
130 Activity activity = new Activity(); local
172 Activity activity = new Activity(); local
    [all...]
KeyguardManagerTest.java 3 import android.app.Activity;
21 Activity activity = new Activity(); local
22 KeyguardManager mgr = ( KeyguardManager ) activity.getSystemService( KEYGUARD_SERVICE );
31 Activity activity = new Activity(); local
32 KeyguardManager mgr = ( KeyguardManager ) activity.getSystemService( KEYGUARD_SERVICE );
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/view/
TestMenuTest.java 14 import android.app.Activity;
40 MyActivity activity = new MyActivity(); local
42 TestMenu testMenu = new TestMenu(activity);
48 Intent intent = new Intent(activity, MyActivity.class);
54 ShadowActivity shadowActivity = Robolectric.shadowOf(activity);
59 private static class MyActivity extends Activity {
  /frameworks/base/core/java/android/hardware/location/
ActivityRecognitionEvent.java 23 * A class that represents an Activity Recognition Event.
32 public ActivityRecognitionEvent(String activity, int eventType, long timestampNs) {
33 mActivity = activity;
54 String activity = source.readString();
58 return new ActivityRecognitionEvent(activity, eventType, timestampNs);
82 "Activity='%s', EventType=%s, TimestampNs=%s",
  /frameworks/base/core/tests/coretests/src/android/app/activity/
LocalActivity.java 17 package android.app.activity;
21 import android.app.Activity;
LocalDialog.java 17 package android.app.activity;
21 import android.app.Activity;
LocalScreen.java 17 package android.app.activity;
21 import android.app.Activity;
  /frameworks/base/core/tests/coretests/src/android/widget/layout/table/
FixedWidthTest.java 43 final FixedWidth activity = getActivity(); local
44 mFixedWidth = activity.findViewById(R.id.fixed_width);
45 mNonFixedWidth = activity.findViewById(R.id.non_fixed_width);
46 mFixedHeight = activity.findViewById(R.id.fixed_height);
  /frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
SpamActivity.java 17 package com.google.android.test.activity;
19 import android.app.Activity;
22 public class SpamActivity extends Activity {
  /frameworks/support/v4/api21/android/support/v4/app/
ActivityOptionsCompat21.java 20 import android.app.Activity;
29 public static ActivityOptionsCompat21 makeSceneTransitionAnimation(Activity activity,
32 ActivityOptions.makeSceneTransitionAnimation(activity, sharedElement,
36 public static ActivityOptionsCompat21 makeSceneTransitionAnimation(Activity activity,
46 ActivityOptions.makeSceneTransitionAnimation(activity, pairs));
  /frameworks/testing/support/src/android/support/test/runner/lifecycle/
ActivityLifecycleMonitor.java 19 import android.app.Activity;
24 * Interface for tests to use when they need to query the activity lifecycle state.
26 * Activity lifecycle changes occur only on the UI thread - therefore listeners registered with
63 * Returns the current lifecycle stage of a given activity.
73 * callback sees PAUSED and calls this method with the same activity and gets RESUMED.
76 * @param activity an activity in this application.
77 * @return the lifecycle stage this activity is in.
78 * @throws IllegalArgumentException if activity is unknown to the monitor.
79 * @throws NullPointerException if activity is null
    [all...]
  /packages/apps/Camera2/src_pd/com/android/camera/util/
GoogleHelpHelper.java 20 import android.app.Activity;
29 public static void launchGoogleHelp(Activity activity) {
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
TimedMessageWizardFragment.java 21 import android.app.Activity;
27 * Activity to wait a few seconds before returning
57 public void onAttach(Activity activity) {
58 if (activity instanceof Listener) {
59 mListener = (Listener) activity;
61 throw new IllegalArgumentException("Activity must implement "
64 super.onAttach(activity);
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
ConversationListHelper.java 35 final Context context, final ControllableActivity activity, final Account account) {
39 conversationSyncDisabledTipView.bindAccount(account, activity);
44 conversationsInOutboxTipView.bind(account, activity.getFolderSelector());
59 nestedFolderTeaserView.bind(account, activity.getFolderSelector());
  /cts/tests/tests/theme/src/android/theme/cts/
DeviceDefaultTest.java 19 import android.app.Activity;
125 Activity activity = startActivity(themeId); local
126 if (activity.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) {
127 assertNull(activity.getActionBar());
131 assertNotNull(activity.getActionBar());
133 assertNull(activity.getActionBar());
138 Activity activity = startActivity(themeId); local
139 if (isLargeScreen(activity)) {
    [all...]
  /external/chromium_org/chrome/android/shell/javatests/src/org/chromium/chrome/shell/
ChromeShellUrlTest.java 29 ChromeShellActivity activity = launchChromeShellWithUrl(URL); local
32 // Make sure the activity was created as expected.
33 assertNotNull(activity);
40 final ChromeShellActivity activity = launchChromeShellWithUrl(welcomeUrl); local
43 // Make sure the activity was created as expected.
44 assertNotNull(activity);
52 contentViewCore.set(activity.getActiveContentViewCore());
91 final ChromeShellActivity activity = launchChromeShellWithUrl(URL); local
105 activity.getActiveContentViewCore());
  /frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
BaselineButtonsTest.java 19 import android.app.Activity;
44 final Activity activity = getActivity(); local
45 mCurrentTime = activity.findViewById(R.id.currenttime);
46 mTotalTime = activity.findViewById(R.id.totaltime);
47 mPrev = (ImageButton) activity.findViewById(R.id.prev);
48 mNext = (ImageButton) activity.findViewById(R.id.next);
49 mPause = (ImageButton) activity.findViewById(R.id.pause);
50 mLayout = activity.findViewById(R.id.layout);
  /packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/
SendCdmaCmasMessages.java 19 import android.app.Activity;
64 public static void testSendCmasPresAlert(Activity activity, int messageId) {
73 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS");
76 public static void testSendCmasExtremeAlert(Activity activity, int messageId) {
85 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS");
88 public static void testSendCmasSevereAlert(Activity activity, int messageId) {
97 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS")
    [all...]
  /frameworks/base/core/tests/coretests/src/android/view/
ZeroSizedTest.java 46 final ZeroSized activity = getActivity(); local
47 mWithDimension = activity.findViewById(R.id.dimension);
48 mWithNoWdith = activity.findViewById(R.id.noWidth);
49 mWithNoHeight = activity.findViewById(R.id.noHeight);
50 mWithNoDimension = activity.findViewById(R.id.noDimension);

Completed in 584 milliseconds

1 2 3 4 5 6 7 891011>>