HomeSort by relevance Sort by last modified time
    Searched full:clipdata (Results 1 - 25 of 160) sorted by null

1 2 3 4 5 6 7

  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DocumentClipper.java 19 import android.content.ClipData;
58 ClipData clipData = mClipboard.getPrimaryClip();
59 int count = clipData.getItemCount();
62 ClipData.Item item = clipData.getItemAt(i);
78 * Returns a list of Documents as decoded from Clipboard primary clipdata.
82 ClipData data = mClipboard.getPrimaryClip();
87 * Returns a list of Documents as decoded in clipData.
90 public List<DocumentInfo> getDocumentsFromClipData(ClipData clipData)
    [all...]
QuickViewIntentBuilder.java 23 import android.content.ClipData;
89 ClipData clipData = null;
90 ClipData.Item item;
94 item = new ClipData.Item(uri);
96 if (clipData == null) {
97 clipData = new ClipData(
101 clipData.addItem(item);
106 // ClipData contains a slice of "uris", so we need to shift the locatio
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
ReadableFileReceiverActivity.java 19 import android.content.ClipData;
20 import android.content.ClipData.Item;
52 // Sends ACTION_FILE_READY intent when read from clipdata uri is succesful
65 Log.e(TAG, "Could not get files from clipdata.");
80 ClipData clipData = intent.getClipData();
81 if (clipData == null) {
82 Log.e(TAG, "ClipData missing.");
85 if (clipData.getItemCount() == 0) {
86 Log.e(TAG, "Uri missing in ClipData.")
    [all...]
ClipboardManagerTest.java 19 import android.content.ClipData;
24 import android.content.ClipData.Item;
59 clipboardManager.setPrimaryClip(ClipData.newPlainText("Label", "Text"));
65 ClipData textData = ClipData.newPlainText("TextLabel", "Text");
74 ClipData intentData = ClipData.newIntent("IntentLabel", intent);
83 ClipData uriData = ClipData.newRawUri("UriLabel", uri);
92 ClipData contentUriData = ClipData.newUri(mContext.getContentResolver()
    [all...]
ImageCaptureActivity.java 19 import android.content.ClipData;
20 import android.content.ClipData.Item;
51 // Sends ACTION_FILE_READY intent when write to clipdata uri is succesful.
63 Log.e(TAG, "Could not get file from clipdata.");
80 ClipData clipData = intent.getClipData();
81 if (clipData == null) {
82 Log.e(TAG, "ClipData missing.");
85 if (clipData.getItemCount() == 0) {
86 Log.e(TAG, "Uri missing in ClipData.")
    [all...]
ClipboardManagerListenerTest.java 19 import android.content.ClipData;
48 mActivity.setPrimaryClip(ClipData.newPlainText("Label", "Text"));
51 mActivity.setPrimaryClip(ClipData.newPlainText("Label", "Text"));
55 mActivity.setPrimaryClip(ClipData.newRawUri("Label", Uri.parse("http://www.google.com")));
ClipboardManagerListenerActivity.java 20 import android.content.ClipData;
46 public synchronized void setPrimaryClip(ClipData clip) {
  /developers/samples/android/ui/window/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/dragsource/
ImageDragListener.java 19 import android.content.ClipData;
28 * the first {@link android.content.ClipData.Item} in the {@link DragEvent} is set as the image
79 ClipData clipData = event.getClipData();
80 if (clipData == null || clipData.getItemCount() == 0) {
83 ClipData.Item item = clipData.getItemAt(0);
  /cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
CopyPasteTest.java 20 import android.content.ClipData;
57 ClipData clip = ClipData.newPlainText(""/*label*/, INITIAL_TEXT);
67 ClipData clip = ClipData.newPlainText(""/*label*/, INITIAL_TEXT);
98 ClipData clip = mClipboard.getPrimaryClip();
102 ClipData.Item item = clip.getItemAt(0);
  /developers/samples/android/ui/window/DragAndDropAcrossApps/DropTarget/src/main/java/com/example/android/droptarget/
ImageDragListener.java 19 import android.content.ClipData;
71 ClipData clipData = event.getClipData();
72 if (clipData == null || clipData.getItemCount() == 0) {
75 ClipData.Item item = clipData.getItemAt(0);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/
ClipboardUtils.java 19 import android.content.ClipData;
44 ClipData clipData = ClipData.newPlainText(label == null ? "" : label, text);
45 clipboardManager.setPrimaryClip(clipData);
  /cts/hostsidetests/services/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/
DragSource.java 20 import android.content.ClipData;
84 final ClipData clipData = new ClipData(clipDescription, new ClipData.Item(uri));
86 clipData,
  /development/samples/ApiDemos/src/com/example/android/apis/media/
VideoViewDemo.java 19 import android.content.ClipData;
58 ClipData clipData = event.getClipData();
59 if (clipData.getItemCount() != 1) {
62 ClipData.Item item = clipData.getItemAt(0);
  /external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
AndroidClipboard.java 19 import android.content.ClipData;
43 ClipData clip = honeycombClipboard.getPrimaryClip();
56 ClipData data = ClipData.newPlainText(contents, contents);
  /external/skia/tests/
ClipBoundsTest.cpp 56 GrClip clipData;
57 clipData.setClipStack(&stack);
60 clipData.getConservativeBounds(texture->width(), texture->height(),
  /frameworks/base/core/java/android/content/
IClipboard.aidl 19 import android.content.ClipData;
29 void setPrimaryClip(in ClipData clip, String callingPackage);
30 ClipData getPrimaryClip(String pkg);
ClipData.java 45 * <p>ClipData is a complex type containing one or more Item instances,
49 * <p>A ClipData contains a {@link ClipDescription}, which describes
72 * <p>To implement a paste or drop of a ClipData object into an application,
86 * "content:" URIs. A content URI allows the recipient of a ClipData item
112 * {@sample frameworks/base/core/java/android/content/ClipData.java coerceToText}
117 * <p>To be the source of a clip, the application must construct a ClipData
153 public class ClipData implements Parcelable {
170 * Description of a single item in a ClipData.
360 Log.w("ClipData", "Failure loading text", e);
543 Log.w("ClipData", "Failure loading text", e)
    [all...]
ClipData.aidl 19 parcelable ClipData;
  /frameworks/support/v13/java/android/support/v13/view/
ViewCompat.java 19 import android.content.ClipData;
29 boolean startDragAndDrop(View v, ClipData data, View.DragShadowBuilder shadowBuilder,
37 public boolean startDragAndDrop(View v, ClipData data, View.DragShadowBuilder shadowBuilder,
55 public boolean startDragAndDrop(View v, ClipData data, View.DragShadowBuilder shadowBuilder,
84 public static boolean startDragAndDrop(View v, ClipData data,
  /frameworks/support/compat/jellybean/android/support/v4/app/
RemoteInputCompatJellybean.java 19 import android.content.ClipData;
80 ClipData clipData = intent.getClipData();
81 if (clipData == null) {
84 ClipDescription clipDescription = clipData.getDescription();
89 return clipData.getItemAt(0).getIntent().getExtras().getParcelable(EXTRA_RESULTS_DATA);
105 intent.setClipData(ClipData.newIntent(RESULTS_CLIP_LABEL, clipIntent));
  /cts/hostsidetests/services/windowmanager/dndtargetapp/src/android/wm/cts/dndtargetapp/
DropTarget.java 20 import android.content.ClipData;
132 final ClipData clipData = event.getClipData();
133 if (clipData == null) {
134 return "Null ClipData";
136 if (clipData.getItemCount() == 0) {
137 return "Empty ClipData";
139 ClipData.Item item = clipData.getItemAt(0);
141 return "Null ClipData.Item"
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/content/
ClipboardSample.java 23 import android.content.ClipData;
109 mClipboard.setPrimaryClip(ClipData.newPlainText("Styled Text", mStyledText));
113 mClipboard.setPrimaryClip(ClipData.newPlainText("Styled Text", mPlainText));
117 mClipboard.setPrimaryClip(ClipData.newHtmlText("HTML Text", mHtmlPlainText, mHtmlText));
122 mClipboard.setPrimaryClip(ClipData.newIntent("VIEW intent", intent));
126 mClipboard.setPrimaryClip(ClipData.newRawUri("URI", Uri.parse("http://www.android.com/")));
130 ClipData clip = mClipboard.getPrimaryClip();
146 ClipData.Item item = clip.getItemAt(0);
164 ClipData.Item item = clip.getItemAt(0);
  /frameworks/base/services/core/java/com/android/server/wm/
DragAndDropPermissionsHandler.java 20 import android.content.ClipData;
44 DragAndDropPermissionsHandler(ClipData clipData, int sourceUid, String targetPackage, int mode,
52 clipData.collectUris(mUris);
  /packages/apps/Nfc/src/com/android/nfc/
BeamShareActivity.java 26 import android.content.ClipData;
149 ClipData clipData = intent.getClipData();
150 if (clipData != null && clipData.getItemCount() > 0) {
151 for (int i = 0; i < clipData.getItemCount(); i++) {
152 ClipData.Item item = clipData.getItemAt(i);
163 if (DBG) Log.d(TAG, "Found uri in ClipData.");
166 if (DBG) Log.d(TAG, "Found text in ClipData.")
    [all...]
  /frameworks/base/docs/html/guide/topics/text/
copy-paste.jd 2 page.tags=clipboardmanager,clipdata,input
38 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
    [all...]

Completed in 1874 milliseconds

1 2 3 4 5 6 7