/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannedTest.java | 48 ss.setSpan(o, 0, ss.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testAppend() 67 s.setSpan(mark, 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel() 69 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel() 71 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel() 73 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel() 105 private void checkPriority(Spannable s) { in checkPriority() 106 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 107 (5 << Spannable.SPAN_PRIORITY_SHIFT)); in checkPriority() 108 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 109 (10 << Spannable.SPAN_PRIORITY_SHIFT)); in checkPriority() [all …]
|
D | SpannableTest.java | 22 import android.text.Spannable; 26 protected abstract Spannable newSpannableWithText(String text); in newSpannableWithText() 30 Spannable spannable = newSpannableWithText("abcdef"); in testGetSpans()
|
D | SpannableStringBuilderTest.java | 19 import android.text.Spannable; 24 protected Spannable newSpannableWithText(String text) { in newSpannableWithText()
|
D | SpannableStringTest.java | 19 import android.text.Spannable; 24 protected Spannable newSpannableWithText(String text) { in newSpannableWithText()
|
/frameworks/base/core/java/android/text/method/ |
D | BaseMovementMethod.java | 20 import android.text.Spannable; 36 public void initialize(TextView widget, Spannable text) { in initialize() 40 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event) { in onKeyDown() 51 public boolean onKeyOther(TextView widget, Spannable text, KeyEvent event) { in onKeyOther() 74 public boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event) { in onKeyUp() 79 public void onTakeFocus(TextView widget, Spannable text, int direction) { in onTakeFocus() 83 public boolean onTouchEvent(TextView widget, Spannable text, MotionEvent event) { in onTouchEvent() 88 public boolean onTrackballEvent(TextView widget, Spannable text, MotionEvent event) { in onTrackballEvent() 93 public boolean onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event) { in onGenericMotionEvent() 136 protected int getMovementMetaState(Spannable buffer, KeyEvent event) { in getMovementMetaState() [all …]
|
D | ScrollingMovementMethod.java | 29 protected boolean left(TextView widget, Spannable buffer) { in left() 34 protected boolean right(TextView widget, Spannable buffer) { in right() 39 protected boolean up(TextView widget, Spannable buffer) { in up() 44 protected boolean down(TextView widget, Spannable buffer) { in down() 49 protected boolean pageUp(TextView widget, Spannable buffer) { in pageUp() 54 protected boolean pageDown(TextView widget, Spannable buffer) { in pageDown() 59 protected boolean top(TextView widget, Spannable buffer) { in top() 64 protected boolean bottom(TextView widget, Spannable buffer) { in bottom() 69 protected boolean lineStart(TextView widget, Spannable buffer) { in lineStart() 74 protected boolean lineEnd(TextView widget, Spannable buffer) { in lineEnd() [all …]
|
D | ArrowKeyMovementMethod.java | 22 import android.text.Spannable; 33 private static boolean isSelecting(Spannable buffer) { in isSelecting() 38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { in getCurrentLineTop() 51 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, in handleMovementKey() 69 protected boolean left(TextView widget, Spannable buffer) { in left() 79 protected boolean right(TextView widget, Spannable buffer) { in right() 89 protected boolean up(TextView widget, Spannable buffer) { in up() 99 protected boolean down(TextView widget, Spannable buffer) { in down() 109 protected boolean pageUp(TextView widget, Spannable buffer) { in pageUp() 133 protected boolean pageDown(TextView widget, Spannable buffer) { in pageDown() [all …]
|
D | MovementMethod.java | 36 public void initialize(TextView widget, Spannable text); in initialize() 37 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event); in onKeyDown() 38 public boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event); in onKeyUp() 45 public boolean onKeyOther(TextView view, Spannable text, KeyEvent event); in onKeyOther() 47 public void onTakeFocus(TextView widget, Spannable text, int direction); in onTakeFocus() 48 public boolean onTrackballEvent(TextView widget, Spannable text, MotionEvent event); in onTrackballEvent() 49 public boolean onTouchEvent(TextView widget, Spannable text, MotionEvent event); in onTouchEvent() 50 public boolean onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event); in onGenericMotionEvent()
|
D | PasswordTransformationMethod.java | 29 import android.text.Spannable; 38 if (source instanceof Spannable) { in getTransformation() 39 Spannable sp = (Spannable) source; in getTransformation() 56 Spannable.SPAN_POINT_POINT); in getTransformation() 77 if (s instanceof Spannable) { in onTextChanged() 78 Spannable sp = (Spannable) s; in onTextChanged() 108 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onTextChanged() 123 if (sourceText instanceof Spannable) { in onFocusChanged() 124 Spannable sp = (Spannable) sourceText; in onFocusChanged() 131 private static void removeVisibleSpans(Spannable sp) { in removeVisibleSpans() [all …]
|
D | MultiTapKeyListener.java | 111 & Spannable.SPAN_USER) >>> Spannable.SPAN_USER_SHIFT; in onKeyDown() 191 Spannable.SPAN_MARK_MARK); in onKeyDown() 203 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown() 207 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in onKeyDown() 208 (rec << Spannable.SPAN_USER_SHIFT)); in onKeyDown() 225 Spannable.SPAN_INCLUSIVE_INCLUSIVE); in onKeyDown() 234 public void onSpanChanged(Spannable buf, in onSpanChanged() 242 private static void removeTimeouts(Spannable buf) { in removeTimeouts() 261 Spannable.SPAN_INCLUSIVE_INCLUSIVE); in Timeout() 267 Spannable buf = mBuffer; in run() [all …]
|
D | LinkMovementMethod.java | 22 import android.text.Spannable; 44 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, in handleMovementKey() 61 protected boolean up(TextView widget, Spannable buffer) { in up() 70 protected boolean down(TextView widget, Spannable buffer) { in down() 79 protected boolean left(TextView widget, Spannable buffer) { in left() 88 protected boolean right(TextView widget, Spannable buffer) { in right() 96 private boolean action(int what, TextView widget, Spannable buffer) { in action() 194 public boolean onTouchEvent(TextView widget, Spannable buffer, in onTouchEvent() 234 public void initialize(TextView widget, Spannable text) { in initialize() 240 public void onTakeFocus(TextView view, Spannable text, int dir) { in onTakeFocus() [all …]
|
D | MetaKeyKeyListener.java | 21 import android.text.Spannable; 144 public static void resetMetaState(Spannable text) { in resetMetaState() 272 public static void adjustMetaAfterKeypress(Spannable content) { in adjustMetaAfterKeypress() 295 private static void adjust(Spannable content, Object what) { in adjust() 308 protected static void resetLockedMeta(Spannable content) { in resetLockedMeta() 315 private static void resetLock(Spannable content, Object what) { in resetLock() 364 public static void startSelecting(View view, Spannable content) { in startSelecting() 373 public static void stopSelecting(View view, Spannable content) { in stopSelecting() 639 Spannable.SPAN_MARK_MARK | (1 << Spannable.SPAN_USER_SHIFT); 646 Spannable.SPAN_MARK_MARK | (2 << Spannable.SPAN_USER_SHIFT); [all …]
|
D | QwertyKeyListener.java | 208 Spannable.SPAN_MARK_MARK | flags); in onKeyDown() 212 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in onKeyDown() 221 Spannable.SPAN_MARK_MARK); in onKeyDown() 231 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown() 236 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown() 272 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown() 336 en, en, Spannable.SPAN_POINT_POINT); in onKeyDown() 343 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown() 416 public static void markAsReplaced(Spannable content, int start, int end, in markAsReplaced() 428 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in markAsReplaced()
|
D | Touch.java | 22 import android.text.Spannable; 88 public static boolean onTouchEvent(TextView widget, Spannable buffer, in onTouchEvent() 102 0, 0, Spannable.SPAN_MARK_MARK); in onTouchEvent() 184 public static int getInitialScrollX(TextView widget, Spannable buffer) { in getInitialScrollX() 193 public static int getInitialScrollY(TextView widget, Spannable buffer) { in getInitialScrollY()
|
/frameworks/base/core/java/android/text/ |
D | Selection.java | 67 public static void setSelection(Spannable text, int start, int stop) { in setSelection() 86 public static final void setSelection(Spannable text, int index) { in setSelection() 93 public static final void selectAll(Spannable text) { in selectAll() 100 public static final void extendSelection(Spannable text, int index) { in extendSelection() 108 public static final void removeSelection(Spannable text) { in removeSelection() 122 public static boolean moveUp(Spannable text, Layout layout) { in moveUp() 168 public static boolean moveDown(Spannable text, Layout layout) { in moveDown() 213 public static boolean moveLeft(Spannable text, Layout layout) { in moveLeft() 238 public static boolean moveRight(Spannable text, Layout layout) { in moveRight() 261 public static boolean extendUp(Spannable text, Layout layout) { in extendUp() [all …]
|
D | Spannable.java | 24 public interface Spannable interface 53 private static Spannable.Factory sInstance = new Spannable.Factory(); 58 public static Spannable.Factory getInstance() { in getInstance() 66 public Spannable newSpannable(CharSequence source) { in newSpannable()
|
D | SpanWatcher.java | 29 public void onSpanAdded(Spannable text, Object what, int start, int end); in onSpanAdded() 34 public void onSpanRemoved(Spannable text, Object what, int start, int end); in onSpanRemoved() 40 public void onSpanChanged(Spannable text, Object what, int ostart, int oend, in onSpanChanged()
|
/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 181 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 185 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 189 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 193 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 197 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 201 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 205 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 209 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 213 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 220 Spannable.SPAN_INCLUSIVE_INCLUSIVE); in applyStyles() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ViewPropertyAlphaActivity.java | 27 import android.text.Spannable; 83 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onCreate() 85 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onCreate() 87 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onCreate() 89 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onCreate() 91 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onCreate()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZonePickerUtils.java | 22 import android.text.Spannable; 23 import android.text.Spannable.Factory; 37 private static final Factory mSpannableFactory = Spannable.Factory.getInstance(); 107 Spannable spannableText = mSpannableFactory.newSpannable(sb); in buildGmtDisplayName() 110 gmtStart, gmtEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in buildGmtDisplayName() 114 symbolStart, symbolEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in buildGmtDisplayName()
|
D | TimeZoneInfo.java | 20 import android.text.Spannable; 21 import android.text.Spannable.Factory; 44 private static final Factory mSpannableFactory = Spannable.Factory.getInstance(); 175 Spannable spannableText = mSpannableFactory.newSpannable(mSB); in getGmtDisplayName() 177 gmtStart, gmtEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getGmtDisplayName() 181 symbolStart, symbolEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getGmtDisplayName()
|
/frameworks/base/core/java/android/text/util/ |
D | Linkify.java | 26 import android.text.Spannable; 224 public static final boolean addLinks(@NonNull Spannable text, @LinkifyMask int mask) { in addLinks() 288 if (t instanceof Spannable) { in addLinks() 289 if (addLinks((Spannable) t, mask)) { in addLinks() 394 public static final boolean addLinks(@NonNull Spannable text, @NonNull Pattern pattern, in addLinks() 414 public static final boolean addLinks(@NonNull Spannable spannable, @NonNull Pattern pattern, in addLinks() 437 public static final boolean addLinks(@NonNull Spannable spannable, @NonNull Pattern pattern, in addLinks() 476 private static final void applyLink(String url, int start, int end, Spannable text) { in applyLink() 511 Spannable s, Pattern pattern, String[] schemes, in gatherLinks() 532 private static final void gatherTelLinks(ArrayList<LinkSpec> links, Spannable s) { in gatherTelLinks() [all …]
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestBasic.java | 23 import android.text.Spannable; 87 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in useSpans() 93 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in useSpans() 99 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in useSpans()
|
/frameworks/base/core/java/android/widget/ |
D | DialerFilter.java | 24 import android.text.Spannable; 361 Spannable span = (Spannable)text; in setLettersWatcher() 367 Spannable span = (Spannable)text; in setDigitsWatcher() 380 Spannable text; in removeFilterWatcher()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/ |
D | SpanHelper.java | 19 import android.text.Spannable; 30 public static void replaceSpan(Spannable spannable, Object oldSpan, Object newSpan) { in replaceSpan()
|