Home
last modified time | relevance | path

Searched refs:newString (Results 1 – 13 of 13) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/
DRubyDescriptorPool.java134 ((RubyEnumDescriptor) symtab.get(runtime.newString(enumName))) in buildFileDescriptor()
139 … symtab.get(runtime.newString(Utils.unescapeIdentifier(descriptor.getName())))); in buildFileDescriptor()
148 … runtime.newString(Utils.unescapeIdentifier(fieldDescriptor.getMessageType().getName()))); in buildFileDescriptor()
153 … runtime.newString(Utils.unescapeIdentifier(fieldDescriptor.getEnumType().getName()))); in buildFileDescriptor()
DUtils.java153 IRubyObject wrapped = runtime.newString(((ByteString) value).toStringUtf8()); in wrapPrimaryValue()
158 IRubyObject wrapped = runtime.newString(value.toString()); in wrapPrimaryValue()
240 fieldDef.setLabel(context, runtime.newString(label)); in msgdefCreateField()
DRubyMessageBuilderContext.java168 keyField.setName(context, runtime.newString("key")); in map()
176 valueField.setName(context, runtime.newString("value")); in map()
DRubyMessage.java156 return getRuntime().newString(sb.toString()); in inspect()
235 RubyString equalSign = context.runtime.newString(Utils.EQUAL_SIGN); in methodMissing()
293 return context.runtime.newString(new ByteList(message.build(context).toByteArray())); in encode()
573 return runtime.newString(value.toString()); in wrapField()
743 context.runtime.newString("value")); in newMapForField()
DRubyOneofDescriptor.java64 this.name = context.runtime.newString(name.asJavaString()); in setName()
DRubyEnumDescriptor.java176 enumModule.instance_variable_set(runtime.newString(Utils.DESCRIPTOR_INSTANCE_VAR), this); in buildModuleFromDescriptor()
DRubyFieldDescriptor.java122 this.name = context.runtime.newString(nameStr); in setName()
DRubyDescriptor.java253 klass.instance_variable_set(runtime.newString(Utils.DESCRIPTOR_INSTANCE_VAR), this); in buildClassFromDescriptor()
DRubyMap.java234 return context.runtime.newString(new ByteList(digest.digest())); in hash()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java513 String[] invalidStrings = new String[] {newString(Character.MIN_HIGH_SURROGATE),
514 "foobar" + newString(Character.MIN_HIGH_SURROGATE), newString(Character.MIN_LOW_SURROGATE),
515 "foobar" + newString(Character.MIN_LOW_SURROGATE),
516 newString(Character.MIN_HIGH_SURROGATE, Character.MIN_HIGH_SURROGATE)};
539 String invalidString = newString(Character.MIN_HIGH_SURROGATE, 'f', 'o', 'o', 'b', 'a', 'r');
651 private static String newString(char... chars) {
DNioByteStringTest.java528 ByteString newString = new NioByteString(backingBuffer); in testPeekCachedHashCode() local
530 newString.peekCachedHashCode()); in testPeekCachedHashCode()
531 newString.hashCode(); in testPeekCachedHashCode()
533 EXPECTED_HASH, newString.peekCachedHashCode()); in testPeekCachedHashCode()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/conformance/third_party/jsoncpp/
Djsoncpp.cpp2503 char* newString = static_cast<char*>(malloc(length + 1)); in duplicateStringValue() local
2504 if (newString == NULL) { in duplicateStringValue()
2509 memcpy(newString, value, length); in duplicateStringValue()
2510 newString[length] = 0; in duplicateStringValue()
2511 return newString; in duplicateStringValue()
2526 char* newString = static_cast<char*>(malloc(actualLength)); in duplicateAndPrefixStringValue() local
2527 if (newString == 0) { in duplicateAndPrefixStringValue()
2532 *reinterpret_cast<unsigned*>(newString) = length; in duplicateAndPrefixStringValue()
2533 memcpy(newString + sizeof(unsigned), value, length); in duplicateAndPrefixStringValue()
2534 newString[actualLength - 1U] = 0; // to avoid buffer over-run accidents by users later in duplicateAndPrefixStringValue()
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt33180 Landroid/icu/text/UTF16;->newString([III)Ljava/lang/String;