Home
last modified time | relevance | path

Searched refs:clipboardManager (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/content/src/android/content/cts/
DClipDescriptionTest.java93 final ClipboardManager clipboardManager = (ClipboardManager) in testGetTimestamp() local
97 clipboardManager.setPrimaryClip(ClipData.newPlainText("Dummy text", "Text")); in testGetTimestamp()
99 final long timestamp = clipboardManager.getPrimaryClipDescription().getTimestamp(); in testGetTimestamp()
105 + "clipdata: " + clipboardManager.getPrimaryClip()); in testGetTimestamp()
125 ClipboardManager clipboardManager = (ClipboardManager) in testIsStyledText() local
128 clipboardManager.setPrimaryClip(clipData); in testIsStyledText()
129 assertThat(clipboardManager.getPrimaryClipDescription().isStyledText()).isTrue(); in testIsStyledText()
133 clipboardManager.setPrimaryClip(clipData2); in testIsStyledText()
134 assertThat(clipboardManager.getPrimaryClipDescription().isStyledText()).isTrue(); in testIsStyledText()
146 ClipboardManager clipboardManager = (ClipboardManager) in testNotStyledText() local
[all …]
DClipboardAutoClearTest.java102 ClipboardManager clipboardManager = mClipboardManager; in testAutoClearEnabledDefault() local
103 clipboardManager.setPrimaryClip( in testAutoClearEnabledDefault()
105 assertTrue(clipboardManager.hasPrimaryClip()); in testAutoClearEnabledDefault()
113 assertTrue(clipboardManager.hasPrimaryClip()); in testAutoClearEnabledDefault()
114 clipboardManager.clearPrimaryClip(); in testAutoClearEnabledDefault()
129 ClipboardManager clipboardManager = mClipboardManager; in testAutoClearJob() local
130 clipboardManager.setPrimaryClip( in testAutoClearJob()
133 assertTrue(clipboardManager.hasPrimaryClip()); in testAutoClearJob()
135 retryUntil(() -> !clipboardManager.hasPrimaryClip(), "Auto clear did not run", in testAutoClearJob()
141 clipboardManager.clearPrimaryClip(); in testAutoClearJob()
DClipboardManagerTest.java105 ClipboardManager clipboardManager = mClipboardManager; in testSetGetText() local
106 clipboardManager.setText("Test Text 1"); in testSetGetText()
107 assertEquals("Test Text 1", clipboardManager.getText()); in testSetGetText()
109 clipboardManager.setText("Test Text 2"); in testSetGetText()
110 assertEquals("Test Text 2", clipboardManager.getText()); in testSetGetText()
115 ClipboardManager clipboardManager = mClipboardManager; in testHasPrimaryClip() local
116 if (clipboardManager.hasPrimaryClip()) { in testHasPrimaryClip()
117 assertNotNull(clipboardManager.getPrimaryClip()); in testHasPrimaryClip()
118 assertNotNull(clipboardManager.getPrimaryClipDescription()); in testHasPrimaryClip()
120 assertNull(clipboardManager.getPrimaryClip()); in testHasPrimaryClip()
[all …]
/cts/tests/tests/virtualdevice/app/src/android/virtualdevice/streamedtestapp/
DClipboardTestActivity.java56 ClipboardManager clipboardManager = in processAction() local
63 result.putBoolean(EXTRA_HAS_CLIP_DATA, clipboardManager.hasPrimaryClip()); in processAction()
64 result.putParcelable(EXTRA_CLIP_DATA, clipboardManager.getPrimaryClip()); in processAction()
68 clipboardManager.setPrimaryClip(clip); in processAction()