Home
last modified time | relevance | path

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

/development/samples/ReceiveContentDemo/src/com/example/android/receivecontent/
DUtils.java37 ClipData clip = payload.getClip(); in partition() local
38 if (clip.getItemCount() == 1) { in partition()
39 boolean matched = itemPredicate.test(clip.getItemAt(0)); in partition()
44 for (int i = 0; i < clip.getItemCount(); i++) { in partition()
45 ClipData.Item item = clip.getItemAt(i); in partition()
59 .setClip(buildClipData(new ClipDescription(clip.getDescription()), acceptedItems)) in partition()
62 .setClip(buildClipData(new ClipDescription(clip.getDescription()), remainingItems)) in partition()
69 ClipData clip = new ClipData(new ClipDescription(description), items.get(0)); in buildClipData() local
71 clip.addItem(items.get(i)); in buildClipData()
73 return clip; in buildClipData()
[all …]
/development/samples/ReceiveShareDemo/src/com/example/android/receiveshare/
DReceiveShare.java38 ClipData clip = intent.getClipData(); in getShareUri() local
39 if (clip != null && clip.getItemCount() > 0) { in getShareUri()
40 uri = clip.getItemAt(0).getUri(); in getShareUri()
107 ClipData clip = ClipData.newUri(getContentResolver(), "Something", uri); in onCreate()
108 intent.setClipData(clip); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DClipboardSample.java130 ClipData clip = mClipboard.getPrimaryClip(); in updateClipData() local
131 String[] mimeTypes = clip != null ? clip.getDescription().filterMimeTypes("*/*") : null; in updateClipData()
145 if (clip != null) { in updateClipData()
146 ClipData.Item item = clip.getItemAt(0); in updateClipData()
163 if (clip != null) { in updateClipData()
164 ClipData.Item item = clip.getItemAt(0); in updateClipData()
/development/samples/NotePad/src/com/example/android/notepad/
DNoteEditor.java406 ClipData clip = clipboard.getPrimaryClip(); in performPaste() local
407 if (clip != null) { in performPaste()
413 ClipData.Item item = clip.getItemAt(0); in performPaste()
/development/tools/winscope/src/
DNodeContextMenu.vue29 background-clip: padding-box;