Home
last modified time | relevance | path

Searched refs:getValue (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCurrentXmlHandler.java67 mCurrentPackageName = getValue(attributes, "name"); in startElement()
79 mCurrentClassName = getValue(attributes, "name"); in startElement()
81 String superClass = attributes.getValue("extends"); in startElement()
87 mCurrentInterfaceName = attributes.getValue("name"); in startElement()
93 mCurrentMethodName = getValue(attributes, "name"); in startElement()
94 mCurrentMethodReturnType = getValue(attributes, "return"); in startElement()
96 mCurrentMethodVisibility = getValue(attributes, "visibility"); in startElement()
101 mCurrentParameterTypes.add(getValue(attributes, "type")); in startElement()
138 static String getValue(Attributes attributes, String key) { in getValue() method in CurrentXmlHandler
140 return attributes.getValue(key) in getValue()
[all …]
DTestModuleConfigHandler.java63 if (null != attributes.getValue(DESCRIPTION_TAG)) { in startElement()
64 mFileMetadata.setDescription(attributes.getValue(DESCRIPTION_TAG)); in startElement()
70 mTestCase.setTestClass(attributes.getValue(CLASS_TAG)); in startElement()
73 mTargetPreparer.setTestClass(attributes.getValue(CLASS_TAG)); in startElement()
76 option.setName(attributes.getValue(NAME_TAG)); in startElement()
77 option.setValue(attributes.getValue(VALUE_TAG)); in startElement()
78 String keyStr = attributes.getValue(KEY_TAG); in startElement()
85 mModuleName = option.getValue(); in startElement()
DCtsReportHandler.java59 mTestSuiteBld.setName(attributes.getValue(NAME_TAG)); in startElement()
60 mTestPackageBld.setName(attributes.getValue(NAME_TAG)); in startElement()
62 if (null != attributes.getValue(NAME_TAG)) { in startElement()
63 mTestPackageBld.setAbi(attributes.getValue(ABI_TAG)); in startElement()
67 mTestCaseBld.setName(attributes.getValue(NAME_TAG)); in startElement()
71 testBld.setName(attributes.getValue(NAME_TAG)); in startElement()
72 testBld.setResult(attributes.getValue(RESULT_TAG)); in startElement()
DDexDepsXmlHandler.java54 mCurrentPackageName = CurrentXmlHandler.getValue(attributes, "name"); in startElement()
57 mCurrentClassName = CurrentXmlHandler.getValue(attributes, "name"); in startElement()
61 mCurrentMethodName = CurrentXmlHandler.getValue(attributes, "name"); in startElement()
64 mCurrentParameterTypes.add(CurrentXmlHandler.getValue(attributes, "type")); in startElement()
DTestSuiteContentReport.java174 localName, attributes.getValue(NAME_TAG), attributes.getValue(VALUE_TAG)); in startElement()
175 if (EXCLUDE_FILTER_TAG.equals(attributes.getValue(NAME_TAG))) { in startElement()
176 String kfFilter = attributes.getValue(VALUE_TAG).replace(' ', '.'); in startElement()
352 rtHit = rtHit + opt.getValue() + " "; in printTestSuiteContent()
354 pkg = pkg + opt.getValue() + " "; in printTestSuiteContent()
356 jar = jar + opt.getValue() + " "; in printTestSuiteContent()
358 ntdPath = ntdPath + opt.getValue() + " "; in printTestSuiteContent()
360 module = module + opt.getValue() + " "; in printTestSuiteContent()
374 testFile = testFile + opt.getValue() + " "; in printTestSuiteContent()
376 pushList = pushList + opt.getValue() + " "; in printTestSuiteContent()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventBasicVerificationTest.java58 assertEquals(true, stats.getValue(EventBasicVerification.PASSED_KEY)); in testVerify()
59 assertEquals(20, (long) stats.getValue(SensorStats.EVENT_COUNT_KEY)); in testVerify()
60 assertEquals(false, stats.getValue(SensorStats.WRONG_SENSOR_KEY)); in testVerify()
72 assertEquals(false, stats.getValue(EventBasicVerification.PASSED_KEY)); in testVerify()
73 assertEquals(5, (long) stats.getValue(SensorStats.EVENT_COUNT_KEY)); in testVerify()
74 assertEquals(false, stats.getValue(SensorStats.WRONG_SENSOR_KEY)); in testVerify()
88 assertEquals(false, stats.getValue(EventBasicVerification.PASSED_KEY)); in testVerify()
90 assertEquals(0, (long) stats.getValue(SensorStats.EVENT_COUNT_KEY)); in testVerify()
91 assertEquals(true, stats.getValue(SensorStats.WRONG_SENSOR_KEY)); in testVerify()
DEventGapVerificationTest.java85 assertEquals(pass, stats.getValue(EventGapVerification.PASSED_KEY)); in runVerification()
86 assertEquals(indices.length, stats.getValue(SensorStats.EVENT_GAP_COUNT_KEY)); in runVerification()
87 assertNotNull(stats.getValue(SensorStats.EVENT_GAP_POSITIONS_KEY)); in runVerification()
88 int[] actualIndices = (int[]) stats.getValue(SensorStats.EVENT_GAP_POSITIONS_KEY); in runVerification()
DEventOrderingVerificationTest.java101 assertEquals(passed, stats.getValue(EventOrderingVerification.PASSED_KEY)); in verifyStats()
102 assertEquals(count, stats.getValue(SensorStats.EVENT_OUT_OF_ORDER_COUNT_KEY)); in verifyStats()
103 assertNotNull(stats.getValue(SensorStats.EVENT_OUT_OF_ORDER_POSITIONS_KEY)); in verifyStats()
107 int[] primitiveIndices = (int[]) stats.getValue( in getIndices()
DTimestampClockSourceVerificationTest.java182 assertEquals(pass, stats.getValue(TimestampClockSourceVerification.PASSED_KEY)); in runVerification()
183 … assertEquals(indices.length, stats.getValue(SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_COUNT_KEY)); in runVerification()
184 if (0 != (Integer) stats.getValue(SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_COUNT_KEY)) { in runVerification()
185 assertNotNull(stats.getValue(SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_POSITIONS_KEY)); in runVerification()
188 …int[] actualIndices = (int[]) stats.getValue(SensorStats.EVENT_TIME_WRONG_CLOCKSOURCE_POSITIONS_KE… in runVerification()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DTestModuleConfigHandler.java66 if (null != attributes.getValue(DESCRIPTION_TAG)) { in startElement()
67 mTestModuleConfig.setDescription(attributes.getValue(DESCRIPTION_TAG)); in startElement()
74 mTestCase.setTestClass(attributes.getValue(CLASS_TAG)); in startElement()
78 mTargetPreparer.setTestClass(attributes.getValue(CLASS_TAG)); in startElement()
82 option.setName(attributes.getValue(NAME_TAG)); in startElement()
83 option.setValue(attributes.getValue(VALUE_TAG)); in startElement()
84 String keyStr = attributes.getValue(KEY_TAG); in startElement()
92 mTestModuleConfig.addTestJars(option.getValue()); in startElement()
95 mModuleName = option.getValue(); in startElement()
101 mTestModuleConfig.addTestFileNames(option.getValue()); in startElement()
DXmlHandler.java88 mPermissionsBuilder.setName(attributes.getValue(NAME_TAG)); in startElement()
94 eleBuilder.setValue(attributes.getValue(GID_TAG)); in startElement()
100 mPermissionsBuilder.setName(attributes.getValue(NAME_TAG)); in startElement()
101 String uid = attributes.getValue(UID_TAG); in startElement()
111 mPermissionsBuilder.setName(attributes.getValue(NAME_TAG)); in startElement()
112 String file = attributes.getValue(FILE_TAG); in startElement()
122 mPermissionsBuilder.setName(attributes.getValue(PACKAGE_TAG)); in startElement()
126 mPermissionsBuilder.setName(attributes.getValue(PACKAGE_TAG)); in startElement()
130 mPermissionsBuilder.setName(attributes.getValue(NAME_TAG)); in startElement()
131 String version = attributes.getValue(VERSION_TAG); in startElement()
DDexParser.java194 elementBuilder.setValue(getEncodedValueString(ele.getValue())); in getAnnotationList()
205 return String.format("0x%X", ((ByteEncodedValue) encodedValue).getValue()); in getEncodedValueString()
207 return String.format("%d", ((ShortEncodedValue) encodedValue).getValue()); in getEncodedValueString()
209 return String.format("%c", ((CharEncodedValue) encodedValue).getValue()); in getEncodedValueString()
211 return String.format("%d", ((IntEncodedValue) encodedValue).getValue()); in getEncodedValueString()
213 return String.format("%d", ((LongEncodedValue) encodedValue).getValue()); in getEncodedValueString()
215 return String.format("%f", ((FloatEncodedValue) encodedValue).getValue()); in getEncodedValueString()
217 return String.format("%f", ((DoubleEncodedValue) encodedValue).getValue()); in getEncodedValueString()
219 return ((StringEncodedValue) encodedValue).getValue(); in getEncodedValueString()
223 return Boolean.toString(((BooleanEncodedValue) encodedValue).getValue()); in getEncodedValueString()
[all …]
/cts/tests/translation/src/android/translation/cts/unittests/
DViewTranslationResponseTest.java55 assertThat(request.getValue("sample id").getText()).isEqualTo("sample text"); in testBuilder_validAddText()
66 assertThat(request.getValue("sample id").getStatusCode()) in testBuilder_validAddError()
81 assertThat(request.getValue("sample id").getText().toString()).isEqualTo("sample text"); in testGetValue_invalidId()
83 assertThrows(IllegalArgumentException.class, () -> request.getValue("something")); in testGetValue_invalidId()
84 assertThrows(NullPointerException.class, () -> request.getValue(null)); in testGetValue_invalidId()
103 assertThat(request.getValue("sample id").getText().toString()).isEqualTo("sample text"); in testBuilder_multipleResults()
104 assertThat(request.getValue("id2").getText().toString()).isEqualTo("text2"); in testBuilder_multipleResults()
105 assertThat(request.getValue("id3").getStatusCode()) in testBuilder_multipleResults()
DViewTranslationRequestTest.java53 assertThat(request.getValue("sample id").getText()).isEqualTo("sample text"); in testBuilderVirtualAutofillId_validSetText()
66 assertThat(request.getValue("sample id").getText()).isEqualTo("sample text"); in testBuilder_validSetText()
81 assertThat(request.getValue("sample id").getText()).isEqualTo("text2"); in testBuilder_setTextTwice()
94 assertThat(request.getValue("sample id").getText()).isEqualTo("sample text"); in testGetValue_invalidId()
96 assertThrows(IllegalArgumentException.class, () -> request.getValue("something")); in testGetValue_invalidId()
97 assertThrows(NullPointerException.class, () -> request.getValue(null)); in testGetValue_invalidId()
112 assertThat(request.getValue("sample id").getText()).isEqualTo("sample text"); in testBuilder_multipleTexts()
113 assertThat(request.getValue("id2").getText()).isEqualTo("text2"); in testBuilder_multipleTexts()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DPeripheralProfile.java159 attribs.mChannelCounts = parseIntList(xmlAtts.getValue(kAttr_ChanCounts)); in parseProfileAttributes()
160 attribs.mChannelPositionMasks = parseIntList(xmlAtts.getValue(kAttr_ChanPosMasks)); in parseProfileAttributes()
161 attribs.mChannelIndexMasks = parseIntList(xmlAtts.getValue(kAttr_ChanIndexMasks)); in parseProfileAttributes()
162 attribs.mEncodings = parseIntList(xmlAtts.getValue(kAttr_Encodings)); in parseProfileAttributes()
163 attribs.mSampleRates = parseIntList(xmlAtts.getValue(kAttr_SampleRates)); in parseProfileAttributes()
168 buttonAttributes.mHasBtnA = Integer.parseInt(xmlAtts.getValue(kAttr_HasBtnA)) == 1; in parseProfileButtons()
169 buttonAttributes.mHasBtnB = Integer.parseInt(xmlAtts.getValue(kAttr_HasBtnB)) == 1; in parseProfileButtons()
170 buttonAttributes.mHasBtnC = Integer.parseInt(xmlAtts.getValue(kAttr_HasBtnC)) == 1; in parseProfileButtons()
179 mProfileName = atts.getValue(kAttr_ProfileName); in startElement()
180 mProfileDescription = atts.getValue(kAttr_ProfileDescription); in startElement()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DChecksumsTest.java252 assertEquals(bytesToHexString(checksums[0].getValue()), TEST_FIXED_APK_V2_SHA256); in testFixedDefaultChecksums()
282 assertEquals(bytesToHexString(checksums[0].getValue()), in testFixedSha512DefaultChecksums()
335 assertEquals(bytesToHexString(checksums[0].getValue()), in testFixedAllChecksums()
338 assertEquals(bytesToHexString(checksums[1].getValue()), TEST_FIXED_APK_MD5); in testFixedAllChecksums()
340 assertEquals(bytesToHexString(checksums[2].getValue()), in testFixedAllChecksums()
343 assertEquals(bytesToHexString(checksums[3].getValue()), TEST_FIXED_APK_SHA256); in testFixedAllChecksums()
345 assertEquals(bytesToHexString(checksums[4].getValue()), in testFixedAllChecksums()
349 assertEquals(bytesToHexString(checksums[5].getValue()), TEST_FIXED_APK_V2_SHA256); in testFixedAllChecksums()
351 assertEquals(bytesToHexString(checksums[6].getValue()), in testFixedAllChecksums()
370 assertEquals(bytesToHexString(checksums[0].getValue()), in testFixedV1AllChecksums()
[all …]
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/
DAsn1Choice.java49 int getValue() {
75 protected abstract Asn1Object getValue(); in getValue() method in Asn1Choice
124 valueLen = getValue().getBerValueLength(); in getBerValueLength()
126 valueLen = getValue().getBerLength(); in getBerValueLength()
130 return getValue().getBerLength(); in getBerValueLength()
142 Asn1Object value = getValue(); in encodeBerValue()
163 Asn1Object element = getValue(); in decodeBerValue()
226 Asn1Object value = getValue(); in encodePerImpl()
/cts/tests/tests/text/src/android/text/cts/
DAnnotationTest.java53 assertEquals(VALUE1, mAnnotation.getValue()); in testGetValue()
55 assertEquals(VALUE2, mAnnotation.getValue()); in testGetValue()
83 assertEquals(out.getValue(), mAnnotation.getValue()); in testWriteToParcel()
/cts/tests/tests/widget/src/android/widget/cts/
DGridLayoutTest.java63 abstract int getValue(View v); in getValue() method in GridLayoutTest.Alignment
74 int getValue(View v) {
80 int getValue(View v) {
86 int getValue(View v) {
92 int getValue(View v) {
101 int getValue(View v) {
107 int getValue(View v) {
113 int getValue(View v) {
119 int getValue(View v) {
125 int getValue(View v) {
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java81 assertEquals(1, completionInfoCaptor.getValue().getId()); in testInputConnectionWrapper()
82 assertEquals(1, completionInfoCaptor.getValue().getPosition()); in testInputConnectionWrapper()
83 assertEquals("testText", completionInfoCaptor.getValue().getText()); in testInputConnectionWrapper()
89 assertEquals(0, correctionInfoCaptor.getValue().getOffset()); in testInputConnectionWrapper()
90 assertEquals("oldText", correctionInfoCaptor.getValue().getOldText()); in testInputConnectionWrapper()
91 assertEquals("newText", correctionInfoCaptor.getValue().getNewText()); in testInputConnectionWrapper()
136 assertEquals(KeyEvent.ACTION_DOWN, keyEventCaptor.getValue().getAction()); in testInputConnectionWrapper()
137 assertEquals(KeyEvent.KEYCODE_0, keyEventCaptor.getValue().getKeyCode()); in testInputConnectionWrapper()
DExtractedTextTest.java107 assertEquals(EXPECTED_TEXT_ANNOTATION.getValue(), textAnnotation.getValue()); in assertTestInstance()
119 assertEquals(EXPECTED_HINT_ANNOTATION.getValue(), hintAnnotation.getValue()); in assertTestInstance()
/cts/tests/tests/animation/src/android/animation/cts/
DKeyframeTest.java61 assertEquals(keyFrame.getValue(),10); in testOfIntValue()
68 assertEquals(9.0f, (float) keyFrame.getValue(), 0.0f); in testOfFloatValue()
83 assertEquals(keyFrame.getValue(), value); in testOfObjectValue()
114 Float actualValue = (Float) keyFrame.getValue(); in testSetValue()
/cts/tests/security/src/android/keystore/cts/
DCborUtils.java45 return ((Number) item).getValue().intValue(); in getInt()
50 return ((Number) item).getValue().intValue(); in getInt()
55 return ((Number) item).getValue().longValue(); in getLong()
62 result.add(((Number) item).getValue().intValue()); in getIntSet()
93 long epochMillis = ((Number) item).getValue().longValue(); in getDate()
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextClassificationSessionIdTest.java46 public void getValue() { in getValue() method in TextClassificationSessionIdTest
61 assertThat(sessionId.getValue()).isNotEmpty(); in getValue()
/cts/tests/app/src/android/app/cts/
DFragmentReceiveResultTest.java62 final String data = captor.getValue() in testStartActivityForResultOk()
74 final String data = captor.getValue() in testStartActivityForResultCanceled()
86 final String data = captor.getValue() in testStartIntentSenderForResultOk()
98 final String data = captor.getValue() in testStartIntentSenderForResultCanceled()

12345678910>>...15