Home
last modified time | relevance | path

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

12

/cts/tests/PhotoPicker/src/android/photopicker/cts/
DCloudPhotoPickerTest.java144 final ClipData clipData = launchPickerAndFetchMedia(1); in testCloudOnlySync() local
145 final List<String> mediaIds = extractMediaIds(clipData, 1); in testCloudOnlySync()
155 final ClipData clipData = launchPickerAndFetchMedia(2); in testCloudPlusLocalSyncWithoutDedupe() local
156 final List<String> mediaIds = extractMediaIds(clipData, 2); in testCloudPlusLocalSyncWithoutDedupe()
167 final ClipData clipData = launchPickerAndFetchMedia(1); in testCloudPlusLocalSyncWithDedupe() local
168 final List<String> mediaIds = extractMediaIds(clipData, 1); in testCloudPlusLocalSyncWithDedupe()
178 ClipData clipData = launchPickerAndFetchMedia(2); in testDeleteCloudMedia() local
179 List<String> mediaIds = extractMediaIds(clipData, 2); in testDeleteCloudMedia()
187 clipData = launchPickerAndFetchMedia(2); in testDeleteCloudMedia()
188 mediaIds = extractMediaIds(clipData, 1); in testDeleteCloudMedia()
[all …]
DPhotoPickerTest.java227 final ClipData clipData = mActivity.getResult().data.getClipData(); in testMultiSelect() local
228 final int count = clipData.getItemCount(); in testMultiSelect()
231 final Uri uri = clipData.getItemAt(i).getUri(); in testMultiSelect()
275 final ClipData clipData = mActivity.getResult().data.getClipData(); in testMultiSelect_longPress() local
276 final int count = clipData.getItemCount(); in testMultiSelect_longPress()
279 final Uri uri = clipData.getItemAt(i).getUri(); in testMultiSelect_longPress()
315 final ClipData clipData = mActivity.getResult().data.getClipData(); in testMultiSelect_preview() local
316 final int count = clipData.getItemCount(); in testMultiSelect_preview()
319 final Uri uri = clipData.getItemAt(i).getUri(); in testMultiSelect_preview()
548 final ClipData clipData = mActivity.getResult().data.getClipData(); in testMimeTypeFilter() local
[all …]
DPhotoPickerCrossProfileTest.java121 final ClipData clipData = mActivity.getResult().data.getClipData(); in testWorkApp_canAccessPersonalProfileContents() local
122 final int count = clipData.getItemCount(); in testWorkApp_canAccessPersonalProfileContents()
125 Uri uri = clipData.getItemAt(i).getUri(); in testWorkApp_canAccessPersonalProfileContents()
DPhotoPickerCloudUtils.java80 public static List<String> extractMediaIds(ClipData clipData, int minCount) { in extractMediaIds() argument
81 final int count = clipData.getItemCount(); in extractMediaIds()
86 mediaIds.add(clipData.getItemAt(i).getUri().getLastPathSegment()); in extractMediaIds()
DActionGetContentOnlyTest.java167 final ClipData clipData = mActivity.getResult().data.getClipData(); in testBrowse_multiSelect() local
168 final int count = clipData.getItemCount(); in testBrowse_multiSelect()
171 assertReadOnlyAccess(clipData.getItemAt(i).getUri(), mContext.getContentResolver()); in testBrowse_multiSelect()
DActionUserSelectImagesForAppTest.java178 final ClipData clipData = fetchPickerMedia(mActivity, sDevice, 1); in testNoCloudContent() local
180 containsExcept(extractMediaIds(clipData, 1), cloudId, String.valueOf(localId)); in testNoCloudContent()
DActionPickImagesOnlyTest.java141 final ClipData clipData = mActivity.getResult().data.getClipData(); in testMultiSelect_returnsNotMoreThanMax() local
142 final int count = clipData.getItemCount(); in testMultiSelect_returnsNotMoreThanMax()
/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerTest.java213 ClipData clipData = ClipData.newPlainText("TextLabel", "Text"); in testSetPrimaryClip_multipleMimeTypes() local
214 clipData.addItem(contentResolver, new Item("More Text")); in testSetPrimaryClip_multipleMimeTypes()
215 clipData.addItem(contentResolver, new Item(intent)); in testSetPrimaryClip_multipleMimeTypes()
216 clipData.addItem(contentResolver, new Item(uri)); in testSetPrimaryClip_multipleMimeTypes()
217 clipData.addItem(contentResolver, new Item(contentUri1)); in testSetPrimaryClip_multipleMimeTypes()
218 clipData.addItem(contentResolver, new Item(contentUri2)); in testSetPrimaryClip_multipleMimeTypes()
219 clipData.addItem(contentResolver, new Item(contentUri3)); in testSetPrimaryClip_multipleMimeTypes()
220 clipData.addItem(contentResolver, new Item(contentUri4)); in testSetPrimaryClip_multipleMimeTypes()
221 clipData.addItem(contentResolver, new Item(contentUri5)); in testSetPrimaryClip_multipleMimeTypes()
222 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.java121 ClipData clipData = new ClipData(clipDescription, new ClipData.Item(spannable)); in testIsStyledText() local
128 clipboardManager.setPrimaryClip(clipData); in testIsStyledText()
143 ClipData clipData = new ClipData(clipDescription, new ClipData.Item("Just text")); in testNotStyledText() local
149 clipboardManager.setPrimaryClip(clipData); in testNotStyledText()
171 ClipData clipData = ClipData.newPlainText("label", "Just some text"); in testClassificationNotCompletedBeforeCopy() local
185 ClipData clipData = ClipData.newPlainText("label", longString); in testClassificationNotPerformedForVeryLongText() local
190 clipboardManager.setPrimaryClip(clipData); in testClassificationNotPerformedForVeryLongText()
202 ClipData clipData = ClipData.newPlainText( in testClassificationConfidenceValuesAreValid() local
208 clipboardManager.setPrimaryClip(clipData); in testClassificationConfidenceValuesAreValid()
DClipboardManagerListenerTest.java93 ClipData clipData = mActivity.getPrimaryClip(); in expectedCallbackCount() local
95 if (clipData.getDescription().getClassificationStatus() in expectedCallbackCount()
DIntentTest.java1597 ClipData clipData = target.getClipData(); in testCreateChooser() local
1598 assertEquals(1, clipData.getItemCount()); in testCreateChooser()
1599 assertEquals(data, clipData.getItemAt(0).getUri()); in testCreateChooser()
1600 assertEquals(0, clipData.getDescription().getMimeTypeCount()); in testCreateChooser()
1609 clipData = target.getClipData(); in testCreateChooser()
1610 assertEquals(1, clipData.getDescription().getMimeTypeCount()); in testCreateChooser()
1611 assertEquals(mimeType, clipData.getDescription().getMimeType(0)); in testCreateChooser()
1619 clipData = target.getClipData(); in testCreateChooser()
1620 assertEquals(1, clipData.getItemCount()); in testCreateChooser()
1621 assertEquals(anotherUri, clipData.getItemAt(0).getUri()); in testCreateChooser()
/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/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDropTarget.java199 final ClipData clipData = event.getClipData(); in processDrop() local
200 if (clipData == null) { in processDrop()
203 if (clipData.getItemCount() == 0) { in processDrop()
206 ClipData.Item item = clipData.getItemAt(0); in processDrop()
239 final ClipData clipData = event.getClipData(); in checkDragEvent() local
241 if (clipData == null) { in checkDragEvent()
245 if (clipData != null) { in checkDragEvent()
DDragSource.java124 final ClipData clipData = new ClipData(clipDescription, item); in setUpDragSource()
126 clipData, in setUpDragSource()
/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/apps/CtsVerifier/src/com/android/cts/verifier/sharesheet/
DSharesheetPayloadToggleActionActivity.java122 ClipData clipData = new ClipData("", new String[0], new Item(Uris.ExtraContentUri)); in share() local
123 clipData.addItem(new Item(uri)); in share()
124 shareIntent.setClipData(clipData); in share()
DSharesheetPayloadToggleActivity.java253 ClipData clipData = new ClipData("", new String[0], new Item(Uris.ExtraContentUri)); in share() local
254 clipData.addItem(new Item(uri)); in share()
255 shareIntent.setClipData(clipData); in share()
/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/JobScheduler/src/android/jobscheduler/cts/
DJobParametersTest.java55 final ClipData clipData = ClipData.newPlainText("test", "testText"); in testClipData() local
58 .setClipData(clipData, grantFlags) in testClipData()
67 assertEquals(clipData.getItemCount(), params.getClipData().getItemCount()); in testClipData()
68 assertEquals(clipData.getItemAt(0).getText(), params.getClipData().getItemAt(0).getText()); in testClipData()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0928/src/android/security/cts/CVE_2021_0928/
DAInjector.java50 ClipData clipData = parcel.readParcelable(null); in createClipData() local
53 return clipData; in createClipData()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DDragDropTest.java128 public ClipData clipData; // DragEvent.getClipData() field in DragDropTest.LogEntry
133 LogEntry(View v, int action, float x, float y, ClipData clipData, in LogEntry() argument
139 this.clipData = clipData; in LogEntry()
157 && compareParcelables(clipData, other.clipData) in equals()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DStreamedAppClipboardTest.java408 ClipData clipData = bundle.getValue().getParcelable(EXTRA_CLIP_DATA, ClipData.class); in readClipboardFromActivity() local
409 if (clipData == null) { in readClipboardFromActivity()
414 return clipData; in readClipboardFromActivity()
/cts/tests/app/src/android/app/cts/
DRemoteInputTest.java291 final ClipData clipData = new ClipData(description, new ClipData.Item(clipDataIntent)); in newIntentWithClipDataIntent() local
294 intent.setClipData(clipData); in newIntentWithClipDataIntent()

12