/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
D | VCardImporterTests.java | 486 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 …]
|
D | VCardEntryTests.java | 151 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()
|
D | VCardExporterTests.java | 199 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 …]
|
D | VCardJapanizationTests.java | 124 PropertyNodesVerifierElem elem = mVerifier.addPropertyNodesVerifierElemWithEmptyName(); in testPhoneticNameCommon() local 125 elem.addExpectedNode("X-PHONETIC-LAST-NAME", "\u3084\u307E\u3060", in testPhoneticNameCommon() 133 elem.addExpectedNode("SORT-STRING", in testPhoneticNameCommon() 226 PropertyNodesVerifierElem elem = mVerifier.addPropertyNodesVerifierElemWithEmptyName(); in testPostalAddressWithJapaneseCommon() local 229 elem.addExpectedNode("ADR", Arrays.asList("\u79C1\u66F8\u7BB107", in testPostalAddressWithJapaneseCommon()
|
/frameworks/base/core/java/android/ddm/ |
D | DdmHandleThread.java | 151 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/ |
D | reg.py | 70 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/ |
D | ContentValuesVerifier.java | 32 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();
|
D | VCardVerifier.java | 175 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()
|
D | PropertyNode.java | 166 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()
|
D | PropertyNodesVerifier.java | 41 PropertyNodesVerifierElem elem = new PropertyNodesVerifierElem(mAndroidTestCase); in addPropertyNodesVerifierElem() local 42 mPropertyNodesVerifierElemList.add(elem); in addPropertyNodesVerifierElem() 43 return elem; in addPropertyNodesVerifierElem()
|
/frameworks/native/opengl/tools/glgen2/ |
D | glgen.py | 59 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()) 122 rtype, fname = parseProto(cmd.elem.find('proto')) 123 params = [parseParam(p) for p in cmd.elem.findall('param')] 146 rtype, fname = parseProto(cmd.elem.find('proto')) 147 params = [parseParam(p) for p in cmd.elem.findall('param')] [all …]
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | ArrayUtils.java | 40 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()
|
D | ListUtils.java | 63 for (T elem : list) { in listToString() 64 sb.append(elem); in listToString()
|
/frameworks/rs/driver/ |
D | rsdMeshObj.cpp | 52 bool RsdMeshObj::isValidGLComponent(const Element *elem, uint32_t fieldIdx) { in isValidGLComponent() argument 55 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType; in isValidGLComponent() 63 uint32_t arraySize = elem->mHal.state.fieldArraySizes[fieldIdx]; in isValidGLComponent() 78 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() local 79 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) { in init() 80 if (isValidGLComponent(elem, ct)) { in init() 101 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() local 102 uint32_t stride = elem->mHal.state.elementSizeBytes; in init() 103 for (uint32_t fieldI=0; fieldI < elem->mHal.state.fieldsCount; fieldI++) { in init() 104 const Element *f = elem->mHal.state.fields[fieldI]; in init() [all …]
|
/frameworks/av/include/media/stagefright/foundation/ |
D | ALookup.h | 50 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/ |
D | rsApiElement.cpp | 22 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()
|
D | rsElement.h | 119 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); in create() local 120 elem->incUserRef(); in create() 121 return elem.get(); in create() 128 ObjectBaseRef<const Element> elem = createRef(rsc, count, ein, nin, lengths, asin); variable 129 elem->incUserRef(); 130 return elem.get();
|
/frameworks/opt/net/wifi/service/jni/ |
D | jni_helper.cpp | 233 jlong *elem = mEnv->GetLongArrayElements(array, 0); in getLongArrayField() local 234 if (elem == NULL) { in getLongArrayField() 239 jlong value = elem[index]; in getLongArrayField() 240 mEnv->ReleaseLongArrayElements(array, elem, 0); in getLongArrayField() 258 jbyte *elem = mEnv->GetByteArrayElements(array, 0); in getByteArrayField() local 259 if (elem == NULL) { in getByteArrayField() 264 memcpy(buf, elem, size); in getByteArrayField() 265 mEnv->ReleaseByteArrayElements(array, elem, 0); in getByteArrayField() 283 jlong *elem = mEnv->GetLongArrayElements(array, 0); in getStaticLongArrayField() local 284 if (elem == NULL) { in getStaticLongArrayField() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryableArray.java | 93 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/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
D | UT_apitest.java | 35 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/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_apitest.java | 35 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/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | InMatcher.java | 52 for (T elem : mValues) { in matches() 53 if (Objects.equals(o, elem)) { in matches()
|
D | Preconditions.java | 149 for (T elem : value) { in checkCollectionElementsNotNull() 150 if (elem == null) { in checkCollectionElementsNotNull()
|
D | AssertHelpers.java | 222 for (T elem : collection) { in formatCollection() 223 String val = ((first) ? ", " : "") + ((elem != null) ? elem.toString() : "null"); in formatCollection()
|
/frameworks/base/core/jni/ |
D | android_view_ThreadedRenderer.cpp | 528 FrameMetricsNotification& elem = mRingBuffer[mNextInQueue]; in getNextBuffer() local 530 if (elem.hasData.load()) { in getNextBuffer() 531 env->SetLongArrayRegion(sink, 0, kBufferSize, elem.buffer); in getNextBuffer() 532 *dropCount = elem.dropCount; in getNextBuffer() 534 elem.hasData = false; in getNextBuffer() 542 FrameMetricsNotification& elem = mRingBuffer[mNextFree]; in notify() local 544 if (!elem.hasData.load()) { in notify() 545 memcpy(elem.buffer, stats, kBufferSize * sizeof(stats[0])); in notify() 547 elem.dropCount = mDroppedReports; in notify() 552 elem.hasData = true; in notify()
|