/cts/tests/tests/preference/src/android/preference/cts/ |
PreferenceActivityTest.java | 21 import android.content.Intent; 45 Intent intent = new Intent(mActivity, PreferenceStubActivity.class); local 46 mActivity.addPreferencesFromIntent(intent);
|
/developers/samples/android/ui/notifications/BasicNotifications/BasicNotificationsSample/src/main/java/com/example/android/basicnotifications/ |
MainActivity.java | 6 import android.content.Intent; 36 /** Create an intent that will be fired when the user clicks the notification. 37 * The intent needs to be packaged into a {@link android.app.PendingIntent} so that the 40 Intent intent = new Intent(Intent.ACTION_VIEW, local 42 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0); 61 // Set the intent that will fire when the user taps the notification.
|
/developers/samples/android/ui/notifications/CustomNotifications/CustomNotificationsSample/src/main/java/com/example/android/customnotifications/ |
MainActivity.java | 22 import android.content.Intent; 49 // BEGIN_INCLUDE(intent) 50 //Create Intent to launch this Activity again if the notification is clicked. 51 Intent i = new Intent(this, MainActivity.class); 52 i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); 53 PendingIntent intent = PendingIntent.getActivity(this, 0, i, local 55 builder.setContentIntent(intent); 56 // END_INCLUDE(intent)
|
/development/apps/Development/src/com/android/development/ |
ProcessInfo.java | 21 import android.content.Intent; 33 Intent intent = getIntent(); local 34 String processName = intent.getStringExtra("processName"); 35 String pkgList[] = intent.getStringArrayExtra("packageList");
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ContactsFilterInstrumentation.java | 21 import android.content.Intent; 48 Intent intent = new Intent(Intent.ACTION_MAIN); local 49 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 50 intent.setClassName(getTargetContext(), 52 Activity activity = startActivitySync(intent);
|
ContactsSelectInstrumentation.java | 21 import android.content.Intent; 50 Intent intent = new Intent(Intent.ACTION_MAIN); local 51 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 52 intent.setClassName(getTargetContext(), 54 Activity activity = startActivitySync(intent); 61 Intent.ACTION_VIEW, ContactsContract.Contacts.CONTENT_ITEM_TYPE), null, true) [all...] |
NotificationDisplay.java | 25 import android.content.Intent; 74 Intent intent = new Intent(this, StatusBarNotifications.class); local 75 intent.setAction(Intent.ACTION_MAIN); 76 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 77 startActivity(intent);
|
/development/samples/browseable/BasicNotifications/src/com.example.android.basicnotifications/ |
MainActivity.java | 6 import android.content.Intent; 36 /** Create an intent that will be fired when the user clicks the notification. 37 * The intent needs to be packaged into a {@link android.app.PendingIntent} so that the 40 Intent intent = new Intent(Intent.ACTION_VIEW, local 42 PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0); 61 // Set the intent that will fire when the user taps the notification.
|
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/ |
MainActivity.java | 22 import android.content.Intent; 49 // BEGIN_INCLUDE(intent) 50 //Create Intent to launch this Activity again if the notification is clicked. 51 Intent i = new Intent(this, MainActivity.class); 52 i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); 53 PendingIntent intent = PendingIntent.getActivity(this, 0, i, local 55 builder.setContentIntent(intent); 56 // END_INCLUDE(intent)
|
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/ |
ContactsListActivity.java | 20 import android.content.Intent; 67 if (Intent.ACTION_SEARCH.equals(getIntent().getAction())) { 69 // Fetch query from intent and notify the fragment that it should display search 107 Intent intent = new Intent(this, ContactDetailActivity.class); local 108 intent.setData(contactUri); 109 startActivity(intent);
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
DemoKitLaunch.java | 5 import android.content.Intent; 13 static Intent createIntent(Activity activity) { 17 Intent intent; local 20 intent = new Intent(activity, DemoKitTablet.class); 23 intent = new Intent(activity, DemoKitPhone.class); 25 return intent; 32 Intent intent = createIntent(this) local [all...] |
/frameworks/base/core/java/android/app/ |
AliasActivity.java | 22 import android.content.Intent; 41 * resource describing an intent that launches the real application. 47 * resource describing an intent that launches the real application. 67 Intent intent = parseAlias(parser); local 68 if (intent == null) { 70 "No <intent> tag found in alias description"); 73 startActivity(intent); 87 private Intent parseAlias(XmlPullParser parser) 91 Intent intent = null local [all...] |
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
IntentSenderTest.java | 21 import android.content.Intent; 41 final Intent intent = makeBroadcastIntent(BROADCAST_REGISTERED); local 48 public void onSendFinished(PendingIntent pi, Intent intent, 50 gotReceive(RECEIVER_RESULTS, intent); 54 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0); 70 final Intent intent = makeBroadcastIntent(BROADCAST_LOCAL_DENIED); local 75 public void onSendFinished(PendingIntent pi, Intent intent [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
UsbAccessoryUriActivity.java | 22 import android.content.Intent; 52 Intent intent = getIntent(); local 53 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); 54 String uriString = intent.getStringExtra("uri"); 87 Intent intent = new Intent(Intent.ACTION_VIEW, mUri); local 88 intent.addCategory(Intent.CATEGORY_BROWSABLE) [all...] |
/frameworks/base/services/java/com/android/server/ |
ShutdownActivity.java | 21 import android.content.Intent; 41 Intent intent = getIntent(); local 42 mReboot = Intent.ACTION_REBOOT.equals(intent.getAction()); 43 mConfirm = intent.getBooleanExtra(Intent.EXTRA_KEY_CONFIRM, false);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
CellBroadcastHandler.java | 23 import android.content.Intent; 78 Intent intent; local 81 intent = new Intent(Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); 86 intent = new Intent(Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION); 90 intent.putExtra("message", message); 91 mContext.sendOrderedBroadcast(intent, receiverPermission, appOp, mReceiver,
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
CdmaServiceCategoryProgramHandler.java | 24 import android.content.Intent; 103 Intent intent = new Intent(Intents.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED_ACTION); local 104 intent.putExtra("sender", sms.getOriginatingAddress()); 105 intent.putParcelableArrayListExtra("program_data", programDataList); 107 mContext.sendOrderedBroadcast(intent, Manifest.permission.RECEIVE_SMS, 119 public void onReceive(Context context, Intent intent) {
|
/frameworks/support/v4/java/android/support/v4/content/ |
WakefulBroadcastReceiver.java | 22 import android.content.Intent; 44 * starts. The intent that is passed with 53 * completeWakefulIntent(intent)}. The intent it passes as a parameter 54 * is the same intent that the {@link WakefulBroadcastReceiver} originally 67 * Do a {@link android.content.Context#startService(android.content.Intent) 69 * This will modify the Intent to hold an extra identifying the wake lock; 71 * Service.onStartCommand}, it should pass back the Intent it receives there to 72 * {@link #completeWakefulIntent(android.content.Intent)} in order to release 76 * @param intent The Intent with which to start the service, as pe [all...] |
/frameworks/volley/src/com/android/volley/toolbox/ |
AndroidAuthenticator.java | 25 import android.content.Intent; 84 Intent intent = result.getParcelable(AccountManager.KEY_INTENT); local 85 throw new AuthFailureError(intent);
|
/packages/apps/Browser/src/com/android/browser/ |
ShortcutActivity.java | 20 import android.content.Intent; 53 Intent intent = BrowserBookmarksPage.createShortcutIntent(this, c); local 54 setResult(RESULT_OK, intent);
|
/packages/apps/Email/src/com/android/email/activity/ |
EventViewer.java | 21 import android.content.Intent; 61 Intent intent = new Intent(Intent.ACTION_VIEW); local 68 intent.putExtra("VIEW", "DAY"); 70 intent.setData(uri); 71 intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); 72 startActivity(intent); [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
SmsReceiver.java | 23 import android.content.Intent; 43 public void onReceive(Context context, Intent intent) { 44 onReceiveWithPrivilege(context, intent, false); 47 protected void onReceiveWithPrivilege(Context context, Intent intent, boolean privileged) { 48 // If 'privileged' is false, it means that the intent was delivered to the base 52 if (!privileged && intent.getAction().equals(Intents.SMS_DELIVER_ACTION)) { 56 intent.setClass(context, SmsReceiverService.class); 57 intent.putExtra("result", getResultCode()) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
SmsDefaultDialog.java | 22 import android.content.Intent; 44 Intent intent = getIntent(); local 45 String packageName = intent.getStringExtra(Intents.EXTRA_PACKAGE_NAME);
|
/packages/experimental/BugReportSender/src/com/android/bugreportsender/ |
BugReportPreviewActivity.java | 4 import android.content.Intent; 34 Intent intent = getIntent(); local 35 if (intent == null) { 36 Log.w(TAG, "No intent provided."); 39 Uri uri = intent.getData(); 40 String section = intent.getStringExtra("section");
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
UploaderService.java | 23 import android.content.Intent; 43 protected void onHandleIntent(final Intent intent) { 51 if (isUploadingUnconditionally(intent.getExtras()) || uploader.isConvenientToUpload()) { 74 * @param needsRescheduling whether to schedule a future intent to be delivered to this service 78 final Intent intent = new Intent(context, UploaderService.class); local 79 final PendingIntent pendingIntent = PendingIntent.getService(context, 0, intent, 0);
|