Home
last modified time | relevance | path

Searched refs:elem (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
DVCardImporterTests.java486 ContentValuesVerifierElem elem = mVerifier.addContentValuesVerifierElem(); in testOrgBeforTitle() local
487 elem.addExpected(StructuredName.CONTENT_ITEM_TYPE) in testOrgBeforTitle()
489 elem.addExpected(Organization.CONTENT_ITEM_TYPE) in testOrgBeforTitle()
498 ContentValuesVerifierElem elem = mVerifier.addContentValuesVerifierElem(); in testTitleBeforOrg() local
499 elem.addExpected(StructuredName.CONTENT_ITEM_TYPE) in testTitleBeforOrg()
501 elem.addExpected(Organization.CONTENT_ITEM_TYPE) in testTitleBeforOrg()
514 ContentValuesVerifierElem elem = mVerifier.addContentValuesVerifierElem(); in testV21PrefToIsPrimary() local
515 elem.addExpected(StructuredName.CONTENT_ITEM_TYPE) in testV21PrefToIsPrimary()
518 elem.addExpected(Phone.CONTENT_ITEM_TYPE) in testV21PrefToIsPrimary()
521 elem.addExpected(Phone.CONTENT_ITEM_TYPE) in testV21PrefToIsPrimary()
[all …]
DVCardEntryTests.java151 public void addExpectedElement(EntryElement elem) { in addExpectedElement() argument
152 mExpectedElements.put(elem.getEntryLabel(), elem); in addExpectedElement() local
190 public boolean onElement(EntryElement elem) { in onElement() argument
191 EntryElement expectedElem = mExpectedElements.remove(elem.getEntryLabel()); in onElement()
192 assertNotNull("Unexpected elem: " + elem.toString(), expectedElem); in onElement()
193 assertEquals(expectedElem, elem); in onElement()
/frameworks/base/api/
Dapi_versions_trimmer_unittests.py35 def indent(elem, level=0): argument
38 if len(elem):
39 if not elem.text or not elem.text.strip():
40 elem.text = i + " "
41 if not elem.tail or not elem.tail.strip():
42 elem.tail = i
43 for subelem in elem:
45 if not elem.tail or not elem.tail.strip():
46 elem.tail = j
48 if level and (not elem.tail or not elem.tail.strip()):
[all …]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DContentValuesVerifier.java32 ContentValuesVerifierElem elem = new ContentValuesVerifierElem(androidTestCase); in addElem() local
33 mContentValuesVerifierElemList.add(elem); in addElem()
34 return elem; in addElem()
39 for (ContentValuesVerifierElem elem : mContentValuesVerifierElemList) { in onStart()
40 elem.onParsingStart(); in onStart()
53 for (ContentValuesVerifierElem elem : mContentValuesVerifierElemList) {
54 elem.onParsingEnd();
55 elem.verifyResolver();
DVCardVerifier.java175 final PropertyNodesVerifierElem elem = addPropertyNodesVerifierElemWithoutVersion(); in addPropertyNodesVerifierElem() local
186 elem.addExpectedNodeWithOrder("VERSION", versionString); in addPropertyNodesVerifierElem()
188 return elem; in addPropertyNodesVerifierElem()
195 final PropertyNodesVerifierElem elem = addPropertyNodesVerifierElem(); in addPropertyNodesVerifierElemWithEmptyName() local
197 elem.addExpectedNodeWithOrder("FN", ""); in addPropertyNodesVerifierElemWithEmptyName()
199 elem.addExpectedNodeWithOrder("N", ""); in addPropertyNodesVerifierElemWithEmptyName()
200 elem.addExpectedNodeWithOrder("FN", ""); in addPropertyNodesVerifierElemWithEmptyName()
202 elem.addExpectedNodeWithOrder("N", ""); in addPropertyNodesVerifierElemWithEmptyName()
204 return elem; in addPropertyNodesVerifierElemWithEmptyName()
DPropertyNodesVerifier.java41 PropertyNodesVerifierElem elem = new PropertyNodesVerifierElem(mAndroidTestCase); in addPropertyNodesVerifierElem() local
42 mPropertyNodesVerifierElemList.add(elem); in addPropertyNodesVerifierElem()
43 return elem; in addPropertyNodesVerifierElem()
DPropertyNode.java166 for (String elem : paramMap_TYPE) { in toString()
173 builder.append(elem); in toString()
180 for (String elem : propGroupSet) { in toString()
187 builder.append(elem); in toString()
/frameworks/native/opengl/tools/glgen2/registry/
Dreg.py70 def matchAPIProfile(api, profile, elem): argument
74 if ('api' in elem.attrib):
77 elem.get('api') + "'")
78 elif (api != elem.get('api')):
81 if ('profile' in elem.attrib):
84 elem.get('profile') + "'")
85 elif (profile != elem.get('profile')):
100 def __init__(self, elem): argument
103 self.elem = elem
112 def __init__(self, elem): argument
[all …]
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_HardwareRendererObserver.cpp56 FrameMetricsNotification& elem = mRingBuffer[mNextInQueue]; in getNextBuffer() local
57 if (elem.hasData.load()) { in getNextBuffer()
58 env->SetLongArrayRegion(metrics, 0, kBufferSize, elem.buffer); in getNextBuffer()
59 *dropCount = elem.dropCount; in getNextBuffer()
61 elem.hasData = false; in getNextBuffer()
71 FrameMetricsNotification& elem = mRingBuffer[mNextFree]; in notify() local
73 if (!elem.hasData.load()) { in notify()
74 memcpy(elem.buffer, stats, kBufferSize * sizeof(stats[0])); in notify()
76 elem.dropCount = mDroppedReports; in notify()
79 elem.hasData = true; in notify()
/frameworks/base/core/java/android/hardware/camera2/utils/
DArrayUtils.java40 for (T elem : array) { in getArrayIndex()
41 if (Objects.equals(elem, needle)) { in getArrayIndex()
151 for (int elem : list) { in toIntArray()
152 arr[i] = elem; in toIntArray()
166 public static boolean contains(int[] array, int elem) { in contains() argument
167 return getArrayIndex(array, elem) != -1; in contains()
177 public static <T> boolean contains(T[] array, T elem) { in contains() argument
178 return getArrayIndex(array, elem) != -1; in contains()
/frameworks/native/opengl/tools/glgen2/
Dglgen.py59 def parseProto(elem): argument
60 type = nonestr(elem.text)
62 for subelem in elem:
71 def parseParam(elem): argument
72 name = elem.find('name').text
73 declaration = ''.join(elem.itertext())
124 rtype, fname = parseProto(cmd.elem.find('proto'))
125 params = [parseParam(p) for p in cmd.elem.findall('param')]
150 rtype, fname = parseProto(cmd.elem.find('proto'))
151 params = [parseParam(p) for p in cmd.elem.findall('param')]
[all …]
/frameworks/rs/driver/
DrsdMeshObj.cpp56 bool RsdMeshObj::isValidGLComponent(const Element *elem, uint32_t fieldIdx) { in isValidGLComponent() argument
59 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType; in isValidGLComponent()
67 uint32_t arraySize = elem->mHal.state.fieldArraySizes[fieldIdx]; in isValidGLComponent()
82 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() local
83 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) { in init()
84 if (isValidGLComponent(elem, ct)) { in init()
105 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() local
106 uint32_t stride = elem->mHal.state.elementSizeBytes; in init()
107 for (uint32_t fieldI=0; fieldI < elem->mHal.state.fieldsCount; fieldI++) { in init()
108 const Element *f = elem->mHal.state.fields[fieldI]; in init()
[all …]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DALookup.h50 for (auto elem : mTable) { in lookup() local
51 if (elem.first == from) { in lookup()
52 *to = elem.second; in lookup()
61 for (auto elem : mTable) { in rlookup() local
62 if (elem.second == from) { in rlookup()
63 *to = elem.first; in rlookup()
/frameworks/rs/
DrsApiElement.cpp22 extern "C" void rsaElementGetNativeData(RsContext con, RsElement elem, in rsaElementGetNativeData() argument
26 Element *e = static_cast<Element *>(elem); in rsaElementGetNativeData()
35 extern "C" void rsaElementGetSubElements(RsContext con, RsElement elem, uintptr_t *ids, in rsaElementGetSubElements() argument
37 Element *e = static_cast<Element *>(elem); in rsaElementGetSubElements()
DrsElement.h121 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); in create() local
122 elem->incUserRef(); in create()
123 return elem.get(); in create()
130 ObjectBaseRef<const Element> elem = createRef(rsc, count, ein, nin, lengths, asin); variable
131 elem->incUserRef();
132 return elem.get();
/frameworks/libs/net/common/framework/com/android/net/module/util/
DCollectionUtils.java81 public static <T> boolean all(@NonNull Collection<T> elem, @NonNull Predicate<T> predicate) { in all() argument
82 for (final T e : elem) { in all()
93 public static <T> boolean any(@NonNull Collection<T> elem, @NonNull Predicate<T> predicate) { in any() argument
94 return indexOf(elem, predicate) >= 0; in any()
101 public static <T> int indexOf(@NonNull Collection<T> elem, @NonNull Predicate<T> predicate) { in indexOf() argument
103 for (final T e : elem) { in indexOf()
/frameworks/av/services/mediametrics/include/mediametricsservice/
DAnalyticsActions.h113 const auto& [key, elem] = trigger; in isMatch()
117 return item->hasPropElem(propName, elem); in isMatch()
122 const auto& [key, elem] = trigger; in isWildcardMatch()
123 return item->recursiveWildcardCheckElem(key.c_str(), elem); in isWildcardMatch()
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_apitest.java35 Element elem = Element.I8(pRS); in run() local
36 Type.Builder typeBuilder = new Type.Builder(pRS, elem); in run()
49 s.set_elemNonNull(elem); in run()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_apitest.java38 Element elem = Element.I8(pRS); in run() local
39 Type.Builder typeBuilder = new Type.Builder(pRS, elem); in run()
52 s.set_elemNonNull(elem); in run()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
DUT_apitest.java36 Element elem = Element.I8(pRS); in run() local
37 Type.Builder typeBuilder = new Type.Builder(pRS, elem); in run()
50 s.set_elemNonNull(elem); in run()
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DConcurrentLinkedEvictingDeque.java34 public boolean add(E elem) { in add() argument
40 return super.add(elem); in add()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableArray.java157 Object elem = mComponentMarshaler.unmarshal(buffer);
158 Array.set(array, i, elem);
167 Object elem = mComponentMarshaler.unmarshal(buffer);
168 arrayList.add(elem);
225 Object elem = Array.get(array, index);
227 return marshaler.calculateMarshalSize((TElem) elem);
/frameworks/av/media/libstagefright/
DACodecBufferChannel.cpp506 for (const BufferInfo &elem : *inputBuffers) { in getInputBufferArray()
507 array->push_back(elem.mClientBuffer); in getInputBufferArray()
515 for (const BufferInfo &elem : *outputBuffers) { in getOutputBufferArray()
516 array->push_back(elem.mClientBuffer); in getOutputBufferArray()
553 (size_t sum, const BufferAndId& elem) { in setInputBufferArray() argument
554 return sum + align(elem.mBuffer->capacity(), alignment); in setInputBufferArray()
559 (size_t max, const BufferAndId& elem) { in setInputBufferArray() argument
560 return std::max(max, align(elem.mBuffer->capacity(), alignment)); in setInputBufferArray()
570 for (const BufferAndId &elem : array) { in setInputBufferArray() local
573 sharedEncryptedBuffer = mDealer->allocate(elem.mBuffer->capacity()); in setInputBufferArray()
[all …]
/frameworks/base/core/java/android/hardware/radio/
DUtils.java88 set.stream().forEach(elem -> dest.writeTypedObject(elem, 0)); in writeSet()
106 set.stream().forEach(elem -> dest.writeInt(Objects.requireNonNull(elem))); in writeIntSet()
/frameworks/base/tools/processors/staledataclass/src/android/processor/staledataclass/
DStaleDataclassProcessor.kt98 private fun elemToString(elem: Element): String { in <lambda>()
100 append(elem.modifiers.joinToString(" ") { it.name.toLowerCase() }) in <lambda>()
102 append(elem.annotationMirrors.joinToString(" ", transform = { annotationToString(it) })) in <lambda>()
104 val type = elem.asType() in <lambda>()
111 append(elem) in <lambda>()

123