/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/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/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/logging/logd/ |
D | LogStatistics.h | 142 iterator Add(const TKey& key, const LogStatisticsElement& element) { in Add() argument 145 it = map.insert(std::make_pair(key, TEntry(element))).first; in Add() 147 it->second.Add(element); in Add() 162 void Subtract(const TKey& key, const LogStatisticsElement& element) { in Subtract() argument 164 if (it != map.end() && it->second.Subtract(element)) { in Subtract() 169 void Drop(const TKey& key, const LogStatisticsElement& element) { in Drop() argument 172 it->second.Drop(element); in Drop() 176 void Erase(const TKey& key, const LogStatisticsElement& element) { in Erase() argument 179 it->second.Erase(element); in Erase() 192 explicit EntryBase(const LogStatisticsElement& element) : size_(element.total_len) {} in EntryBase() argument [all …]
|
D | ChattyLogBuffer.cpp | 179 LogBufferElement& element = *it; in Erase() local 180 log_id_t id = element.log_id(); in Erase() 186 int key = (id == LOG_ID_EVENTS || id == LOG_ID_SECURITY) ? element.GetTag() : element.uid(); in Erase() 197 LogBufferPidIteratorMap::iterator found = mLastWorstPidOfSystem[id].find(element.pid()); in Erase() 205 int key = (id == LOG_ID_EVENTS || id == LOG_ID_SECURITY) ? element->GetTag() : element->uid(); in Erase() 209 stats()->Erase(element.ToLogStatisticsElement()); in Erase() 211 stats()->Subtract(element.ToLogStatisticsElement()); in Erase() 241 bool coalesce(LogBufferElement* element, uint16_t dropped) { in coalesce() argument 242 uint64_t key = LogBufferElementKey(element->uid(), element->pid(), element->tid()); in coalesce() 257 void add(LogBufferElement* element) { in add() 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() 58 uint16_t len = element.msg_len; in TagNameKey() 126 void LogStatistics::Add(LogStatisticsElement element) { in Add() argument 130 element.total_len = element.msg_len; in Add() 133 log_id_t log_id = element.log_id; in Add() 134 uint16_t size = element.total_len; in Add() 143 if (element.dropped_count) { in Add() [all …]
|
D | SimpleLogBuffer.cpp | 161 LogBufferElement& element = *it; in FlushTo() local 163 state.set_start(element.sequence()); in FlushTo() 165 if (!writer->privileged() && element.uid() != writer->uid()) { in FlushTo() 169 if (((1 << element.log_id()) & state.log_mask()) == 0) { in FlushTo() 175 filter(element.log_id(), element.pid(), element.sequence(), element.realtime()); in FlushTo() 188 if (element.dropped_count() != 0) { in FlushTo() 194 bool same_tid = state.last_tid()[element.log_id()] == element.tid(); in FlushTo() 198 state.last_tid()[element.log_id()] = in FlushTo() 199 (element.dropped_count() && !same_tid) ? 0 : element.tid(); in FlushTo() 204 if (!element.FlushTo(writer, stats_, same_tid)) { in FlushTo() [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"/> 39 </xs:element> 40 <xs:element name="multi-choice"> 43 <xs:element name="example1" type="xs:string"/> 44 <xs:element name="example2" 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/com/android/xsdc/cpp/ |
D | CppCodeGenerator.java | 80 for (XsdElement element : xmlSchema.getElementMap().values()) { in CppCodeGenerator() 81 XsdType type = element.getType(); in CppCodeGenerator() 83 String name = Utils.toClassName(element.getName()); in CppCodeGenerator() 214 for (XsdElement element : xmlSchema.getElementMap().values()) { in print() 215 XsdType type = element.getType(); in print() 217 String name = Utils.toClassName(element.getName()); in print() 311 for (XsdElement element : xmlSchema.getElementMap().values()) { in printPrototype() 312 XsdType type = element.getType(); in printPrototype() 314 String name = Utils.toClassName(element.getName()); in printPrototype() 343 for (XsdElement element : elements) { in printClass() [all …]
|
/system/tools/xsdc/src/com/android/xsdc/java/ |
D | JavaCodeGenerator.java | 71 for (XsdElement element : xmlSchema.getElementMap().values()) { in JavaCodeGenerator() 72 XsdType type = element.getType(); in JavaCodeGenerator() 74 String name = Utils.toClassName(element.getName()); in JavaCodeGenerator() 113 for (XsdElement element : xmlSchema.getElementMap().values()) { in print() 114 XsdType type = element.getType(); in print() 116 String name = Utils.toClassName(element.getName()); in print() 212 for (XsdElement element : elements) { in printClass() 214 XsdElement elementValue = resolveElement(element); in printClass() 215 if (element.getRef() == null && element.getType().getRef() == null in printClass() 216 && element.getType() instanceof XsdComplexType) { in printClass() [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 | fixed_size_blocking_queue_impl.h | 27 const ElementType &element) { in push() argument 31 success = mQueue.push(element); in push() 40 bool FixedSizeBlockingQueue<ElementType, kSize>::push(ElementType &&element) { in push() argument 44 success = mQueue.push(std::move(element)); in push() 59 ElementType element(std::move(mQueue.front())); in pop() 61 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() 221 const ElementType &element) { in insert() argument 224 new (&data()[index]) ElementType(element); in insert() [all …]
|
D | array_queue.h | 109 bool push(const ElementType &element); 110 bool push(ElementType &&element); 119 void kick_push(const ElementType &element); 120 void kick_push(ElementType &&element);
|
D | fixed_size_blocking_queue.h | 44 bool push(const ElementType &element); 45 bool push(ElementType &&element);
|
/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>
|
D | address.xsd | 4 <xs:element name="State" type="xs:string"/> 5 <xs:element name="city" type="xs:string"/>
|
/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"/>
|
/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()
|