/packages/experimental/DreamTheater/src/com/android/dreamtheater/ |
DreamTheaterActivity.java | 4 import android.content.Intent; 11 startActivity(Intent.createChooser(new Intent(Intent.ACTION_MAIN) 12 .addCategory("android.intent.category.DREAM"),
|
/frameworks/base/core/java/com/android/internal/content/ |
PackageMonitor.java | 21 import android.content.Intent; 45 sPackageFilt.addAction(Intent.ACTION_PACKAGE_ADDED); 46 sPackageFilt.addAction(Intent.ACTION_PACKAGE_REMOVED); 47 sPackageFilt.addAction(Intent.ACTION_PACKAGE_CHANGED); 48 sPackageFilt.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART); 49 sPackageFilt.addAction(Intent.ACTION_PACKAGE_RESTARTED); 50 sPackageFilt.addAction(Intent.ACTION_UID_REMOVED); 52 sNonDataFilt.addAction(Intent.ACTION_UID_REMOVED); 53 sNonDataFilt.addAction(Intent.ACTION_USER_STOPPED); 54 sExternalFilt.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE) [all...] |
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/action/ |
ShareCodeAction.java | 20 import android.content.Intent; 28 Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); 30 sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Notification Code"); 31 sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody); 32 context.startActivity(Intent.createChooser(sharingIntent, title));
|
ShareMockupAction.java | 20 import android.content.Intent; 72 // launch intent to send the mockup image 73 Intent share = new Intent(Intent.ACTION_SEND); 75 share.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(f.getAbsoluteFile())); 76 activity.startActivity(Intent.createChooser(share, title));
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
ContactsDumpActivity.java | 22 import android.content.Intent; 119 Intent intent = new Intent(Intent.ACTION_SEND); local 120 intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.debug_dump_email_subject)); 121 intent.putExtra(Intent.EXTRA_TEXT, getString(R.string.debug_dump_email_body)); 122 intent.setType(DataExporter.ZIP_MIME_TYPE) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
MovieActivity.java | 24 import android.content.Intent; 50 * The client of this activity can pass a logo bitmap in the intent (KEY_LOGO_BITMAP) 86 Intent intent = getIntent(); local 87 initializeActionBar(intent); 88 mFinishOnCompletion = intent.getBooleanExtra( 90 mTreatUpAsBack = intent.getBooleanExtra(KEY_TREAT_UP_AS_BACK, false); 91 mPlayer = new MoviePlayer(rootView, this, intent.getData(), savedInstanceState, 100 if (intent.hasExtra(MediaStore.EXTRA_SCREEN_ORIENTATION)) { 101 int orientation = intent.getIntExtra 188 Intent intent = new Intent(Intent.ACTION_SEND); local [all...] |
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarDebugActivity.java | 20 import android.content.Intent; 183 protected void onActivityResult(int requestCode, int resultCode, Intent data) { 191 Intent intent = new Intent(Intent.ACTION_SEND); local 192 intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.debug_tool_email_subject)); 193 intent.putExtra(Intent.EXTRA_TEXT, getString(R.string.debug_tool_email_body)) [all...] |
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
AccessPermissionWithDiffSigTest.java | 25 import android.content.Intent; 81 Intent intent = item.getIntent(); local 82 uri = intent.getData(); 86 ClipData intentClip = intent.getClipData(); 171 Intent intent = item.getIntent(); local 172 uri = intent.getData(); 176 ClipData intentClip = intent.getClipData(); 270 // Intent 272 Intent intent = new Intent(Intent.ACTION_VIEW, grantClip4Uri); local 284 Intent intent = new Intent(); local 492 Intent intent = new Intent(); local 579 Intent intent = new Intent(); local 597 Intent intent = item.getIntent(); local 709 Intent intent = item.getIntent(); local [all...] |
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
ContentFragment.java | 24 import android.content.Intent; 180 Intent intent = new Intent(getActivity(), MainActivity.class); local 181 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); // Reuse the existing instance 182 startActivity(intent); 298 * and then invoke the appropriate share intent. 346 * intent to share the photo. This code is run on the main (UI) thread. 354 Intent shareIntent = new Intent(Intent.ACTION_SEND) [all...] |
/frameworks/base/services/java/com/android/server/ |
IdleMaintenanceService.java | 24 import android.content.Intent; 72 private static final Intent sIdleMaintenanceStartIntent; 74 sIdleMaintenanceStartIntent = new Intent(Intent.ACTION_IDLE_MAINTENANCE_START); 75 sIdleMaintenanceStartIntent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY); 78 private static final Intent sIdleMaintenanceEndIntent; 80 sIdleMaintenanceEndIntent = new Intent(Intent.ACTION_IDLE_MAINTENANCE_END); 81 sIdleMaintenanceEndIntent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY); 113 Intent intent = new Intent(ACTION_UPDATE_IDLE_MAINTENANCE_STATE) local [all...] |
/frameworks/opt/mailcommon/java/com/android/mailcommon/ |
WebViewContextMenu.java | 24 import android.content.Intent; 118 Intent send = new Intent(Intent.ACTION_SEND); 125 Intent send = new Intent(Intent.ACTION_SEND); 127 send.putExtra(Intent.EXTRA_TEXT, url); 130 mActivity.startActivity(Intent.createChooser(send, mActivity.getText( 209 dialMenuItem.setIntent(new Intent(Intent.ACTION_VIEW [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
MenuExecutor.java | 26 import android.content.Intent; 124 ((Activity) mActivity).startActivity((Intent) message.obj); 217 private Intent getIntentBySingleSelectedPath(String action) { 221 return new Intent(action).setDataAndType(manager.getContentUri(path), mimeType); 240 Intent intent = getIntentBySingleSelectedPath(CropActivity.CROP_ACTION); local 241 ((Activity) mActivity).startActivity(intent); 245 Intent intent = getIntentBySingleSelectedPath(Intent.ACTION_EDIT local 251 Intent intent = getIntentBySingleSelectedPath(Intent.ACTION_ATTACH_DATA) local [all...] |
/packages/apps/Gallery2/src/com/android/photos/ |
MultiChoiceManager.java | 21 import android.content.Intent; 166 // but apparently before the ArrayList is serialized in the intent 182 public boolean onShareTargetSelected(ShareActionProvider provider, Intent intent) { 229 Intent intent = new Intent(); local 234 intent.setDataAndType(uri, mime) 235 .setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) 236 .setAction(Intent.ACTION_EDIT) [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
RunningServiceDetails.java | 15 import android.content.Intent; 100 getActivity().stopService(new Intent().setComponent(si.mRunningService.service)); 159 Intent result = new Intent(Intent.ACTION_APP_ERROR); 161 result.putExtra(Intent.EXTRA_BUG_REPORT, report); 162 result.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 170 Intent.FLAG_ACTIVITY_NEW_TASK 171 | Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, 172 Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, 0) [all...] |
/development/samples/Home/src/com/example/android/home/ |
Home.java | 25 import android.content.Intent; 148 protected void onNewIntent(Intent intent) { 149 super.onNewIntent(intent); 152 if (Intent.ACTION_MAIN.equals(intent.getAction())) { 194 * Registers various intent receivers. The current implementation registers 195 * only a wallpaper intent receiver to let other applications change the 199 IntentFilter filter = new IntentFilter(Intent.ACTION_WALLPAPER_CHANGED); 202 filter = new IntentFilter(Intent.ACTION_PACKAGE_ADDED) 279 final Intent intent = new Intent(Intent.ACTION_MAIN, null); local 364 final Intent intent = recentTasks.get(i).baseIntent; local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
CropActivity.java | 23 import android.content.Intent; 78 * The maximum bitmap size we allow to be returned through the intent. 81 * sure the intent stays below 1MB.We should consider just returning a byte 96 Intent intent = getIntent(); local 97 setResult(RESULT_CANCELED, new Intent()); 98 mCropExtras = getExtrasFromIntent(intent); 118 if (intent.getData() != null) { 119 mSourceUri = intent.getData(); 148 * in the CROP intent 151 Intent intent = new Intent(); local [all...] |
/packages/apps/Music/src/com/android/music/ |
AlbumBrowserActivity.java | 28 import android.content.Intent; 104 f.addAction(Intent.ACTION_MEDIA_SCANNER_STARTED); 105 f.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED); 106 f.addAction(Intent.ACTION_MEDIA_UNMOUNTED); 198 public void onReceive(Context context, Intent intent) { 205 public void onReceive(Context context, Intent intent) { 208 if (intent.getAction().equals(Intent.ACTION_MEDIA_UNMOUNTED)) 315 Intent intent = new Intent(); local 339 Intent intent = new Intent(); local 407 Intent intent = new Intent(Intent.ACTION_PICK); local 430 Intent intent; local [all...] |
ArtistAlbumBrowserActivity.java | 29 import android.content.Intent; 100 f.addAction(Intent.ACTION_MEDIA_SCANNER_STARTED); 101 f.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED); 102 f.addAction(Intent.ACTION_MEDIA_UNMOUNTED); 201 public void onReceive(Context context, Intent intent) { 208 public void onReceive(Context context, Intent intent) { 211 if (intent.getAction().equals(Intent.ACTION_MEDIA_UNMOUNTED)) 268 Intent intent = new Intent(Intent.ACTION_PICK); local 299 Intent intent; local 407 Intent intent = new Intent(); local 449 Intent intent = new Intent(); local [all...] |
MediaPlaybackActivity.java | 31 import android.content.Intent; 348 Intent i = new Intent(); 349 i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 361 startActivity(Intent.createChooser(i, title)); 397 new Intent(Intent.ACTION_EDIT) 492 public void onNewIntent(Intent intent) { 493 setIntent(intent); 569 Intent intent; local [all...] |
TrackBrowserActivity.java | 30 import android.content.Intent; 115 Intent intent = getIntent(); local 116 if (intent != null) { 117 if (intent.getBooleanExtra("withtabs", false)) { 130 mAlbumId = intent.getStringExtra("album"); 133 mArtistId = intent.getStringExtra("artist"); 134 mPlaylist = intent.getStringExtra("playlist"); 135 mGenre = intent.getStringExtra("genre"); 136 mEditMode = intent.getAction().equals(Intent.ACTION_EDIT) 697 Intent intent = new Intent(); local 728 Intent intent = new Intent(); local [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ViewImage.java | 23 import android.content.Intent; 372 return (Intent.ACTION_PICK.equals(action) 373 || Intent.ACTION_GET_CONTENT.equals(action)); 423 Intent preferences = new Intent(); 557 Intent intent = getIntent(); local 558 mFullScreenInNormalMode = intent.getBooleanExtra( 560 mShowActionIcons = intent.getBooleanExtra( 610 slideshow = intent.getBooleanExtra(EXTRA_SLIDESHOW, false) 985 Intent intent = new Intent(); local 1002 Intent intent = new Intent( local 1029 Intent intent = Util.createSetAsIntent(image); local [all...] |
/frameworks/base/core/java/android/app/ |
ContextImpl.java | 29 import android.content.Intent; 127 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { 132 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, 145 public Intent registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user, 158 public boolean bindService(Intent service, ServiceConnection conn, int flags) { 960 (Activity)null, intent, -1, options); local 968 mMainThread.getApplicationThread(), getBasePackageName(), intent, local 1047 mMainThread.getApplicationThread(), intent, resolvedType, null, local 1061 mMainThread.getApplicationThread(), intent, resolvedType, null, local 1075 mMainThread.getApplicationThread(), intent, resolvedType, null, local 1090 mMainThread.getApplicationThread(), intent, resolvedType, null, local 1133 mMainThread.getApplicationThread(), intent, resolvedType, rd, local 1146 intent, resolvedType, null, Activity.RESULT_OK, null, null, null, local 1159 mMainThread.getApplicationThread(), intent, resolvedType, null, local 1191 mMainThread.getApplicationThread(), intent, resolvedType, rd, local 1205 mMainThread.getApplicationThread(), intent, resolvedType, null, local 1239 mMainThread.getApplicationThread(), intent, resolvedType, rd, local 1256 mMainThread.getApplicationThread(), intent, getUserId()); local 1267 mMainThread.getApplicationThread(), intent, resolvedType, null, local 1299 mMainThread.getApplicationThread(), intent, resolvedType, rd, local 1316 mMainThread.getApplicationThread(), intent, user.getIdentifier()); local [all...] |
/frameworks/base/core/java/android/widget/ |
RemoteViews.java | 23 import android.content.Intent; 68 * The intent extra that contains the appWidgetId. 164 Intent fillInIntent) { 173 Intent.FLAG_ACTIVITY_NEW_TASK, 174 Intent.FLAG_ACTIVITY_NEW_TASK, 0, opts.toBundle()); 176 android.util.Log.e(LOG_TAG, "Cannot send pending intent: ", e); 179 android.util.Log.e(LOG_TAG, "Cannot send pending intent due to " + 321 public SetOnClickFillInIntent(int id, Intent fillInIntent) { 328 fillInIntent = Intent.CREATOR.createFromParcel(parcel); 366 // Insure that a template pending intent has been set on an ancesto 626 Intent intent; field in class:RemoteViews.SetRemoteViewsAdapterIntent [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
FilterShowActivity.java | 25 import android.content.Intent; 282 Intent intent = getIntent(); local 283 if (intent.getBooleanExtra(LAUNCH_FULLSCREEN, false)) { 287 mAction = intent.getAction(); 289 if (intent.getData() != null) { 290 startLoadBitmap(intent.getData()); 607 setResult(RESULT_OK, new Intent().setData(saveUri)); 613 public boolean onShareTargetSelected(ShareActionProvider arg0, Intent arg1) { 629 private Intent getDefaultShareIntent() 630 Intent intent = new Intent(Intent.ACTION_SEND); local 928 Intent intent = new Intent(); local 994 Intent intent = new Intent(); local [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
MessageCompose.java | 29 import android.content.Intent; 110 private static final String ACTION_REPLY = "com.android.email.intent.action.REPLY"; 111 private static final String ACTION_REPLY_ALL = "com.android.email.intent.action.REPLY_ALL"; 112 private static final String ACTION_FORWARD = "com.android.email.intent.action.FORWARD"; 113 private static final String ACTION_EDIT_DRAFT = "com.android.email.intent.action.EDIT_DRAFT"; 117 /** If the intent is sent from the email app itself, it should have this boolean extra. */ 119 /** If the intent is sent from thw widget. */ 179 * {@link Intent}, but can switch between reply/reply all/forward where appropriate. 228 private static Intent getBaseIntent(Context context) { 229 return new Intent(context, MessageCompose.class) 419 Intent intent = getIntent(); local [all...] |