Home
last modified time | relevance | path

Searched refs:ClipData (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DDocumentClipper.java19 import android.content.ClipData;
58 ClipData clipData = mClipboard.getPrimaryClip(); in hasItemsToPaste()
62 ClipData.Item item = clipData.getItemAt(i); in hasItemsToPaste()
82 ClipData data = mClipboard.getPrimaryClip(); in getClippedDocuments()
90 public List<DocumentInfo> getDocumentsFromClipData(ClipData clipData) { in getDocumentsFromClipData()
101 ClipData.Item item = clipData.getItemAt(i); in getDocumentsFromClipData()
128 public @Nullable ClipData getClipDataForDocuments(List<DocumentInfo> docs) { in getClipDataForDocuments()
131 ClipData clipData = null; in getClipDataForDocuments()
137 clipData = new ClipData(label, mimeTypes, new ClipData.Item(doc.derivedUri)); in getClipDataForDocuments()
140 clipData.addItem(new ClipData.Item(doc.derivedUri)); in getClipDataForDocuments()
[all …]
DQuickViewIntentBuilder.java23 import android.content.ClipData;
89 ClipData clipData = null; in build()
90 ClipData.Item item; in build()
94 item = new ClipData.Item(uri); in build()
97 clipData = new ClipData( in build()
DFilesActivity.java25 import android.content.ClipData;
442 final ClipData clipData = new ClipData( in onTaskFinished()
443 null, mState.acceptMimes, new ClipData.Item(uris[0])); in onTaskFinished()
445 clipData.addItem(new ClipData.Item(uris[i])); in onTaskFinished()
DDocumentsActivity.java29 import android.content.ClipData;
398 final ClipData clipData = new ClipData( in onTaskFinished()
399 null, mState.acceptMimes, new ClipData.Item(uris[0])); in onTaskFinished()
401 clipData.addItem(new ClipData.Item(uris[i])); in onTaskFinished()
/frameworks/base/core/java/android/content/
DClipData.java153 public class ClipData implements Parcelable { class
653 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData() method in ClipData
669 public ClipData(ClipDescription description, Item item) { in ClipData() method in ClipData
685 public ClipData(ClipData other) { in ClipData() method in ClipData
699 static public ClipData newPlainText(CharSequence label, CharSequence text) { in newPlainText()
701 return new ClipData(label, MIMETYPES_TEXT_PLAIN, item); in newPlainText()
714 static public ClipData newHtmlText(CharSequence label, CharSequence text, in newHtmlText()
717 return new ClipData(label, MIMETYPES_TEXT_HTML, item); in newHtmlText()
728 static public ClipData newIntent(CharSequence label, Intent intent) { in newIntent()
730 return new ClipData(label, MIMETYPES_TEXT_INTENT, item); in newIntent()
[all …]
DIClipboard.aidl19 import android.content.ClipData;
29 void setPrimaryClip(in ClipData clip, String callingPackage); in setPrimaryClip()
30 ClipData getPrimaryClip(String pkg); in getPrimaryClip()
DClipboardManager.java118 public void setPrimaryClip(ClipData clip) { in setPrimaryClip()
132 public ClipData getPrimaryClip() { in getPrimaryClip()
196 ClipData clip = getPrimaryClip(); in getText()
209 setPrimaryClip(ClipData.newPlainText(null, text)); in setText()
DClipData.aidl19 parcelable ClipData;
DIntent.java962 ClipData targetClipData = target.getClipData(); in createChooser()
964 ClipData.Item item = new ClipData.Item(target.getData()); in createChooser()
971 targetClipData = new ClipData(null, mimeTypes, item); in createChooser()
4777 private ClipData mClipData;
4812 this.mClipData = new ClipData(o.mClipData); in Intent()
6019 public ClipData getClipData() { in getClipData()
7059 public void setClipData(ClipData clip) { in setClipData()
8725 mClipData = new ClipData(in); in readFromParcel()
9071 final ClipData clipData = new ClipData( in migrateExtraStreamToClipData()
9073 new ClipData.Item(text, htmlText, null, stream)); in migrateExtraStreamToClipData()
[all …]
/frameworks/support/v13/java/android/support/v13/view/
DViewCompat.java19 import android.content.ClipData;
29 boolean startDragAndDrop(View v, ClipData data, View.DragShadowBuilder shadowBuilder, in startDragAndDrop()
37 public boolean startDragAndDrop(View v, ClipData data, View.DragShadowBuilder shadowBuilder, in startDragAndDrop()
55 public boolean startDragAndDrop(View v, ClipData data, View.DragShadowBuilder shadowBuilder, in startDragAndDrop()
84 public static boolean startDragAndDrop(View v, ClipData data, in startDragAndDrop()
/frameworks/base/docs/html/guide/topics/text/
Dcopy-paste.jd38 ClipData, ClipDescription, and ClipData.Item
42 <a href="#ClipDataMethods">ClipData convenience methods</a>
90 {@link android.content.ClipData ClipData}
93 {@link android.content.ClipData.Item ClipData.Item}
195 <h3 id="ClipClasses">ClipData, ClipData.Item, and ClipDescription</h3>
197 To add data to the clipboard, you create a {@link android.content.ClipData} object that
199 {@link android.content.ClipData} at a time. A {@link android.content.ClipData} contains a
201 {@link android.content.ClipData.Item} objects.
210 A {@link android.content.ClipData.Item} object contains the text, URI, or Intent data:
231 You can add more than one {@link android.content.ClipData.Item} object to a clip. This allows
[all …]
/frameworks/base/core/java/android/app/assist/
DAssistContent.java3 import android.content.ClipData;
20 private ClipData mClipData;
85 public void setClipData(ClipData clip) { in setClipData()
92 public ClipData getClipData() { in getClipData()
156 mClipData = ClipData.CREATOR.createFromParcel(in); in AssistContent()
/frameworks/base/core/java/android/view/
DDragEvent.java19 import android.content.ClipData;
132 ClipData mClipData;
261 private void init(int action, float x, float y, ClipDescription description, ClipData data, in init()
279 ClipDescription description, ClipData data, in obtain()
351 public ClipData getClipData() { in getClipData()
514 event.mClipData = ClipData.CREATOR.createFromParcel(in);
DIWindowSession.aidl20 import android.content.ClipData;
192 float touchX, float touchY, float thumbCenterX, float thumbCenterY, in ClipData data); in performDrag()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java24 import android.content.ClipData;
82 ClipData primaryClip;
160 public void setPrimaryClip(ClipData clip, String callingPackage) { in setPrimaryClip()
195 clip = new ClipData(clip); in setPrimaryClip()
197 clip.setItemAt(i, new ClipData.Item(clip.getItemAt(i))); in setPrimaryClip()
226 void setPrimaryClipInternal(PerUserClipboard clipboard, ClipData clip) { in setPrimaryClipInternal()
255 public ClipData getPrimaryClip(String pkg) { in getPrimaryClip()
332 private final void checkItemOwnerLocked(ClipData.Item item, int uid) { in checkItemOwnerLocked()
342 private final void checkDataOwnerLocked(ClipData data, int uid) { in checkDataOwnerLocked()
362 private final void grantItemLocked(ClipData.Item item, String pkg, int userId) { in grantItemLocked()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DDumpHeapActivity.java23 import android.content.ClipData;
67 ClipData clip = ClipData.newUri(getContentResolver(), "Heap Dump", JAVA_URI); in onCreate()
103 ClipData clip = ClipData.newUri(getContentResolver(), "Heap Dump", JAVA_URI); in onCreate()
/frameworks/support/v13/api24/android/support/v13/view/
DViewCompatApi24.java19 import android.content.ClipData;
23 public static boolean startDragAndDrop(View v, ClipData data, in startDragAndDrop()
/frameworks/support/compat/jellybean/android/support/v4/app/
DRemoteInputCompatJellybean.java19 import android.content.ClipData;
80 ClipData clipData = intent.getClipData(); in getResultsFromIntent()
105 intent.setClipData(ClipData.newIntent(RESULTS_CLIP_LABEL, clipIntent)); in addResultsToIntent()
/frameworks/opt/chips/src/com/android/ex/chips/
DCopyDialog.java6 import android.content.ClipData;
48 clipboard.setPrimaryClip(ClipData.newPlainText(null, mText)); in onClick()
/frameworks/base/core/java/android/app/
DRemoteInput.java19 import android.content.ClipData;
247 ClipData clipData = intent.getClipData(); in getResultsFromIntent()
283 intent.setClipData(ClipData.newIntent(RESULTS_CLIP_LABEL, clipIntent)); in addResultsToIntent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DClipboardView.java17 import android.content.ClipData;
33 private ClipData mCurrentClip;
/frameworks/base/docs/html/guide/topics/ui/
Ddrag-drop.jd84 {@link android.content.ClipData ClipData}
160 {@link android.view.View#startDrag(ClipData,View.DragShadowBuilder,Object,int) startDrag()}
166 {@link android.view.View#startDrag(ClipData,View.DragShadowBuilder,Object,int) startDrag()}
172 {@link android.view.View#startDrag(ClipData,View.DragShadowBuilder,Object,int) startDrag()},
186 {@link android.view.View#startDrag(ClipData,View.DragShadowBuilder,Object,int) startDrag()}
188 {@link android.view.View#startDrag(ClipData,View.DragShadowBuilder,Object,int) startDrag()}
232 {@link android.view.View#startDrag(ClipData,View.DragShadowBuilder,Object,int) startDrag()}
299 {@link android.view.View#startDrag(ClipData,View.DragShadowBuilder,Object,int) startDrag()}.
318 {@link android.view.View#startDrag(ClipData,View.DragShadowBuilder,Object,int) startDrag()} and
470 {@link android.view.View#startDrag(ClipData,View.DragShadowBuilder,Object,int) startDrag()}.
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDragAndDropPermissionsHandler.java20 import android.content.ClipData;
44 DragAndDropPermissionsHandler(ClipData clipData, int sourceUid, String targetPackage, int mode, in DragAndDropPermissionsHandler()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionSessionConnection.java25 import android.content.ClipData;
354 void grantClipDataItemPermission(ClipData.Item item, int mode, int srcUid, int destUid, in grantClipDataItemPermission()
365 void grantClipDataPermissions(ClipData data, int mode, int srcUid, int destUid, in grantClipDataPermissions()
428 ClipData data = intent.getClipData(); in deliverSessionDataLocked()
434 ClipData data = content.getClipData(); in deliverSessionDataLocked()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeWindowSession.java19 import android.content.ClipData;
152 ClipData data) in performDrag()

123