Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 65) sorted by relevance

123

/system/tools/xsdc/tests/resources/predefined_types/
Dpredefined_types.xsd4 <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/
Dnested_type.xsd2 <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/
Dsimple_complex_content.xsd5 <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/core/logd/
DLogStatistics.h142 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 …]
DChattyLogBuffer.cpp179 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 …]
DLogStatistics.cpp42 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 …]
DSimpleLogBuffer.cpp162 LogBufferElement& element = *it; in FlushTo() local
164 state.set_start(element.sequence()); in FlushTo()
166 if (!writer->privileged() && element.uid() != writer->uid()) { in FlushTo()
170 if (((1 << element.log_id()) & state.log_mask()) == 0) { in FlushTo()
176 filter(element.log_id(), element.pid(), element.sequence(), element.realtime()); in FlushTo()
189 if (element.dropped_count() != 0) { in FlushTo()
195 bool same_tid = state.last_tid()[element.log_id()] == element.tid(); in FlushTo()
199 state.last_tid()[element.log_id()] = in FlushTo()
200 (element.dropped_count() && !same_tid) ? 0 : element.tid(); in FlushTo()
205 if (!element.FlushTo(writer, stats_, same_tid)) { in FlushTo()
[all …]
DPruneList.cpp26 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()
DPruneList.h33 bool Matches(LogBufferElement* element) const;
51 bool IsHighPriority(LogBufferElement* element) const;
52 bool IsLowPriority(LogBufferElement* element) const;
DSerializedFlushToState.cpp145 auto& element = min_heap_.top(); in Prune() local
146 if (element.log_id != log_id) { in Prune()
147 old_elements.emplace_back(element); in Prune()
151 for (auto&& element : old_elements) { in Prune()
152 min_heap_.emplace(element); in Prune()
/system/tools/xsdc/tests/resources/simple_type/
Dsimple_type.xsd28 <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"/>
36 </xs:element>
37 <xs:element name="multi-choice">
40 <xs:element name="example1" type="xs:string"/>
41 <xs:element name="example2" type="xs:string"/>
42 <xs:element name="example3" type="xs:string"/>
45 </xs:element>
[all …]
/system/tools/xsdc/src/com/android/xsdc/cpp/
DCppCodeGenerator.java69 for (XsdElement element : xmlSchema.getElementMap().values()) { in CppCodeGenerator()
70 XsdType type = element.getType(); in CppCodeGenerator()
72 String name = Utils.toClassName(element.getName()); in CppCodeGenerator()
151 for (XsdElement element : xmlSchema.getElementMap().values()) { in print()
152 XsdType type = element.getType(); in print()
154 String name = Utils.toClassName(element.getName()); in print()
212 for (XsdElement element : xmlSchema.getElementMap().values()) { in printPrototype()
213 XsdType type = element.getType(); in printPrototype()
215 String name = Utils.toClassName(element.getName()); in printPrototype()
244 for (XsdElement element : elements) { in printClass()
[all …]
/system/tools/xsdc/
DREADME.md10 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/java/
DJavaCodeGenerator.java62 for (XsdElement element : xmlSchema.getElementMap().values()) { in JavaCodeGenerator()
63 XsdType type = element.getType(); in JavaCodeGenerator()
65 String name = Utils.toClassName(element.getName()); in JavaCodeGenerator()
104 for (XsdElement element : xmlSchema.getElementMap().values()) { in print()
105 XsdType type = element.getType(); in print()
107 String name = Utils.toClassName(element.getName()); in print()
191 for (XsdElement element : elements) { in printClass()
193 XsdElement elementValue = resolveElement(element); in printClass()
194 if (element.getRef() == null && element.getType().getRef() == null in printClass()
195 && element.getType() instanceof XsdComplexType) { in printClass()
[all …]
/system/tools/xsdc/tests/resources/group/
Dgroup.xsd4 <xs:element name="State" type="xs:string"/>
5 <xs:element name="city" type="xs:string"/>
10 <xs:element name="road" type="xs:string"/>
13 <xs:element name="Student">
17 </xs:element>
/system/chre/util/include/chre/util/
Ddynamic_vector.h127 bool push_back(const ElementType& element);
128 bool push_back(ElementType&& element);
213 bool insert(size_type index, const ElementType& element);
214 bool insert(size_type index, ElementType&& element);
235 size_type find(const ElementType& element) const;
359 bool doPushBack(const ElementType& element, std::true_type);
366 bool doPushBack(const ElementType& element, std::false_type);
Dfixed_size_blocking_queue_impl.h27 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()
Ddynamic_vector_impl.h101 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 …]
Darray_queue.h109 bool push(const ElementType& element);
110 bool push(ElementType&& element);
119 void kick_push(const ElementType& element);
120 void kick_push(ElementType&& element);
Dfixed_size_blocking_queue.h44 bool push(const ElementType& element);
45 bool push(ElementType&& element);
Darray_queue_impl.h86 bool ArrayQueue<ElementType, kCapacity>::push(const ElementType& element) { in push() argument
89 new (&data()[mTail]) ElementType(element); in push()
95 bool ArrayQueue<ElementType, kCapacity>::push(ElementType&& element) { in push() argument
98 new (&data()[mTail]) ElementType(std::move(element)); in push()
104 void ArrayQueue<ElementType, kCapacity>::kick_push(const ElementType& element) { in kick_push() argument
108 push(element); in kick_push()
112 void ArrayQueue<ElementType, kCapacity>::kick_push(ElementType&& element) { in kick_push() argument
116 push(element); in kick_push()
/system/media/camera/docs/
Dmetadata_validate.py77 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/
Dreference.xsd4 <xs:element name="class">
7 <xs:element name="student" type="xs:string" maxOccurs="unbounded"/>
11 </xs:element>
/system/tools/xsdc/tests/resources/attr_group_simple/
Dattr_group_simple.xsd10 <xs:element name="Student">
13 <xs:element name="Name" type="xs:string"/>
17 </xs:element>
/system/tools/xsdc/tests/resources/
Dunsupported_attribute.xsd3 <xs:element name="animal" type="xs:string"/>
4 <xs:element name="cat" substitutionGroup="animal"/>

123