Home
last modified time | relevance | path

Searched refs:clipData (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerTest.java185 ClipData clipData = ClipData.newPlainText("TextLabel", "Text"); in testSetPrimaryClip_multipleMimeTypes() local
186 clipData.addItem(contentResolver, new Item("More Text")); in testSetPrimaryClip_multipleMimeTypes()
187 clipData.addItem(contentResolver, new Item(intent)); in testSetPrimaryClip_multipleMimeTypes()
188 clipData.addItem(contentResolver, new Item(uri)); in testSetPrimaryClip_multipleMimeTypes()
189 clipData.addItem(contentResolver, new Item(contentUri1)); in testSetPrimaryClip_multipleMimeTypes()
190 clipData.addItem(contentResolver, new Item(contentUri2)); in testSetPrimaryClip_multipleMimeTypes()
191 clipData.addItem(contentResolver, new Item(contentUri3)); in testSetPrimaryClip_multipleMimeTypes()
192 clipData.addItem(contentResolver, new Item(contentUri4)); in testSetPrimaryClip_multipleMimeTypes()
193 clipData.addItem(contentResolver, new Item(contentUri5)); in testSetPrimaryClip_multipleMimeTypes()
194 clipData.addItem(contentResolver, new Item(contentUri6)); in testSetPrimaryClip_multipleMimeTypes()
[all …]
DReadableFileReceiverActivity.java80 ClipData clipData = intent.getClipData(); in getFilesFromIntent() local
81 if (clipData == null) { in getFilesFromIntent()
85 if (clipData.getItemCount() == 0) { in getFilesFromIntent()
91 for (int i = 0; i < clipData.getItemCount(); i++) { in getFilesFromIntent()
92 Uri filePath = clipData.getItemAt(i).getUri(); in getFilesFromIntent()
DImageCaptureActivity.java80 ClipData clipData = intent.getClipData(); in getFileFromIntent() local
81 if (clipData == null) { in getFileFromIntent()
85 if (clipData.getItemCount() == 0) { in getFileFromIntent()
90 Uri filePath = clipData.getItemAt(0).getUri(); in getFileFromIntent()
DClipDescriptionTest.java102 ClipData clipData = new ClipData(clipDescription, new ClipData.Item(spannable)); in testIsStyledText() local
109 clipboardManager.setPrimaryClip(clipData); in testIsStyledText()
122 ClipData clipData = new ClipData(clipDescription, new ClipData.Item("Just text")); in testNotStyledText() local
128 clipboardManager.setPrimaryClip(clipData); in testNotStyledText()
150 ClipData clipData = ClipData.newPlainText("label", "Just some text"); in testClassificationNotCompletedBeforeCopy() local
162 ClipData clipData = ClipData.newPlainText("label", longString); in testClassificationNotPerformedForVeryLongText() local
167 clipboardManager.setPrimaryClip(clipData); in testClassificationNotPerformedForVeryLongText()
177 ClipData clipData = ClipData.newPlainText( in testClassificationConfidenceValuesAreValid() local
183 clipboardManager.setPrimaryClip(clipData); in testClassificationConfidenceValuesAreValid()
DClipboardManagerListenerTest.java83 ClipData clipData = mActivity.getPrimaryClip(); in expectedCallbackCount() local
85 if (clipData.getDescription().getClassificationStatus() in expectedCallbackCount()
/cts/tests/framework/base/windowmanager/dndtargetapp/src/android/server/wm/dndtargetapp/
DDropTarget.java196 final ClipData clipData = event.getClipData(); in processDrop() local
197 if (clipData == null) { in processDrop()
200 if (clipData.getItemCount() == 0) { in processDrop()
203 ClipData.Item item = clipData.getItemAt(0); in processDrop()
236 final ClipData clipData = event.getClipData(); in checkDragEvent() local
238 if (clipData == null) { in checkDragEvent()
242 if (clipData != null) { in checkDragEvent()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DJobParametersTest.java38 final ClipData clipData = ClipData.newPlainText("test", "testText"); in testClipData() local
41 .setClipData(clipData, grantFlags) in testClipData()
50 assertEquals(clipData.getItemCount(), params.getClipData().getItemCount()); in testClipData()
51 assertEquals(clipData.getItemAt(0).getText(), params.getClipData().getItemAt(0).getText()); in testClipData()
DJobInfoTest.java97 final ClipData clipData = ClipData.newPlainText("test", "testText"); in testClipData() local
99 .setClipData(clipData, Intent.FLAG_GRANT_READ_URI_PERMISSION) in testClipData()
101 assertEquals(clipData, ji.getClipData()); in testClipData()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityDragAndDropActivity.java45 final ClipData clipData = ClipData.newPlainText("Text", text.getText()); in onCreate()
47 return host.startDragAndDrop(clipData, shadowBuilder, null, in onCreate()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java81 final ClipData clipData = getIntent().getClipData(); in onCreate() local
82 final Uri uri = clipData != null ? clipData.getItemAt(0).getUri() : null; in onCreate()
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDragSource.java105 final ClipData clipData = new ClipData(clipDescription, new ClipData.Item(uri)); in setUpDragSource()
107 clipData, in setUpDragSource()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDragDropTest.java111 public ClipData clipData; // DragEvent.getClipData() field in DragDropTest.LogEntry
116 LogEntry(View v, int action, float x, float y, ClipData clipData, in LogEntry() argument
122 this.clipData = clipData; in LogEntry()
139 && compareParcelables(clipData, other.clipData) in equals()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0928/src/android/security/cts/CVE_2021_0928/
DAInjector.java49 ClipData clipData = parcel.readParcelable(null); in createClipData() local
52 return clipData; in createClipData()