Home
last modified time | relevance | path

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

123

/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 …]
/dalvik/dx/src/com/android/dx/dex/file/
DStringIdsSection.java101 public StringIdItem intern(String string) { in intern() argument
102 return intern(new StringIdItem(new CstString(string))); in intern()
111 public StringIdItem intern(CstString string) { in intern() argument
112 return intern(new StringIdItem(string)); in intern()
121 public StringIdItem intern(StringIdItem string) { in intern() argument
122 if (string == null) { in intern()
128 CstString value = string.getValue(); in intern()
135 strings.put(value, string); in intern()
136 return string; in intern()
156 public int indexOf(CstString string) { in indexOf() argument
[all …]
/dalvik/tests/011-array-copy/
Dexpected.txt1 string -> object
2 object -> string
3 object -> string (modified)
/dalvik/vm/
DMisc.h148 std::string dvmHumanReadableDescriptor(const char* descriptor);
156 std::string dvmHumanReadableType(const Object* obj);
162 std::string dvmHumanReadableField(const Field* field);
169 std::string dvmHumanReadableMethod(const Method* method, bool withSignature);
331 std::string StringPrintf(const char* fmt, ...)
337 void StringAppendF(std::string* dst, const char* fmt, ...)
343 void StringAppendV(std::string* dst, const char* format, va_list ap);
DUtfString.h70 ArrayObject* dvmCreateStringArray(const std::vector<std::string>& strings);
88 StringObject* dvmCreateStringFromCstr(const std::string& utf8Str);
DMisc.cpp221 std::string dvmHumanReadableDescriptor(const char* descriptor) { in dvmHumanReadableDescriptor()
253 std::string result; in dvmHumanReadableDescriptor()
269 std::string dvmHumanReadableType(const Object* obj) in dvmHumanReadableType()
278 std::string result(dvmHumanReadableDescriptor(obj->clazz->descriptor)); in dvmHumanReadableType()
286 std::string dvmHumanReadableField(const Field* field) in dvmHumanReadableField()
291 std::string result(dvmHumanReadableDescriptor(field->clazz->descriptor)); in dvmHumanReadableField()
297 std::string dvmHumanReadableMethod(const Method* method, bool withSignature) in dvmHumanReadableMethod()
302 std::string result(dvmHumanReadableDescriptor(method->clazz->descriptor)); in dvmHumanReadableMethod()
765 void StringAppendV(std::string* dst, const char* format, va_list ap) { in StringAppendV()
810 std::string StringPrintf(const char* fmt, ...) { in StringPrintf()
[all …]
DInit.h26 std::string dvmStartup(int argc, const char* const argv[],
DCheckJni.cpp536 std::string msg; in check()
588 std::string className(dvmHumanReadableType(c)); in check()
596 std::string name(dvmHumanReadableField((Field*) fid)); in check()
609 std::string name(dvmHumanReadableMethod((Method*) mid, true)); in check()
653 std::string methodName(dvmHumanReadableMethod(method, false)); in check()
1681 static jsize Check_GetStringLength(JNIEnv* env, jstring string) { in Check_GetStringLength() argument
1682 CHECK_JNI_ENTRY(kFlag_CritOkay, "Es", env, string); in Check_GetStringLength()
1683 return CHECK_JNI_EXIT("I", baseEnv(env)->GetStringLength(env, string)); in Check_GetStringLength()
1686 static const jchar* Check_GetStringChars(JNIEnv* env, jstring string, jboolean* isCopy) { in Check_GetStringChars() argument
1687 CHECK_JNI_ENTRY(kFlag_CritOkay, "Esp", env, string, isCopy); in Check_GetStringChars()
[all …]
DReferenceTable.cpp227 std::string className(dvmHumanReadableType(obj)); in logSummaryLine()
238 std::string msg(StringPrintf("%5d of %s", total, className.c_str())); in logSummaryLine()
284 std::string className(dvmHumanReadableType(ref)); in dvmDumpReferenceTableContents()
286 std::string extras; in dvmDumpReferenceTableContents()
/dalvik/vm/mterp/x86-atom/
DOP_CONST_STRING.S36 cmp $$0, %eax # check if string is resolved
37 je .L${opcode}_resolve # resolve string reference
57 call dvmResolveString # resolve string reference
61 cmp $$0, %eax # check if resolved string failed
DOP_CONST_STRING_JUMBO.S39 cmp $$0, %eax # check if string is resolved
40 je .L${opcode}_resolve # resolve string reference
59 call dvmResolveString # resolve string reference
63 cmp $$0, %eax # check if resolved string failed
/dalvik/tests/020-string/
Dexpected.txt1 testStr is 'This is a very nice string'
2 This is a very nice string
/dalvik/tests/056-const-string-jumbo/
Dinfo.txt1 Test that the opcode const-string/jumbo works.
/dalvik/dx/tests/010-class-attrib-InnerClasses/
Dexpected.txt35 name: string{"Small"}
43 name: string{"Zorch"}
/dalvik/vm/analysis/
DVerifySubs.cpp81 std::string dotMissingClass = dvmHumanReadableDescriptor(missingClassDescr); in dvmLogUnableToResolveClass()
82 std::string dotFromClass = dvmHumanReadableDescriptor(meth->clazz->descriptor); in dvmLogUnableToResolveClass()
/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/tests/046-reflect/
Dexpected.txt42 string1 value is now 'a new string'
43 ::: a new string:yo:there
60 got expected string->int failure
78 Constant test value is a constant string
/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/src/com/android/dx/io/
DDexIndexPrinter.java48 for (String string : dexBuffer.strings()) { in printStrings()
49 System.out.println("string " + index + ": " + string); in printStrings()

123