HomeSort by relevance Sort by last modified time
    Searched defs:intent (Results 51 - 75 of 1045) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
TestBroadcastReceiver.java 5 import android.content.Intent;
9 public Intent intent; field in class:TestBroadcastReceiver
12 public void onReceive(Context context, Intent intent) {
14 this.intent = intent;
  /frameworks/base/core/tests/coretests/src/android/app/activity/
ClearTop.java 20 import android.content.Intent;
34 Intent intent = new Intent(getIntent()).setAction(LocalScreen.CLEAR_TASK) local
36 startActivity(intent);
40 public void onNewIntent(Intent intent) {
41 //Log.i("foo", "New intent in " + this + ": " + intent);
42 if (LocalScreen.CLEAR_TASK.equals(intent.getAction()))
    [all...]
  /packages/apps/CertInstaller/src/com/android/certinstaller/
CertInstallerMain.java 19 import android.content.Intent;
37 * to the public {@link Credentials#INSTALL_ACTION} intent.
60 final Intent intent = getIntent(); local
61 final String action = intent.getAction();
65 Bundle bundle = intent.getExtras();
85 final Intent openIntent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
87 openIntent.putExtra(Intent.EXTRA_MIME_TYPES, ACCEPT_MIME_TYPES)
121 Intent intent = new Intent(this, CertInstaller.class); local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/quickcontact/
QuickContactBroadcastReceiver.java 21 import android.content.Intent;
27 * intent receiver is to disable the animation that RemoveViews typically do, which interfere
32 public void onReceive(Context context, Intent intent) {
33 final Uri dataUri = intent.getData();
34 final Intent newIntent = new Intent(QuickContact.ACTION_QUICK_CONTACT);
35 newIntent.setSourceBounds(intent.getSourceBounds());
36 newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK)
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
Gallery.java 21 import android.content.Intent;
29 Intent intent = IntentHelper.getGalleryIntent(Gallery.this); local
33 intent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
34 startActivity(intent);
  /packages/apps/Mms/src/com/android/mms/transaction/
MessageStatusReceiver.java 22 import android.content.Intent;
29 public void onReceive(Context context, Intent intent) {
30 if (MESSAGE_STATUS_RECEIVED_ACTION.equals(intent.getAction())) {
31 intent.setClass(context, MessageStatusService.class);
32 context.startService(intent);
  /packages/apps/Nfc/src/com/android/nfc/cardemulation/
DefaultRemovedActivity.java 4 import android.content.Intent;
31 Intent intent = new Intent(Settings.ACTION_NFC_PAYMENT_SETTINGS); local
32 startActivity(intent);
  /packages/apps/Settings/src/com/android/settings/bluetooth/
DevicePickerFragment.java 25 import android.content.Intent;
50 Intent intent = getActivity().getIntent(); local
51 mNeedAuth = intent.getBooleanExtra(BluetoothDevicePicker.EXTRA_NEED_AUTH, false);
52 setFilter(intent.getIntExtra(BluetoothDevicePicker.EXTRA_FILTER_TYPE,
54 mLaunchPackage = intent.getStringExtra(BluetoothDevicePicker.EXTRA_LAUNCH_PACKAGE);
55 mLaunchClass = intent.getStringExtra(BluetoothDevicePicker.EXTRA_LAUNCH_CLASS);
112 Intent intent = new Intent(BluetoothDevicePicker.ACTION_DEVICE_SELECTED) local
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
EventHandler.java 21 import android.content.Intent;
25 * Receives a intent broadcast.
36 * Also @see {@link BroadcastReceiver#onReceive(Context, Intent)}
39 * @param intent the intent that was broadcast.
42 public void onReceive(final Context context, final Intent intent) {
43 intent.setClass(context, DictionaryService.class);
44 context.startService(intent);
  /packages/providers/CalendarProvider/src/com/android/providers/calendar/
CalendarProviderBroadcastReceiver.java 22 import android.content.Intent;
28 public void onReceive(Context context, Intent intent) {
29 if (!CalendarAlarmManager.ACTION_CHECK_NEXT_ALARM.equals(intent.getAction())) {
39 intent.setClass(context, CalendarProviderIntentService.class);
40 context.startService(intent);
  /cts/tests/tests/dpi/src/android/dpi/cts/
AspectRatioTest.java 21 import android.content.Intent;
80 Intent intent = new Intent(); local
81 intent.putExtra(OrientationActivity.EXTRA_ORIENTATION, orientation);
82 setActivityIntent(intent);
  /cts/tests/tests/media/src/android/media/cts/
FaceDetectorTest.java 22 import android.content.Intent;
35 Intent intent = new Intent(); local
36 intent.setClass(getInstrumentation().getTargetContext(), FaceDetectorStub.class);
37 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
38 intent.putExtra(FaceDetectorStub.IMAGE_ID, R.drawable.faces);
39 mActivity = (FaceDetectorStub) getInstrumentation().startActivitySync(intent);
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStoreIntentsTest.java 19 import android.content.Intent;
32 public void assertCanBeHandled(Intent intent) {
34 .getPackageManager().queryIntentActivities(intent, 0);
36 assertTrue("No ResolveInfo found for " + intent.toInsecureString(),
41 Intent intent = new Intent(Intent.ACTION_PICK); local
42 intent.setData(MediaStore.Images.Media.EXTERNAL_CONTENT_URI)
47 Intent intent = new Intent(Intent.ACTION_PICK); local
53 Intent intent = new Intent(Intent.ACTION_PICK); local
59 Intent intent = new Intent(Intent.ACTION_VIEW); local
65 Intent intent = new Intent(Intent.ACTION_VIEW); local
78 Intent intent = new Intent(Intent.ACTION_VIEW); local
96 Intent intent = new Intent(Intent.ACTION_VIEW); local
114 Intent intent = new Intent(Intent.ACTION_VIEW); local
    [all...]
  /developers/samples/android/ui/actionbarcompat/ActionBarCompat-ShareActionProvider/ActionBarCompat-ShareActionProviderSample/src/main/java/com/example/android/actionbarcompat/shareactionprovider/content/
ContentItem.java 20 import android.content.Intent;
75 * Returns an {@link android.content.Intent} which can be used to share this item's content with other
79 * @return Intent to be given to a ShareActionProvider.
81 public Intent getShareIntent(Context context) {
82 Intent intent = new Intent(Intent.ACTION_SEND); local
86 intent.setType("image/jpg");
88 intent.putExtra(Intent.EXTRA_STREAM, getContentUri())
    [all...]
  /development/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/
ContentViewActivity.java 22 import android.content.Intent;
41 Intent intent = getIntent(); local
42 if (Intent.ACTION_VIEW.equals(intent.getAction())) {
45 } else if (intent.hasExtra(EXTRA_TEXT)) {
47 tv.setText(intent.getStringExtra(EXTRA_TEXT));
54 Intent upIntent = NavUtils.getParentActivityIntent(this);
  /development/samples/browseable/ShareActionProvider/src/com.example.android.actionbarcompat.shareactionprovider/content/
ContentItem.java 20 import android.content.Intent;
75 * Returns an {@link android.content.Intent} which can be used to share this item's content with other
79 * @return Intent to be given to a ShareActionProvider.
81 public Intent getShareIntent(Context context) {
82 Intent intent = new Intent(Intent.ACTION_SEND); local
86 intent.setType("image/jpg");
88 intent.putExtra(Intent.EXTRA_STREAM, getContentUri())
    [all...]
  /external/chromium_org/chrome/android/testshell/javatests/src/org/chromium/chrome/testshell/
ChromiumTestShellTestBase.java 9 import android.content.Intent;
36 Intent intent = new Intent(Intent.ACTION_MAIN); local
37 intent.addCategory(Intent.CATEGORY_LAUNCHER);
38 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
39 if (url != null) intent.setData(Uri.parse(url))
    [all...]
  /packages/apps/Gallery/src/com/android/camera/
Wallpaper.java 19 import android.content.Intent;
39 Intent intent = new Intent(); local
40 intent.setClass(this, CropImage.class);
41 intent.setData(imageToUse);
42 formatIntent(intent);
43 startActivityForResult(intent, CROP_DONE);
45 Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null) local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/gadget/
WidgetClickHandler.java 21 import android.content.Intent;
57 Intent intent; local
59 intent = new Intent(Intent.ACTION_VIEW, uri);
61 intent.putExtra(PhotoPage.KEY_TREAT_BACK_AS_UP, true);
66 intent = new Intent(this, GalleryActivity.class);
69 intent.setFlags
    [all...]
  /packages/apps/Settings/src/com/android/settings/
ChooseLockSettingsHelper.java 24 import android.content.Intent;
53 * @see #onActivityResult(int, int, android.content.Intent)
76 * @see #onActivityResult(int, int, android.content.Intent)
83 final Intent intent = new Intent(); local
84 // supply header and footer text in the intent
85 intent.putExtra(ConfirmLockPattern.HEADER_TEXT, message);
86 intent.putExtra(ConfirmLockPattern.FOOTER_TEXT, details);
87 intent.setClassName("com.android.settings", "com.android.settings.ConfirmLockPattern")
    [all...]
CreateShortcut.java 20 import android.content.Intent;
33 protected Intent getTargetIntent() {
34 Intent targetIntent = new Intent(Intent.ACTION_MAIN, null);
36 targetIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
42 Intent shortcutIntent = intentForPosition(position);
43 shortcutIntent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
44 Intent intent = new Intent() local
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/setup/
SetupActivity.java 21 import android.content.Intent;
31 final Intent intent = new Intent(); local
32 intent.setClass(this, SetupWizardActivity.class);
33 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
34 | Intent.FLAG_ACTIVITY_NEW_TASK);
35 startActivity(intent);
  /packages/apps/Contacts/src/com/android/contacts/activities/
ContactEditorActivity.java 23 import android.content.Intent;
54 * Boolean intent key that specifies that this activity should finish itself
55 * (instead of launching a new view intent) after the editor changes have been
70 final Intent intent = getIntent(); local
71 final String action = intent.getAction();
76 mFinishActivityOnSaveCompleted = intent.getBooleanExtra(
118 Uri uri = Intent.ACTION_EDIT.equals(action) ? getIntent().getData() : null;
123 protected void onNewIntent(Intent intent) {
    [all...]
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
OpenHelper.java 30 import android.content.Intent;
40 * Build and start an {@link Intent} to view the download with given ID,
44 final Intent intent = OpenHelper.buildViewIntent(context, id); local
45 if (intent == null) {
46 Log.w(TAG, "No intent built for " + id);
50 intent.addFlags(intentFlags);
52 context.startActivity(intent);
55 Log.w(TAG, "Failed to start " + intent + ": " + e);
61 * Build an {@link Intent} to view the download with given ID, handlin
80 final Intent intent = new Intent(Intent.ACTION_VIEW); local
    [all...]
  /packages/services/Telephony/src/com/android/phone/
FdnList.java 20 import android.content.Intent;
53 Intent intent = getIntent(); local
54 intent.setData(Uri.parse("content://icc/fdn"));
55 return intent.getData();
90 Intent intent = new Intent(this, FdnSetting.class); local
91 intent.setAction(Intent.ACTION_MAIN)
122 Intent intent = new Intent(); local
145 Intent intent = new Intent(); local
158 Intent intent = new Intent(); local
    [all...]

Completed in 1118 milliseconds

1 23 4 5 6 7 8 91011>>