Lines Matching refs:clip
58 * the clip; consumers of this API should familiarize themselves with the
70 final ClipData clip = mClipboardManager.getPrimaryClip();
71 if (clip != null && clip.getItemCount() > 0) {
72 final CharSequence sequence = clip.getItemAt(0).coerceToText(mContext);
81 * Gets the HTML text of top item on the primary clip on the Android clipboard.
84 * text or no entries on the primary clip.
89 final ClipData clip = mClipboardManager.getPrimaryClip();
90 if (clip != null && clip.getItemCount() > 0) {
91 return clip.getItemAt(0).getHtmlText();
100 * clipboard's current primary clip to a plain-text clip that consists of
103 * @param label will become the label of the clipboard's primary clip
104 * @param text will become the content of the clipboard's primary clip
113 * clipboard's current primary clip to a plain-text clip that consists of
116 * @param text will become the content of the clipboard's primary clip
156 private void setPrimaryClipNoException(ClipData clip) {
158 mClipboardManager.setPrimaryClip(clip);