Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 39) sorted by relevance

12

/dalvik/dexgen/src/com/android/dexgen/rop/cst/
DCstString.java27 private final CstUtf8 string; field in CstString
34 public CstString(CstUtf8 string) { in CstString() argument
35 if (string == null) { in CstString()
39 this.string = string; in CstString()
47 public CstString(String string) { in CstString() argument
48 this(new CstUtf8(string)); in CstString()
58 return string.equals(((CstString) other).string); in equals()
64 return string.hashCode(); in hashCode()
70 return string.compareTo(((CstString) other).string); in compareTo0()
98 return string.toQuoted(); in toHuman()
[all …]
DCstUtf8.java33 private final String string; field in CstUtf8
46 public static byte[] stringToUtf8Bytes(String string) { in stringToUtf8Bytes() argument
47 int len = string.length(); in stringToUtf8Bytes()
52 char c = string.charAt(i); in stringToUtf8Bytes()
180 public CstUtf8(String string) { in CstUtf8() argument
181 if (string == null) { in CstUtf8()
185 this.string = string.intern(); in CstUtf8()
186 this.bytes = new ByteArray(stringToUtf8Bytes(string)); in CstUtf8()
200 this.string = utf8BytesToString(bytes).intern(); in CstUtf8()
210 return string.equals(((CstUtf8) other).string); in equals()
[all …]
/dalvik/dx/src/com/android/dx/rop/cst/
DCstString.java34 private final String string; field in CstString
46 public static byte[] stringToUtf8Bytes(String string) { in stringToUtf8Bytes() argument
47 int len = string.length(); in stringToUtf8Bytes()
52 char c = string.charAt(i); in stringToUtf8Bytes()
180 public CstString(String string) { in CstString() argument
181 if (string == null) { in CstString()
185 this.string = string.intern(); in CstString()
186 this.bytes = new ByteArray(stringToUtf8Bytes(string)); in CstString()
200 this.string = utf8BytesToString(bytes).intern(); in CstString()
210 return string.equals(((CstString) other).string); in equals()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DStringIdsSection.java106 public StringIdItem intern(String string) { in intern() argument
107 CstUtf8 utf8 = new CstUtf8(string); in intern()
117 public StringIdItem intern(CstString string) { in intern() argument
118 CstUtf8 utf8 = string.getString(); in intern()
128 public StringIdItem intern(CstUtf8 string) { in intern() argument
129 return intern(new StringIdItem(string)); in intern()
138 public StringIdItem intern(StringIdItem string) { in intern() argument
139 if (string == null) { in intern()
145 CstUtf8 value = string.getValue(); in intern()
152 strings.put(value, string); in intern()
[all …]
DDebugInfoEncoder.java639 private void emitStringIndex(CstUtf8 string) throws IOException { in emitStringIndex() argument
640 if ((string == null) || (file == null)) { in emitStringIndex()
644 1 + file.getStringIds().indexOf(string)); in emitStringIndex()
649 string == null ? "<null>" : string.toQuoted()); in emitStringIndex()
/dalvik/dx/src/com/android/dx/dex/file/
DStringIdsSection.java100 public StringIdItem intern(String string) { in intern() argument
101 return intern(new StringIdItem(new CstString(string))); in intern()
110 public StringIdItem intern(CstString string) { in intern() argument
111 return intern(new StringIdItem(string)); in intern()
120 public synchronized StringIdItem intern(StringIdItem string) { in intern() argument
121 if (string == null) { in intern()
127 CstString value = string.getValue(); in intern()
134 strings.put(value, string); in intern()
135 return string; in intern()
155 public int indexOf(CstString string) { in indexOf() argument
[all …]
DDebugInfoEncoder.java651 private void emitStringIndex(CstString string) throws IOException { in emitStringIndex() argument
652 if ((string == null) || (file == null)) { in emitStringIndex()
656 1 + file.getStringIds().indexOf(string)); in emitStringIndex()
661 string == null ? "<null>" : string.toQuoted()); in emitStringIndex()
/dalvik/dx/tests/137-dexmerger-dex38/
Dexpected.txt47 …a01 7600 |0002: const-string v1, "targetMethodTest4 from Super" // st…
132 …6: 1a02 1800 |000d: const-string v2, "InvokeCustom.<init>(" // string
137 00415a: 1a02 0700 |0017: const-string v2, ")" // string@0007
167 …6: 1a02 5600 |0007: const-string v2, "bsmCreateCallSite [" // string@…
172 0041aa: 1a02 5200 |0011: const-string v2, "]" // string@0052
202 …e4: 1a01 5800 |0002: const-string v1, "bsmLookupStatic []" // string@…
239 …02 5a00 |0007: const-string v2, "bsmLookupStaticWithExtraArgs [" // s…
244 00424e: 1a02 0800 |0011: const-string v2, ", " // string@0008
249 004262: 1a02 0800 |001b: const-string v2, ", " // string@0008
254 004276: 1a02 0800 |0025: const-string v2, ", " // string@0008
[all …]
/dalvik/dx/tests/010-class-attrib-InnerClasses/
Dexpected.txt35 name: string{"Small"}
43 name: string{"Zorch"}
/dalvik/dx/tests/095-dex-const-string-jumbo/
Dexpected.txt4 0001: const-string/jumbo v1, "zorch"
Dinfo.txt2 const-string/jumbo gets emitted appropriately.
/dalvik/dx/tests/066-dex-try-catch-rethrow/
Dexpected.txt3 0000: const-string v1, "x"
22 0000: const-string v1, "x"
40 0000: const-string v1, "x"
/dalvik/dx/src/com/android/dx/io/
DDexIndexPrinter.java53 for (String string : dex.strings()) { in printStrings()
54 System.out.println("string " + index + ": " + string); in printStrings()
/dalvik/dx/src/com/android/dx/command/findusages/
DFindUsages.java54 String string = strings.get(i); in FindUsages() local
55 if (declaredByPattern.matcher(string).matches()) { in FindUsages()
58 if (memberNamePattern.matcher(string).matches()) { in FindUsages()
/dalvik/dx/tests/108-string-annotation/
Dinfo.txt2 string annotations get represented reasonably.
/dalvik/dx/tests/025-class-attrib-Signature/
Dexpected.txt27 signature: string{"LYo;"}
/dalvik/dx/tests/012-class-attrib-SourceFile/
Dexpected.txt27 source: string{"Blort.java"}
/dalvik/dx/tests/133-source-debug-extension/
Dinfo.txt6 just checks that the SMAP string appears in the DEX file and assumes
/dalvik/dx/tests/026-field-attrib-Signature/
Dexpected.txt33 signature: string{"LYo;"}
/dalvik/dx/tests/027-method-attrib-Signature/
Dexpected.txt34 signature: string{"LYo;"}
/dalvik/dx/tests/014-field-attrib-ConstantValue/
Dexpected.txt23 000f: string{"Small"}
157 value: string{"Small"}
/dalvik/dx/tests/005-cp-top-down/
Dexpected.txt13 0007: string{"Small"}
Dsmall-class.txt17 08 0013 # 0007: string["Small"]
/dalvik/dx/tests/004-cp-bottom-up/
Dexpected.txt21 000d: string{"Small"}
Dsmall-class.txt25 08 0001 # 000d: string["Small"]

12