Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 23 of 23) sorted by relevance

/art/tools/ahat/src/main/com/android/ahat/
DHtmlEscaper.java26 StringBuilder sb = null; in escape() local
31 if (sb == null) { in escape()
32 sb = new StringBuilder(); in escape()
34 sb.append(text.substring(low, i)); in escape()
35 sb.append(replacements[s]); in escape()
39 if (sb == null) { in escape()
43 sb.append(text.substring(low)); in escape()
44 return sb.toString(); in escape()
/art/test/596-app-images/src-art/
DMain.java70 StringBuffer sb = new StringBuffer(); in testInternedStrings() local
71 sb.append("java."); in testInternedStrings()
72 sb.append("abc."); in testInternedStrings()
73 sb.append("Action"); in testInternedStrings()
75 String tmp = sb.toString(); in testInternedStrings()
140 StringBuilder sb = new StringBuilder(message != null ? message : ""); in assertEquals() local
141 if (sb.length() > 0) { in assertEquals()
142 sb.append(" "); in assertEquals()
144 sb.append("expected:<").append(a).append("> but was:<").append(b).append(">"); in assertEquals()
145 assertTrue(sb.toString(), (a == null && b == null) || (a != null && a.equals(b))); in assertEquals()
[all …]
/art/test/941-recursive-obsolete-jit/src/
DMain.java83 private StringBuilder sb; field in Main.TestWatcher
85 sb = new StringBuilder(); in TestWatcher()
90 sb.append(s); in accept()
91 sb.append('\n'); in accept()
95 return sb.toString(); in getOutput()
99 sb = new StringBuilder(); in clear()
/art/test/916-obsolete-jit/src/
DMain.java98 private StringBuilder sb; field in Main.TestWatcher
100 sb = new StringBuilder(); in TestWatcher()
105 sb.append(s); in accept()
106 sb.append('\n'); in accept()
110 return sb.toString(); in getOutput()
114 sb = new StringBuilder(); in clear()
/art/test/943-private-recursive-jit/src/
DMain.java90 private StringBuilder sb; field in Main.TestWatcher
92 sb = new StringBuilder(); in TestWatcher()
100 sb.append(s); in accept()
101 sb.append('\n'); in accept()
105 return sb.toString(); in getOutput()
109 sb = new StringBuilder(); in clear()
/art/test/919-obsolete-fields/src/art/
DTest919.java135 private StringBuilder sb; field in Test919.TestWatcher
137 sb = new StringBuilder(); in TestWatcher()
142 sb.append(s); in accept()
143 sb.append('\n'); in accept()
147 return sb.toString(); in getOutput()
/art/test/911-get-stack-trace/src/art/
DPrintThread.java70 StringBuilder sb = new StringBuilder(); in printAll() local
73 sb.append(' '); in printAll()
74 sb.append(part); in printAll()
76 sb.append('\n'); in printAll()
78 stackSerialization = sb.toString(); in printAll()
/art/test/699-checker-string-append2/smali/
DB146014745.smali26 # StringBuilder sb = new StringBuilder();
29 # sb.append(s).append(i);
33 # return sb.append(s).append(i).toString();
48 # StringBuilder sb = new StringBuilder();
51 # String s2 = sb.append(s).append(i).toString();
58 # return sb.append(s2).toString();
71 # StringBuilder sb = new StringBuilder();
74 # String s2 = sb.append(s).toString();
79 # return sb.append(i).append(s2).append(i);
85 # return sb.toString();
[all …]
/art/test/094-pattern/src/
DMain.java87 StringBuilder sb = new StringBuilder(text.length() * 4); in getStringAsHex() local
90 sb.append(Integer.toHexString((int) text.charAt(i))); in getStringAsHex()
93 return sb.toString(); in getStringAsHex()
/art/test/1960-obsolete-jit-multithread-native/src/
DMain.java77 private StringBuilder sb; field in Main.TestWatcher
80 sb = new StringBuilder(); in TestWatcher()
88 sb.append(msg); in accept()
89 sb.append('\n'); in accept()
93 return sb.toString(); in getOutput()
97 sb = new StringBuilder(); in clear()
/art/test/1961-obsolete-jit-multithread/src/
DMain.java75 private StringBuilder sb; field in Main.TestWatcher
78 sb = new StringBuilder(); in TestWatcher()
86 sb.append(msg); in accept()
87 sb.append('\n'); in accept()
91 return sb.toString(); in getOutput()
95 sb = new StringBuilder(); in clear()
/art/tools/class2greylist/src/com/android/class2greylist/
DApiComponents.java44 StringBuilder sb = new StringBuilder() in toString() local
49 sb.append("#").append(mMemberName).append("(").append(mMethodParameterTypes).append( in toString()
52 return sb.toString(); in toString()
158 StringBuilder sb = new StringBuilder(); in parseJniType() local
159 sb.append(parseJniTypeWithoutArrayDimensions(sc)); in parseJniType()
161 sb.append("[]"); in parseJniType()
163 return sb.toString(); in parseJniType()
/art/test/713-varhandle-invokers/src/
DMain.java31 StringBuilder sb = new StringBuilder(); in failAssertion() local
32 sb.append("Test failure: "); in failAssertion()
33 sb.append(message); in failAssertion()
34 throw new AssertionError(sb.toString()); in failAssertion()
42 StringBuilder sb = new StringBuilder(); in failAssertEquals() local
43 sb.append(expected); in failAssertEquals()
44 sb.append(" != "); in failAssertEquals()
45 sb.append(actual); in failAssertEquals()
46 failAssertion(sb.toString()); in failAssertEquals()
/art/test/697-checker-string-append/src/
DMain.java238 public static String $inline$testInlineInner(StringBuilder sb, String s, int i) { in $inline$testInlineInner() argument
239 return sb.append(s).append(i).toString(); in $inline$testInlineInner()
248 StringBuilder sb = new StringBuilder(); in $noinline$testInlineOuter() local
249 return $inline$testInlineInner(sb, s, i); in $noinline$testInlineOuter()
/art/test/660-clinit/src/
DMain.java112 StringBuilder sb = new StringBuilder();
113 sb.append("Hello ");
114 sb.append("World!");
115 str = sb.toString();
/art/test/922-properties/src/art/
DTest922.java124 StringBuilder sb = new StringBuilder("a"); in generateUnique() local
126 String key = sb.toString(); in generateUnique()
130 sb.append('a'); in generateUnique()
/art/test/924-threads/src/art/
DTest924.java429 StringBuilder sb = new StringBuilder(); in printThreadState() local
433 if (sb.length()>0) { in printThreadState()
434 sb.append('|'); in printThreadState()
436 sb.append(STATE_NAMES.get(i)); in printThreadState()
440 if (sb.length() == 0) { in printThreadState()
441 sb.append("NEW"); in printThreadState()
444 System.out.println(Integer.toHexString(state) + " = " + sb.toString()); in printThreadState()
/art/test/536-checker-intrinsic-optimization/src/
DMain.java25 StringBuilder sb = new StringBuilder(); in generateString() local
28 sb.append(Character.valueOf((char)('a' + (i % 26)))); in generateString()
30 return sb.toString(); in generateString()
/art/test/979-const-method-handle/util-src/transformer/
DConstantTransformer.java163 StringBuilder sb = new StringBuilder();
164 sb.append("Error in annotation ")
170 throw new Error(sb.toString());
/art/compiler/optimizing/
Dinstruction_simplifier.cc2470 HInstruction* sb = invoke->InputAt(0); in TryReplaceStringBuilderAppend() local
2474 if (!sb->IsNewInstance()) { in TryReplaceStringBuilderAppend()
2480 for (const HUseListNode<HInstruction*>& use : sb->GetUses()) { in TryReplaceStringBuilderAppend()
2502 if (user->InputCount() == 0u || user->InputAt(0u) != sb) { in TryReplaceStringBuilderAppend()
2603 for (const HUseListNode<HEnvironment*>& use : sb->GetEnvUses()) { in TryReplaceStringBuilderAppend()
2610 if (holder->InputCount() == 0 || holder->InputAt(0) != sb) { in TryReplaceStringBuilderAppend()
2631 if (env->GetInstructionAt(i) == sb) { in TryReplaceStringBuilderAppend()
2641 while (sb->HasNonEnvironmentUses()) { in TryReplaceStringBuilderAppend()
2642 block->RemoveInstruction(sb->GetUses().front().GetUser()); in TryReplaceStringBuilderAppend()
2644 DCHECK(!sb->HasEnvironmentUses()); in TryReplaceStringBuilderAppend()
[all …]
/art/test/956-methodhandles/src/
DMain.java834 StringBuffer sb = new StringBuffer(testPattern); in testStringConstructors() local
835 int[] codePoints = new int[sb.codePointCount(0, sb.length())]; in testStringConstructors()
836 for (int i = 0; i < sb.length(); ++i) { in testStringConstructors()
837 codePoints[i] = sb.codePointAt(i); in testStringConstructors()
910 s = (String) mh.invokeExact(sb); in testStringConstructors()
/art/dexdump/
Ddexdump.cc393 uint8_t sb = static_cast<uint8_t>(start_byte); in utf8Bytes() local
394 if ((sb & 0x80) == 0) { in utf8Bytes()
397 size_t msb = art::MostSignificantBit(static_cast<uint8_t>(~sb)); in utf8Bytes()
/art/test/710-varhandle-creation/src/
DMain.java51 static byte sb; field in Main