Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 33) 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.java647 private void emitStringIndex(CstString string) throws IOException { in emitStringIndex() argument
648 if ((string == null) || (file == null)) { in emitStringIndex()
652 1 + file.getStringIds().indexOf(string)); in emitStringIndex()
657 string == null ? "<null>" : string.toQuoted()); in emitStringIndex()
/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/108-string-annotation/
Dinfo.txt2 string annotations get represented reasonably.
/dalvik/dx/tests/012-class-attrib-SourceFile/
Dexpected.txt27 source: string{"Blort.java"}
/dalvik/dx/tests/025-class-attrib-Signature/
Dexpected.txt27 signature: string{"LYo;"}
/dalvik/dx/tests/027-method-attrib-Signature/
Dexpected.txt34 signature: string{"LYo;"}
/dalvik/dx/tests/026-field-attrib-Signature/
Dexpected.txt33 signature: string{"LYo;"}
/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/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/tests/004-cp-bottom-up/
Dsmall-class.txt25 08 0001 # 000d: string["Small"]
Dexpected.txt21 000d: string{"Small"}
/dalvik/dx/tests/005-cp-top-down/
Dexpected.txt13 0007: string{"Small"}
Dsmall-class.txt17 08 0013 # 0007: string["Small"]
/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/014-field-attrib-ConstantValue/
Dexpected.txt23 000f: string{"Small"}
157 value: string{"Small"}
/dalvik/dx/tests/024-code-bytecode/
Dexpected.txt16 0008: string{"Small"}
67 0015: ldc string{"Small"}
70 001b: ldc_w string{"Small"}
Dsmall-class.txt20 08 0003 # 0008: string["Small"]
71 12 08 # 0015: ldc <string>
74 13 0008 # 001b: ldc_w <string>

12