Lines Matching defs:string
117 Log.errorAndQuit("Did not create necessary descriptor string before finding "
131 private int findStringDataInsertionPoint(String string) {
134 if (stringData.getSize() > 0 && stringData.getString().compareTo(string) >= 0) {
182 // Search for (or create) the string representing the method name.
261 // Search for (or create) the string representing the class descriptor.
321 private int createString(String string) {
329 int newStringIdx = findStringDataInsertionPoint(string);
333 newStringData.setSize(string.length());
334 newStringData.setString(string);
369 string, newStringIdx));
371 // Now that we've potentially moved a lot of string IDs along, all references
375 // All done, return the index for the new string.
379 private int findString(String string) {
380 // Search for string.
383 if (stringDataItem.getSize() == 0 && string.isEmpty()) {
385 } else if (stringDataItem.getSize() > 0 && stringDataItem.getString().equals(string)) {
394 * Given a string, either find the StringId in our DEX file's table, or create it.
396 public int findOrCreateString(String string) {
397 int stringIdx = findString(string);
401 return createString(string);
418 // Search for (or create) the string representing the field name.
717 // Search for (or create) the shorty string.