Home
last modified time | relevance | path

Searched full:descriptor (Results 1 – 25 of 6001) sorted by relevance

12345678910>>...241

/external/autotest/client/cros/cellular/mbim_compliance/
Dusb_descriptors_unittest.py14 class TestDescriptor(Descriptor):
15 """ Descriptor for unit testing. """
24 """ Test cases for verifying Descriptor classes and DescriptorParser. """
29 Verifies that an excepion is raised when constructing a Descriptor
35 class DescriptorFieldsNotDefined(Descriptor):
36 """ Descriptor without _FIELDS attribute. """
42 Verifies that it is OK to construct a Descriptor subclass that does not
45 class DescriptorTypeNotDefined(Descriptor):
46 """ Descriptor without DESCRIPTOR_TYPE attribute. """
50 descriptor = DescriptorTypeNotDefined(descriptor_data)
[all …]
Dusb_descriptors.py66 Metaclass for creating a USB descriptor class.
68 A derived descriptor class takes raw descriptor data as an array of unsigned
70 as instance attributes. A derived class of |Descriptor| should specify the
73 DESCRIPTOR_TYPE: An unsigned 8-bit number specifying the descriptor
77 DESCRIPTOR_SUBTYPE: An unsigned 8-bit number specifying the descriptor
83 in the USB descriptor. Each inner tuple is a field definition and
86 field from the raw descriptor data. The second element specifies the
88 derived descriptor class for storing the field. Each derived descriptor
96 # The Descriptor base class, which inherits from 'object', is merely
98 # raw descriptor data.
[all …]
/external/protobuf/objectivec/Tests/
DGPBDescriptorTests.m38 #import "google/protobuf/Descriptor.pbobjc.h"
46 GPBDescriptor *testAllTypesDesc = [TestAllTypes descriptor];
47 GPBDescriptor *nestedMessageDesc = [TestAllTypes_NestedMessage descriptor];
54 GPBDescriptor *testAllTypesDesc = [TestAllTypes descriptor];
56 GPBDescriptor *nestedMessageDesc = [TestAllTypes_NestedMessage descriptor];
60 GPBDescriptor *descDesc = [GPBDescriptorProto descriptor];
62 GPBDescriptor *descExtRngDesc = [GPBDescriptorProto_ExtensionRange descriptor];
66 GPBDescriptor *pointDesc = [Point_Class descriptor];
68 GPBDescriptor *pointRectDesc = [Point_Rect descriptor];
73 GPBDescriptor *descriptor = [TestAllTypes descriptor];
[all …]
/external/webrtc/modules/rtp_rtcp/source/
Drtp_generic_frame_descriptor_extension_unittest.cc30 RtpGenericFrameDescriptor descriptor; in TEST() local
32 ASSERT_TRUE(RtpGenericFrameDescriptorExtension00::Parse(kRaw, &descriptor)); in TEST()
34 EXPECT_TRUE(descriptor.FirstPacketInSubFrame()); in TEST()
35 EXPECT_FALSE(descriptor.LastPacketInSubFrame()); in TEST()
37 EXPECT_THAT(descriptor.FrameDependenciesDiffs(), IsEmpty()); in TEST()
38 EXPECT_EQ(descriptor.TemporalLayer(), kTemporalLayer); in TEST()
39 EXPECT_EQ(descriptor.SpatialLayersBitmask(), 0x49); in TEST()
40 EXPECT_EQ(descriptor.FrameId(), 0x3412); in TEST()
47 RtpGenericFrameDescriptor descriptor; in TEST() local
49 descriptor.SetFirstPacketInSubFrame(true); in TEST()
[all …]
/external/e2fsprogs/tests/j_long_trans_mcsum_32bit/
Dexpect23 Found expected sequence 1, type 1 (descriptor block) at block 1
24 Found expected sequence 1, type 1 (descriptor block) at block 64
25 Found expected sequence 1, type 1 (descriptor block) at block 127
26 Found expected sequence 1, type 1 (descriptor block) at block 190
27 Found expected sequence 1, type 1 (descriptor block) at block 253
28 Found expected sequence 1, type 1 (descriptor block) at block 316
29 Found expected sequence 1, type 1 (descriptor block) at block 379
30 Found expected sequence 1, type 1 (descriptor block) at block 442
31 Found expected sequence 1, type 1 (descriptor block) at block 505
32 Found expected sequence 1, type 1 (descriptor block) at block 568
[all …]
/external/e2fsprogs/tests/j_long_revoke_trans_mcsum_32bit/
Dexpect23 Found expected sequence 1, type 1 (descriptor block) at block 1
24 Found expected sequence 1, type 1 (descriptor block) at block 64
25 Found expected sequence 1, type 1 (descriptor block) at block 127
26 Found expected sequence 1, type 1 (descriptor block) at block 190
27 Found expected sequence 1, type 1 (descriptor block) at block 253
28 Found expected sequence 1, type 1 (descriptor block) at block 316
29 Found expected sequence 1, type 1 (descriptor block) at block 379
30 Found expected sequence 1, type 1 (descriptor block) at block 442
31 Found expected sequence 1, type 1 (descriptor block) at block 505
32 Found expected sequence 1, type 1 (descriptor block) at block 568
[all …]
/external/e2fsprogs/tests/j_long_trans_mcsum_64bit/
Dexpect22 Found expected sequence 1, type 1 (descriptor block) at block 1
23 Found expected sequence 1, type 1 (descriptor block) at block 64
24 Found expected sequence 1, type 1 (descriptor block) at block 127
25 Found expected sequence 1, type 1 (descriptor block) at block 190
26 Found expected sequence 1, type 1 (descriptor block) at block 253
27 Found expected sequence 1, type 1 (descriptor block) at block 316
28 Found expected sequence 1, type 1 (descriptor block) at block 379
29 Found expected sequence 1, type 1 (descriptor block) at block 442
30 Found expected sequence 1, type 1 (descriptor block) at block 505
31 Found expected sequence 1, type 1 (descriptor block) at block 568
[all …]
/external/python/apitools/apitools/base/protorpclite/
Ddescriptor_test.py18 """Tests for apitools.base.protorpclite.descriptor."""
25 from apitools.base.protorpclite import descriptor
37 MODULE = descriptor
46 expected = descriptor.EnumValueDescriptor()
50 described = descriptor.describe_enum_value(MyEnum.MY_NAME)
61 expected = descriptor.EnumDescriptor()
64 described = descriptor.describe_enum(EmptyEnum)
74 expected = descriptor.EnumDescriptor()
77 described = descriptor.describe_enum(MyScope.NestedEnum)
89 expected = descriptor.EnumDescriptor()
[all …]
/external/e2fsprogs/tests/j_long_revoke_trans_mcsum_64bit/
Dexpect22 Found expected sequence 1, type 1 (descriptor block) at block 1
23 Found expected sequence 1, type 1 (descriptor block) at block 64
24 Found expected sequence 1, type 1 (descriptor block) at block 127
25 Found expected sequence 1, type 1 (descriptor block) at block 190
26 Found expected sequence 1, type 1 (descriptor block) at block 253
27 Found expected sequence 1, type 1 (descriptor block) at block 316
28 Found expected sequence 1, type 1 (descriptor block) at block 379
29 Found expected sequence 1, type 1 (descriptor block) at block 442
30 Found expected sequence 1, type 1 (descriptor block) at block 505
31 Found expected sequence 1, type 1 (descriptor block) at block 568
[all …]
/external/grpc-grpc/src/cpp/ext/filters/census/
Dviews.cc59 auto descriptor = ViewDescriptor(); in MinuteDescriptor() local
61 &descriptor); in MinuteDescriptor()
62 return descriptor; in MinuteDescriptor()
66 auto descriptor = ViewDescriptor(); in HourDescriptor() local
68 &descriptor); in HourDescriptor()
69 return descriptor; in HourDescriptor()
91 const static ViewDescriptor descriptor = in ClientSentBytesPerRpcCumulative() local
97 return descriptor; in ClientSentBytesPerRpcCumulative()
101 const static ViewDescriptor descriptor = in ClientReceivedBytesPerRpcCumulative() local
107 return descriptor; in ClientReceivedBytesPerRpcCumulative()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/cpp/ext/filters/census/
Dviews.cc59 auto descriptor = ViewDescriptor(); in MinuteDescriptor() local
61 &descriptor); in MinuteDescriptor()
62 return descriptor; in MinuteDescriptor()
66 auto descriptor = ViewDescriptor(); in HourDescriptor() local
68 &descriptor); in HourDescriptor()
69 return descriptor; in HourDescriptor()
91 const static ViewDescriptor descriptor = in ClientSentBytesPerRpcCumulative() local
97 return descriptor; in ClientSentBytesPerRpcCumulative()
101 const static ViewDescriptor descriptor = in ClientReceivedBytesPerRpcCumulative() local
107 return descriptor; in ClientReceivedBytesPerRpcCumulative()
[all …]
/external/llvm-project/flang/runtime/
Ddescriptor-io.h1 //===-- runtime/descriptor-io.h ---------------------------------*- C++ -*-===//
14 #include "descriptor.h"
23 inline A &ExtractElement(IoStatementState &io, const Descriptor &descriptor, in ExtractElement() argument
25 A *p{descriptor.Element<A>(subscripts)}; in ExtractElement()
32 // Per-category descriptor-based I/O templates
36 IoStatementState &io, const Descriptor &descriptor) { in FormattedIntegerIO() argument
37 std::size_t numElements{descriptor.Elements()}; in FormattedIntegerIO()
39 descriptor.GetLowerBounds(subscripts); in FormattedIntegerIO()
42 A &x{ExtractElement<A>(io, descriptor, subscripts)}; in FormattedIntegerIO()
47 } else if (edit->descriptor != DataEdit::ListDirectedNullValue) { in FormattedIntegerIO()
[all …]
Dallocatable.cpp16 void RTNAME(AllocatableInitIntrinsic)(Descriptor &descriptor, in RTNAME()
19 descriptor.Establish(TypeCode{category, kind}, in RTNAME()
20 Descriptor::BytesFor(category, kind), nullptr, rank, nullptr, in RTNAME()
24 void RTNAME(AllocatableInitCharacter)(Descriptor &descriptor, in RTNAME()
27 descriptor.Establish( in RTNAME()
31 void RTNAME(AllocatableInitDerived)(Descriptor &descriptor, in RTNAME()
34 descriptor.Establish( in RTNAME()
38 void RTNAME(AllocatableAssign)(Descriptor &to, const Descriptor & /*from*/) { in RTNAME()
42 int RTNAME(MoveAlloc)(Descriptor &to, const Descriptor & /*from*/, in RTNAME()
43 bool /*hasStat*/, Descriptor * /*errMsg*/, const char * /*sourceFile*/, in RTNAME()
[all …]
Dderived.cpp10 #include "descriptor.h"
18 const Descriptor &specialDesc{derived.special.descriptor()}; in FindFinal()
41 const Descriptor &descriptor, const typeInfo::DerivedType &derived) { in CallFinalSubroutine() argument
42 if (const auto *special{FindFinal(derived, descriptor.rank())}) { in CallFinalSubroutine()
44 std::size_t byteStride{descriptor.ElementBytes()}; in CallFinalSubroutine()
47 std::size_t elements{descriptor.Elements()}; in CallFinalSubroutine()
49 p(descriptor.OffsetElement<char>(j * byteStride)); in CallFinalSubroutine()
52 auto p{reinterpret_cast<void (*)(const Descriptor &)>(special->proc)}; in CallFinalSubroutine()
53 p(descriptor); in CallFinalSubroutine()
57 p(descriptor.OffsetElement<char>()); in CallFinalSubroutine()
[all …]
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.h42 class Descriptor; variable
57 PyObject* NewMessageFieldsByName(const Descriptor* descriptor);
58 PyObject* NewMessageFieldsByCamelcaseName(const Descriptor* descriptor);
59 PyObject* NewMessageFieldsByNumber(const Descriptor* descriptor);
60 PyObject* NewMessageFieldsSeq(const Descriptor* descriptor);
62 PyObject* NewMessageNestedTypesSeq(const Descriptor* descriptor);
63 PyObject* NewMessageNestedTypesByName(const Descriptor* descriptor);
65 PyObject* NewMessageEnumsByName(const Descriptor* descriptor);
66 PyObject* NewMessageEnumsSeq(const Descriptor* descriptor);
67 PyObject* NewMessageEnumValuesByName(const Descriptor* descriptor);
[all …]
/external/protobuf/src/google/protobuf/compiler/java/
Djava_helpers.h40 #include <google/protobuf/descriptor.pb.h>
42 #include <google/protobuf/descriptor.h>
68 const FieldDescriptor* descriptor,
96 std::string UniqueFileScopeIdentifier(const Descriptor* descriptor);
118 std::string ClassName(const Descriptor* descriptor);
119 std::string ClassName(const EnumDescriptor* descriptor);
120 std::string ClassName(const ServiceDescriptor* descriptor);
121 std::string ClassName(const FileDescriptor* descriptor);
125 std::string ExtraMessageInterfaces(const Descriptor* descriptor);
129 std::string ExtraMutableMessageInterfaces(const Descriptor* descriptor);
[all …]
/external/protobuf/objectivec/google/protobuf/
DWrappers.pbobjc.m40 static GPBFileDescriptor *descriptor = NULL;
41 if (!descriptor) {
43 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
47 return descriptor;
63 + (GPBDescriptor *)descriptor { class
64 static GPBDescriptor *descriptor = nil;
65 if (!descriptor) {
86 NSAssert(descriptor == nil, @"Startup recursed!");
88 descriptor = localDescriptor;
90 return descriptor;
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DExtensionSchemaFull.java96 int fieldNumber = extension.descriptor.getNumber(); in parseExtension()
98 if (extension.descriptor.isRepeated() && extension.descriptor.isPacked()) { in parseExtension()
100 switch (extension.descriptor.getLiteType()) { in parseExtension()
199 extension.descriptor.getEnumType().findValueByNumber(number); in parseExtension()
213 "Type cannot be packed: " + extension.descriptor.getLiteType()); in parseExtension()
215 extensions.setField(extension.descriptor, value); in parseExtension()
219 if (extension.descriptor.getLiteType() == WireFormat.FieldType.ENUM) { in parseExtension()
221 Object enumValue = extension.descriptor.getEnumType().findValueByNumber(number); in parseExtension()
228 switch (extension.descriptor.getLiteType()) { in parseExtension()
287 if (extension.descriptor.isRepeated()) { in parseExtension()
[all …]
DExtensionSchemaLite.java81 if (extension.descriptor.isRepeated() && extension.descriptor.isPacked()) { in parseExtension()
183 extension.descriptor.getEnumType(), in parseExtension()
191 "Type cannot be packed: " + extension.descriptor.getLiteType()); in parseExtension()
193 extensions.setField(extension.descriptor, value); in parseExtension()
199 Object enumValue = extension.descriptor.getEnumType().findValueByNumber(number); in parseExtension()
272 extensions.addRepeatedField(extension.descriptor, value); in parseExtension()
277 Object oldValue = extensions.getField(extension.descriptor); in parseExtension()
285 extensions.setField(extension.descriptor, value); in parseExtension()
293 GeneratedMessageLite.ExtensionDescriptor descriptor = in extensionNumber() local
295 return descriptor.getNumber(); in extensionNumber()
[all …]
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.h48 class Descriptor; variable
82 void PrintNestedEnums(const Descriptor& descriptor) const;
90 const Descriptor& message_descriptor, bool is_extension,
91 const std::string& list_variable_name, int (Descriptor::*CountFn)() const,
92 const FieldDescriptor* (Descriptor::*GetterFn)(int)const) const;
93 void PrintFieldsInDescriptor(const Descriptor& message_descriptor) const;
94 void PrintExtensionsInDescriptor(const Descriptor& message_descriptor) const;
96 void PrintDescriptor(const Descriptor& message_descriptor) const;
97 void PrintNestedDescriptors(const Descriptor& containing_descriptor) const;
100 void PrintMessage(const Descriptor& message_descriptor,
[all …]
/external/e2fsprogs/tests/j_ext_long_trans/
Dexpect29 Found expected sequence 1, type 1 (descriptor block) at block 3
30 Found expected sequence 1, type 1 (descriptor block) at block 128
31 Found expected sequence 1, type 1 (descriptor block) at block 253
32 Found expected sequence 1, type 1 (descriptor block) at block 378
33 Found expected sequence 1, type 1 (descriptor block) at block 503
34 Found expected sequence 1, type 1 (descriptor block) at block 628
35 Found expected sequence 1, type 1 (descriptor block) at block 753
36 Found expected sequence 1, type 1 (descriptor block) at block 878
37 Found expected sequence 1, type 1 (descriptor block) at block 1003
38 Found expected sequence 1, type 1 (descriptor block) at block 1128
[all …]
/external/e2fsprogs/tests/j_long_trans/
Dexpect20 Found expected sequence 1, type 1 (descriptor block) at block 1
21 Found expected sequence 1, type 1 (descriptor block) at block 126
22 Found expected sequence 1, type 1 (descriptor block) at block 251
23 Found expected sequence 1, type 1 (descriptor block) at block 376
24 Found expected sequence 1, type 1 (descriptor block) at block 501
25 Found expected sequence 1, type 1 (descriptor block) at block 626
26 Found expected sequence 1, type 1 (descriptor block) at block 751
27 Found expected sequence 1, type 1 (descriptor block) at block 876
28 Found expected sequence 1, type 1 (descriptor block) at block 1001
29 Found expected sequence 1, type 1 (descriptor block) at block 1126
[all …]
/external/e2fsprogs/tests/j_long_revoke_trans/
Dexpect20 Found expected sequence 1, type 1 (descriptor block) at block 1
21 Found expected sequence 1, type 1 (descriptor block) at block 126
22 Found expected sequence 1, type 1 (descriptor block) at block 251
23 Found expected sequence 1, type 1 (descriptor block) at block 376
24 Found expected sequence 1, type 1 (descriptor block) at block 501
25 Found expected sequence 1, type 1 (descriptor block) at block 626
26 Found expected sequence 1, type 1 (descriptor block) at block 751
27 Found expected sequence 1, type 1 (descriptor block) at block 876
28 Found expected sequence 1, type 1 (descriptor block) at block 1001
29 Found expected sequence 1, type 1 (descriptor block) at block 1126
[all …]
/external/crosvm/sys_util/src/
Ddescriptor.rs21 /// Trait for forfeiting ownership of the current raw descriptor, and returning the raw descriptor
26 /// Trait for returning the underlying raw descriptor, without giving up ownership of the
27 /// descriptor.
34 /// Safe only if the caller ensures nothing has access to the descriptor after passing it to
36 unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self; in from_raw_descriptor()
39 /// Clones `fd`, returning a new file descriptor that refers to the same open file description as
41 /// descriptor flags with `fd`.
57 descriptor: RawDescriptor, field
65 if self.descriptor == other.descriptor { in eq()
78 self.descriptor, in eq()
[all …]
/external/e2fsprogs/tests/j_ext_long_revoke_trans/
Dexpect29 Found expected sequence 1, type 1 (descriptor block) at block 3
30 Found expected sequence 1, type 1 (descriptor block) at block 128
31 Found expected sequence 1, type 1 (descriptor block) at block 253
32 Found expected sequence 1, type 1 (descriptor block) at block 378
33 Found expected sequence 1, type 1 (descriptor block) at block 503
34 Found expected sequence 1, type 1 (descriptor block) at block 628
35 Found expected sequence 1, type 1 (descriptor block) at block 753
36 Found expected sequence 1, type 1 (descriptor block) at block 878
37 Found expected sequence 1, type 1 (descriptor block) at block 1003
38 Found expected sequence 1, type 1 (descriptor block) at block 1128
[all …]

12345678910>>...241