/system/tools/xsdc/tests/resources/predefined_types/ |
D | predefined_types.xsd | 4 <xs:element name="string" type="xs:string" /> 5 <xs:element name="token" type="xs:token"/> 6 <xs:element name="normalizedString" type="xs:normalizedString"/> 7 <xs:element name="language" type="xs:language"/> 8 <xs:element name="entity" type="xs:ENTITY"/> 9 <xs:element name="entities" type="xs:ENTITIES"/> 10 <xs:element name="id" type="xs:ID"/> 11 <xs:element name="name" type="xs:Name"/> 12 <xs:element name="ncname" type="xs:NCName"/> 13 <xs:element name="nmtoken" type="xs:NMTOKEN"/> [all …]
|
/system/tools/xsdc/tests/resources/simple_complex_content/ |
D | simple_complex_content.xsd | 5 <xs:element name="name" type="xs:string"> 7 </xs:element> 8 <xs:element name="street" type="xs:string"/> 9 <xs:element name="city" type="xs:string"/> 17 <xs:element name="state" type="xs:string"/> 18 <xs:element name="zipcode" type="xs:positiveInteger"/> 27 <xs:element name="name1" type="xs:string"/> 28 <xs:element name="street2" type="xs:string"/> 29 <xs:element name="city3" type="xs:string" fixed="Seoul"/> 36 <xs:element name="choice1" type="xs:string"> [all …]
|
/system/tools/xsdc/tests/resources/nested_type/ |
D | nested_type.xsd | 2 <xs:element name="employee"> 5 <xs:element type="xs:byte" name="id"/> 6 <xs:element type="xs:string" name="name"/> 7 <xs:element name="address"> 10 <xs:element type="xs:string" name="country"/> 11 <xs:element type="xs:string" name="state"/> 12 <xs:element type="xs:short" name="zip"/> 13 <xs:element name="extra"> 16 <xs:element type="xs:string" name="line1"/> 17 <xs:element type="xs:string" name="line2"/> [all …]
|
/system/logging/logd/ |
D | LogStatistics.h | 141 iterator Add(const TKey& key, const LogStatisticsElement& element) { in Add() argument 144 it = map.insert(std::make_pair(key, TEntry(element))).first; in Add() 146 it->second.Add(element); in Add() 161 void Subtract(const TKey& key, const LogStatisticsElement& element) { in Subtract() argument 163 if (it != map.end() && it->second.Subtract(element)) { in Subtract() 168 void Drop(const TKey& key, const LogStatisticsElement& element) { in Drop() argument 171 it->second.Drop(element); in Drop() 175 void Erase(const TKey& key, const LogStatisticsElement& element) { in Erase() argument 178 it->second.Erase(element); in Erase() 191 explicit EntryBase(const LogStatisticsElement& element) : size_(element.total_len) {} in EntryBase() argument [all …]
|
D | LogStatistics.cpp | 42 static std::string TagNameKey(const LogStatisticsElement& element) { in TagNameKey() argument 43 if (IsBinary(element.log_id)) { in TagNameKey() 44 uint32_t tag = element.tag; in TagNameKey() 53 const char* msg = element.msg; in TagNameKey() 55 uint16_t len = element.msg_len; in TagNameKey() 124 void LogStatistics::Add(LogStatisticsElement element) { in Add() argument 132 element.total_len = element.msg_len; in Add() 135 log_id_t log_id = element.log_id; in Add() 136 uint16_t size = element.total_len; in Add() 144 log_time stamp(element.realtime); in Add() [all …]
|
D | SimpleLogBuffer.cpp | 144 LogBufferElement& element = *it; in FlushTo() local 146 state.set_start(element.sequence()); in FlushTo() 148 if (!writer->privileged() && element.uid() != writer->uid()) { in FlushTo() 152 if (((1 << element.log_id()) & state.log_mask()) == 0) { in FlushTo() 158 filter(element.log_id(), element.pid(), element.sequence(), element.realtime()); in FlushTo() 170 if (!element.FlushTo(writer)) { in FlushTo() 258 LogBufferElement& element = *it; in Prune() local 260 if (element.log_id() != id) { in Prune() 265 if (caller_uid != 0 && element.uid() != caller_uid) { in Prune() 270 if (oldest && oldest->start() <= element.sequence()) { in Prune() [all …]
|
D | PruneList.cpp | 26 bool Prune::Matches(LogBufferElement* element) const { in Matches() 27 return (uid_ == UID_ALL || uid_ == element->uid()) && in Matches() 28 (pid_ == PID_ALL || pid_ == element->pid()); in Matches() 185 bool PruneList::IsHighPriority(LogBufferElement* element) const { in IsHighPriority() 187 if (rule.Matches(element)) { in IsHighPriority() 194 bool PruneList::IsLowPriority(LogBufferElement* element) const { in IsLowPriority() 196 if (rule.Matches(element)) { in IsLowPriority()
|
D | PruneList.h | 33 bool Matches(LogBufferElement* element) const; 51 bool IsHighPriority(LogBufferElement* element) const; 52 bool IsLowPriority(LogBufferElement* element) const;
|
/system/tools/xsdc/tests/resources/simple_type/ |
D | simple_type.xsd | 28 <xs:element name="simple-types"> 31 <xs:element name="listInt" type="restrictedInts"/> 32 <xs:element name="union-test" type="unionOfListAndInteger"/> 33 <xs:element name="yesOrNo" type="enumType" maxOccurs="2"/> 34 <xs:element name="example1" type="xs:boolean"/> 35 <xs:element name="example2" type="xs:boolean"/> 36 <xs:element name="optional-int-list" maxOccurs="1" type="ints"/> 41 </xs:element> 42 <xs:element name="multi-choice"> 45 <xs:element name="example1" type="xs:string"/> [all …]
|
/system/tools/xsdc/ |
D | README.md | 10 Add the schema (attribute, element or new complexType …) you want to add to the 15 <xs:element name="class"> 18 <xs:element name="student" type="xs:string"/> 22 </xs:element> 27 <xs:element name="class"> 30 <xs:element name="student" type="xs:string"/> 35 </xs:element> 52 <xs:element name="class"> 55 <xs:element name="student" type="xs:string"/> 59 </xs:element> [all …]
|
/system/tools/xsdc/src/main/java/com/android/xsdc/cpp/ |
D | CppCodeGenerator.java | 87 for (XsdElement element : xmlSchema.getElementMap().values()) { in CppCodeGenerator() 88 XsdType type = element.getType(); in CppCodeGenerator() 90 String name = Utils.toClassName(element.getName()); in CppCodeGenerator() 229 for (XsdElement element : xmlSchema.getElementMap().values()) { in print() 230 XsdType type = element.getType(); in print() 232 String name = Utils.toClassName(element.getName()); in print() 351 for (XsdElement element : xmlSchema.getElementMap().values()) { in printPrototype() 352 XsdType type = element.getType(); in printPrototype() 354 String name = Utils.toClassName(element.getName()); in printPrototype() 399 for (XsdElement element : elements) { in printClass() [all …]
|
/system/tools/xsdc/src/main/java/com/android/xsdc/java/ |
D | JavaCodeGenerator.java | 75 for (XsdElement element : xmlSchema.getElementMap().values()) { in JavaCodeGenerator() 76 XsdType type = element.getType(); in JavaCodeGenerator() 78 String name = Utils.toClassName(element.getName()); in JavaCodeGenerator() 117 for (XsdElement element : xmlSchema.getElementMap().values()) { in print() 118 XsdType type = element.getType(); in print() 120 String name = Utils.toClassName(element.getName()); in print() 216 for (XsdElement element : elements) { in printClass() 218 XsdElement elementValue = resolveElement(element); in printClass() 219 if (element.getRef() == null && element.getType().getRef() == null in printClass() 220 && element.getType() instanceof XsdComplexType) { in printClass() [all …]
|
/system/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/ |
D | dynamic_vector.h | 127 bool push_back(const ElementType &element); 128 bool push_back(ElementType &&element); 214 bool insert(size_type index, const ElementType &element); 215 bool insert(size_type index, ElementType &&element); 236 size_type find(const ElementType &element) const; 360 bool doPushBack(const ElementType &element, std::true_type); 367 bool doPushBack(const ElementType &element, std::false_type);
|
D | dynamic_vector_impl.h | 101 bool DynamicVector<ElementType>::push_back(const ElementType &element) { in push_back() argument 102 return doPushBack(element, typename std::is_trivial<ElementType>::type()); in push_back() 106 bool DynamicVector<ElementType>::doPushBack(const ElementType &element, in doPushBack() argument 108 return DynamicVectorBase::doPushBack(static_cast<const void *>(&element), in doPushBack() 113 bool DynamicVector<ElementType>::doPushBack(const ElementType &element, in doPushBack() argument 117 new (&data()[mSize++]) ElementType(element); in doPushBack() 124 bool DynamicVector<ElementType>::push_back(ElementType &&element) { in push_back() argument 127 new (&data()[mSize++]) ElementType(std::move(element)); in push_back() 223 const ElementType &element) { in insert() argument 226 new (&data()[index]) ElementType(element); in insert() [all …]
|
/system/chre/util/include/chre/util/ |
D | dynamic_vector.h | 127 bool push_back(const ElementType &element); 128 bool push_back(ElementType &&element); 214 bool insert(size_type index, const ElementType &element); 215 bool insert(size_type index, ElementType &&element); 236 size_type find(const ElementType &element) const; 360 bool doPushBack(const ElementType &element, std::true_type); 367 bool doPushBack(const ElementType &element, std::false_type);
|
D | memory_pool_impl.h | 54 void MemoryPool<ElementType, kSize>::deallocate(ElementType *element) { in deallocate() argument 56 CHRE_ASSERT(getBlockIndex(element, &blockIndex)); in deallocate() 65 bool MemoryPool<ElementType, kSize>::containsAddress(ElementType *element) { in containsAddress() argument 67 return getBlockIndex(element, &temp); in containsAddress() 71 bool MemoryPool<ElementType, kSize>::getBlockIndex(ElementType *element, in getBlockIndex() argument 73 uintptr_t elementAddress = reinterpret_cast<uintptr_t>(element); in getBlockIndex()
|
D | fixed_size_blocking_queue_impl.h | 61 const ElementType &element) { in push() argument 65 success = QueueStorageType::push(element); in push() 75 ElementType &&element) { in push() argument 79 success = QueueStorageType::push(std::move(element)); in push() 94 ElementType element(std::move(QueueStorageType::front())); in pop() 96 return element; in pop()
|
D | dynamic_vector_impl.h | 101 bool DynamicVector<ElementType>::push_back(const ElementType &element) { in push_back() argument 102 return doPushBack(element, typename std::is_trivial<ElementType>::type()); in push_back() 106 bool DynamicVector<ElementType>::doPushBack(const ElementType &element, in doPushBack() argument 108 return DynamicVectorBase::doPushBack(static_cast<const void *>(&element), in doPushBack() 113 bool DynamicVector<ElementType>::doPushBack(const ElementType &element, in doPushBack() argument 117 new (&data()[mSize++]) ElementType(element); in doPushBack() 124 bool DynamicVector<ElementType>::push_back(ElementType &&element) { in push_back() argument 127 new (&data()[mSize++]) ElementType(std::move(element)); in push_back() 223 const ElementType &element) { in insert() argument 226 new (&data()[index]) ElementType(element); in insert() [all …]
|
D | memory_pool.h | 77 void deallocate(ElementType *element); 91 bool containsAddress(ElementType *element); 139 bool getBlockIndex(ElementType *element, size_t *indexOutput);
|
/system/media/camera/docs/ |
D | metadata_validate.py | 77 def find_parent_by_name(element, names): argument 98 matching_parents = [i.name for i in element.parents if i.name in names] 105 def find_all_child_tags(element, tag): argument 130 matching_tags = [i for i in element.children if isinstance(i, Tag) and i.name == tag] 133 def find_child_tag(element, tag): argument 155 matching_tags = find_all_child_tags(element, tag) 161 def find_kind(element): argument 176 parent_kind = find_parent_by_name(element, kinds)
|
/system/tools/xsdc/tests/resources/reference/ |
D | reference.xsd | 4 <xs:element name="class"> 7 <xs:element name="student" type="xs:string" maxOccurs="unbounded"/> 11 </xs:element>
|
/system/tools/xsdc/tests/resources/group/ |
D | group.xsd | 5 <xs:element name="road" type="xs:string"/> 8 <xs:element name="Student"> 12 </xs:element>
|
/system/core/trusty/keymaster/set_attestation_key/ |
D | set_attestation_key.cpp | 268 const xmlChar* element = NULL; in process_xml() local 277 element = name; in process_xml() 285 element, algorithm, ret); in process_xml() 288 printf("%s, algorithm %s: Clear cert chain cmd done\n", element, algorithm); in process_xml() 294 if (xmlStrEqual(element, BAD_CAST "PrivateKey")) { in process_xml() 303 } else if (xmlStrEqual(element, BAD_CAST "Certificate")) { in process_xml() 311 fprintf(stderr, "%s, algorithm %s, format %s: Cmd 0x%x failed, %d\n", element, in process_xml() 315 printf("%s, algorithm %s, format %s: Cmd 0x%x done\n", element, algorithm, in process_xml() 319 element = NULL; in process_xml()
|
/system/tools/xsdc/tests/resources/attr_group_simple/ |
D | attr_group_simple.xsd | 13 <xs:element name="Student"> 16 <xs:element name="Name" type="xs:string"/> 21 </xs:element>
|
/system/tools/xsdc/tests/resources/ |
D | unsupported_attribute.xsd | 3 <xs:element name="animal" type="xs:string"/> 4 <xs:element name="cat" substitutionGroup="animal"/>
|