/cts/tests/PhotoPicker/src/android/photopicker/cts/ |
D | CloudPhotoPickerTest.java | 144 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 …]
|
D | PhotoPickerTest.java | 227 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 …]
|
D | PhotoPickerCrossProfileTest.java | 121 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()
|
D | PhotoPickerCloudUtils.java | 80 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()
|
D | ActionGetContentOnlyTest.java | 167 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()
|
D | ActionUserSelectImagesForAppTest.java | 178 final ClipData clipData = fetchPickerMedia(mActivity, sDevice, 1); in testNoCloudContent() local 180 containsExcept(extractMediaIds(clipData, 1), cloudId, String.valueOf(localId)); in testNoCloudContent()
|
D | ActionPickImagesOnlyTest.java | 141 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/ |
D | ClipboardManagerTest.java | 213 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 …]
|
D | ReadableFileReceiverActivity.java | 80 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()
|
D | ImageCaptureActivity.java | 80 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()
|
D | ClipDescriptionTest.java | 121 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()
|
D | ClipboardManagerListenerTest.java | 93 ClipData clipData = mActivity.getPrimaryClip(); in expectedCallbackCount() local 95 if (clipData.getDescription().getClassificationStatus() in expectedCallbackCount()
|
D | IntentTest.java | 1597 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/ |
D | DropTarget.java | 196 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/ |
D | DropTarget.java | 199 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()
|
D | DragSource.java | 124 final ClipData clipData = new ClipData(clipDescription, item); in setUpDragSource() 126 clipData, in setUpDragSource()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | AccessibilityDragAndDropActivity.java | 45 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/ |
D | SharesheetPayloadToggleActionActivity.java | 122 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()
|
D | SharesheetPayloadToggleActivity.java | 253 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/ |
D | IntentReceiverActivity.java | 81 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/ |
D | JobParametersTest.java | 55 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/ |
D | AInjector.java | 50 ClipData clipData = parcel.readParcelable(null); in createClipData() local 53 return clipData; in createClipData()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/ |
D | DragDropTest.java | 128 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/ |
D | StreamedAppClipboardTest.java | 408 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/ |
D | RemoteInputTest.java | 291 final ClipData clipData = new ClipData(description, new ClipData.Item(clipDataIntent)); in newIntentWithClipDataIntent() local 294 intent.setClipData(clipData); in newIntentWithClipDataIntent()
|