/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/ |
D | IntentCreatorTest.java | 22 import android.content.ClipData; 56 ClipData clipData = ClipData.newPlainText("Test", "Test Item"); in test_getRemoteCopyIntent() 96 ClipData clipData = ClipData.newPlainText("Test", "Test Item"); in test_getShareIntent_plaintext() 108 ClipData clipData = ClipData.newHtmlText("Test", "Some HTML", in test_getShareIntent_html() 122 ClipData clipData = new ClipData("Test", new String[]{"image/png"}, in test_getShareIntent_image() 123 new ClipData.Item(uri)); in test_getShareIntent_image() 135 ClipData clipData = ClipData.newPlainText("Test", new SpannableString("Test Item")); in test_getShareIntent_spannableText()
|
D | ClipboardOverlayControllerTest.java | 40 import android.content.ClipData; 99 private ClipData mSampleClipData; 119 mSampleClipData = new ClipData("Test", new String[]{"text/plain"}, in setup() 120 new ClipData.Item("Test Item")); in setup() 148 ClipData clipData = new ClipData("", new String[]{"image/png"}, in test_setClipData_invalidImageData_legacy() 149 new ClipData.Item(Uri.parse(""))); in test_setClipData_invalidImageData_legacy() 161 ClipData clipData = new ClipData("", new String[]{"resource/png"}, in test_setClipData_nonImageUri_legacy() 162 new ClipData.Item(Uri.parse(""))); in test_setClipData_nonImageUri_legacy() 190 ClipData data = new ClipData(description, mSampleClipData.getItemAt(0)); in test_setClipData_sensitiveTextData_legacy() 293 ClipData.Item item = mSampleClipData.getItemAt(0); in test_logOnClipboardActionsShown_legacy() [all …]
|
D | ClipboardModelTest.kt | 18 import android.content.ClipData 47 private lateinit var mSampleClipData: ClipData 52 mSampleClipData = ClipData("Test", arrayOf("text/plain"), ClipData.Item("Test Item")) in setup() 76 val data = ClipData(description, mSampleClipData.getItemAt(0)) in test_sensitiveExtra() 98 ClipData("Test", arrayOf("text/plain"), ClipData.Item(Uri.parse("test"))) in test_imageClipData() 112 ClipData("Test", arrayOf("text/plain"), ClipData.Item(Uri.parse("test"))) in test_imageClipData_loadFailure()
|
D | ClipboardOverlayUtilsTest.java | 29 import android.content.ClipData; 69 private ClipData.Item mClipDataItem; 149 ClipData.Item item = new ClipData.Item("no text links"); in test_getAction_noLinks_returnsEmptyOptional_legacy() 224 ClipData data = constructClipData( in test_extra_withPackage_returnsTrue() 225 new String[]{"text/plain"}, new ClipData.Item("6175550000"), b); in test_extra_withPackage_returnsTrue() 235 ClipData data = constructClipData( in test_noExtra_returnsFalse() 236 new String[]{"text/plain"}, new ClipData.Item("6175550000"), null); in test_noExtra_returnsFalse() 248 ClipData data = constructClipData( in test_falseExtra_returnsFalse() 249 new String[]{"text/plain"}, new ClipData.Item("6175550000"), b); in test_falseExtra_returnsFalse() 261 ClipData data = constructClipData( in test_wrongPackage_returnsFalse() [all …]
|
D | ClipboardListenerTest.java | 32 import android.content.ClipData; 72 private ClipData mSampleClipData; 78 private ArgumentCaptor<ClipData> mClipDataCaptor; 97 mSampleClipData = new ClipData("Test", new String[]{"text/plain"}, in setup() 98 new ClipData.Item("Test Item")); in setup() 160 ClipData suppressableClipData = new ClipData(desc, new ClipData.Item("Test Item")); in test_shouldSuppressOverlay() 214 ClipData noItems = new ClipData(description, new ArrayList<>()); in test_emptyClipData_showsToast()
|
/frameworks/base/core/java/android/view/ |
D | ContentInfo.java | 24 import android.content.ClipData; 138 private final ClipData mClip; 195 public ClipData getClip() { in getClip() 259 @NonNull Predicate<ClipData.Item> itemPredicate) { in partition() 264 ArrayList<ClipData.Item> acceptedItems = new ArrayList<>(); in partition() 265 ArrayList<ClipData.Item> remainingItems = new ArrayList<>(); in partition() 267 ClipData.Item item = mClip.getItemAt(i); in partition() 281 .setClip(new ClipData(new ClipDescription(mClip.getDescription()), acceptedItems)) in partition() 284 .setClip(new ClipData(new ClipDescription(mClip.getDescription()), remainingItems)) in partition() 294 private ClipData mClip; [all …]
|
D | DragEvent.java | 20 import android.content.ClipData; 137 ClipData mClipData; 294 ClipDescription description, ClipData data, SurfaceControl dragSurface, in init() 315 Object localState, ClipDescription description, ClipData data, in obtain() 401 public ClipData getClipData() { in getClipData() 615 event.mClipData = ClipData.CREATOR.createFromParcel(in);
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewReceiveContentTest.java | 40 import android.content.ClipData; 136 ClipData clip = new ClipData(description, new ClipData.Item(SAMPLE_CONTENT_URI)); in testOnReceive_fallbackToCommitContent() 158 ClipData clip = new ClipData(description, new ClipData.Item(SAMPLE_CONTENT_URI)); in testOnReceive_fallbackToCommitContent_noMimeTypesInEditorInfo() 179 ClipData clip = new ClipData(description, new ClipData.Item(SAMPLE_CONTENT_URI)); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill()
|
/frameworks/base/core/java/android/content/ |
D | ClipData.java | 166 public class ClipData implements Parcelable { class 769 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData() method in ClipData 786 public ClipData(ClipDescription description, Item item) { in ClipData() method in ClipData 806 public ClipData(ClipDescription description, ArrayList<Item> items) { in ClipData() method in ClipData 821 public ClipData(ClipData other) { in ClipData() method in ClipData 831 public ClipData copyForTransferWithActivityInfo() { in copyForTransferWithActivityInfo() 832 ClipData copy = new ClipData(this); in copyForTransferWithActivityInfo() 853 static public ClipData newPlainText(CharSequence label, CharSequence text) { in newPlainText() 855 return new ClipData(label, MIMETYPES_TEXT_PLAIN, item); in newPlainText() 868 static public ClipData newHtmlText(CharSequence label, CharSequence text, in newHtmlText() [all …]
|
D | IClipboard.aidl | 19 import android.content.ClipData; 29 void setPrimaryClip(in ClipData clip, String callingPackage, String attributionTag, int userId); in setPrimaryClip() 30 …void setPrimaryClipAsPackage(in ClipData clip, String callingPackage, String attributionTag, int u… in setPrimaryClipAsPackage() 33 ClipData getPrimaryClip(String pkg, String attributionTag, int userId); in getPrimaryClip()
|
D | ClipboardManager.java | 128 public void setPrimaryClip(@NonNull ClipData clip) { in setPrimaryClip() 155 public void setPrimaryClipAsPackage(@NonNull ClipData clip, @NonNull String sourcePackage) { in setPrimaryClipAsPackage() 195 public @Nullable ClipData getPrimaryClip() { in getPrimaryClip() 283 ClipData clip = getPrimaryClip(); in getText() 297 setPrimaryClip(ClipData.newPlainText(null, text)); in setText()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DragDropControllerTests.java | 46 import android.content.ClipData; 198 doDragAndDrop(0, ClipData.newPlainText("label", "Test"), 0, 0); in testDragFlow() 204 doA11yDragAndDrop(0, ClipData.newPlainText("label", "Test"), 0, 0); in testA11yDragFlow() 247 ClipData.newPlainText("label", "text"), () -> { in testPrivateInterceptGlobalDragDropFlagBehaviour() 348 private ClipData createClipDataForActivity(PendingIntent pi, UserHandle user) { in createClipDataForActivity() 356 final ClipData clipData = new ClipData( in createClipDataForActivity() 359 new ClipData.Item(data)); in createClipDataForActivity() 423 private ClipData createClipDataForShortcut(String packageName, String shortcutId, in createClipDataForShortcut() 435 final ClipData clipData = new ClipData( in createClipDataForShortcut() 438 new ClipData.Item(data)); in createClipDataForShortcut() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | TextViewOnReceiveContentListener.java | 29 import android.content.ClipData; 90 final ClipData clip = payload.getClip(); in onReceiveContent() 127 ClipData clip = payload.getClip(); in onReceiveForAutofill() 145 private static @NonNull CharSequence coerceToText(@NonNull ClipData clip, in coerceToText() 267 private ClipData handleNonTextViaImeCommitContent(@NonNull ClipData clip) { in handleNonTextViaImeCommitContent() 297 ArrayList<ClipData.Item> remainingItems = new ArrayList<>(0); in handleNonTextViaImeCommitContent() 299 ClipData.Item item = clip.getItemAt(i); in handleNonTextViaImeCommitContent() 322 return new ClipData(description, remainingItems); in handleNonTextViaImeCommitContent() 335 private static boolean containsUri(@NonNull ClipData clip) { in containsUri() 337 ClipData.Item item = clip.getItemAt(i); in containsUri() [all …]
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | EmulatorClipboardMonitor.java | 20 import android.content.ClipData; 40 class EmulatorClipboardMonitor implements Consumer<ClipData> { 127 EmulatorClipboardMonitor(final Consumer<ClipData> setAndroidClipboard) { in EmulatorClipboardMonitor() 141 final ClipData clip = new ClipData("host clipboard", in EmulatorClipboardMonitor() 143 new ClipData.Item(str)); in EmulatorClipboardMonitor() 171 public void accept(final @Nullable ClipData clip) { in accept() 178 private String getClipString(final @Nullable ClipData clip) { in getClipString()
|
D | ClipboardService.java | 32 import android.content.ClipData; 140 private final Consumer<ClipData> mEmulatorClipboardMonitor; 236 ClipData primaryClip; 364 ClipData clip, in setPrimaryClip() 373 ClipData clip, in setPrimaryClipAsPackage() 384 ClipData clip, in checkAndSetPrimaryClip() 458 public ClipData getPrimaryClip(String pkg, String attributionTag, @UserIdInt int userId) { in getPrimaryClip() 676 void setPrimaryClipInternal(@Nullable ClipData clip, int uid) { in setPrimaryClipInternal() 684 @Nullable ClipData clip, int uid, @Nullable String sourcePackage) { in setPrimaryClipInternalLocked() 712 clip = new ClipData(clip); in setPrimaryClipInternalLocked() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardListener.java | 28 import android.content.ClipData; 93 ClipData clipData = mClipboardManager.getPrimaryClip(); in onPrimaryClipChanged() 131 static boolean shouldSuppressOverlay(ClipData clipData, String clipSource, in shouldSuppressOverlay() 142 boolean shouldShowToast(ClipData clipData) { in shouldShowToast() 163 void setClipDataLegacy(ClipData clipData, String clipSource); in setClipDataLegacy() 165 void setClipData(ClipData clipData, String clipSource); in setClipData()
|
D | ClipboardModel.kt | 18 import android.content.ClipData 31 val clipData: ClipData, 72 clipData: ClipData, in fromClipData() 91 private fun getType(context: Context, item: ClipData.Item): Type { in getType()
|
D | EditTextActivity.java | 22 import android.content.ClipData; 61 ClipData clip = mClipboardManager.getPrimaryClip(); in onStart() 100 ClipData clip = ClipData.newPlainText("text", editedText); in saveToClipboard()
|
D | ClipboardOverlayUtils.java | 20 import android.content.ClipData; 52 boolean isRemoteCopy(Context context, ClipData clipData, String clipSource) { in isRemoteCopy() 92 public Optional<RemoteAction> getAction(ClipData.Item item, String source) { in getAction() 99 private ArrayList<RemoteAction> getActions(ClipData.Item item) {
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/ |
D | DragAndDropPolicyTest.java | 53 import android.content.ClipData; 109 private ClipData mActivityClipData; 110 private ClipData mNonResizeableActivityClipData; 111 private ClipData mTaskClipData; 112 private ClipData mShortcutClipData; 156 private ClipData createClipData(String mimeType) { in createClipData() 172 ClipData.Item item = new ClipData.Item(i); in createClipData() 174 ClipData data = new ClipData(clipDescription, item); in createClipData() 200 private void setClipDataResizeable(ClipData data, boolean resizeable) { in setClipDataResizeable()
|
D | DragAndDropControllerTest.java | 32 import android.content.ClipData; 121 final ClipData clipData = createClipData(); in testListenerOnDragStarted() 144 private ClipData createClipData() { in createClipData() 151 ClipData.Item item = new ClipData.Item(i); in createClipData() 152 return new ClipData(clipDescription, item); in createClipData()
|
/frameworks/base/core/java/android/app/assist/ |
D | AssistContent.java | 4 import android.content.ClipData; 26 private ClipData mClipData; 93 public void setClipData(ClipData clip) { in setClipData() 100 public ClipData getClipData() { in getClipData() 165 mClipData = ClipData.CREATOR.createFromParcel(in); in AssistContent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | LeakReporter.java | 26 import android.content.ClipData; 143 final ClipData clipData = new ClipData(null, new String[] { mimeType }, in getIntent() 144 new ClipData.Item(null, null, null, dumpUri)); in getIntent() 147 clipData.addItem(new ClipData.Item(null, null, null, hprofUri)); in getIntent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ActionIntentCreator.kt | 19 import android.content.ClipData 54 ClipData( in createShareIntent() 56 ClipData.Item(uri) in createShareIntent()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | GrantedUriPermissions.java | 20 import android.content.ClipData; 80 ClipData clip = intent.getClipData(); in createFromIntent() 89 public static GrantedUriPermissions createFromClip(ClipData clip, in createFromClip() 102 private static GrantedUriPermissions grantClip(ClipData clip, in grantClip() 132 private static GrantedUriPermissions grantItem(ClipData.Item item, in grantItem()
|