/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; 42 sPackageFilt.addAction(Intent.ACTION_PACKAGE_ADDED); 43 sPackageFilt.addAction(Intent.ACTION_PACKAGE_REMOVED); 44 sPackageFilt.addAction(Intent.ACTION_PACKAGE_CHANGED); 45 sPackageFilt.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART); 46 sPackageFilt.addAction(Intent.ACTION_PACKAGE_RESTARTED); 47 sPackageFilt.addAction(Intent.ACTION_UID_REMOVED); 49 sNonDataFilt.addAction(Intent.ACTION_UID_REMOVED); 50 sNonDataFilt.addAction(Intent.ACTION_USER_STOPPED); 51 sExternalFilt.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
Intents.java | 22 import android.content.Intent; 37 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 38 intent.setType("audio/*"); 39 startActivity(Intent.createChooser(intent, "Select music")); 43 Intent intent = new Intent(Intent.ACTION_GET_CONTENT) local 49 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local [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...] |
/frameworks/base/core/java/android/provider/ |
DocumentsProvider.java | 30 import android.content.Intent; 67 * <intent-filter> 69 * </intent-filter> 78 * directly; they must go through {@link Intent#ACTION_OPEN_DOCUMENT} or 79 * {@link Intent#ACTION_CREATE_DOCUMENT} which requires a user to actively 116 * @see Intent#ACTION_OPEN_DOCUMENT 117 * @see Intent#ACTION_CREATE_DOCUMENT 535 Intent.FLAG_GRANT_READ_URI_PERMISSION 536 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION 537 | Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION) [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...] |
/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 | 25 import android.content.Intent; 77 private static final Intent sIdleMaintenanceStartIntent; 79 sIdleMaintenanceStartIntent = new Intent(Intent.ACTION_IDLE_MAINTENANCE_START); 80 sIdleMaintenanceStartIntent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY); 83 private static final Intent sIdleMaintenanceEndIntent; 85 sIdleMaintenanceEndIntent = new Intent(Intent.ACTION_IDLE_MAINTENANCE_END); 86 sIdleMaintenanceEndIntent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY); 118 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); 220 private Intent getIntentBySingleSelectedPath(String action) { 224 return new Intent(action).setDataAndType(manager.getContentUri(path), mimeType); 243 Intent intent = getIntentBySingleSelectedPath(CropActivity.CROP_ACTION); local 244 ((Activity) mActivity).startActivity(intent); 248 Intent intent = getIntentBySingleSelectedPath(Intent.ACTION_EDIT local 254 Intent intent = getIntentBySingleSelectedPath(Intent.ACTION_ATTACH_DATA) local [all...] |
/packages/apps/Gallery2/src/com/android/photos/ |
MultiChoiceManager.java | 21 import android.content.Intent; 167 // but apparently before the ArrayList is serialized in the intent 183 public boolean onShareTargetSelected(ShareActionProvider provider, Intent intent) { 230 Intent intent = new Intent(); local 235 intent.setDataAndType(uri, mime) 236 .setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) 237 .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...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
WebViewContextMenu.java | 24 import android.content.Intent; 90 new Intent(Intent.ACTION_DIAL, Uri.parse(WebView.SCHEME_TEL)), 93 new Intent(Intent.ACTION_SENDTO, Uri.parse("smsto:")), 130 Intent send = new Intent(Intent.ACTION_SEND); 137 Intent send = new Intent(Intent.ACTION_SEND) [all...] |
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
AccessPermissionWithDiffSigTest.java | 25 import android.content.Intent; 93 Intent intent = item.getIntent(); local 94 uri = intent.getData(); 98 ClipData intentClip = intent.getClipData(); 183 Intent intent = item.getIntent(); local 184 uri = intent.getData(); 188 ClipData intentClip = intent.getClipData(); 282 // Intent 284 Intent intent = new Intent(Intent.ACTION_VIEW, grantClip4Uri); local 296 Intent intent = new Intent(); local 504 Intent intent = new Intent(); local 593 Intent intent = new Intent(); local 612 Intent intent = item.getIntent(); local 724 Intent intent = item.getIntent(); local 1350 Intent intent = new Intent(); local [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/Camera2/src/com/android/camera/crop/ |
CropActivity.java | 23 import android.content.Intent; 77 * The maximum bitmap size we allow to be returned through the intent. 80 * sure the intent stays below 1MB.We should consider just returning a byte 95 Intent intent = getIntent(); local 96 setResult(RESULT_CANCELED, new Intent()); 97 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/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
CropActivity.java | 23 import android.content.Intent; 80 * The maximum bitmap size we allow to be returned through the intent. 83 * sure the intent stays below 1MB.We should consider just returning a byte 98 Intent intent = getIntent(); local 99 setResult(RESULT_CANCELED, new Intent()); 100 mCropExtras = getExtrasFromIntent(intent); 121 if (intent.getData() != null) { 122 mSourceUri = intent.getData(); 151 * in the CROP intent 154 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...] |