Home
last modified time | relevance | path

Searched refs:shareIntent (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
DActionBarShareActionProvider.java44 final Intent shareIntent = new Intent(Intent.ACTION_SEND); in onPrepareOptionsPanel() local
45 shareIntent.setType("text/plain"); in onPrepareOptionsPanel()
46 shareIntent.putExtra(Intent.EXTRA_TEXT, "Hello!"); in onPrepareOptionsPanel()
48 sap.setShareIntent(shareIntent); in onPrepareOptionsPanel()
/frameworks/base/core/java/android/widget/
DShareActionProvider.java278 public void setShareIntent(Intent shareIntent) { in setShareIntent() argument
279 if (shareIntent != null) { in setShareIntent()
280 final String action = shareIntent.getAction(); in setShareIntent()
282 shareIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT | in setShareIntent()
288 dataModel.setIntent(shareIntent); in setShareIntent()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DShareActionProvider.java340 public void setShareIntent(Intent shareIntent) { in setShareIntent() argument
341 if (shareIntent != null) { in setShareIntent()
342 final String action = shareIntent.getAction(); in setShareIntent()
344 updateIntent(shareIntent); in setShareIntent()
349 dataModel.setIntent(shareIntent); in setShareIntent()
/frameworks/support/compat/java/android/support/v4/app/
DShareCompat.java150 public static void configureMenuItem(MenuItem item, IntentBuilder shareIntent) { in configureMenuItem() argument
154 provider = new ShareActionProvider(shareIntent.getActivity()); in configureMenuItem()
159 + shareIntent.getActivity().getClass().getName()); in configureMenuItem()
160 provider.setShareIntent(shareIntent.getIntent()); in configureMenuItem()
165 item.setIntent(shareIntent.createChooserIntent()); in configureMenuItem()
178 public static void configureMenuItem(Menu menu, int menuItemId, IntentBuilder shareIntent) { in configureMenuItem() argument
184 configureMenuItem(item, shareIntent); in configureMenuItem()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1004 final Intent shareIntent = new Intent(INTENT_BUGREPORT_SHARE); in sendBugreportNotification() local
1005 shareIntent.setClass(mContext, BugreportProgressService.class); in sendBugreportNotification()
1006 shareIntent.setAction(INTENT_BUGREPORT_SHARE); in sendBugreportNotification()
1007 shareIntent.putExtra(EXTRA_ID, info.id); in sendBugreportNotification()
1008 shareIntent.putExtra(EXTRA_INFO, info); in sendBugreportNotification()
1028 .setContentIntent(PendingIntent.getService(mContext, info.id, shareIntent, in sendBugreportNotification()