/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | ResourcesLoaderValuesTest.kt | 261 private fun getValue(c: Context = context) = parameter.getValue(c.resources) in <lambda>() method in android.content.res.loader.cts.ResourcesLoaderValuesTest 262 private fun getValue(r: Resources) = parameter.getValue(r) in <lambda>() method 267 val original = getValue() in <lambda>() 289 assertEquals(valueOne, getValue()) in <lambda>() 292 assertEquals(valueTwo, getValue()) in <lambda>() 295 assertEquals(valueTwo, getValue()) in <lambda>() 298 assertEquals(valueOriginal, getValue()) in <lambda>() 310 assertEquals(valueOne, getValue()) in <lambda>() 314 assertEquals(valueTwo, getValue()) in <lambda>() 317 assertEquals(valueTwo, getValue()) in <lambda>() [all …]
|
/cts/tools/cts-api-coverage/src/com/android/cts/ctsprofiles/ |
D | ClassProfile.java | 61 mClassType |= ClassType.API.getValue(); in ClassProfile() 82 public int getValue() { in getValue() method in ClassProfile.ClassType 124 mClassType |= classType.getValue(); in addClassType() 151 if (matchAnyTypes(ClassType.ANNOTATION.getValue() | ClassType.API.getValue())) { in isTestClass() 163 return matchAllTypes(ClassType.API.getValue()); in isApiClass() 169 ClassType.ABSTRACT.getValue() | ClassType.INTERFACE.getValue())); in isNonAbstractTestClass() 176 ClassType.JUNIT3.getValue() in testClassResolved() 177 | ClassType.JUNIT4.getValue() in testClassResolved() 178 | ClassType.COMMON.getValue() in testClassResolved() 179 | ClassType.ANNOTATION.getValue() in testClassResolved() [all …]
|
D | MethodProfile.java | 65 public int getValue() { in getValue() method in MethodProfile.MethodType 132 mMethodType |= methodType.getValue(); in addMethodType() 138 MethodType.JUNIT3.getValue() in testMethodResolved() 139 | MethodType.JUNIT4.getValue() in testMethodResolved() 140 | MethodType.COMMON.getValue()); in testMethodResolved() 155 return matchAllTypes(MethodType.JUNIT3.getValue()); in isJunit3Method() 167 return matchAllTypes(MethodType.JUNIT4.getValue()); in isJunit4Method()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicommon/ |
D | ApiXmlHandler.java | 67 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 public static String getValue(Attributes attributes, String key) { in getValue() method in ApiXmlHandler 140 return attributes.getValue(key) in getValue() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | EventBasicVerificationTest.java | 58 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()
|
D | EventGapVerificationTest.java | 85 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()
|
D | EventOrderingVerificationTest.java | 101 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()
|
D | TimestampClockSourceVerificationTest.java | 182 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/ |
D | TestModuleConfigHandler.java | 66 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()
|
D | XmlHandler.java | 88 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()
|
D | DexParser.java | 209 elementBuilder.setValue(getEncodedValueString(ele.getValue())); in getAnnotationList() 220 return String.format("0x%X", ((ByteEncodedValue) encodedValue).getValue()); in getEncodedValueString() 222 return String.format("%d", ((ShortEncodedValue) encodedValue).getValue()); in getEncodedValueString() 224 return String.format("%c", ((CharEncodedValue) encodedValue).getValue()); in getEncodedValueString() 226 return String.format("%d", ((IntEncodedValue) encodedValue).getValue()); in getEncodedValueString() 228 return String.format("%d", ((LongEncodedValue) encodedValue).getValue()); in getEncodedValueString() 230 return String.format("%f", ((FloatEncodedValue) encodedValue).getValue()); in getEncodedValueString() 232 return String.format("%f", ((DoubleEncodedValue) encodedValue).getValue()); in getEncodedValueString() 234 return ((StringEncodedValue) encodedValue).getValue(); in getEncodedValueString() 238 return Boolean.toString(((BooleanEncodedValue) encodedValue).getValue()); in getEncodedValueString() [all …]
|
/cts/tests/translation/src/android/translation/cts/unittests/ |
D | ViewTranslationResponseTest.java | 55 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()
|
D | ViewTranslationRequestTest.java | 53 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/ |
D | PeripheralProfile.java | 159 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/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | TestModuleConfigHandler.java | 64 if (null != attributes.getValue(DESCRIPTION_TAG)) { in startElement() 65 mFileMetadata.setDescription(attributes.getValue(DESCRIPTION_TAG)); in startElement() 71 mTestCase.setTestClass(attributes.getValue(CLASS_TAG)); in startElement() 74 mTargetPreparer.setTestClass(attributes.getValue(CLASS_TAG)); in startElement() 77 option.setName(attributes.getValue(NAME_TAG)); in startElement() 78 option.setValue(attributes.getValue(VALUE_TAG)); in startElement() 79 String keyStr = attributes.getValue(KEY_TAG); in startElement() 86 mModuleName = option.getValue(); in startElement()
|
D | CtsReportHandler.java | 60 mTestSuiteBld.setName(attributes.getValue(NAME_TAG)); in startElement() 61 mTestPackageBld.setName(attributes.getValue(NAME_TAG)); in startElement() 63 if (null != attributes.getValue(NAME_TAG)) { in startElement() 64 mTestPackageBld.setAbi(attributes.getValue(ABI_TAG)); in startElement() 68 mTestCaseBld.setName(attributes.getValue(NAME_TAG)); in startElement() 72 testBld.setName(attributes.getValue(NAME_TAG)); in startElement() 73 testBld.setResult(attributes.getValue(RESULT_TAG)); in startElement()
|
D | DexDepsXmlHandler.java | 59 mCurrentPackageName = ApiXmlHandler.getValue(attributes, "name"); in startElement() 62 mCurrentClassName = ApiXmlHandler.getValue(attributes, "name"); in startElement() 66 mCurrentMethodName = ApiXmlHandler.getValue(attributes, "name"); in startElement() 69 mCurrentParameterTypes.add(ApiXmlHandler.getValue(attributes, "type")); in startElement()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/ |
D | Asn1Choice.java | 49 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/content/src/android/content/pm/cts/ |
D | ChecksumsTest.java | 294 assertEquals(bytesToHexString(checksums[0].getValue()), TEST_FIXED_APK_V2_SHA256); in testFixedDefaultChecksums() 326 assertEquals(bytesToHexString(checksums[0].getValue()), in testFixedSha512DefaultChecksums() 349 assertEquals(bytesToHexString(checksums[0].getValue()), in testFixedFSVerityDefaultChecksums() 351 assertEquals(bytesToHexString(checksums[1].getValue()), in testFixedFSVerityDefaultChecksums() 354 assertEquals(bytesToHexString(checksums[0].getValue()), in testFixedFSVerityDefaultChecksums() 356 assertEquals(bytesToHexString(checksums[1].getValue()), in testFixedFSVerityDefaultChecksums() 383 assertEquals(bytesToHexString(checksums[0].getValue()), in testFixedFSVerityDefaultChecksumsIncremental() 386 assertEquals(bytesToHexString(checksums[0].getValue()), in testFixedFSVerityDefaultChecksumsIncremental() 448 assertEquals(bytesToHexString(checksums[0].getValue()), in testFixedAllChecksums() 451 assertEquals(bytesToHexString(checksums[1].getValue()), TEST_FIXED_APK_MD5); in testFixedAllChecksums() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AnnotationTest.java | 53 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/ |
D | GridLayoutTest.java | 66 abstract int getValue(View v); in getValue() method in GridLayoutTest.Alignment 77 int getValue(View v) { 83 int getValue(View v) { 89 int getValue(View v) { 95 int getValue(View v) { 104 int getValue(View v) { 110 int getValue(View v) { 116 int getValue(View v) { 122 int getValue(View v) { 128 int getValue(View v) { [all …]
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | KeyframeTest.java | 61 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/ |
D | CborUtils.java | 45 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/inputmethod/src/android/view/inputmethod/cts/ |
D | InputConnectionWrapperTest.java | 88 assertEquals(1, completionInfoCaptor.getValue().getId()); in testInputConnectionWrapper() 89 assertEquals(1, completionInfoCaptor.getValue().getPosition()); in testInputConnectionWrapper() 90 assertEquals("testText", completionInfoCaptor.getValue().getText()); in testInputConnectionWrapper() 96 assertEquals(0, correctionInfoCaptor.getValue().getOffset()); in testInputConnectionWrapper() 97 assertEquals("oldText", correctionInfoCaptor.getValue().getOldText()); in testInputConnectionWrapper() 98 assertEquals("newText", correctionInfoCaptor.getValue().getNewText()); in testInputConnectionWrapper() 143 assertEquals(KeyEvent.ACTION_DOWN, keyEventCaptor.getValue().getAction()); in testInputConnectionWrapper() 144 assertEquals(KeyEvent.KEYCODE_0, keyEventCaptor.getValue().getKeyCode()); in testInputConnectionWrapper()
|
/cts/tests/videocodec/src/android/videocodec/cts/ |
D | VideoEncoderInput.java | 73 if (element.getValue() == null) continue; in getRawResource() 74 int distance = manhattanDistance(cfg.mWidth, cfg.mHeight, element.getValue().mWidth, in getRawResource() 75 element.getValue().mHeight); in getRawResource()
|