Searched refs:activity (Results 51 - 75 of 340) sorted by relevance

1234567891011>>

/frameworks/support/v4/honeycomb/android/support/v4/app/
H A DActionBarDrawerToggleHoneycomb.java48 public static Object setActionBarUpIndicator(Object info, Activity activity, argument
51 info = new SetIndicatorInfo(activity);
56 final ActionBar actionBar = activity.getActionBar();
70 public static Object setActionBarDescription(Object info, Activity activity, argument
73 info = new SetIndicatorInfo(activity);
78 final ActionBar actionBar = activity.getActionBar();
92 public static Drawable getThemeUpIndicator(Activity activity) { argument
93 final TypedArray a = activity.obtainStyledAttributes(THEME_ATTRS);
104 SetIndicatorInfo(Activity activity) { argument
117 final View home = activity
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DActionBarDrawerToggleHoneycomb.java49 public static SetIndicatorInfo setActionBarUpIndicator(SetIndicatorInfo info, Activity activity, argument
52 info = new SetIndicatorInfo(activity);
56 final ActionBar actionBar = activity.getActionBar();
70 public static SetIndicatorInfo setActionBarDescription(SetIndicatorInfo info, Activity activity, argument
73 info = new SetIndicatorInfo(activity);
77 final ActionBar actionBar = activity.getActionBar();
91 public static Drawable getThemeUpIndicator(Activity activity) { argument
92 final TypedArray a = activity.obtainStyledAttributes(THEME_ATTRS);
103 SetIndicatorInfo(Activity activity) { argument
116 final View home = activity
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/
H A DCellSpanTest.java46 final CellSpan activity = getActivity();
47 mA = activity.findViewById(R.id.a);
48 mB = activity.findViewById(R.id.b);
49 mC = activity.findViewById(R.id.c);
50 mSpanThenCell = activity.findViewById(R.id.spanThenCell);
51 mCellThenSpan = activity.findViewById(R.id.cellThenSpan);
52 mSpan = activity.findViewById(R.id.span);
H A DVerticalGravityTest.java48 final VerticalGravity activity = getActivity();
49 mReference1 = activity.findViewById(R.id.reference1);
50 mReference2 = activity.findViewById(R.id.reference2);
51 mReference3 = activity.findViewById(R.id.reference3);
52 mTop = activity.findViewById(R.id.cell_top);
53 mCenter = activity.findViewById(R.id.cell_center);
54 mBottom = activity.findViewById(R.id.cell_bottom);
H A DHorizontalGravityTest.java45 final HorizontalGravity activity = getActivity();
46 mReference = activity.findViewById(R.id.reference);
47 mCenter = activity.findViewById(R.id.center);
48 mBottomRight = activity.findViewById(R.id.bottomRight);
49 mLeft = activity.findViewById(R.id.left);
H A DWeightTest.java44 final Weight activity = getActivity();
45 mCell1 = activity.findViewById(R.id.cell1);
46 mCell3 = activity.findViewById(R.id.cell2);
47 mCell2 = activity.findViewById(R.id.cell3);
48 mRow = activity.findViewById(R.id.row);
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/
H A DPowerMeasurement.java47 PowerTestActivity activity = (PowerTestActivity)mInst.startActivitySync(
49 activity.reset();
51 Handler handler = activity.getHandler();
58 boolean timeoutFlag = activity.waitUntilDone();
61 boolean pageErrorFlag = activity.getPageError();
64 Log.v(LOGTAG, "Page is loaded in " + activity.getPageLoadTime() + " ms.");
84 activity.finish();
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/
H A DVersionDialog.java38 final Activity activity = getActivity();
43 context = activity.createPackageContext(SharedLibraryMain.LIBRARY_PACKAGE, 0);
49 AlertDialog.Builder builder = new AlertDialog.Builder(activity);
52 activity.getApplicationInfo().loadLabel(activity.getPackageManager()),
60 activity.startActivity(new Intent(Intent.ACTION_VIEW,
64 activity.startActivity(new Intent(Intent.ACTION_VIEW,
/frameworks/support/design/tests/src/android/support/design/widget/
H A DBottomSheetBehaviorInitialStateTest.java46 BottomSheetBehaviorActivity activity = mActivityTestRule.getActivity();
47 assertThat(activity.mBehavior.getState(), is(BottomSheetBehavior.STATE_EXPANDED));
48 assertThat(activity.mBottomSheet.getTop(), is(0));
59 BottomSheetBehaviorActivity activity = mActivityTestRule.getActivity();
60 assertThat(activity.mBehavior.getState(), is(BottomSheetBehavior.STATE_HIDDEN));
61 assertThat(activity.mBottomSheet.getTop(), is(activity.mCoordinatorLayout.getHeight()));
H A DTabLayoutPoolingTest.java40 final Activity activity = mActivityTestRule.getActivity();
44 final TabLayout tabLayout1 = (TabLayout) activity.findViewById(R.id.tabs_1);
51 final TabLayout tabLayout2 = (TabLayout) activity.findViewById(R.id.tabs_2);
/frameworks/support/v4/java/android/support/v4/app/
H A DNavUtils.java43 Intent getParentActivityIntent(Activity activity); argument
44 boolean shouldUpRecreateTask(Activity activity, Intent targetIntent); argument
45 void navigateUpTo(Activity activity, Intent upIntent); argument
52 public Intent getParentActivityIntent(Activity activity) { argument
53 String parentName = NavUtils.getParentActivityName(activity);
56 // If the parent itself has no parent, generate a main activity intent.
57 final ComponentName target = new ComponentName(activity, parentName);
59 final String grandparent = NavUtils.getParentActivityName(activity, target);
72 public boolean shouldUpRecreateTask(Activity activity, Intent targetIntent) { argument
73 String action = activity
78 navigateUpTo(Activity activity, Intent upIntent) argument
99 getParentActivityIntent(Activity activity) argument
109 superGetParentActivityIntent(Activity activity) argument
114 shouldUpRecreateTask(Activity activity, Intent targetIntent) argument
119 navigateUpTo(Activity activity, Intent upIntent) argument
[all...]
H A DActionBarDrawerToggle.java106 Drawable getThemeUpIndicator(Activity activity); argument
107 Object setActionBarUpIndicator(Object info, Activity activity, argument
109 Object setActionBarDescription(Object info, Activity activity, int contentDescRes); argument
114 public Drawable getThemeUpIndicator(Activity activity) { argument
119 public Object setActionBarUpIndicator(Object info, Activity activity, argument
126 public Object setActionBarDescription(Object info, Activity activity, int contentDescRes) { argument
134 public Drawable getThemeUpIndicator(Activity activity) { argument
135 return ActionBarDrawerToggleHoneycomb.getThemeUpIndicator(activity);
139 public Object setActionBarUpIndicator(Object info, Activity activity, argument
141 return ActionBarDrawerToggleHoneycomb.setActionBarUpIndicator(info, activity,
146 setActionBarDescription(Object info, Activity activity, int contentDescRes) argument
155 getThemeUpIndicator(Activity activity) argument
160 setActionBarUpIndicator(Object info, Activity activity, Drawable themeImage, int contentDescRes) argument
167 setActionBarDescription(Object info, Activity activity, int contentDescRes) argument
226 ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, @DrawableRes int drawerImageRes, @StringRes int openDrawerContentDescRes, @StringRes int closeDrawerContentDescRes) argument
259 ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, boolean animate, @DrawableRes int drawerImageRes, @StringRes int openDrawerContentDescRes, @StringRes int closeDrawerContentDescRes) argument
[all...]
/frameworks/base/core/java/android/nfc/
H A DNfcAdapter.java64 * Intent to start an activity when a tag with NDEF payload is discovered.
71 * most specific intent filters possible to avoid the activity chooser dialog, which can
85 * Intent to start an activity when a tag is discovered and activities are registered for the
88 * <p>To receive this intent an activity must include an intent filter
92 * &lt;activity android:name=".nfc.TechFilter" android:label="NFC/TechFilter"&gt;
101 * &lt;/activity&gt;</pre>
110 * activity is considered a match is any single <code>tech-list</code> matches the tag that was
141 * Intent to start an activity when a tag is discovered.
150 * Broadcast to only the activity that handles ACTION_TAG_DISCOVERED
324 * A callback to be invoked when the system finds a tag while the foreground activity i
842 setBeamPushUris(Uri[] uris, Activity activity) argument
918 setBeamPushUrisCallback(CreateBeamUrisCallback callback, Activity activity) argument
996 setNdefPushMessage(NdefMessage message, Activity activity, Activity ... activities) argument
1026 setNdefPushMessage(NdefMessage message, Activity activity, int flags) argument
1098 setNdefPushMessageCallback(CreateNdefMessageCallback callback, Activity activity, Activity ... activities) argument
1127 setNdefPushMessageCallback(CreateNdefMessageCallback callback, Activity activity, int flags) argument
1172 setOnNdefPushCompleteCallback(OnNdefPushCompleteCallback callback, Activity activity, Activity ... activities) argument
1231 enableForegroundDispatch(Activity activity, PendingIntent intent, IntentFilter[] filters, String[][] techLists) argument
1267 disableForegroundDispatch(Activity activity) argument
1280 disableForegroundDispatchInternal(Activity activity, boolean force) argument
1313 enableReaderMode(Activity activity, ReaderCallback callback, int flags, Bundle extras) argument
1325 disableReaderMode(Activity activity) argument
1353 invokeBeam(Activity activity) argument
1410 enableForegroundNdefPush(Activity activity, NdefMessage message) argument
1438 disableForegroundNdefPush(Activity activity) argument
1699 enforceResumed(Activity activity) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
H A DBaselineAlignmentSpinnerButton.java40 final Activity activity = getActivity();
41 mSpinner = activity.findViewById(R.id.reminder_value);
42 mButton = activity.findViewById(R.id.reminder_remove);
H A DFillInWrapTest.java38 final Activity activity = getActivity();
39 mChild = activity.findViewById(R.id.data);
40 mContainer = activity.findViewById(R.id.layout);
H A DLinearLayoutEditTextsTest.java39 final Activity activity = getActivity();
40 mChild = activity.findViewById(R.id.editText1);
41 mContainer = activity.findViewById(R.id.layout);
H A DWeightSumTest.java39 final Activity activity = getActivity();
40 mChild = activity.findViewById(R.id.child);
41 mContainer = activity.findViewById(R.id.container);
H A DWeightTest.java42 final Activity activity = getActivity();
43 mChild = activity.findViewById(R.id.child4);
44 mContainer = activity.findViewById(R.id.layout);
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DDeviceDisconnectedReceiver.java35 public DeviceDisconnectedReceiver(Activity activity, String deviceName) { argument
36 mActivity = activity;
40 activity.registerReceiver(this, filter);
49 // close our activity if the device it is displaying is disconnected
/frameworks/support/v4/api21/android/support/v4/app/
H A DActivityCompat21.java35 public static void setMediaController(Activity activity, Object mediaControllerObj) { argument
36 activity.setMediaController((MediaController) mediaControllerObj);
39 public static void finishAfterTransition(Activity activity) { argument
40 activity.finishAfterTransition();
43 public static void setEnterSharedElementCallback(Activity activity, argument
45 activity.setEnterSharedElementCallback(createCallback(callback));
48 public static void setExitSharedElementCallback(Activity activity, argument
50 activity.setExitSharedElementCallback(createCallback(callback));
53 public static void postponeEnterTransition(Activity activity) { argument
54 activity
57 startPostponedEnterTransition(Activity activity) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/layout/frame/
H A DFrameLayoutMarginTest.java43 final Activity activity = getActivity();
45 mParent = activity.findViewById(R.id.parent);
47 mLeftView = activity.findViewById(R.id.left);
48 mRightView = activity.findViewById(R.id.right);
49 mTopView = activity.findViewById(R.id.top);
50 mBottomView = activity.findViewById(R.id.bottom);
H A DFrameLayoutGravityTest.java47 final Activity activity = getActivity();
49 mParent = activity.findViewById(R.id.parent);
51 mLeftView = activity.findViewById(R.id.left);
52 mRightView = activity.findViewById(R.id.right);
53 mCenterHorizontalView = activity.findViewById(R.id.center_horizontal);
55 mLeftCenterVerticalView = activity.findViewById(R.id.left_center_vertical);
56 mRighCenterVerticalView = activity.findViewById(R.id.right_center_vertical);
57 mCenterView = activity.findViewById(R.id.center);
59 mLeftBottomView = activity.findViewById(R.id.left_bottom);
60 mRightBottomView = activity
[all...]
/frameworks/base/tests/LockTaskTests/src/com/google/android/example/locktasktests/
H A DMainActivity.java56 Class activity = null;
59 activity = LockDefaultActivity.class;
62 activity = LockTaskNeverActivity.class;
65 activity = LockWhitelistedActivity.class;
68 activity = LockAtLaunchActivity.class;
71 Intent intent = new Intent(this, activity);
/frameworks/base/location/lib/java/com/android/location/provider/
H A DActivityRecognitionEvent.java27 public ActivityRecognitionEvent(String activity, int eventType, long timestampNs) { argument
28 mActivity = activity;
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
H A DR$layout.class ... extends java.lang.Object { public static final int activity public static final int allwidgets public static final int array_check ...

Completed in 3442 milliseconds

1234567891011>>