/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | OverrideApnTest.java | 99 assertEquals(TEST_OPERATOR_NUMERIC, apnList.get(0).getOperatorNumeric()); in testAddGetRemoveOverrideApn() 100 assertEquals(TEST_ENTRY_NAME, apnList.get(0).getEntryName()); in testAddGetRemoveOverrideApn() 101 assertEquals(TEST_APN_NAME, apnList.get(0).getApnName()); in testAddGetRemoveOverrideApn() 102 assertEquals(getProxyInetAddress(TEST_PROXY_ADDRESS), apnList.get(0).getProxyAddress()); in testAddGetRemoveOverrideApn() 103 assertEquals(TEST_PROXY_ADDRESS, apnList.get(0).getProxyAddressAsString()); in testAddGetRemoveOverrideApn() 104 assertEquals(TEST_PROXY_PORT, apnList.get(0).getProxyPort()); in testAddGetRemoveOverrideApn() 105 assertEquals(TEST_MMSC, apnList.get(0).getMmsc()); in testAddGetRemoveOverrideApn() 106 assertEquals(getProxyInetAddress(TEST_PROXY_ADDRESS), apnList.get(0).getMmsProxyAddress()); in testAddGetRemoveOverrideApn() 107 assertEquals(TEST_PROXY_ADDRESS, apnList.get(0).getMmsProxyAddressAsString()); in testAddGetRemoveOverrideApn() 108 assertEquals(TEST_PROXY_PORT, apnList.get(0).getMmsProxyPort()); in testAddGetRemoveOverrideApn() [all …]
|
/cts/tests/tests/view/src/android/view/inspector/cts/ |
D | IntFlagMappingTest.java | 48 assertEmpty(mapping.get(0)); in testNonExclusiveFlags() 49 assertEquals(setOf("ONE"), mapping.get(1)); in testNonExclusiveFlags() 50 assertEquals(setOf("TWO"), mapping.get(2)); in testNonExclusiveFlags() 51 assertEquals(setOf("ONE", "TWO"), mapping.get(3)); in testNonExclusiveFlags() 52 assertEmpty(mapping.get(4)); in testNonExclusiveFlags() 61 assertEmpty(mapping.get(0)); in testMutuallyExclusiveFlags() 62 assertEquals(setOf("ONE"), mapping.get(1)); in testMutuallyExclusiveFlags() 63 assertEquals(setOf("TWO"), mapping.get(2)); in testMutuallyExclusiveFlags() 64 assertEmpty(mapping.get(3)); in testMutuallyExclusiveFlags() 65 assertEmpty(mapping.get(4)); in testMutuallyExclusiveFlags() [all …]
|
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/ |
D | AppSearchSessionCtsTestBase.java | 89 mDb1 = createSearchSession(DB_NAME_1).get(); in setUp() 90 mDb2 = createSearchSession(DB_NAME_2).get(); in setUp() 104 mDb1.setSchema(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup() 105 mDb2.setSchema(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup() 127 mDb1.setSchema(new SetSchemaRequest.Builder().addSchemas(emailSchema).build()).get(); in testSetSchema() 133 .get(); in testSetSchema_Failure() 145 .get()) in testSetSchema_Failure() 156 () -> mDb1.setSchema(new SetSchemaRequest.Builder().build()).get()) in testSetSchema_Failure() 187 .get(); in testSetSchema_updateVersion() 189 Set<AppSearchSchema> actualSchemaTypes = mDb1.getSchema().get().getSchemas(); in testSetSchema_updateVersion() [all …]
|
/cts/apps/CameraITS/utils/ |
D | camera_properties_utils.py | 45 return props.get('android.info.supportedHardwareLevel') == 2 57 return props.get('android.info.supportedHardwareLevel') == 0 69 return (props.get('android.info.supportedHardwareLevel') >= 1 and 70 props.get('android.info.supportedHardwareLevel') != 2) 82 return props.get('android.info.supportedHardwareLevel') == 3 94 return 1 in props.get('android.request.availableCapabilities', []) 106 return 2 in props.get('android.request.availableCapabilities', []) 118 return 3 in props.get('android.request.availableCapabilities', []) 133 return props.get('android.sensor.info.timestampSource') == 1 145 return 11 in props.get('android.request.availableCapabilities', []) [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | EventLogTest.java | 57 assertEquals(ANSWER_TAG, events.get(0).getTag()); in testWriteEvent() 58 assertEquals(12345, events.get(0).getData()); in testWriteEvent() 59 assertEquals(23456L, events.get(1).getData()); in testWriteEvent() 60 assertEquals(42.4242f, events.get(2).getData()); in testWriteEvent() 61 assertEquals("Test", events.get(3).getData()); in testWriteEvent() 63 Object[] arr = (Object[]) events.get(4).getData(); in testWriteEvent() 95 String val0 = (String) events.get(0).getData(); in testWriteEventWithOversizeValueLimitElision() 96 assertNull("getData on object 0 raised a WTF", events.get(0).getLastError()); in testWriteEventWithOversizeValueLimitElision() 100 Object[] arr1 = (Object[]) events.get(1).getData(); in testWriteEventWithOversizeValueLimitElision() 101 assertNull("getData on object 1 raised a WTF", events.get(1).getLastError()); in testWriteEventWithOversizeValueLimitElision() [all …]
|
D | PropertyTest.java | 46 assertEquals(getFloatProp(), RAW_FLOAT_PROP.get(this), 0f); in testProperty() 47 assertEquals(getPointProp(), RAW_POINT_PROP.get(this)); in testProperty() 50 assertEquals(mFloatValue, RAW_FLOAT_PROP.get(this), 0f); in testProperty() 53 assertEquals(testPointValue, RAW_POINT_PROP.get(this)); in testProperty() 59 assertEquals(getFloatProp(), FLOAT_PROP.get(this), 0f); in testFloatProperty() 62 assertEquals(5f, FLOAT_PROP.get(this), 0f); in testFloatProperty() 65 assertEquals(10f, FLOAT_PROP.get(this), 0f); in testFloatProperty() 71 assertEquals(getIntProp(), INT_PROP.get(this).intValue()); in testIntProperty() 74 assertEquals(5, INT_PROP.get(this).intValue()); in testIntProperty() 77 assertEquals(10, INT_PROP.get(this).intValue()); in testIntProperty() [all …]
|
D | SparseLongArrayTest.java | 55 assertEquals(i, sparseArray.get(KEYS[i])); in testSparseArrayWithDefaultCapacity() 66 assertEquals(oldValue, sparseArray.get(existKey)); in testSparseArrayWithDefaultCapacity() 69 assertEquals(newValue, sparseArray.get(existKey)); in testSparseArrayWithDefaultCapacity() 73 sparseArray.get(NON_EXISTED_KEY, VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity() 74 assertEquals(0L, sparseArray.get(NON_EXISTED_KEY)); // the default value is 0 in testSparseArrayWithDefaultCapacity() 85 assertEquals(VALUES[1], sparseArray.get(KEYS[1])); in testSparseArrayWithDefaultCapacity() 89 sparseArray.get(KEYS[1], VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity() 93 assertEquals(VALUES[2], sparseArray.get(KEYS[2])); in testSparseArrayWithDefaultCapacity() 97 sparseArray.get(KEYS[2], VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity() 117 assertEquals(VALUES[i], sparseArray.get(KEYS[i])); in testSparseArrayWithSpecifiedCapacity() [all …]
|
D | SparseIntArrayTest.java | 49 assertEquals(VALUES[i], sparseIntArray.get(KEYS[i])); in testSparseIntArrayWithDefaultCapacity() 60 assertEquals(oldValue, sparseIntArray.get(existKey)); in testSparseIntArrayWithDefaultCapacity() 63 assertEquals(newValue, sparseIntArray.get(existKey)); in testSparseIntArrayWithDefaultCapacity() 67 sparseIntArray.get(NON_EXISTED_KEY, VALUE_FOR_NON_EXISTED_KEY)); in testSparseIntArrayWithDefaultCapacity() 68 assertEquals(0, sparseIntArray.get(NON_EXISTED_KEY)); // the default value is 0 in testSparseIntArrayWithDefaultCapacity() 78 assertEquals(VALUES[1], sparseIntArray.get(KEYS[1])); in testSparseIntArrayWithDefaultCapacity() 82 sparseIntArray.get(KEYS[1], VALUE_FOR_NON_EXISTED_KEY)); in testSparseIntArrayWithDefaultCapacity() 99 assertEquals(VALUES[i], sparseIntArray.get(KEYS[i])); in testSparseIntArrayWithSpecifiedCapacity() 109 assertEquals(oldValue, sparseIntArray.get(existKey)); in testSparseIntArrayWithSpecifiedCapacity() 112 assertEquals(newValue, sparseIntArray.get(existKey)); in testSparseIntArrayWithSpecifiedCapacity() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | MockConnection.java | 69 if (mInvokeCounterMap.get(ON_ANSWER_CALLED) != null) { in onAnswer() 70 mInvokeCounterMap.get(ON_ANSWER_CALLED).invoke(); in onAnswer() 82 if (mInvokeCounterMap.get(ON_ANSWER_VIDEO_CALLED) != null) { in onAnswer() 83 mInvokeCounterMap.get(ON_ANSWER_VIDEO_CALLED).invoke(videoState); in onAnswer() 189 if (mInvokeCounterMap.get(ON_POST_DIAL_WAIT) != null) { in onPostDialContinue() 190 mInvokeCounterMap.get(ON_POST_DIAL_WAIT).invoke(proceed); in onPostDialContinue() 197 if (mInvokeCounterMap.get(ON_CALL_EVENT) != null) { in onCallEvent() 198 mInvokeCounterMap.get(ON_CALL_EVENT).invoke(event, extras); in onCallEvent() 205 if (mInvokeCounterMap.get(ON_PULL_EXTERNAL_CALL) != null) { in onPullExternalCall() 206 mInvokeCounterMap.get(ON_PULL_EXTERNAL_CALL).invoke(); in onPullExternalCall() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/lights/cts/ |
D | LightsManagerTest.java | 95 .addLight(mLights.get(0), STATE_RED) in testControlSingleLight() 99 assertThat(mManager.getLightState(mLights.get(0)).getColor()).isEqualTo(ON_RED); in testControlSingleLight() 109 initialColors[i] = mManager.getLightState(mLights.get(i)).getColor(); in testControlMultipleLights() 115 .addLight(mLights.get(0), new LightState(0xffaaaaff)) in testControlMultipleLights() 116 .addLight(mLights.get(1), new LightState(0xffbbbbff)) in testControlMultipleLights() 120 assertThat(mManager.getLightState(mLights.get(0)).getColor()).isEqualTo(0xffaaaaff); in testControlMultipleLights() 121 assertThat(mManager.getLightState(mLights.get(1)).getColor()).isEqualTo(0xffbbbbff); in testControlMultipleLights() 125 assertThat(mManager.getLightState(mLights.get(i)).getColor()).isEqualTo( in testControlMultipleLights() 135 int initialColor = mManager.getLightState(mLights.get(0)).getColor(); in testControlLights_onlyEffectiveForLifetimeOfClient() 139 session.requestLights(new Builder().addLight(mLights.get(0), STATE_TAN).build()); in testControlLights_onlyEffectiveForLifetimeOfClient() [all …]
|
/cts/tests/tests/media/libmediandkjni/ |
D | native_media_decoder_source.cpp | 87 …int err = AMediaExtractor_setDataSourceFd(mEx.get(), sourceFileFd, sourceFileOffset, sourceFileSiz… in setDataSourceFd() 95 int numtracks = AMediaExtractor_getTrackCount(mEx.get()); in setDataSourceFd() 97 AMediaFormat *format = AMediaExtractor_getTrackFormat(mEx.get(), i); in setDataSourceFd() 127 int t = AMediaExtractor_getSampleTrackIndex(mEx.get()); in run() 140 ssize_t bufidx = AMediaCodec_dequeueInputBuffer(mDec.get(), 5000); in run() 143 uint8_t *buf = AMediaCodec_getInputBuffer(mDec.get(), bufidx, &bufsize); in run() 144 int sampleSize = AMediaExtractor_readSampleData(mEx.get(), buf, bufsize); in run() 156 AMediaCodec_queueInputBuffer(mDec.get(), bufidx, 0, sampleSize, timeStampUs, flags); in run() 158 AMediaExtractor_advance(mEx.get()); in run() 163 int status = AMediaCodec_dequeueOutputBuffer(mDec.get(), &info, 1000); in run() [all …]
|
/cts/hostsidetests/jvmti/tagging/app/src/android/jvmti/cts/ |
D | JvmtiTaggingTest.java | 75 if (weak.get() != null) { in testTaggingGC() 100 exp2.add(l.get(1), 1).add(l.get(11), 1).add(l.get(2), 2).add(l.get(12), 2).add(l.get(3), 3) in testGetTaggedObjects() 101 .add(l.get(13), 3).add(l.get(4), 4).add(l.get(14), 4).add(l.get(5), 5) in testGetTaggedObjects() 102 .add(l.get(15), 5).add(l.get(6), 6).add(l.get(16), 6).add(l.get(7), 7) in testGetTaggedObjects() 103 .add(l.get(17), 7).add(l.get(8), 8).add(l.get(18), 8).add(l.get(9), 9) in testGetTaggedObjects() 104 .add(l.get(19), 9); in testGetTaggedObjects() 108 exp3.add(l.get(2), 2).add(l.get(12), 2).add(l.get(5), 5).add(l.get(15), 5); in testGetTaggedObjects() 120 exp5.add(l.get(i), 0); in testGetTaggedObjects() 169 Pair p1 = expectations.get(i); in check() 170 Pair p2 = tmp.get(i); in check()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | FillEventHistoryTest.java | 112 assertFillEventForSaveShown(events.get(0), NULL_DATASET_ID); in textContextCommitted_withoutDatasets() 146 assertFillEventForDatasetShown(events.get(0)); in testContextCommitted_idlessDatasets() 147 assertFillEventForDatasetSelected(events.get(1), NULL_DATASET_ID); in testContextCommitted_idlessDatasets() 162 assertFillEventForDatasetShown(events.get(0)); in testContextCommitted_idlessDatasets() 163 assertFillEventForDatasetSelected(events.get(1), NULL_DATASET_ID); in testContextCommitted_idlessDatasets() 164 assertFillEventForDatasetShown(events.get(2)); in testContextCommitted_idlessDatasets() 200 assertFillEventForDatasetShown(events.get(0)); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored() 201 assertFillEventForDatasetSelected(events.get(1), NULL_DATASET_ID); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored() 215 assertFillEventForDatasetShown(events.get(0)); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored() 216 assertFillEventForDatasetSelected(events.get(1), NULL_DATASET_ID); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | DataSpace.java | 44 if (cs == ColorSpace.get(Named.DISPLAY_P3)) { in fromColorSpace() 47 if (cs == ColorSpace.get(Named.BT2020)) { in fromColorSpace() 50 if (cs == ColorSpace.get(Named.ADOBE_RGB)) { in fromColorSpace() 53 if (cs == ColorSpace.get(Named.BT709)) { in fromColorSpace() 56 if (cs == ColorSpace.get(Named.DCI_P3)) { in fromColorSpace() 60 if (cs == ColorSpace.get(Named.SRGB)) { in fromColorSpace() 63 if (cs == ColorSpace.get(Named.EXTENDED_SRGB)) { in fromColorSpace() 67 if (cs == ColorSpace.get(Named.LINEAR_SRGB)) { in fromColorSpace() 70 if (cs == ColorSpace.get(Named.LINEAR_EXTENDED_SRGB)) { in fromColorSpace()
|
D | ColorSpaceTest.java | 78 ColorSpace colorSpace = ColorSpace.get(named); in testNamedColorSpaces() 147 ColorSpace cs = ColorSpace.get(ColorSpace.Named.SRGB); in testRanges() 165 cs = ColorSpace.get(ColorSpace.Named.CIE_LAB); in testRanges() 183 cs = ColorSpace.get(ColorSpace.Named.CIE_XYZ); in testRanges() 308 assertEquals(3, ColorSpace.get(ColorSpace.Named.SRGB).getComponentCount()); in testGetComponentCount() 309 assertEquals(3, ColorSpace.get(ColorSpace.Named.LINEAR_SRGB).getComponentCount()); in testGetComponentCount() 310 assertEquals(3, ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB).getComponentCount()); in testGetComponentCount() 311 assertEquals(3, ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB).getComponentCount()); in testGetComponentCount() 312 assertEquals(3, ColorSpace.get(ColorSpace.Named.DISPLAY_P3).getComponentCount()); in testGetComponentCount() 313 assertEquals(3, ColorSpace.get(ColorSpace.Named.CIE_LAB).getComponentCount()); in testGetComponentCount() [all …]
|
D | Color_ColorLongTest.java | 51 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testRed() 59 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testGreen() 67 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testBlue() 75 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testAlpha() 83 ColorSpace srgb = ColorSpace.get(Named.SRGB); in testColorSpace() 84 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testColorSpace() 102 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testIsSrgb() 113 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testIsWideGamut() 124 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testIsInColorSpace() 132 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); in testValueOf() [all …]
|
/cts/tests/appsearch/src/com/android/cts/appsearch/app/ |
D | GlobalSearchSessionPlatformCtsTest.java | 130 .get(); in setUp() 141 mDb.setSchema(new SetSchemaRequest.Builder().setForceOverride(true).build()).get(); in cleanup() 150 .get(); in testNoPackageAccess_default() 173 .get(); in testNoPackageAccess_wrongPackageName() 193 .get(); in testNoPackageAccess_wrongCertificate() 213 .get(); in testAllowPackageAccess() 238 .get(); in testAllowMultiplePackageAccess() 259 .get(); in testNoPackageAccess_revoked() 276 .get(); in testNoPackageAccess_revoked() 293 .get(); in testNoPackageAccess_revoked() [all …]
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskProcess.cpp | 42 if (mSp.get() == NULL) { in run() 65 if (ptrs.get() == NULL) { in prepareParams() 70 bzero(ptrs.get(), N * sizeof(void_ptr)); in prepareParams() 72 if (values.get() == NULL) { in prepareParams() 77 if (buffers.get() == NULL) { in prepareParams() 82 void_ptr* voidPtrs = ptrs.get(); in prepareParams() 83 UniqueValue* valuesPtr = values.get(); in prepareParams() 84 UniqueBuffer* buffersPtr = buffers.get(); in prepareParams() 97 if (buffer.get() == NULL) { in prepareParams() 102 *(buffer.get()) = getTestCase()->findBuffer(list[i].getParamString()); in prepareParams() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/OrderedActivityApp/src/android/appsecurity/cts/orderedactivity/ |
D | PackageResolutionTest.java | 48 resolve.get(0).activityInfo.name); in queryActivityOrdered() 50 resolve.get(1).activityInfo.name); in queryActivityOrdered() 52 resolve.get(2).activityInfo.name); in queryActivityOrdered() 54 resolve.get(3).activityInfo.name); in queryActivityOrdered() 68 resolve.get(0).serviceInfo.name); in queryServiceOrdered() 70 resolve.get(1).serviceInfo.name); in queryServiceOrdered() 72 resolve.get(2).serviceInfo.name); in queryServiceOrdered() 74 resolve.get(3).serviceInfo.name); in queryServiceOrdered() 88 resolve.get(0).activityInfo.name); in queryReceiverOrdered() 90 resolve.get(1).activityInfo.name); in queryReceiverOrdered() [all …]
|
/cts/hostsidetests/angle/src/android/angle/cts/ |
D | CtsAngleDeveloperOptionHostTest.java | 63 setAndValidateAngleDevOptionPkgDriver(pkgName, sDriverGlobalSettingMap.get(driver)); in setAndValidatePkgDriver() 68 driver + ") with method '" + sDriverTestMethodMap.get(driver) + "'"); in setAndValidatePkgDriver() 71 sDriverTestMethodMap.get(driver)); in setAndValidatePkgDriver() 110 sDriverGlobalSettingMap.get(OpenGlDriverChoice.DEFAULT)); in testEnableAngleForAll() 112 sDriverGlobalSettingMap.get(OpenGlDriverChoice.DEFAULT)); in testEnableAngleForAll() 135 sDriverGlobalSettingMap.get(OpenGlDriverChoice.DEFAULT)); in testUseDefaultDriver() 153 sDriverGlobalSettingMap.get(OpenGlDriverChoice.ANGLE)); in testUseAngleDriver() 171 sDriverGlobalSettingMap.get(OpenGlDriverChoice.NATIVE)); in testUseNativeDriver() 191 sDriverGlobalSettingMap.get(OpenGlDriverChoice.ANGLE)); in testSettingsLengthMismatch() 255 sDriverGlobalSettingMap.get(OpenGlDriverChoice.ANGLE) + "," + in testMultipleDevOptionsAngleNative() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | JitterVerificationTest.java | 78 assertEquals(1, deltaValues.get(0).longValue()); in testCalculateDelta() 79 assertEquals(1, deltaValues.get(1).longValue()); in testCalculateDelta() 80 assertEquals(1, deltaValues.get(2).longValue()); in testCalculateDelta() 81 assertEquals(1, deltaValues.get(3).longValue()); in testCalculateDelta() 87 assertEquals(0, deltaValues.get(0).longValue()); in testCalculateDelta() 88 assertEquals(2, deltaValues.get(1).longValue()); in testCalculateDelta() 89 assertEquals(2, deltaValues.get(2).longValue()); in testCalculateDelta() 90 assertEquals(0, deltaValues.get(3).longValue()); in testCalculateDelta() 96 assertEquals(1, deltaValues.get(0).longValue()); in testCalculateDelta() 97 assertEquals(3, deltaValues.get(1).longValue()); in testCalculateDelta() [all …]
|
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/ |
D | PlatformInspectableProcessorTest.java | 102 assertEquals(node.getValue(), mPropertyReader.get("value")); in testMapAndReadInt() 135 assertEquals(node.getValue(), mPropertyReader.get("myNamedValue")); in testNamedProperty() 195 assertEquals(node.getValueA(), mPropertyReader.get("valueA")); in testInferredPropertyName() 196 assertEquals(node.isValueB(), mPropertyReader.get("isValueB")); in testInferredPropertyName() 197 assertEquals(node.obtainValueC(), mPropertyReader.get("obtainValueC")); in testInferredPropertyName() 231 assertEquals(node.getValueA(), mPropertyReader.get("valueA")); in testInferredBooleanName() 232 assertEquals(node.isValueB(), mPropertyReader.get("valueB")); in testInferredBooleanName() 233 assertEquals(node.obtainValueC(), mPropertyReader.get("obtainValueC")); in testInferredBooleanName() 270 assertEquals(node.getColorInt(), mPropertyReader.get("colorInt")); in testColorTypeInference() 271 assertEquals(node.getColorLong(), mPropertyReader.get("colorLong")); in testColorTypeInference() [all …]
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationSetTest.java | 96 assertEquals(SHORT_CHILD_DURATION, children.get(0).getDuration()); in testInitialize() 97 assertEquals(MEDIUM_CHILD_DURATION, children.get(1).getDuration()); in testInitialize() 98 assertEquals(LONG_CHILD_DURATION, children.get(2).getDuration()); in testInitialize() 105 assertEquals(ANIMATIONSET_DURATION, children.get(0).getDuration()); in testInitialize() 106 assertEquals(ANIMATIONSET_DURATION, children.get(1).getDuration()); in testInitialize() 107 assertEquals(ANIMATIONSET_DURATION, children.get(2).getDuration()); in testInitialize() 134 children.get(0).setFillAfter(true); in testSetFillAfter() 135 children.get(1).setFillAfter(false); in testSetFillAfter() 142 assertTrue(children.get(i).getFillAfter()); in testSetFillAfter() 152 children.get(0).setFillBefore(true); in testSetFillBefore() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/ |
D | FieldsClassificationTest.java | 218 assertFillEventForFieldsClassification(events.get(0), null); in testMiss_exactMatchAlgorithm() 237 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_exactMatchLast4Algorithm() 255 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "cat", 1); in testHit_exactMatchLast4Algorithm() 274 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_CreditCardAlgorithm() 292 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "card", 1); in testHit_CreditCardAlgorithm() 312 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_useDefaultAlgorithm() 330 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "cat", 1); in testHit_useDefaultAlgorithm() 349 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in simpleHitTest() 367 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "myId", 1); in simpleHitTest() 386 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_sameValueForMultipleCategories() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | KeyboardShortcutGroupTest.java | 107 assertEquals("Additional item", group.getItems().get(newSize - 1).getLabel()); in testAddItem() 121 assertEquals(TEST_ITEMS.get(0).getLabel(), result.getItems().get(0).getLabel()); in testWriteToParcelAndRead() 122 assertEquals(TEST_ITEMS.get(1).getLabel(), result.getItems().get(1).getLabel()); in testWriteToParcelAndRead() 123 assertEquals(TEST_ITEMS.get(0).getKeycode(), result.getItems().get(0).getKeycode()); in testWriteToParcelAndRead() 124 assertEquals(TEST_ITEMS.get(1).getKeycode(), result.getItems().get(1).getKeycode()); in testWriteToParcelAndRead() 125 assertEquals(TEST_ITEMS.get(0).getModifiers(), result.getItems().get(0).getModifiers()); in testWriteToParcelAndRead() 126 assertEquals(TEST_ITEMS.get(1).getModifiers(), result.getItems().get(1).getModifiers()); in testWriteToParcelAndRead()
|