Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DClipboardListener.java93 ClipData clipData = mClipboardManager.getPrimaryClip(); in onPrimaryClipChanged() local
95 if (shouldSuppressOverlay(clipData, clipSource, Build.IS_EMULATOR)) { in onPrimaryClipChanged()
103 || clipData == null // shouldn't happen, but just in case in onPrimaryClipChanged()
104 || clipData.getItemCount() == 0) { in onPrimaryClipChanged()
105 if (shouldShowToast(clipData)) { in onPrimaryClipChanged()
118 mClipboardOverlay.setClipData(clipData, clipSource); in onPrimaryClipChanged()
129 static boolean shouldSuppressOverlay(ClipData clipData, String clipSource, in shouldSuppressOverlay() argument
134 if (clipData == null || clipData.getDescription().getExtras() == null) { in shouldSuppressOverlay()
137 return clipData.getDescription().getExtras().getBoolean(EXTRA_SUPPRESS_OVERLAY, false); in shouldSuppressOverlay()
140 boolean shouldShowToast(ClipData clipData) { in shouldShowToast() argument
[all …]
DIntentCreator.java40 static Intent getShareIntent(ClipData clipData, Context context) { in getShareIntent() argument
46 Uri uri = clipData.getItemAt(0).getUri(); in getShareIntent()
49 shareIntent.setType(clipData.getDescription().getMimeType(0)); in getShareIntent()
53 "content", new String[]{clipData.getDescription().getMimeType(0)}), in getShareIntent()
59 Intent.EXTRA_TEXT, clipData.getItemAt(0).coerceToText(context).toString()); in getShareIntent()
82 static Intent getRemoteCopyIntent(ClipData clipData, Context context) { in getRemoteCopyIntent() argument
90 nearbyIntent.setClipData(clipData); in getRemoteCopyIntent()
DClipboardModel.kt31 val clipData: ClipData, constant in com.android.systemui.clipboardoverlay.ClipboardModel
72 clipData: ClipData, in fromClipData()
75 val sensitive = clipData.description?.extras?.getBoolean(EXTRA_IS_SENSITIVE) ?: false in fromClipData()
76 val item = clipData.getItemAt(0)!! in fromClipData()
78 val remote = utils.isRemoteCopy(context, clipData, source) in fromClipData()
80 clipData, in fromClipData()
DClipboardOverlayUtils.java52 boolean isRemoteCopy(Context context, ClipData clipData, String clipSource) { in isRemoteCopy() argument
53 if (clipData != null && clipData.getDescription().getExtras() != null in isRemoteCopy()
54 && clipData.getDescription().getExtras().getBoolean( in isRemoteCopy()
DClipboardOverlayController.java496 private void maybeShowRemoteCopy(ClipData clipData) { in maybeShowRemoteCopy() argument
497 Intent remoteCopyIntent = IntentCreator.getRemoteCopyIntent(clipData, mContext); in maybeShowRemoteCopy()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DIntentCreatorTest.java56 ClipData clipData = ClipData.newPlainText("Test", "Test Item"); in test_getRemoteCopyIntent() local
57 Intent intent = IntentCreator.getRemoteCopyIntent(clipData, getContext()); in test_getRemoteCopyIntent()
61 assertEquals(clipData, intent.getClipData()); in test_getRemoteCopyIntent()
69 intent = IntentCreator.getRemoteCopyIntent(clipData, getContext()); in test_getRemoteCopyIntent()
97 ClipData clipData = ClipData.newPlainText("Test", "Test Item"); in test_getShareIntent_plaintext() local
98 Intent intent = IntentCreator.getShareIntent(clipData, getContext()); in test_getShareIntent_plaintext()
109 ClipData clipData = ClipData.newHtmlText("Test", "Some HTML", in test_getShareIntent_html() local
111 Intent intent = IntentCreator.getShareIntent(clipData, getContext()); in test_getShareIntent_html()
123 ClipData clipData = new ClipData("Test", new String[]{"image/png"}, in test_getShareIntent_image() local
125 Intent intent = IntentCreator.getShareIntent(clipData, getContext()); in test_getShareIntent_image()
[all …]
DClipboardOverlayControllerTest.java169 ClipData clipData = new ClipData("", new String[]{"image/png"}, in test_setClipData_invalidImageData_legacy() local
173 mOverlayController.setClipData(clipData, ""); in test_setClipData_invalidImageData_legacy()
184 ClipData clipData = new ClipData("", new String[]{"resource/png"}, in test_setClipData_nonImageUri_legacy() local
188 mOverlayController.setClipData(clipData, ""); in test_setClipData_nonImageUri_legacy()
241 ClipData clipData = new ClipData("", new String[]{"image/png"}, in test_setClipData_invalidImageData() local
244 mOverlayController.setClipData(clipData, ""); in test_setClipData_invalidImageData()
254 ClipData clipData = new ClipData("", new String[]{"resource/png"}, in test_setClipData_nonImageUri() local
257 mOverlayController.setClipData(clipData, ""); in test_setClipData_nonImageUri()
DClipboardModelTest.kt59 assertEquals(mSampleClipData, model.clipData) in test_textClipData()
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobParameters.java294 private final ClipData clipData; field in JobParameters
312 Bundle transientExtras, ClipData clipData, int clipGrantFlags, in JobParameters() argument
319 this.clipData = clipData; in JobParameters()
398 return clipData; in getClipData()
580 clipData = ClipData.CREATOR.createFromParcel(in); in JobParameters()
583 clipData = null; in JobParameters()
626 if (clipData != null) { in writeToParcel()
628 clipData.writeToParcel(dest, flags); in writeToParcel()
DJobInfo.java471 private final ClipData clipData; field in JobInfo
528 return clipData; in getClipData()
862 if (clipData != j.clipData) { in equals()
952 if (clipData != null) { in hashCode()
953 hashCode = 31 * hashCode + clipData.hashCode(); in hashCode()
1000 clipData = ClipData.CREATOR.createFromParcel(in); in JobInfo()
1003 clipData = null; in JobInfo()
1049 clipData = b.mClipData; in JobInfo()
1089 if (clipData != null) { in writeToParcel()
1091 clipData.writeToParcel(out, flags); in writeToParcel()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DLeakReporter.java143 final ClipData clipData = new ClipData(null, new String[] { mimeType }, in getIntent() local
147 clipData.addItem(new ClipData.Item(null, null, null, hprofUri)); in getIntent()
150 intent.setClipData(clipData); in getIntent()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/
DDragAndDropControllerTest.java129 final ClipData clipData = createClipData(); in testListenerOnDragStarted() local
132 doReturn(clipData).when(event).getClipData(); in testListenerOnDragStarted()
133 doReturn(clipData.getDescription()).when(event).getClipDescription(); in testListenerOnDragStarted()
/frameworks/base/core/java/android/app/
DRemoteInput.java577 ClipData clipData = intent.getClipData(); in getClipDataIntentFromIntent() local
578 if (clipData == null) { in getClipDataIntentFromIntent()
581 ClipDescription clipDescription = clipData.getDescription(); in getClipDataIntentFromIntent()
588 return clipData.getItemAt(0).getIntent(); in getClipDataIntentFromIntent()
/frameworks/base/services/core/java/com/android/server/wm/
DDragAndDropPermissionsHandler.java52 DragAndDropPermissionsHandler(WindowManagerGlobalLock lock, ClipData clipData, int sourceUid, in DragAndDropPermissionsHandler() argument
61 clipData.collectUris(mUris); in DragAndDropPermissionsHandler()
DActivityCallerState.java201 final ClipData clipData = intent.getClipData(); in getContentUrisFromIntent() local
202 if (clipData == null) return uris; in getContentUrisFromIntent()
204 for (int i = 0; i < clipData.getItemCount(); i++) { in getContentUrisFromIntent()
205 final ClipData.Item item = clipData.getItemAt(i); in getContentUrisFromIntent()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/
DDragAndDropTargetState.kt270 val clipData = this.toAndroidDragEvent().clipData.takeIf { it.itemCount != 0 } in DragAndDropEvent() constant
271 return clipData?.getItemAt(0)?.intent?.let { intent -> getWidgetExtraFromIntent(intent) } in DragAndDropEvent()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionSessionConnection.java447 ClipData clipData = intent.getClipData(); in onAssistDataReceivedLocked() local
448 if (clipData != null && Intent.isAccessUriMode(intent.getFlags())) { in onAssistDataReceivedLocked()
449 grantClipDataPermissions(clipData, intent.getFlags(), uid, in onAssistDataReceivedLocked()
453 ClipData clipData = content.getClipData(); in onAssistDataReceivedLocked() local
454 if (clipData != null) { in onAssistDataReceivedLocked()
455 grantClipDataPermissions(clipData, FLAG_GRANT_READ_URI_PERMISSION, in onAssistDataReceivedLocked()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDragDropControllerTests.java398 final ClipData clipData = new ClipData( in createClipDataForActivity() local
402 return clipData; in createClipDataForActivity()
471 final ClipData clipData = new ClipData( in createClipDataForShortcut() local
475 return clipData; in createClipDataForShortcut()
484 final ClipData clipData = new ClipData( in testValidateAppTaskArguments() local
488 session.validateAndResolveDragMimeTypeExtras(clipData, TEST_UID, TEST_PID, in testValidateAppTaskArguments()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DActionIntentCreator.kt54 clipData = in createShare()
DSaveImageInBackgroundTask.java296 ClipData clipData = new ClipData( in createFillInIntent() local
299 fillIn.setClipData(clipData); in createFillInIntent()
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java852 ClipData clipData = null; in testHandlePasteClip() local
854 view.handlePasteClip(clipData); in testHandlePasteClip()
857 clipData = ClipData.newPlainText("user label", "<foo@example.com>"); in testHandlePasteClip()
859 view.handlePasteClip(clipData); in testHandlePasteClip()
862 clipData = ClipData.newHtmlText("user label", in testHandlePasteClip()
865 view.handlePasteClip(clipData); in testHandlePasteClip()
869 clipData = new ClipData("user label", new String[]{"image/jpeg"}, clipImageData); in testHandlePasteClip()
871 view.handlePasteClip(clipData); in testHandlePasteClip()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1226 final ClipData clipData = new ClipData(null, new String[] { mimeType }, in buildSendIntent() local
1233 clipData.addItem(new ClipData.Item(null, null, null, screenshotUri)); in buildSendIntent()
1237 clipData.addItem(new ClipData.Item(null, null, null, info.extraAttachment)); in buildSendIntent()
1240 intent.setClipData(clipData); in buildSendIntent()
/frameworks/base/core/java/android/content/
DIntent.java12783 final ClipData clipData = new ClipData( in migrateExtraStreamToClipData() local
12786 setClipData(clipData); in migrateExtraStreamToClipData()
12819 final ClipData clipData = new ClipData( in migrateExtraStreamToClipData() local
12824 clipData.addItem(makeClipItem(streams, texts, htmlTexts, i)); in migrateExtraStreamToClipData()
12827 setClipData(clipData); in migrateExtraStreamToClipData()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserActivityTest.java755 ClipData clipData = clipboard.getPrimaryClip(); in copyTextToClipboard() local
756 assertThat("testing intent sending", is(clipData.getItemAt(0).getText())); in copyTextToClipboard()
758 ClipDescription clipDescription = clipData.getDescription(); in copyTextToClipboard()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt7139 Landroid/app/job/JobInfo;->clipData:Landroid/content/ClipData;
7188 Landroid/app/job/JobParameters;->clipData:Landroid/content/ClipData;