Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/com/android/internal/util/
DXmlUtils_Delegate.java32 /*package*/ static final int convertValueToInt(CharSequence charSeq, int defaultValue) { in convertValueToInt() argument
33 if (null == charSeq) in convertValueToInt()
36 String nm = charSeq.toString(); in convertValueToInt()
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java970 private static int convertValueToInt(@Nullable String charSeq, int defValue) { in convertValueToInt() argument
971 if (null == charSeq || charSeq.isEmpty()) in convertValueToInt()
976 int len = charSeq.length(); in convertValueToInt()
979 if ('-' == charSeq.charAt(0)) { in convertValueToInt()
984 if ('0' == charSeq.charAt(index)) { in convertValueToInt()
989 char c = charSeq.charAt(index + 1); in convertValueToInt()
999 } else if ('#' == charSeq.charAt(index)) { in convertValueToInt()
1000 return ResourceHelper.getColor(charSeq) * sign; in convertValueToInt()
1001 } else if ("true".equals(charSeq) || "TRUE".equals(charSeq)) { in convertValueToInt()
1003 } else if ("false".equals(charSeq) || "FALSE".equals(charSeq)) { in convertValueToInt()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewPerformanceTest.java88 CharSequence charSeq = new SpannedString(mString); in testSpan() local
89 mTextView.setText(charSeq); in testSpan()
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java96 convertValueToInt(CharSequence charSeq, int defaultValue) in convertValueToInt() argument
98 if (TextUtils.isEmpty(charSeq)) { in convertValueToInt()
102 String nm = charSeq.toString(); in convertValueToInt()
150 public static int parseUnsignedIntAttribute(CharSequence charSeq) { in parseUnsignedIntAttribute() argument
151 String value = charSeq.toString(); in parseUnsignedIntAttribute()