/art/runtime/verifier/ |
reg_type_cache.h | 77 const RegType& From(ObjPtr<mirror::ClassLoader> loader, const char* descriptor, bool precise) 82 // Insert a new class with a specified descriptor, must not already be in the cache. 83 const RegType* InsertClass(const std::string_view& descriptor, 88 const RegType& FromClass(const char* descriptor, ObjPtr<mirror::Class> klass, bool precise) 97 const char* descriptor, 165 ObjPtr<mirror::Class> ResolveClass(const char* descriptor, ObjPtr<mirror::ClassLoader> loader) 167 bool MatchDescriptor(size_t idx, const std::string_view& descriptor, bool precise)
|
/external/libchrome/base/ |
sync_socket_posix.cc | 105 const TransitDescriptor& descriptor) { 106 return descriptor.fd; 110 TransitDescriptor* descriptor) { 111 descriptor->fd = handle(); 112 descriptor->auto_close = false; 113 return descriptor->fd != kInvalidHandle;
|
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
RubyDescriptor.java | 49 @JRubyClass(name = "Descriptor", include = "Enumerable") 53 RubyClass cDescriptor = protobuf.defineClassUnder("Descriptor", runtime.getObject(), new ObjectAllocator() { 69 * Descriptor.new => descriptor 71 * Creates a new, empty, message type descriptor. At a minimum, its name must be 86 * Descriptor.name => name 98 * Descriptor.name = name 100 * Assigns a name to this message type. The descriptor must not have been added 112 * Descriptor.add_field(field) => nil 114 * Adds the given FieldDescriptor to this message type. The descriptor must no 266 private Descriptors.Descriptor descriptor; field in class:RubyDescriptor [all...] |
RubyMessageBuilderContext.java | 63 public IRubyObject initialize(ThreadContext context, IRubyObject descriptor, IRubyObject rubyBuilder) { 65 this.cDescriptor = (RubyClass) context.runtime.getClassFromPath("Google::Protobuf::Descriptor"); 68 this.descriptor = (RubyDescriptor) descriptor; 151 // as map keys. (We exclude these explicitly, and the field-descriptor setter 159 // Create a new message descriptor for the map entry message, and create a 201 descriptor.addOneof(context, oneofdef); 207 descriptor.addField(context, 211 private RubyDescriptor descriptor; field in class:RubyMessageBuilderContext
|
/external/u-boot/common/ |
usb.c | 410 puts("USB IF descriptor overflowed buffer!\n"); 447 puts("USB EP descriptor overflowed buffer!\n"); 451 puts("Endpoint descriptor out of order!\n"); 484 puts("USB EPC descriptor overflowed buffer!\n"); 488 puts("EPC descriptor out of order!\n"); 576 printf("unable to get descriptor, error %lX\n", 579 printf("config descriptor too short " \ 707 * get class descriptor 761 /* Try to read the string descriptor by asking for the maximum 765 /* If that failed try to read the descriptor length, the [all...] |
usb_hub.c | 64 return hdev->descriptor.bDeviceProtocol == 3; 623 struct usb_hub_descriptor *descriptor; local 633 /* Get the the hub descriptor */ 637 "descriptor, giving up %lX\n", dev->status); 640 descriptor = (struct usb_hub_descriptor *)buffer; 642 length = min_t(int, descriptor->bLength, 648 "descriptor 2nd giving up %lX\n", dev->status); 654 &descriptor->wHubCharacteristics)), 665 descriptor->u.hs.DeviceRemovable[i]; 669 descriptor->u.hs.PortPowerCtrlMask[i] [all...] |
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
GeneratedMessageLite.java | 495 extension.descriptor.getLiteType(), 498 } else if (extension.descriptor.isRepeated && 499 extension.descriptor.type.isPackable() && 501 extension.descriptor.getLiteType(), 515 if (extension.descriptor.getLiteType() == WireFormat.FieldType.ENUM) { 519 extension.descriptor.getEnumType().findValueByNumber(rawValue); 525 extensions.addRepeatedField(extension.descriptor, 532 extension.descriptor.getLiteType(), 534 extensions.addRepeatedField(extension.descriptor, value); 540 switch (extension.descriptor.getLiteJavaType()) 1060 final ExtensionDescriptor descriptor; field in class:GeneratedMessageLite.GeneratedExtension [all...] |
AbstractMessage.java | 170 Descriptors.Descriptor descriptor = entry.getDescriptorForType(); local 171 Descriptors.FieldDescriptor key = descriptor.findFieldByName("key"); 172 Descriptors.FieldDescriptor value = descriptor.findFieldByName("value"); 214 for (FieldDescriptor descriptor : a.keySet()) { 215 if (!b.containsKey(descriptor)) { 218 Object value1 = a.get(descriptor); 219 Object value2 = b.get(descriptor); 220 if (descriptor.getType() == FieldDescriptor.Type.BYTES) { 221 if (descriptor.isRepeated()) [all...] |
/external/protobuf/src/google/protobuf/ |
extension_set_heavy.cc | 39 #include <google/protobuf/descriptor.h> 82 const Descriptor* containing_type) 91 const Descriptor* containing_type_; 95 const Descriptor* containing_type, 113 if (iter->second.descriptor == NULL) { 117 output->push_back(iter->second.descriptor); 145 const Descriptor* message_type, 162 MessageLite* ExtensionSet::MutableMessage(const FieldDescriptor* descriptor, 165 if (MaybeNewExtension(descriptor->number(), descriptor, &extension)) [all...] |
dynamic_message.cc | 53 // each type it sees (each unique Descriptor pointer). The code 76 #include <google/protobuf/descriptor.h> 77 #include <google/protobuf/descriptor.pb.h> 232 const Descriptor* type; // Type of this DynamicMessage. 328 const Descriptor* descriptor = type_info_->type; local 331 for (int i = 0 ; i < descriptor->oneof_decl_count(); ++i) { 347 for (int i = 0; i < descriptor->field_count(); i++) { 348 const FieldDescriptor* field = descriptor->field(i); 421 const Descriptor* descriptor = type_info_->type local 539 const Descriptor* descriptor = type_info_->type; local [all...] |
/bionic/docs/ |
fdsan.md | 8 fdsan (file descriptor sanitizer) detects mishandling of file descriptor ownership, which tend to manifest as *use-after-close* and *double-close*. These errors are direct analogues of the memory allocation *use-after-free* and *double-free* bugs, but tend to be much more difficult to diagnose and fix. With `malloc` and `free`, implementations have free reign to detect errors and abort on double free. File descriptors, on the other hand, are mandated by the POSIX standard to be allocated with the lowest available number being returned for new allocations. As a result, many file descriptor bugs can *never* be noticed on the thread on which the error occurred, and will manifest as "impossible" behavior on another thread. 43 fdsan attempts to detect and/or prevent file descriptor mismanagement by enforcing file descriptor ownership. Like how most memory allocations can have their ownership handled by types such as `std::unique_ptr`, almost all file descriptors can be associated with a unique owner which is responsible for their closure. fdsan provides functions to associate a file descriptor with an owner; if someone tries to close a file descriptor that they don't own, depending on configuration, either a warning is emitted, or the process aborts. 45 The way this is implemented is by providing functions to set a 64-bit closure tag on a file descriptor. The tag consists of an 8-bit type byte that identifies the type of the owner (`enum android_fdan_owner_type` in [`<android/fdsan.h>`](https://android.googlesource.com/platform/bionic/+/master/libc/include/android/fdsan.h)), and a 56-bit value. The value should ideally be something that uniquely identifies the object (object address for native objects and `System.identityHashCode` for Java objects), but in cases where it's hard to derive an identifier for the "owner" that should close a file descriptor, even using the same value for all file descriptors in the module can be useful, since it'll catch other code that closes your file descriptors. 47 If a file descriptor that's been marked with a tag is closed with an incorrect tag, or without a tag, we know something (…) [all...] |
/external/protobuf/csharp/src/Google.Protobuf/Reflection/ |
FileDescriptor.cs | 41 /// IDescriptor is implemented such that the File property returns this descriptor, 71 /// Computes the full name of a descriptor within this file, with an optional parent message. 124 /// The descriptor in its protocol message representation. 165 /// The original serialized binary form of this descriptor. 175 /// Implementation of IDescriptor.File - just returns this descriptor. 188 /// <typeparam name="T">The type of descriptor to look for</typeparam> 189 /// <returns>The type's descriptor, or null if not found.</returns> 214 /// <param name="descriptorData">The original serialized descriptor data. 224 /// a valid descriptor. This can occur for a number of reasons, such as a field 235 // to the Descriptor for that message's type. We also detect undefine [all...] |
GeneratedClrTypeInfo.cs | 37 /// Extra information provided by generated code when initializing a message or file descriptor. 57 /// Irrelevant for file descriptors; the CLR property names (in message descriptor field order) 63 /// Irrelevant for file descriptors; the CLR property "base" names (in message descriptor oneof order) 70 /// The reflection information for types within this file/message descriptor. Elements may be null 76 /// The CLR types for enums within this file/message descriptor. 81 /// Creates a GeneratedClrTypeInfo for a message descriptor, with nested types, nested enums, the CLR type, property names and oneof names. 96 /// Creates a GeneratedClrTypeInfo for a file descriptor, with only types and enums.
|
/external/protobuf/src/google/protobuf/compiler/java/ |
java_message_builder.cc | 55 #include <google/protobuf/descriptor.pb.h> 66 bool GenerateHasBits(const Descriptor* descriptor) { 67 return SupportFieldPresence(descriptor->file()) || 68 HasRepeatedFields(descriptor); 71 string MapValueImmutableClassdName(const Descriptor* descriptor, 73 const FieldDescriptor* value_field = descriptor->FindFieldByName("value"); 80 const Descriptor* descriptor, Context* context [all...] |
/frameworks/av/media/libaudiohal/impl/ |
EffectHalHidl.cpp | 60 const EffectDescriptor& descriptor, effect_descriptor_t* halDescriptor) { 61 HidlUtils::uuidToHal(descriptor.type, &halDescriptor->type); 62 HidlUtils::uuidToHal(descriptor.uuid, &halDescriptor->uuid); 63 halDescriptor->flags = static_cast<uint32_t>(descriptor.flags); 64 halDescriptor->cpuLoad = descriptor.cpuLoad; 65 halDescriptor->memoryUsage = descriptor.memoryUsage; 66 memcpy(halDescriptor->name, descriptor.name.data(), descriptor.name.size()); 68 descriptor.implementor.data(), descriptor.implementor.size()) [all...] |
/external/protobuf/python/google/protobuf/internal/ |
python_message.py | 34 # descriptor's cpp_type is CPPTYPE_MESSAGE. 37 protocol message classes from Descriptor objects at runtime. 77 from google.protobuf import descriptor as descriptor_mod 100 mydescriptor = Descriptor(.....) 103 DESCRIPTOR = mydescriptor 115 _DESCRIPTOR_KEY = 'DESCRIPTOR' 132 a Descriptor object describing this protocol message 138 descriptor = dictionary[GeneratedProtocolMessageType._DESCRIPTOR_KEY] 139 if descriptor.full_name in well_known_types.WKTBASES: 140 bases += (well_known_types.WKTBASES[descriptor.full_name], [all...] |
descriptor_test.py | 33 """Unittest for google.protobuf.internal.descriptor.""" 50 from google.protobuf import descriptor 86 self.my_method = descriptor.MethodDescriptor( 93 self.my_service = descriptor.ServiceDescriptor( 139 file_descriptor = unittest_custom_options_pb2.DESCRIPTOR 141 unittest_custom_options_pb2.TestMessageWithCustomOptions.DESCRIPTOR 147 unittest_custom_options_pb2.TestServiceWithCustomOptions.DESCRIPTOR 177 unittest_custom_options_pb2.DummyMessageContainingEnum.DESCRIPTOR) 190 unittest_custom_options_pb2.CustomOptionMinIntegerValues.DESCRIPTOR 216 unittest_custom_options_pb2.CustomOptionMaxIntegerValues.DESCRIPTOR [all...] |
/external/golang-protobuf/protoc-gen-go/generator/ |
generator.go | 63 "github.com/golang/protobuf/protoc-gen-go/descriptor" 123 func fileIsProto3(file *descriptor.FileDescriptorProto) bool { 129 // Descriptor represents a protocol buffer message. 130 type Descriptor struct { 132 *descriptor.DescriptorProto 133 parent *Descriptor // The containing message, if any. 134 nested []*Descriptor // Inner messages, if any. 145 func (d *Descriptor) TypeName() []string { 163 // Otherwise it will be the descriptor of the message in which it is defined. 166 *descriptor.EnumDescriptorProt [all...] |
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/ |
PatchReaderTest.java | 200 for (DeltaDescriptor descriptor : DELTA_DESCRIPTORS) { 201 patchOut.write(corruption.corruptDeltaType ? 73 : descriptor.getFormat().patchValue); 205 : descriptor.getDeltaFriendlyOldFileRange().getOffset()); 209 : descriptor.getDeltaFriendlyOldFileRange().getLength()); 213 : descriptor.getDeltaFriendlyNewFileRange().getOffset()); 217 : descriptor.getDeltaFriendlyNewFileRange().getLength()); 218 patchOut.writeLong(corruption.corruptDeltaLength ? -1 : descriptor.getDeltaLength());
|
/external/grpc-grpc/src/compiler/ |
node_generator.cc | 26 using grpc::protobuf::Descriptor; 92 * as a map of fully qualified message type name to message descriptor */ 93 map<grpc::string, const Descriptor*> GetAllMessages( 95 map<grpc::string, const Descriptor*> message_types; 102 const Descriptor* input_type = method->input_type(); 103 const Descriptor* output_type = method->output_type(); 115 grpc::string NodeObjectPath(const Descriptor* descriptor) { 116 grpc::string module_alias = ModuleAlias(descriptor->file()->name()); 117 grpc::string name = descriptor->full_name() [all...] |
/external/v8/src/compiler/ |
code-generator.cc | 883 FrameStateDescriptor* descriptor = local 884 GetDeoptimizationEntry(instr, frame_state_offset).descriptor(); 887 descriptor->state_combine()); 1074 FrameStateDescriptor* const descriptor = entry.descriptor(); local [all...] |
/external/compiler-rt/lib/BlocksRuntime/ |
runtime.c | 314 struct Block_layout *result = malloc(aBlock->descriptor->size); 316 memmove(result, aBlock, aBlock->descriptor->size); // bitcopy first 322 //printf("calling block copy helper %p(%p, %p)...\n", aBlock->descriptor->copy, result, aBlock); 323 (*aBlock->descriptor->copy)(result, aBlock); // do fixup 332 struct Block_layout *result = _Block_allocator(aBlock->descriptor->size, wantsOne, hasCTOR); 334 memmove(result, aBlock, aBlock->descriptor->size); // bitcopy first 345 (*aBlock->descriptor->copy)(result, aBlock); // do fixup 473 if (aBlock->flags & BLOCK_HAS_COPY_DISPOSE)(*aBlock->descriptor->dispose)(aBlock); 514 return ((struct Block_layout *)arg)->descriptor->size; 673 struct Block_descriptor *dp = closure->descriptor; [all...] |
/external/honggfuzz/third_party/android/libBlocksRuntime/ |
runtime.c | 314 struct Block_layout *result = malloc(aBlock->descriptor->size); 316 memmove(result, aBlock, aBlock->descriptor->size); // bitcopy first 322 //printf("calling block copy helper %p(%p, %p)...\n", aBlock->descriptor->copy, result, aBlock); 323 (*aBlock->descriptor->copy)(result, aBlock); // do fixup 332 struct Block_layout *result = _Block_allocator(aBlock->descriptor->size, wantsOne, hasCTOR); 334 memmove(result, aBlock, aBlock->descriptor->size); // bitcopy first 345 (*aBlock->descriptor->copy)(result, aBlock); // do fixup 473 if (aBlock->flags & BLOCK_HAS_COPY_DISPOSE)(*aBlock->descriptor->dispose)(aBlock); 514 return ((struct Block_layout *)arg)->descriptor->size; 673 struct Block_descriptor *dp = closure->descriptor; [all...] |
/external/protobuf/php/ext/google/protobuf/ |
def.c | 17 "Attempt to modify a frozen descriptor. Once descriptors are " 18 "added to the descriptor pool, they may not be modified."); 141 Descriptor *desc = php_to_descriptor(context->descriptor TSRMLS_CC); 171 Descriptor* desc = php_to_descriptor(def_php TSRMLS_CC); 182 // Descriptor* desc = php_to_descriptor(def_php TSRMLS_CC); 192 // Descriptor 199 DEFINE_CLASS(Descriptor, descriptor, "Google\\Protobuf\\Descriptor"); [all...] |
/external/protobuf/src/google/protobuf/compiler/javanano/ |
javanano_message.cc | 45 #include <google/protobuf/descriptor.pb.h> 64 // Sort the fields of the given Descriptor by number into a new[]'d array 66 const FieldDescriptor** SortFieldsByNumber(const Descriptor* descriptor) { 68 new const FieldDescriptor*[descriptor->field_count()]; 69 for (int i = 0; i < descriptor->field_count(); i++) { 70 fields[i] = descriptor->field(i); 72 sort(fields, fields + descriptor->field_count(), 81 MessageGenerator::MessageGenerator(const Descriptor* descriptor, const Params& params [all...] |