Home
last modified time | relevance | path

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

/cts/tools/utils/
Dandroid_api_description_splitter.py97 for elem in elemlist:
98 elem = self.__trimElem(elem)
99 self.__generateFile(elem)
103 def __trimElem(self, elem): argument
105 for child in elem.childNodes:
111 elem.removeChild(child)
117 return elem
120 def __generateFile(self, elem): argument
123 … filename = os.path.join(self.out, elem.getAttribute("name").replace(".", "_").lower() + ".xml")
128 self.root.appendChild(elem)
[all …]
DDescriptionGenerator.java369 void appendSuiteToElement(Node elem, TestClass testSuite) { in appendSuiteToElement() argument
371 Collection<Node> children = getSuiteChildren(elem); in appendSuiteToElement()
393 appendSuiteToElementImpl(elem, testSuite); in appendSuiteToElement()
403 Collection<Node> getSuiteChildren(Node elem) { in getSuiteChildren() argument
406 NodeList children = elem.getChildNodes(); in getSuiteChildren()
425 void appendTestCases(Node elem, Collection<TestMethod> cases) { in appendTestCases() argument
428 elem.getParentNode().removeChild(elem); in appendTestCases()
434 Node caseNode = elem.appendChild(mDoc.createElement(TAG_TEST)); in appendTestCases()
462 protected void setAttribute(Node elem, String name, String value) { in setAttribute() argument
466 elem.getAttributes().setNamedItem(attr); in setAttribute()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dkernel_input.rs64 type elem = rsGetElementAt_##type(alloc, 0); \ typedef
65 _RS_ASSERT(elem == initial_value_##type); \
71 type elem = rsGetElementAt_##type(alloc, 0); \ typedef
72 _RS_ASSERT(elem[0] == initial_value_##type[0]); \
73 _RS_ASSERT(elem[1] == initial_value_##type[1]); \
79 type elem = rsGetElementAt_##type(alloc, 0); \ typedef
80 _RS_ASSERT(elem[0] == initial_value_##type[0]); \
81 _RS_ASSERT(elem[1] == initial_value_##type[1]); \
82 _RS_ASSERT(elem[2] == initial_value_##type[2]); \
88 type elem = rsGetElementAt_##type(alloc, 0); \ typedef
[all …]
DSmallStructsTest.java163 for (int elem = 0; elem < sAllocationElements; ++elem) { in testSmallStructsOfCharArray()
164 set_bytes.invoke(field, elem, bytes, true); in testSmallStructsOfCharArray()
212 for (int elem = 0; elem < sAllocationElements; ++elem) { in testSmallStructsOfHeterogeneousTypes()
217 fieldASetter.invoke(field, elem, initialValueA, true); in testSmallStructsOfHeterogeneousTypes()
223 fieldBSetter.invoke(field, elem, initialValueB, true); in testSmallStructsOfHeterogeneousTypes()
Dsmall_structs.rs86 struct char_array_##SIZE *elem = \
89 _RS_ASSERT(elem->bytes[j] == 2 * j + 1); \
190 struct two_element_struct_##TAG *elem = \
192 _RS_ASSERT(equals_##TYPE1(elem->a, (1 + (i % 3)) * initial_value_##TYPE1)); \
193 _RS_ASSERT(equals_##TYPE2(elem->b, (1 + (i % 4)) * initial_value_##TYPE2)); \
/cts/tests/camera/src/android/hardware/camera2/cts/
Dmeans_yuvx_444_2d_to_1d.rs42 yuvx_444 elem = { py, pu, pv };
44 LOGD("elem", elem);
46 sum.x += elem.x;
47 sum.y += elem.y;
48 sum.z += elem.z;
69 yuvx_444 elem = rsGetElementAt_yuvx_444(mInput, src_x + i, src_y + x);
71 LOGD("elem", elem);
73 sum.x += elem.x;
74 sum.y += elem.y;
75 sum.z += elem.z;
Dmeans_yuvx_444_1d_to_single.rs36 yuvx_444 elem = rsGetElementAt_yuvx_444(mInput, i);
38 LOGD("elem", elem);
41 sum.x += elem.x;
42 sum.y += elem.y;
43 sum.z += elem.z;
DExtendedCameraCharacteristicsTest.java1390 for (int elem : arr) { in arrayContains()
1391 if (elem == needle) { in arrayContains()
1404 for (T elem : arr) { in arrayContains()
1405 if (elem.equals(needle)) { in arrayContains()
DCameraTestUtils.java1313 public static boolean contains(int[] array, int elem) { in contains() argument
1316 if (elem == array[i]) return true; in contains()
/cts/suite/audio_quality/lib/include/task/
DModelBuilder.h51 virtual bool parseAttributes(const TiXmlElement& elem, TaskGeneric& task);
52 virtual TaskGeneric* parseGeneric(const TiXmlElement& elem, int tableIndex);
55 virtual TaskCase* parseInclude(const TiXmlElement& elem, const android::String8& path);
/cts/tests/camera/src/android/hardware/camera2/cts/helpers/
DInMatcher.java48 for (T elem : mValues) { in matches()
49 if (Objects.equals(o, elem)) { in matches()
DPreconditions.java145 for (T elem : value) { in checkCollectionElementsNotNull()
146 if (elem == null) { in checkCollectionElementsNotNull()
DAssertHelpers.java216 for (T elem : collection) { in formatCollection()
217 String val = ((first) ? ", " : "") + ((elem != null) ? elem.toString() : "null"); in formatCollection()
/cts/suite/audio_quality/lib/src/task/
DModelBuilder.cpp234 TaskCase* ModelBuilder::parseInclude(const TiXmlElement& elem, const android::String8& path) in parseInclude() argument
236 const char* fileName = elem.Attribute("file"); in parseInclude()
248 bool ModelBuilder::parseAttributes(const TiXmlElement& elem, TaskGeneric& task) in parseAttributes() argument
250 const TiXmlAttribute* attr = elem.FirstAttribute(); in parseAttributes()
/cts/tests/tests/icu/tools/android/icu/cts/tools/
DGenerateTestCaseXML.java124 protected static void setAttribute(Node elem, String name, String value) { in setAttribute() argument
125 Attr attr = elem.getOwnerDocument().createAttribute(name); in setAttribute()
128 elem.getAttributes().setNamedItem(attr); in setAttribute()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DErrorLoggingService.java123 Pair<Integer, Messenger> elem = iter.next(); in sendMessages() local
125 if (elem.first == null || elem.first == i.getEvent()) { in sendMessages()
132 elem.second.send(m); in sendMessages()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/
DVrListenerVerifierActivity.java355 private static <E> void assertIn(String message, E elem, E[] c) { in assertIn() argument
356 if (!Arrays.asList(c).contains(elem)) { in assertIn()
361 private static void assertEventIn(String message, MockVrListenerService.Event elem, in assertEventIn() argument
363 if (!Arrays.asList(c).contains(elem.type)) { in assertEventIn()
/cts/common/util/src/com/android/compatibility/common/util/
DReportLog.java277 /* package */ void setSummary(Metric elem) { in setSummary() argument
278 mSummary = elem; in setSummary()