Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 1037) sorted by relevance

12345678910>>...42

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DOverrideApnTest.java99 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/
DIntFlagMappingTest.java48 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/tests/util/src/android/util/cts/
DEventLogTest.java57 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 …]
DPropertyTest.java46 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 …]
DSparseLongArrayTest.java55 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 …]
DSparseIntArrayTest.java49 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 …]
DLongSparseArrayTest.java57 assertEquals(new Integer(i), sparseArray.get(KEYS[i])); in testSparseArrayWithDefaultCapacity()
68 assertEquals(oldValue, sparseArray.get(existKey)); in testSparseArrayWithDefaultCapacity()
71 assertEquals(newValue, sparseArray.get(existKey)); in testSparseArrayWithDefaultCapacity()
75 sparseArray.get(NON_EXISTED_KEY, VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
76 assertNull(sparseArray.get(NON_EXISTED_KEY)); // the default value is null in testSparseArrayWithDefaultCapacity()
91 assertEquals(VALUES[1], sparseArray.get(KEYS[1])); in testSparseArrayWithDefaultCapacity()
95 sparseArray.get(KEYS[1], VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
99 assertEquals(VALUES[2], sparseArray.get(KEYS[2])); in testSparseArrayWithDefaultCapacity()
103 sparseArray.get(KEYS[2], VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
123 assertEquals(VALUES[i], sparseArray.get(KEYS[i])); in testSparseArrayWithSpecifiedCapacity()
[all …]
DSparseArrayTest.java54 assertEquals(new Integer(i), sparseArray.get(KEYS[i])); in testSparseArrayWithDefaultCapacity()
65 assertEquals(oldValue, sparseArray.get(existKey)); in testSparseArrayWithDefaultCapacity()
68 assertEquals(newValue, sparseArray.get(existKey)); in testSparseArrayWithDefaultCapacity()
72 sparseArray.get(NON_EXISTED_KEY, VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
73 assertNull(sparseArray.get(NON_EXISTED_KEY)); // the default value is null in testSparseArrayWithDefaultCapacity()
88 assertEquals(VALUES[1], sparseArray.get(KEYS[1])); in testSparseArrayWithDefaultCapacity()
92 sparseArray.get(KEYS[1], VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
96 assertEquals(VALUES[2], sparseArray.get(KEYS[2])); in testSparseArrayWithDefaultCapacity()
100 sparseArray.get(KEYS[2], VALUE_FOR_NON_EXISTED_KEY)); in testSparseArrayWithDefaultCapacity()
120 assertEquals(VALUES[i], sparseArray.get(KEYS[i])); in testSparseArrayWithSpecifiedCapacity()
[all …]
/cts/tests/tests/media/libmediandkjni/
Dnative_media_decoder_source.cpp87 …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/
DJvmtiTaggingTest.java75 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/tests/hardware/src/android/hardware/lights/cts/
DLightsManagerTest.java93 .setLight(mLights.get(0), new LightState(RED)) in testControlSingleLight()
97 assertThat(mManager.getLightState(mLights.get(0)).getColor()).isEqualTo(RED); in testControlSingleLight()
108 .setLight(mLights.get(0), new LightState(0xffaaaaff)) in testControlMultipleLights()
109 .setLight(mLights.get(1), new LightState(0xffbbbbff)) in testControlMultipleLights()
113 assertThat(mManager.getLightState(mLights.get(0)).getColor()).isEqualTo(0xffaaaaff); in testControlMultipleLights()
114 assertThat(mManager.getLightState(mLights.get(1)).getColor()).isEqualTo(0xffbbbbff); in testControlMultipleLights()
118 assertThat(mManager.getLightState(mLights.get(i)).getColor()).isEqualTo(0x00); in testControlMultipleLights()
128 assertThat(mManager.getLightState(mLights.get(0)).getColor()).isEqualTo(0x00); in testControlLights_onlyEffectiveForLifetimeOfClient()
132 session.setLights(new Builder().setLight(mLights.get(0), new LightState(TAN)).build()); in testControlLights_onlyEffectiveForLifetimeOfClient()
134 assertThat(mManager.getLightState(mLights.get(0)).getColor()).isEqualTo(TAN); in testControlLights_onlyEffectiveForLifetimeOfClient()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DColorSpaceTest.java76 ColorSpace colorSpace = ColorSpace.get(named); in testNamedColorSpaces()
145 ColorSpace cs = ColorSpace.get(ColorSpace.Named.SRGB); in testRanges()
163 cs = ColorSpace.get(ColorSpace.Named.CIE_LAB); in testRanges()
181 cs = ColorSpace.get(ColorSpace.Named.CIE_XYZ); in testRanges()
306 assertEquals(3, ColorSpace.get(ColorSpace.Named.SRGB).getComponentCount()); in testGetComponentCount()
307 assertEquals(3, ColorSpace.get(ColorSpace.Named.LINEAR_SRGB).getComponentCount()); in testGetComponentCount()
308 assertEquals(3, ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB).getComponentCount()); in testGetComponentCount()
309 assertEquals(3, ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB).getComponentCount()); in testGetComponentCount()
310 assertEquals(3, ColorSpace.get(ColorSpace.Named.DISPLAY_P3).getComponentCount()); in testGetComponentCount()
311 assertEquals(3, ColorSpace.get(ColorSpace.Named.CIE_LAB).getComponentCount()); in testGetComponentCount()
[all …]
DColor_ColorLongTest.java51 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 …]
DBitmapColorSpaceTest.java90 ColorSpace requested = ColorSpace.get(e); in createWithColorSpace()
98 ColorSpace sRGB = ColorSpace.get(ColorSpace.Named.SRGB); in createWithColorSpace()
99 ColorSpace extendedSrgb = ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB); in createWithColorSpace()
114 ColorSpace linearRgb = ColorSpace.get(ColorSpace.Named.LINEAR_SRGB); in createWithColorSpace()
115 ColorSpace linearExtendedSrgb = ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB); in createWithColorSpace()
145 ColorSpace sRGB = ColorSpace.get(ColorSpace.Named.SRGB); in createDefaultColorSpace()
163 ColorSpace.get(ColorSpace.Named.CIE_LAB)); in createWithNonRgbColorSpace()
202 assertSame(ColorSpace.get(ColorSpace.Named.SRGB), rotated.getColorSpace()); in createFromSourceWithColorSpace()
221 assertSame(ColorSpace.get(ColorSpace.Named.SRGB), cs); in sRGB()
226 assertSame(ColorSpace.get(ColorSpace.Named.SRGB), cs); in sRGB()
[all …]
/cts/suite/audio_quality/lib/src/task/
DTaskProcess.cpp42 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/tests/autofillservice/src/android/autofillservice/cts/
DFieldsClassificationTest.java205 assertFillEventForFieldsClassification(events.get(0), null); in testMiss_exactMatchAlgorithm()
224 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_exactMatchLast4Algorithm()
242 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "cat", 1); in testHit_exactMatchLast4Algorithm()
262 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_useDefaultAlgorithm()
280 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "cat", 1); in testHit_useDefaultAlgorithm()
299 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in simpleHitTest()
317 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "myId", 1); in simpleHitTest()
336 .set(findAutofillIdByResourceId(contexts.get(0), ID_L1C1))) in testHit_sameValueForMultipleCategories()
354 assertFillEventForFieldsClassification(events.get(0), in testHit_sameValueForMultipleCategories()
356 new FieldClassificationResult(fieldId.get(), in testHit_sameValueForMultipleCategories()
[all …]
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DPlatformInspectableProcessorTest.java102 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/hostsidetests/angle/src/android/angle/cts/
DCtsAngleDeveloperOptionHostTest.java63 setAndValidateAngleDevOptionPkgDriver(pkgName, sDriverGlobalSettingMap.get(driver)); in setAndValidatePkgDriver()
68 driver + ") with method '" + sDriverTestMethodMap.get(driver) + "'"); in setAndValidatePkgDriver()
71 sDriverTestMethodMap.get(driver)); in setAndValidatePkgDriver()
98 sDriverGlobalSettingMap.get(OpenGlDriverChoice.DEFAULT)); in testEnableAngleForAll()
100 sDriverGlobalSettingMap.get(OpenGlDriverChoice.DEFAULT)); in testEnableAngleForAll()
122 sDriverGlobalSettingMap.get(OpenGlDriverChoice.DEFAULT)); in testUseDefaultDriver()
139 sDriverGlobalSettingMap.get(OpenGlDriverChoice.ANGLE)); in testUseAngleDriver()
156 sDriverGlobalSettingMap.get(OpenGlDriverChoice.NATIVE)); in testUseNativeDriver()
175 sDriverGlobalSettingMap.get(OpenGlDriverChoice.ANGLE)); in testSettingsLengthMismatch()
236 sDriverGlobalSettingMap.get(OpenGlDriverChoice.ANGLE) + "," + in testMultipleDevOptionsAngleNative()
[all …]
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationSetTest.java96 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/tests/telecom/src/android/telecom/cts/
DMockConnection.java176 if (mInvokeCounterMap.get(ON_POST_DIAL_WAIT) != null) { in onPostDialContinue()
177 mInvokeCounterMap.get(ON_POST_DIAL_WAIT).invoke(proceed); in onPostDialContinue()
184 if (mInvokeCounterMap.get(ON_CALL_EVENT) != null) { in onCallEvent()
185 mInvokeCounterMap.get(ON_CALL_EVENT).invoke(event, extras); in onCallEvent()
192 if (mInvokeCounterMap.get(ON_PULL_EXTERNAL_CALL) != null) { in onPullExternalCall()
193 mInvokeCounterMap.get(ON_PULL_EXTERNAL_CALL).invoke(); in onPullExternalCall()
200 if (mInvokeCounterMap.get(ON_EXTRAS_CHANGED) != null) { in onExtrasChanged()
201 mInvokeCounterMap.get(ON_EXTRAS_CHANGED).invoke(extras); in onExtrasChanged()
208 if (mInvokeCounterMap.get(ON_START_RTT) != null) { in onStartRtt()
209 mInvokeCounterMap.get(ON_START_RTT).invoke(rttTextStream); in onStartRtt()
[all …]
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java100 assertThat(resolveInfo.get(0).activityInfo.packageName, in testQuery()
102 assertThat(resolveInfo.get(0).activityInfo.name, in testQuery()
104 assertThat(resolveInfo.get(0).isInstantAppAvailable, in testQuery()
106 assertThat(resolveInfo.get(1).activityInfo.packageName, in testQuery()
108 assertThat(resolveInfo.get(1).activityInfo.name, in testQuery()
110 assertThat(resolveInfo.get(1).isInstantAppAvailable, in testQuery()
125 assertThat(resolveInfo.get(0).activityInfo.packageName, in testQuery()
127 assertThat(resolveInfo.get(0).activityInfo.name, in testQuery()
129 assertThat(resolveInfo.get(0).isInstantAppAvailable, in testQuery()
131 assertThat(resolveInfo.get(1).activityInfo.packageName, in testQuery()
[all …]
/cts/hostsidetests/appsecurity/test-apps/OrderedActivityApp/src/android/appsecurity/cts/orderedactivity/
DPackageResolutionTest.java48 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/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DJitterVerificationTest.java78 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/view/src/android/view/cts/
DKeyboardShortcutGroupTest.java107 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()
/cts/tests/camera/src/android/hardware/camera2/cts/
DBurstCaptureTest.java72 StaticMetadata staticInfo = mAllStaticInfo.get(id); in testBurst()
105 final Size previewSize = mOrderedPreviewSizes.get(0); in burstTestByCamera()
109 cameraId, mCameraManager, fmt, /*bound*/null).get(0); in burstTestByCamera()
112 final int maxPipelineDepth = mStaticInfo.getCharacteristics().get( in burstTestByCamera()
114 final int maxSyncLatency = mStaticInfo.getCharacteristics().get( in burstTestByCamera()
118 StreamConfigurationMap config = mStaticInfo.getCharacteristics().get( in burstTestByCamera()
140 Boolean enableZsl = burstBuilder.get(CaptureRequest.CONTROL_ENABLE_ZSL); in burstTestByCamera()
175 int aeState = result.get(CaptureResult.CONTROL_AE_STATE); in burstTestByCamera()
176 int awbState = result.get(CaptureResult.CONTROL_AWB_STATE); in burstTestByCamera()
205 int afState = result.get(CaptureResult.CONTROL_AF_STATE); in burstTestByCamera()
[all …]

12345678910>>...42