HomeSort by relevance Sort by last modified time
    Searched refs:charSequence (Results 1 - 25 of 47) sorted by null

1 2

  /packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
CharSequenceReader.java 33 private final CharSequence charSequence;
40 * @param charSequence The character sequence, may be <code>null</code>
42 public CharSequenceReader(CharSequence charSequence) {
43 this.charSequence = (charSequence != null ? charSequence : "");
79 if (idx >= charSequence.length()) {
82 return charSequence.charAt(idx++)
    [all...]
  /external/guava/guava/src/com/google/common/hash/
AbstractHasher.java 23 * {@link #putFloat(float)}, {@link #putString(CharSequence)}, and
24 * {@link #putString(CharSequence, Charset)} as prescribed by {@link Hasher}.
41 @Override public Hasher putString(CharSequence charSequence) {
42 // TODO(user): Should we instead loop over the CharSequence and call #putChar?
43 return putString(charSequence, Charsets.UTF_16LE);
46 @Override public Hasher putString(CharSequence charSequence, Charset charset) {
48 return putBytes(charSequence.toString().getBytes(charset.name()));
Hasher.java 51 * Equivalent to {@code putBytes(charSequence.toString().getBytes(Charsets.UTF_16LE)}.
53 @Override Hasher putString(CharSequence charSequence);
55 * Equivalent to {@code putBytes(charSequence.toString().getBytes(charset)}.
57 @Override Hasher putString(CharSequence charSequence, Charset charset);
Sink.java 96 Sink putString(CharSequence charSequence);
101 Sink putString(CharSequence charSequence, Charset charset);
MessageDigestHashFunction.java 143 @Override public Hasher putString(CharSequence charSequence) {
144 for (int i = 0; i < charSequence.length(); i++) {
145 putChar(charSequence.charAt(i));
150 @Override public Hasher putString(CharSequence charSequence, Charset charset) {
152 return putBytes(charSequence.toString().getBytes(charset.name()));
AbstractStreamingHashFunction.java 36 @Override public HashCode hashString(CharSequence input) {
40 @Override public HashCode hashString(CharSequence input, Charset charset) {
171 public final Hasher putString(CharSequence charSequence) {
172 for (int i = 0; i < charSequence.length(); i++) {
173 putChar(charSequence.charAt(i));
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/
TextViewHasTextMatcher.java 22 final CharSequence charSequence = actual.getText();
23 if (charSequence == null || charSequence.toString() == null) {
26 actualText = charSequence.toString();
ViewHasTextMatcher.java 36 final CharSequence charSequence = shadowOf(actual).innerText();
37 if (charSequence == null || charSequence.toString() == null) {
40 actualText = charSequence.toString();
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowPasswordTransformationMethod.java 16 public CharSequence getTransformation(CharSequence charSequence, View view) {
17 if(isEmpty(charSequence)) {
20 return String.format(String.format("%%0%dd", charSequence.length()), 0).replace("0", "\u2022");
32 public void onFocusChanged(View view, CharSequence charSequence, boolean b, int i, Rect rect) { }
34 private boolean isEmpty(CharSequence value) {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
TextInfoCompatUtils.java 32 CompatUtils.getConstructor(TextInfo.class, CharSequence.class, int.class, int.class,
42 public static TextInfo newInstance(CharSequence charSequence, int start, int end, int cookie,
46 charSequence, start, end, cookie, sequenceNumber);
48 return new TextInfo(charSequence.subSequence(start, end).toString(), cookie,
62 public static CharSequence getCharSequenceOrString(final TextInfo textInfo) {
63 final CharSequence defaultValue = (textInfo == null ? null : textInfo.getText());
64 return (CharSequence) CompatUtils.invoke(textInfo, defaultValue,
  /frameworks/base/core/java/android/text/method/
WordIterator.java 28 * {@link BreakIterator#getWordInstance()}, and caches {@link CharSequence}
58 public void setCharSequence(CharSequence charSequence, int start, int end) {
60 final int windowEnd = Math.min(charSequence.length(), end + WINDOW_WIDTH);
62 if (charSequence instanceof SpannableStringBuilder) {
63 mString = ((SpannableStringBuilder) charSequence).substring(mOffsetShift, windowEnd);
65 mString = charSequence.subSequence(mOffsetShift, windowEnd).toString();
  /frameworks/base/core/java/android/view/textservice/
TextInfo.java 30 private final CharSequence mCharSequence;
61 * @param charSequence the text which will be input to TextService. Attached spans that
68 public TextInfo(CharSequence charSequence, int start, int end, int cookie, int sequenceNumber) {
69 if (TextUtils.isEmpty(charSequence)) {
70 throw new IllegalArgumentException("charSequence is empty");
74 new SpannableStringBuilder(charSequence, start, end);
117 * @return the charSequence which is an input of a text service. This may have some parcelable
120 public CharSequence getCharSequence() {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
StringUtils.java 162 public static int[] toCodePointArray(final CharSequence charSequence) {
163 return toCodePointArray(charSequence, 0, charSequence.length());
168 * @param charSequence the source string.
173 public static int[] toCodePointArray(final CharSequence charSequence,
175 final int length = charSequence.length();
180 new int[Character.codePointCount(charSequence, startIndex, endIndex)];
181 copyCodePointsAndReturnCodePointCount(codePoints, charSequence, startIndex, endIndex
    [all...]
  /frameworks/base/core/tests/coretests/src/com/android/internal/util/
CharSequencesTest.java 52 * Converts a CharSequence to a string the slow way. Useful for testing
53 * a CharSequence implementation.
55 static String toString(CharSequence charSequence) {
56 return new StringBuilder().append(charSequence).toString();
  /libcore/luni/src/main/java/java/io/
PrintStream.java 622 * Appends the CharSequence {@code charSequence}, or {@code "null"}.
625 public PrintStream append(CharSequence charSequence) {
626 if (charSequence == null) {
629 print(charSequence.toString());
635 * Appends a subsequence of CharSequence {@code charSequence}, or {@code "null"}.
637 * @param charSequence
649 * the length of {@code charSequence}
    [all...]
  /external/smali/util/src/main/java/org/jf/util/
IndentingWriter.java 136 public Writer append(CharSequence charSequence) throws IOException {
137 write(charSequence.toString());
142 public Writer append(CharSequence charSequence, int start, int len) throws IOException {
143 write(charSequence.subSequence(start, len).toString());
  /frameworks/base/core/java/com/android/internal/util/
NotificationColorUtil.java 156 * @param charSequence The text to process.
159 public CharSequence invertCharSequenceColors(CharSequence charSequence) {
160 if (charSequence instanceof Spanned) {
161 Spanned ss = (Spanned) charSequence;
174 return charSequence;
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
MaterialSearchActionView.java 176 private void setupEndingButton(CharSequence currentText) {
198 public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
203 public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
204 mController.onQueryTextChanged(charSequence.toString());
205 setupEndingButton(charSequence);
  /frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
ReplacementDrawableSpan.java 44 public int getSize(Paint paint, CharSequence text, int i, int i2, Paint.FontMetricsInt fm) {
50 public void draw(Canvas canvas, CharSequence charSequence, int start, int end, float x, int top,
  /packages/apps/UnifiedEmail/src/com/android/mail/text/
FolderSpan.java 68 public int getSize(Paint p, CharSequence text, int start, int end, Paint.FontMetricsInt fm) {
74 public void draw(Canvas canvas, CharSequence charSequence, int start, int end, float x, int top,
  /development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
SimpleMenu.java 57 public MenuItem add(CharSequence title) {
65 public MenuItem add(int groupId, int itemId, int order, CharSequence title) {
76 private MenuItem addInternal(int itemId, int order, CharSequence title) {
143 public SubMenu addSubMenu(CharSequence charSequence) {
151 public SubMenu addSubMenu(int groupId, int itemId, int order, CharSequence title) {
  /prebuilts/tools/common/m2/repository/org/reficio/p2-maven-plugin/1.1.0/
p2-maven-plugin-1.1.0.jar 
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
SearchBar.java 206 public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
210 public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
375 public CharSequence getHint() {
  /packages/apps/Calculator/src/com/android/calculator2/
Calculator.java 68 public void beforeTextChanged(CharSequence charSequence, int start, int count, int after) {
72 public void onTextChanged(CharSequence charSequence, int start, int count, int after) {
100 public Editable newEditable(CharSequence source) {
  /frameworks/base/core/java/android/app/
Notification.java 236 public CharSequence tickerText;
689 * as supplied to {@link Builder#setContentTitle(CharSequence)}.
695 * e.g. as supplied to {@link BigTextStyle#setBigContentTitle(CharSequence)}.
701 * {@link Builder#setContentText(CharSequence)}.
707 * {@link Builder#setSubText(CharSequence)}.
713 * {@link Builder#setContentInfo(CharSequence)}.
720 * {@link BigTextStyle#setSummaryText(CharSequence)}.
727 * {@link BigTextStyle#bigText(CharSequence)}.
791 * notifications, each of which was supplied to {@link InboxStyle#addLine(CharSequence)}.
883 * Apps should use {@link Notification.Builder#addAction(int, CharSequence, PendingIntent)
    [all...]

Completed in 7787 milliseconds

1 2