/cts/tests/tests/text/src/android/text/cts/ |
D | ClipboardManagerTest.java | 42 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/ |
D | StreamedAppClipboardTest.java | 111 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/ |
D | ClipboardAccessTest.java | 35 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/ |
D | ClipboardManagerTest.java | 74 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 …]
|
D | ClipboardManagerListenerActivity.java | 28 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()
|
D | ClipboardAutoClearTest.java | 54 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/ |
D | ClipboardAccessTest.java | 33 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/ |
D | IntentSenderActivity.java | 41 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/ |
D | TextViewReceiveContentTest.java | 109 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()
|