Home
last modified time | relevance | path

Searched refs:mClipboardManager (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DClipboardManagerTest.java42 private ClipboardManager mClipboardManager; field in ClipboardManagerTest
54 mClipboardManager = mActivity.getSystemService(ClipboardManager.class); in setup()
61 mClipboardManager.setText(expected); in testAccessText()
62 assertEquals(expected, mClipboardManager.getText()); in testAccessText()
67 mClipboardManager.setText(""); in testHasText()
68 assertFalse(mClipboardManager.hasText()); in testHasText()
70 mClipboardManager.setText("test"); in testHasText()
71 assertTrue(mClipboardManager.hasText()); in testHasText()
73 mClipboardManager.setText(null); in testHasText()
74 assertFalse(mClipboardManager.hasText()); in testHasText()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DStreamedAppClipboardTest.java111 virtualDevice.mClipboardManager.setPrimaryClip(CLIP_DATA); in deviceOwnerCanAccessClipboard()
114 assertThat(virtualDevice.mClipboardManager.hasPrimaryClip()).isTrue(); in deviceOwnerCanAccessClipboard()
115 verifyClipData(virtualDevice.mClipboardManager.getPrimaryClip()); in deviceOwnerCanAccessClipboard()
122 virtualDevice.mClipboardManager.setPrimaryClip(CLIP_DATA); in streamedAppCanReadClipboard()
134 assertThat(virtualDevice.mClipboardManager.hasPrimaryClip()).isTrue(); in streamedAppCanWriteClipboard()
135 verifyClipData(virtualDevice.mClipboardManager.getPrimaryClip()); in streamedAppCanWriteClipboard()
145 virtualDevice.mClipboardManager.setPrimaryClip(CLIP_DATA); in streamedAppCanReadClipboard_hostDeviceIsLocked()
164 assertThat(virtualDevice.mClipboardManager.hasPrimaryClip()).isTrue(); in streamedAppCanWriteClipboard_hostDeviceIsLocked()
165 verifyClipData(virtualDevice.mClipboardManager.getPrimaryClip()); in streamedAppCanWriteClipboard_hostDeviceIsLocked()
175 defaultDevice.mClipboardManager.setPrimaryClip(CLIP_DATA); in clipboardsAreIsolated()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DClipboardAccessTest.java35 private ClipboardManager mClipboardManager; field in ClipboardAccessTest
39 mClipboardManager = (ClipboardManager) sContext.getSystemService(CLIPBOARD_SERVICE); in prepareClipboardManager()
40 mClipboardManager.clearPrimaryClip(); in prepareClipboardManager()
45 mClipboardManager.clearPrimaryClip(); in cleanYourself()
51 mClipboardManager.setPrimaryClip(ClipData.newPlainText(null, "Y U SET?")); in testDoIt()
53 .that(mClipboardManager.getPrimaryClip()).isNull(); in testDoIt()
57 mClipboardManager.setPrimaryClip(ClipData.newPlainText(null, "YES, WE CAN!")); in testDoIt()
58 assertWithMessage("should be able to set clipboard now").that(mClipboardManager.getText()) in testDoIt()
/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerTest.java74 private ClipboardManager mClipboardManager; field in ClipboardManagerTest
82 mClipboardManager = mContext.getSystemService(ClipboardManager.class); in setUp()
97 if (mClipboardManager != null) { in cleanUp()
98 mClipboardManager.clearPrimaryClip(); in cleanUp()
105 ClipboardManager clipboardManager = mClipboardManager; in testSetGetText()
115 ClipboardManager clipboardManager = mClipboardManager; in testHasPrimaryClip()
256 mClipboardManager.addPrimaryClipChangedListener(new OnPrimaryClipChangedListener() { in testPrimaryClipChangedListener()
264 mClipboardManager.setPrimaryClip(clipData); in testPrimaryClipChangedListener()
272 mClipboardManager.setPrimaryClip(clipData); in testClearPrimaryClip()
273 assertTrue(mClipboardManager.hasPrimaryClip()); in testClearPrimaryClip()
[all …]
DClipboardManagerListenerActivity.java28 private ClipboardManager mClipboardManager; field in ClipboardManagerListenerActivity
34 mClipboardManager = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); in onCreate()
39 mClipboardManager.addPrimaryClipChangedListener(listener); in addPrimaryClipChangedListener()
43 mClipboardManager.removePrimaryClipChangedListener(listener); in removePrimaryClipChangedListener()
47 mClipboardManager.setPrimaryClip(clip); in setPrimaryClip()
51 return mClipboardManager.getPrimaryClip(); in getPrimaryClip()
DClipboardAutoClearTest.java54 private ClipboardManager mClipboardManager; field in ClipboardAutoClearTest
66 mClipboardManager = mContext.getSystemService(ClipboardManager.class); in setUp()
84 if (mClipboardManager != null) { in cleanUp()
85 mClipboardManager.clearPrimaryClip(); in cleanUp()
102 ClipboardManager clipboardManager = mClipboardManager; in testAutoClearEnabledDefault()
129 ClipboardManager clipboardManager = mClipboardManager; in testAutoClearJob()
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DClipboardAccessTest.java33 private ClipboardManager mClipboardManager; field in ClipboardAccessTest
37 mClipboardManager = getClipboardManager(); in prepareClipboardManager()
38 mClipboardManager.clearPrimaryClip(); in prepareClipboardManager()
51 mClipboardManager.setPrimaryClip(ClipData.newPlainText(null, "Y U SET?")); in testDoIt()
53 .that(mClipboardManager.getPrimaryClip()).isNull(); in testDoIt()
57 mClipboardManager.setPrimaryClip(ClipData.newPlainText(null, "YES, WE CAN!")); in testDoIt()
58 assertWithMessage("should be able to set clipboard now").that(mClipboardManager.getText()) in testDoIt()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DIntentSenderActivity.java41 private ClipboardManager mClipboardManager; field in IntentSenderActivity
56 mClipboardManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE); in onCreate()
113 mClipboardManager.addPrimaryClipChangedListener(listener); in addPrimaryClipChangedListener()
118 mClipboardManager.removePrimaryClipChangedListener(listener); in removePrimaryClipChangedListener()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewReceiveContentTest.java109 private ClipboardManager mClipboardManager; field in TextViewReceiveContentTest
121 mClipboardManager = mActivity.getSystemService(ClipboardManager.class); in before()
122 mClipboardManager.clearPrimaryClip(); in before()
829 mClipboardManager.setPrimaryClip(clip); in copyToClipboard()