Searched refs:clipboardManager (Results 1 – 4 of 4) sorted by relevance
93 final ClipboardManager clipboardManager = (ClipboardManager) in testGetTimestamp() local97 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() local128 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 …]
102 ClipboardManager clipboardManager = mClipboardManager; in testAutoClearEnabledDefault() local103 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() local130 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()
105 ClipboardManager clipboardManager = mClipboardManager; in testSetGetText() local106 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() local116 if (clipboardManager.hasPrimaryClip()) { in testHasPrimaryClip()117 assertNotNull(clipboardManager.getPrimaryClip()); in testHasPrimaryClip()118 assertNotNull(clipboardManager.getPrimaryClipDescription()); in testHasPrimaryClip()120 assertNull(clipboardManager.getPrimaryClip()); in testHasPrimaryClip()[all …]
56 ClipboardManager clipboardManager = in processAction() local63 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()