Searched defs:string (Results 1 - 8 of 8) sorted by relevance

/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DStringIdsSection.java35 * {@code non-null;} map from string constants to {@link
102 * @param string {@code non-null;} the string to intern, as a regular Java
104 * @return {@code non-null;} the interned string
106 public StringIdItem intern(String string) { argument
107 CstUtf8 utf8 = new CstUtf8(string);
114 * @param string {@code non-null;} the string to intern, as a {@link CstString}
115 * @return {@code non-null;} the interned string
117 public StringIdItem intern(CstString string) { argument
128 intern(CstUtf8 string) argument
138 intern(StringIdItem string) argument
173 indexOf(CstUtf8 string) argument
196 indexOf(CstString string) argument
[all...]
H A DDebugInfoEncoder.java47 * <li> n instances of signed LEB128: string indicies (offset by 1)
362 * line number and string indicies for names of all non-"this" arguments.
414 * Then emit the string indicies of all the method parameters.
566 * Returns a string representation of this LocalList entry that is
570 * @return {@code non-null;} annotation string
631 * Emits a string index as an unsigned LEB128. The actual value written
636 * @param string {@code null-ok;} string to emit
639 private void emitStringIndex(CstUtf8 string) throws IOException { argument
640 if ((string
[all...]
/dalvik/dexgen/src/com/android/dexgen/rop/cst/
H A DCstString.java26 /** {@code non-null;} the string value */
27 private final CstUtf8 string; field in class:CstString
32 * @param string {@code non-null;} the string value
34 public CstString(CstUtf8 string) { argument
35 if (string == null) {
36 throw new NullPointerException("string == null");
39 this.string = string;
45 * @param string {
47 CstString(String string) argument
[all...]
H A DCstUtf8.java28 * empty string
32 /** {@code non-null;} the UTF-8 value as a string */
33 private final String string; field in class:CstUtf8
39 * Converts a string into its Java-style UTF-8 form. Java-style UTF-8
43 * @param string {@code non-null;} the string to convert
46 public static byte[] stringToUtf8Bytes(String string) { argument
47 int len = string.length();
52 char c = string.charAt(i);
74 * Converts an array of UTF-8 bytes into a string
180 CstUtf8(String string) argument
[all...]
/dalvik/dx/src/com/android/dx/dex/file/
H A DStringIdsSection.java33 * {@code non-null;} map from string constants to {@link
96 * @param string {@code non-null;} the string to intern, as a regular Java
98 * @return {@code non-null;} the interned string
100 public StringIdItem intern(String string) { argument
101 return intern(new StringIdItem(new CstString(string)));
107 * @param string {@code non-null;} the string to intern, as a constant
108 * @return {@code non-null;} the interned string
110 public StringIdItem intern(CstString string) { argument
120 intern(StringIdItem string) argument
155 indexOf(CstString string) argument
[all...]
H A DDebugInfoEncoder.java55 * <li> n instances of signed LEB128: string indicies (offset by 1)
370 * line number and string indicies for names of all non-"this" arguments.
422 * Then emit the string indicies of all the method parameters.
574 * Returns a string representation of this LocalList entry that is
578 * @return {@code non-null;} annotation string
639 * Emits a string index as an unsigned LEB128. The actual value written
644 * @param string {@code null-ok;} string to emit
647 private void emitStringIndex(CstString string) throws IOException { argument
648 if ((string
[all...]
/dalvik/dx/src/com/android/dx/rop/cst/
H A DCstString.java29 * empty string
33 /** {@code non-null;} the UTF-8 value as a string */
34 private final String string; field in class:CstString
40 * Converts a string into its MUTF-8 form. MUTF-8 differs from normal UTF-8
43 * @param string {@code non-null;} the string to convert
46 public static byte[] stringToUtf8Bytes(String string) { argument
47 int len = string.length();
52 char c = string.charAt(i);
74 * Converts an array of UTF-8 bytes into a string
180 CstString(String string) argument
[all...]
/dalvik/libdex/
H A DDexFile.cpp33 #include <string.h>
48 const char* string = dexGetPrimitiveTypeDescriptor(type); local
50 return (string == NULL) ? '\0' : string[0];
103 /* Return the UTF-8 encoded string with the specified string_id index,
155 * Compute a hash code on a UTF-8 string, for use with internal hash tables.
174 * Add an entry to the class lookup table. We hash the string and probe

Completed in 421 milliseconds