Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 25 of 81) sorted by relevance

1234

/tools/dexter/slicer/
Ddex_format.cc65 std::string DescriptorToDecl(const char* descriptor) { in DescriptorToDecl() argument
69 while (*descriptor == '[') { in DescriptorToDecl()
71 ++descriptor; in DescriptorToDecl()
74 if (*descriptor == 'L') { in DescriptorToDecl()
75 for (++descriptor; *descriptor != ';'; ++descriptor) { in DescriptorToDecl()
76 SLICER_CHECK_NE(*descriptor, '\0'); in DescriptorToDecl()
77 ss << (*descriptor == '/' ? '.' : *descriptor); in DescriptorToDecl()
80 ss << PrimitiveTypeName(*descriptor); in DescriptorToDecl()
83 SLICER_CHECK_EQ(descriptor[1], '\0'); in DescriptorToDecl()
95 char DescriptorToShorty(const char* descriptor) { in DescriptorToShorty() argument
[all …]
Ddex_ir_builder.cc25 return ::strcmp(class_descriptor, method_decl->parent->descriptor->c_str()) == 0 in Match()
94 Type* Builder::GetType(String* descriptor) { in GetType() argument
97 if (ir_type->descriptor == descriptor) { in GetType()
104 ir_type->descriptor = descriptor; in GetType()
137 ss << dex::DescriptorToShorty(return_type->descriptor->c_str()); in CreateShorty()
140 ss << dex::DescriptorToShorty(param_type->descriptor->c_str()); in CreateShorty()
Ddex_ir.cc58 method_key.class_descriptor = method->decl->parent->descriptor; in GetKey()
71 return method_key.class_descriptor == method->decl->parent->descriptor && in Compare()
78 return dex::DescriptorToDecl(descriptor->c_str()); in Decl()
82 switch (*descriptor->c_str()) { in GetCategory()
103 ss << type->descriptor->c_str(); in Signature()
107 ss << return_type->descriptor->c_str(); in Signature()
214 return a->descriptor->index < b->descriptor->index; in Normalize()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/targetprep/
DBuildError.java38 public BuildError(String reason, DeviceDescriptor descriptor) { in BuildError() argument
39 super(reason + " " + descriptor, null); in BuildError()
40 if (descriptor != null) { in BuildError()
41 mDeviceSerial = descriptor.getSerial(); in BuildError()
53 public BuildError(String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId) { in BuildError() argument
54 super(reason + " " + descriptor, errorId); in BuildError()
55 if (descriptor != null) { in BuildError()
56 mDeviceSerial = descriptor.getSerial(); in BuildError()
70 String reason, DeviceDescriptor descriptor, Throwable cause, ErrorIdentifier errorId) { in BuildError() argument
71 super(reason + " " + descriptor, cause, errorId); in BuildError()
[all …]
DTargetSetupError.java60 public TargetSetupError(String reason, DeviceDescriptor descriptor) { in TargetSetupError() argument
61 this(reason, null, descriptor, true, null); in TargetSetupError()
72 public TargetSetupError(String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId) { in TargetSetupError() argument
73 this(reason, null, descriptor, true, errorId); in TargetSetupError()
110 public TargetSetupError(String reason, Throwable cause, DeviceDescriptor descriptor) { in TargetSetupError() argument
111 this(reason, cause, descriptor, true, null); in TargetSetupError()
124 String reason, Throwable cause, DeviceDescriptor descriptor, ErrorIdentifier errorId) { in TargetSetupError() argument
125 this(reason, cause, descriptor, true, errorId); in TargetSetupError()
138 String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide) { in TargetSetupError() argument
139 this(reason, cause, descriptor, deviceSide, null); in TargetSetupError()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceFailedToBootError.java37 public DeviceFailedToBootError(String reason, DeviceDescriptor descriptor) { in DeviceFailedToBootError() argument
38 super(reason, descriptor); in DeviceFailedToBootError()
49 String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId) { in DeviceFailedToBootError() argument
50 super(reason, descriptor, errorId); in DeviceFailedToBootError()
62 String reason, DeviceDescriptor descriptor, Throwable cause, ErrorIdentifier errorId) { in DeviceFailedToBootError() argument
63 super(reason, descriptor, cause, errorId); in DeviceFailedToBootError()
/tools/tradefederation/core/javatests/com/android/tradefed/config/
DConfigurationDescriptorTest.java75 ConfigurationDescriptor descriptor = config.getConfigurationDescription(); in testSerialization() local
76 descriptor.setModuleName("test"); in testSerialization()
77 assertEquals("test", descriptor.getModuleName()); in testSerialization()
78 File serialized = SerializationUtil.serialize(descriptor); in testSerialization()
91 ConfigurationDescriptor descriptor = new ConfigurationDescriptor(); in testProtoSerialization() local
92 descriptor.setSandboxed(true); in testProtoSerialization()
93 Descriptor protoDescriptor = descriptor.toProto(); in testProtoSerialization()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDevice.java73 DeviceDescriptor descriptor = super.getDeviceDescriptor(shortDescriptor); in getDeviceDescriptor() local
74 if (descriptor != null && getConnection() instanceof DefaultConnection) { in getDeviceDescriptor()
76 if (!initialSerial.equals(descriptor.getSerial())) { in getDeviceDescriptor()
78 descriptor = in getDeviceDescriptor()
80 descriptor, in getDeviceDescriptor()
82 initialSerial + "[" + descriptor.getSerial() + "]"); in getDeviceDescriptor()
85 return descriptor; in getDeviceDescriptor()
/tools/tradefederation/core/src/com/android/tradefed/monitoring/collector/
DDeviceInternetAccessibilityResourceMetricCollector.java66 DeviceDescriptor descriptor, IDeviceManager deviceManager) { in getDeviceResourceMetrics() argument
71 final float avgPing = getAveragePing(descriptor, deviceManager, PING_CMD); in getDeviceResourceMetrics()
75 final float avgPing6 = getAveragePing(descriptor, deviceManager, PING6_CMD); in getDeviceResourceMetrics()
85 DeviceDescriptor descriptor, IDeviceManager deviceManager, String command) { in getAveragePing() argument
88 deviceManager, descriptor.getSerial(), command, mCmdTimeoutMs); in getAveragePing()
DDeviceWifiResourceMetricCollector.java81 DeviceDescriptor descriptor, IDeviceManager deviceManager) { in getDeviceResourceMetrics() argument
84 descriptor, deviceManager, WIFI_SIGNAL_CMD, WIFI_SIGNAL_PATTERN); in getDeviceResourceMetrics()
87 descriptor, deviceManager, WIFI_STATUS_CMD, WIFI_STATUS_PATTERN); in getDeviceResourceMetrics()
119 DeviceDescriptor descriptor, in getWifiCmdResponseMatcher() argument
125 deviceManager, descriptor.getSerial(), cmd, CMD_TIMEOUT_MS); in getWifiCmdResponseMatcher()
/tools/tradefederation/core/src/com/android/tradefed/service/management/
DDeviceManagementGrpcServer.java104 for (DeviceDescriptor descriptor : mDeviceManager.listAllDevices(true)) { in getDevicesStatus()
105 responseBuilder.addDeviceStatus(descriptorToStatus(descriptor)); in getDevicesStatus()
109 DeviceDescriptor descriptor = mDeviceManager.getDeviceDescriptor(serial); in getDevicesStatus() local
110 responseBuilder.addDeviceStatus(descriptorToStatus(descriptor)); in getDevicesStatus()
172 DeviceDescriptor descriptor = mDeviceManager.getDeviceDescriptor(serial); in reserveDevice() local
173 if (descriptor == null) { in reserveDevice()
181 if (DeviceAllocationState.Allocated.equals(descriptor.getState())) { in reserveDevice()
187 } else if (DeviceAllocationState.Unavailable.equals(descriptor.getState())) { in reserveDevice()
261 private DeviceStatus descriptorToStatus(DeviceDescriptor descriptor) { in descriptorToStatus() argument
263 deviceStatusBuilder.setDeviceId(descriptor.getSerial()); in descriptorToStatus()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/monitoring/
DLabResourceDeviceMonitor.java251 .filter(descriptor -> !descriptor.isTemporary()) in scheduleMetricizeTask()
253 for (DeviceDescriptor descriptor : descriptors) { in scheduleMetricizeTask()
257 if (ClusterHostUtil.isLocalhostIpPort(descriptor.getSerial())) { in scheduleMetricizeTask()
260 builder.addDevice(buildMonitoredDevice(descriptor, mMetricCollectors)); in scheduleMetricizeTask()
349 DeviceDescriptor descriptor, Collection<IResourceMetricCollector> collectors) { in buildMonitoredDevice() argument
352 .putIdentifier(DEVICE_SERIAL_KEY, descriptor.getSerial()) in buildMonitoredDevice()
362 descriptor, in buildMonitoredDevice()
372 .setTag(descriptor.getState().name()) in buildMonitoredDevice()
375 if (!descriptor.getDeviceClass().equals(TestDevice.class.getSimpleName())) { in buildMonitoredDevice()
385 descriptor, in buildMonitoredDevice()
/tools/tradefederation/core/src/com/android/tradefed/device/
DRemoteAndroidDevice.java102 DeviceDescriptor descriptor = super.getDeviceDescriptor(shortDescriptor); in getDeviceDescriptor() local
110 descriptor = new DeviceDescriptor(descriptor, initialIp, initialOffset); in getDeviceDescriptor()
113 return descriptor; in getDeviceDescriptor()
/tools/netsim/rust/proto/src/
Dcommon.rs72 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Laz… in enum_descriptor() constant
73descriptor.get(|| file_descriptor().enum_by_package_relative_name("ChipKind").unwrap()).clone() in enum_descriptor()
76 fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { in descriptor() method
102 fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { in file_descriptor_proto()
103 …static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProt… in file_descriptor_proto()
Dfrontend.rs134 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
135 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() variable
136descriptor.get(|| file_descriptor().message_by_package_relative_name("VersionResponse").unwrap()).… in descriptor()
257 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
258 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() constant
259descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateDeviceRequest").unwrap… in descriptor()
380 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
381 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() constant
382descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateDeviceResponse").unwra… in descriptor()
502 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
[all …]
Dhci_packet.rs152 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
153 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() constant
154descriptor.get(|| file_descriptor().message_by_package_relative_name("HCIPacket").unwrap()).clone() in descriptor()
218 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Laz… in enum_descriptor() constant
219descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("HCIPacket.PacketType").u… in enum_descriptor()
222 fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { in descriptor() method
253 fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { in file_descriptor_proto()
254 …static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProt… in file_descriptor_proto()
Dmodel.rs170 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
171 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() variable
172descriptor.get(|| file_descriptor().message_by_package_relative_name("Position").unwrap()).clone() in descriptor()
328 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
329 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() constant
330descriptor.get(|| file_descriptor().message_by_package_relative_name("Orientation").unwrap()).clon… in descriptor()
802 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
803 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() constant
804descriptor.get(|| file_descriptor().message_by_package_relative_name("Chip").unwrap()).clone() in descriptor()
839 fn descriptor() -> ::protobuf::reflect::OneofDescriptor { in descriptor() method
[all …]
Dpacket_streamer.rs326 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
327 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() constant
328descriptor.get(|| file_descriptor().message_by_package_relative_name("PacketRequest").unwrap()).cl… in descriptor()
361 fn descriptor() -> ::protobuf::reflect::OneofDescriptor { in descriptor() method
362 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::La… in descriptor() variable
363descriptor.get(|| <super::PacketRequest as ::protobuf::MessageFull>::descriptor().oneof_by_name("r… in descriptor()
670 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
671 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() constant
672descriptor.get(|| file_descriptor().message_by_package_relative_name("PacketResponse").unwrap()).c… in descriptor()
705 fn descriptor() -> ::protobuf::reflect::OneofDescriptor { in descriptor() method
[all …]
Dstartup.rs135 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
136 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() constant
137descriptor.get(|| file_descriptor().message_by_package_relative_name("StartupInfo").unwrap()).clon… in descriptor()
278 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
279 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() constant
280descriptor.get(|| super::file_descriptor().message_by_package_relative_name("StartupInfo.Device").… in descriptor()
420 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
421 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() constant
422descriptor.get(|| file_descriptor().message_by_package_relative_name("ChipInfo").unwrap()).clone() in descriptor()
687 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
[all …]
Dconfiguration.rs338 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
339 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() variable
340descriptor.get(|| file_descriptor().message_by_package_relative_name("ControllerFeatures").unwrap(… in descriptor()
553 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
554 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() variable
555descriptor.get(|| file_descriptor().message_by_package_relative_name("ControllerQuirks").unwrap())… in descriptor()
731 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
732 …static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::… in descriptor() variable
733descriptor.get(|| file_descriptor().message_by_package_relative_name("VendorFeatures").unwrap()).c… in descriptor()
969 fn descriptor() -> ::protobuf::reflect::MessageDescriptor { in descriptor() method
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/
DSandboxedInvocationExecutionTest.java153 ConfigurationDescriptor descriptor = new ConfigurationDescriptor(); in testSandboxInvocation() local
154 descriptor.setSandboxed(true); in testSandboxInvocation()
156 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testSandboxInvocation()
212 ConfigurationDescriptor descriptor = new ConfigurationDescriptor(); in testParentSandboxInvocation_sharding() local
218 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testParentSandboxInvocation_sharding()
241 ConfigurationDescriptor descriptor = new ConfigurationDescriptor(); in testParentSandboxInvocation() local
245 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testParentSandboxInvocation()
296 ConfigurationDescriptor descriptor = new ConfigurationDescriptor(); in testInvocation_sharding_notTests() local
300 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testInvocation_sharding_notTests()
353 ConfigurationDescriptor descriptor = new ConfigurationDescriptor(); in testInvocation_preInvocationFailing() local
[all …]
DInvocationContextTest.java155 ConfigurationDescriptor descriptor = new ConfigurationDescriptor(); in testProtoSerialize() local
156 descriptor.setModuleName("module"); in testProtoSerialize()
157 context.setConfigurationDescriptor(descriptor); in testProtoSerialize()
176 ConfigurationDescriptor descriptor = new ConfigurationDescriptor(); in testProtoSerialize_moduleContext() local
177 descriptor.setModuleName("module"); in testProtoSerialize_moduleContext()
178 context.setConfigurationDescriptor(descriptor); in testProtoSerialize_moduleContext()
/tools/dexter/slicer/export/slicer/
Ddex_ir_builder.h58 Type* GetType(String* descriptor);
65 Type* GetType(const char* descriptor) { in GetType() argument
66 return GetType(GetAsciiString(descriptor)); in GetType()
/tools/tradefederation/core/aoa_helper/src/com/android/helper/aoa/
DAoaHID.java115 AoaHID(Integer[] descriptor) { in AoaHID() argument
116 mDescriptor = ImmutableList.copyOf(descriptor); in AoaHID()
/tools/carrier_settings/python/
Dcompare.py20 from google.protobuf import descriptor
36 if desc.label is descriptor.FieldDescriptor.LABEL_REPEATED:

1234