Home
last modified time | relevance | path

Searched refs:elem (Results 1 – 25 of 66) 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()
DVCardExporterTests.java199 final PropertyNodesVerifierElem elem = mVerifier.addPropertyNodesVerifierElem(); in testStructuredNameUseSuperPrimaryCommon() local
200 elem.addExpectedNodeWithOrder("N", in testStructuredNameUseSuperPrimaryCommon()
206 elem.addExpectedNodeWithOrder("FN", "AppropriateDisplayName"); in testStructuredNameUseSuperPrimaryCommon()
243 final PropertyNodesVerifierElem elem = mVerifier.addPropertyNodesVerifierElem(); in testStructuredNamePhoneticNameCommon() local
250 elem.addExpectedNodeWithOrder("N", in testStructuredNamePhoneticNameCommon()
257 elem.addExpectedNodeWithOrder("N", in testStructuredNamePhoneticNameCommon()
263 elem.addExpectedNode("SORT-STRING", in testStructuredNamePhoneticNameCommon()
269 elem.addExpectedNodeWithOrder("FN", "AppropriateDisplayName") in testStructuredNamePhoneticNameCommon()
342 final PropertyNodesVerifierElem elem = mVerifier.addPropertyNodesVerifierElem(); in testStructuredNameComplicatedCommon() local
349 elem.addExpectedNodeWithOrder("N", in testStructuredNameComplicatedCommon()
[all …]
/frameworks/base/core/java/android/ddm/
DDdmHandleThread.java151 for (StackTraceElement elem : trace) { in createStackChunk()
152 bufferSize += 4 + elem.getClassName().length() * 2; in createStackChunk()
153 bufferSize += 4 + elem.getMethodName().length() * 2; in createStackChunk()
155 if (elem.getFileName() != null) in createStackChunk()
156 bufferSize += elem.getFileName().length() * 2; in createStackChunk()
164 for (StackTraceElement elem : trace) { in createStackChunk()
165 out.putInt(elem.getClassName().length()); in createStackChunk()
166 putString(out, elem.getClassName()); in createStackChunk()
167 out.putInt(elem.getMethodName().length()); in createStackChunk()
168 putString(out, elem.getMethodName()); in createStackChunk()
[all …]
/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/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()
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()
DPropertyNodesVerifier.java41 PropertyNodesVerifierElem elem = new PropertyNodesVerifierElem(mAndroidTestCase); in addPropertyNodesVerifierElem() local
42 mPropertyNodesVerifierElemList.add(elem); in addPropertyNodesVerifierElem()
43 return elem; in addPropertyNodesVerifierElem()
/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()
DListUtils.java63 for (T elem : list) { in listToString()
64 sb.append(elem); in listToString()
/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/av/media/libstagefright/
DACodecBufferChannel.cpp295 for (const BufferInfo &elem : *inputBuffers) { in getInputBufferArray()
296 array->push_back(elem.mClientBuffer); in getInputBufferArray()
304 for (const BufferInfo &elem : *outputBuffers) { in getOutputBufferArray()
305 array->push_back(elem.mClientBuffer); in getOutputBufferArray()
341 (size_t sum, const BufferAndId& elem) { in setInputBufferArray() argument
342 return sum + align(elem.mBuffer->capacity(), alignment); in setInputBufferArray()
347 (size_t max, const BufferAndId& elem) { in setInputBufferArray() argument
348 return std::max(max, align(elem.mBuffer->capacity(), alignment)); in setInputBufferArray()
358 for (const BufferAndId &elem : array) { in setInputBufferArray() local
361 sharedEncryptedBuffer = mDealer->allocate(elem.mBuffer->capacity()); in setInputBufferArray()
[all …]
DUtils.cpp722 for (auto elem : stringMappings) { in convertMessageToMetaDataFromMappings() local
724 if (msg->findString(elem.first, &value)) { in convertMessageToMetaDataFromMappings()
725 meta->setCString(elem.second, value.c_str()); in convertMessageToMetaDataFromMappings()
729 for (auto elem : floatMappings) { in convertMessageToMetaDataFromMappings() local
731 if (msg->findFloat(elem.first, &value)) { in convertMessageToMetaDataFromMappings()
732 meta->setFloat(elem.second, value); in convertMessageToMetaDataFromMappings()
736 for (auto elem : int64Mappings) { in convertMessageToMetaDataFromMappings() local
738 if (msg->findInt64(elem.first, &value)) { in convertMessageToMetaDataFromMappings()
739 meta->setInt64(elem.second, value); in convertMessageToMetaDataFromMappings()
743 for (auto elem : int32Mappings) { in convertMessageToMetaDataFromMappings() local
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableArray.java93 Object elem = mComponentMarshaler.unmarshal(buffer); in unmarshal() local
94 Array.set(array, i, elem); in unmarshal()
102 Object elem = mComponentMarshaler.unmarshal(buffer); in unmarshal() local
103 arrayList.add(elem); in unmarshal()
160 Object elem = Array.get(array, index); in calculateElementMarshalSize() local
162 return marshaler.calculateMarshalSize((TElem) elem); in calculateElementMarshalSize()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerTest.java66 for (Object elem : recentTasks) { in testTaskIdsForUser()
67 assertThat(elem).isInstanceOf(RecentTaskInfo.class); in testTaskIdsForUser()
68 RecentTaskInfo recentTask = (RecentTaskInfo) elem; in testTaskIdsForUser()
/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/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/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/cmds/statsd/src/logd/
DLogEvent.cpp412 android_log_list_element elem; in init() local
418 elem = android_log_read_next(context); in init()
419 switch ((int)elem.type) { in init()
423 mTagId = elem.data.int32; in init()
431 FieldValue(Field(mTagId, pos, depth), Value((int32_t)elem.data.int32))); in init()
447 mValues.push_back(FieldValue(Field(mTagId, pos, depth), Value(elem.data.float32))); in init()
463 Value(string(elem.data.string, elem.len)))); in init()
470 mElapsedTimestampNs = elem.data.int64; in init()
481 FieldValue(Field(mTagId, pos, depth), Value((int64_t)elem.data.int64))); in init()
522 } while ((elem.type != EVENT_TYPE_UNKNOWN) && !elem.complete); in init()
/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()

123