Home
last modified time | relevance | path

Searched refs:ClipDescription (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
DDragUtils.java19 import static android.content.ClipDescription.MIMETYPE_APPLICATION_ACTIVITY;
20 import static android.content.ClipDescription.MIMETYPE_APPLICATION_SHORTCUT;
21 import static android.content.ClipDescription.MIMETYPE_APPLICATION_TASK;
25 import android.content.ClipDescription;
60 public static boolean isAppDrag(ClipDescription description) { in isAppDrag()
98 public static String getMimeTypesConcatenated(ClipDescription description) { in getMimeTypesConcatenated()
DDragAndDropEventLogger.java19 import static android.content.ClipDescription.MIMETYPE_APPLICATION_ACTIVITY;
20 import static android.content.ClipDescription.MIMETYPE_APPLICATION_SHORTCUT;
21 import static android.content.ClipDescription.MIMETYPE_APPLICATION_TASK;
24 import android.content.ClipDescription;
58 ? session.appData.getParcelableExtra(ClipDescription.EXTRA_LOGGING_INSTANCE_ID, in logStart()
98 private DragAndDropUiEventEnum getStartEnum(ClipDescription description) { in getStartEnum()
DDragSession.java27 import android.content.ClipDescription;
77 ClipDescription getClipDescription() { in getClipDescription()
DDragAndDropPolicy.java24 import static android.content.ClipDescription.EXTRA_ACTIVITY_OPTIONS;
25 import static android.content.ClipDescription.EXTRA_PENDING_INTENT;
26 import static android.content.ClipDescription.MIMETYPE_APPLICATION_SHORTCUT;
27 import static android.content.ClipDescription.MIMETYPE_APPLICATION_TASK;
49 import android.content.ClipDescription;
261 final ClipDescription description = session.getClipDescription(); in launchApp()
/frameworks/base/core/java/android/view/inputmethod/
DInputContentInfo.java22 import android.content.ClipDescription;
58 private final ClipDescription mDescription;
74 public InputContentInfo(@NonNull Uri contentUri, @NonNull ClipDescription description) { in InputContentInfo()
91 public InputContentInfo(@NonNull Uri contentUri, @NonNull ClipDescription description, in InputContentInfo()
125 @NonNull ClipDescription description, @Nullable Uri linkUri, boolean throwException) { in validateInternal()
178 public ClipDescription getDescription() { return mDescription; } in getDescription()
261 mDescription = ClipDescription.CREATOR.createFromParcel(source); in InputContentInfo()
/frameworks/base/core/java/android/content/
DClipDescription.java52 public class ClipDescription implements Parcelable { class
205 public ClipDescription(CharSequence label, String[] mimeTypes) { in ClipDescription() method in ClipDescription
216 public ClipDescription(ClipDescription o) { in ClipDescription() method in ClipDescription
602 ClipDescription(Parcel in) { in ClipDescription() method in ClipDescription
612 public static final @android.annotation.NonNull Parcelable.Creator<ClipDescription> CREATOR =
613 new Parcelable.Creator<ClipDescription>() {
615 public ClipDescription createFromParcel(Parcel source) {
616 return new ClipDescription(source);
619 public ClipDescription[] newArray(int size) {
620 return new ClipDescription[size];
DIClipboard.aidl20 import android.content.ClipDescription;
36 ClipDescription getPrimaryClipDescription(String callingPackage, String attributionTag, in getPrimaryClipDescription()
DClipDescription.aidl19 parcelable ClipDescription;
DClipData.java175 ClipDescription.MIMETYPE_TEXT_PLAIN };
177 ClipDescription.MIMETYPE_TEXT_HTML };
179 ClipDescription.MIMETYPE_TEXT_URILIST };
181 ClipDescription.MIMETYPE_TEXT_INTENT };
183 final ClipDescription mClipDescription;
872 mClipDescription = new ClipDescription(label, mimeTypes); in ClipData()
888 public ClipData(ClipDescription description, Item item) { in ClipData()
908 public ClipData(ClipDescription description, ArrayList<Item> items) { in ClipData()
1056 public ClipDescription getDescription() { in getDescription()
1356 mClipDescription = new ClipDescription(in); in ClipData()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewReceiveContentTest.java41 import android.content.ClipDescription;
135 ClipDescription description = new ClipDescription("", new String[] {"image/gif"}); in testOnReceive_fallbackToCommitContent()
157 ClipDescription description = new ClipDescription("", new String[] {"image/gif"}); in testOnReceive_fallbackToCommitContent_noMimeTypesInEditorInfo()
178 ClipDescription description = new ClipDescription("", new String[] {"image/gif"}); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRowDragController.java29 import android.content.ClipDescription;
123 ClipDescription clipDescription = new ClipDescription("Drag And Drop", in startDragAndDrop()
124 new String[]{ClipDescription.MIMETYPE_APPLICATION_ACTIVITY}); in startDragAndDrop()
126 dragIntent.putExtra(ClipDescription.EXTRA_PENDING_INTENT, contentIntent); in startDragAndDrop()
130 item.getIntent().putExtra(ClipDescription.EXTRA_LOGGING_INSTANCE_ID, instanceId); in startDragAndDrop()
/frameworks/base/core/java/android/view/
DDragEvent.java21 import android.content.ClipDescription;
135 ClipDescription mClipDescription;
301 ClipDescription description, ClipData data, SurfaceControl dragSurface, in init()
323 int flags, Object localState, ClipDescription description, ClipData data, in obtain()
425 public ClipDescription getClipDescription() { in getClipDescription()
633 event.mClipDescription = ClipDescription.CREATOR.createFromParcel(in);
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/
DDragAndDropPolicyTest.java22 import static android.content.ClipDescription.MIMETYPE_APPLICATION_ACTIVITY;
23 import static android.content.ClipDescription.MIMETYPE_APPLICATION_SHORTCUT;
24 import static android.content.ClipDescription.MIMETYPE_APPLICATION_TASK;
25 import static android.content.ClipDescription.MIMETYPE_TEXT_INTENT;
58 import android.content.ClipDescription;
183 ClipDescription clipDescription = new ClipDescription(mimeType, new String[] { mimeType }); in createAppClipData()
196 i.putExtra(ClipDescription.EXTRA_PENDING_INTENT, pi); in createAppClipData()
211 ClipDescription clipDescription = new ClipDescription("Intent", in createIntentClipData()
DDragAndDropControllerTest.java19 import static android.content.ClipDescription.MIMETYPE_APPLICATION_SHORTCUT;
33 import android.content.ClipDescription;
153 ClipDescription clipDescription = new ClipDescription(MIMETYPE_APPLICATION_SHORTCUT, in createClipData()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayUtilsTest.java30 import android.content.ClipDescription;
148 b.putBoolean(ClipDescription.EXTRA_IS_REMOTE_DEVICE, true); in test_extra_withPackage_returnsTrue()
172 b.putBoolean(ClipDescription.EXTRA_IS_REMOTE_DEVICE, false); in test_falseExtra_returnsFalse()
185 b.putBoolean(ClipDescription.EXTRA_IS_REMOTE_DEVICE, true); in test_wrongPackage_returnsFalse()
194 ClipDescription description = new ClipDescription("Test", mimeTypes); in constructClipData()
DClipboardListenerTest.java32 import android.content.ClipDescription;
156 ClipDescription desc = new ClipDescription("Test", new String[]{"text/plain"}); in test_shouldSuppressOverlay()
241 ClipDescription description = new ClipDescription("Test", new String[0]); in test_emptyClipData_showsToast()
DClipboardOverlayControllerTest.java44 import android.content.ClipDescription;
213 ClipDescription description = mSampleClipData.getDescription(); in test_setClipData_sensitiveTextData_legacy()
215 b.putBoolean(ClipDescription.EXTRA_IS_SENSITIVE, true); in test_setClipData_sensitiveTextData_legacy()
278 ClipDescription description = mSampleClipData.getDescription(); in test_setClipData_sensitiveTextData()
280 b.putBoolean(ClipDescription.EXTRA_IS_SENSITIVE, true); in test_setClipData_sensitiveTextData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DActionIntentCreator.kt20 import android.content.ClipDescription
56 ClipDescription("content", arrayOf(ClipDescription.MIMETYPE_TEXT_PLAIN)), in createShare()
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DEditTextActivity.java23 import android.content.ClipDescription;
104 .getBoolean(ClipDescription.EXTRA_IS_SENSITIVE); in onStart()
126 extras.putBoolean(ClipDescription.EXTRA_IS_SENSITIVE, mSensitive); in saveToClipboard()
DClipboardOverlayUtils.java21 import android.content.ClipDescription;
55 ClipDescription.EXTRA_IS_REMOTE_DEVICE)) { in isRemoteCopy()
DIntentCreator.java20 import android.content.ClipDescription;
52 new ClipDescription( in getShareIntent()
/frameworks/base/core/java/android/widget/
DTextViewOnReceiveContentListener.java30 import android.content.ClipDescription;
268 ClipDescription description = clip.getDescription(); in handleNonTextViaImeCommitContent()
326 @NonNull ClipDescription description) { in isClipMimeTypeSupported()
346 ClipDescription description = clip.getDescription(); in containsOnlyText()
/frameworks/base/services/fakes/java/com/android/server/
DFakeClipboardService.java20 import android.content.ClipDescription;
112 public ClipDescription getPrimaryClipDescription(String callingPackage, String attributionTag, in getPrimaryClipDescription()
/frameworks/layoutlib/bridge/src/android/content/
DClipboardManager.java83 public @Nullable ClipDescription getPrimaryClipDescription() { in getPrimaryClipDescription()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDragDropControllerTests.java20 import static android.content.ClipDescription.MIMETYPE_APPLICATION_ACTIVITY;
21 import static android.content.ClipDescription.MIMETYPE_APPLICATION_SHORTCUT;
22 import static android.content.ClipDescription.MIMETYPE_APPLICATION_TASK;
51 import android.content.ClipDescription;
393 data.putExtra(ClipDescription.EXTRA_PENDING_INTENT, (Parcelable) pi); in createClipDataForActivity()
399 new ClipDescription("drag", new String[] { in createClipDataForActivity()
472 new ClipDescription("drag", new String[] { in createClipDataForShortcut()
485 new ClipDescription("drag", new String[] { MIMETYPE_APPLICATION_TASK }), in testValidateAppTaskArguments()

123