Home
last modified time | relevance | path

Searched refs:assertArrayEquals (Results 1 – 25 of 89) sorted by relevance

1234

/cts/tests/tests/binder_ndk/src/android/binder/cts/
DJavaClientTest.java126 Assert.assertArrayEquals(input, expectedBytes); in checkDump()
245 Assert.assertArrayEquals(input, output); in checkInOutSockets()
343 Assert.assertArrayEquals(value, out1); in testArrays()
344 Assert.assertArrayEquals(value, out2); in testArrays()
351 Assert.assertArrayEquals(value, out1); in testArrays()
352 Assert.assertArrayEquals(value, out2); in testArrays()
359 Assert.assertArrayEquals(value, out1); in testArrays()
360 Assert.assertArrayEquals(value, out2); in testArrays()
367 Assert.assertArrayEquals(value, out1); in testArrays()
368 Assert.assertArrayEquals(value, out2); in testArrays()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DMonthDisplayHelperTest.java19 import static org.junit.Assert.assertArrayEquals;
77 assertArrayEquals(new int[] { 29, 30, 31, 1, 2, 3, 4 }, helper.getDigitsForRow(0)); in testNextMonth()
82 assertArrayEquals(new int[] { 26, 27, 28, 29, 30, 31, 1 }, helper.getDigitsForRow(0)); in testNextMonth()
111 assertArrayEquals(new int[] { 26, 27, 28, 29, 30, 31, 1 }, helper in testMonthRows()
113 assertArrayEquals(new int[] { 2, 3, 4, 5, 6, 7, 8 }, helper in testMonthRows()
115 assertArrayEquals(new int[] { 30, 1, 2, 3, 4, 5, 6 }, helper in testMonthRows()
120 assertArrayEquals(new int[] { 27, 28, 29, 30, 31, 1, 2 }, helper in testMonthRows()
122 assertArrayEquals(new int[] { 3, 4, 5, 6, 7, 8, 9 }, helper in testMonthRows()
124 assertArrayEquals(new int[] { 24, 25, 26, 27, 28, 29, 30 }, helper in testMonthRows()
126 assertArrayEquals(new int[] { 1, 2, 3, 4, 5, 6, 7 }, helper in testMonthRows()
[all …]
/cts/tests/tests/identity/src/android/security/identity/cts/
DDynamicAuthTest.java19 import static org.junit.Assert.assertArrayEquals;
77 assertArrayEquals(new int[0], credential.getAuthenticationDataUsageCount()); in dynamicAuthTest()
80 assertArrayEquals( in dynamicAuthTest()
142 assertArrayEquals(certificates.toArray(), certificates2.toArray()); in dynamicAuthTest()
280 assertArrayEquals(expectedMac, rd.getMessageAuthenticationCode()); in dynamicAuthTest()
284 assertArrayEquals(new byte[]{42, 43, 44}, rd.getStaticAuthenticationData()); in dynamicAuthTest()
285 assertArrayEquals(new int[]{1, 0, 0, 0, 0}, credential.getAuthenticationDataUsageCount()); in dynamicAuthTest()
300 assertArrayEquals(new byte[]{43, 44, 45}, rd.getStaticAuthenticationData()); in dynamicAuthTest()
301 assertArrayEquals(new int[]{1, 0, 0, 0, 1}, credential.getAuthenticationDataUsageCount()); in dynamicAuthTest()
317 assertArrayEquals(expectedMac, rd.getMessageAuthenticationCode()); in dynamicAuthTest()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DColorSpaceTest.java357 assertArrayEquals(whitePoint, cs.getWhitePoint(), 1e-5f); in testWhitePoint()
373 assertArrayEquals(primaries, cs.getPrimaries(), 1e-5f); in testPrimaries()
389 assertArrayEquals(rgbToXYZ, cs.getTransform(), 1e-5f); in testRGBtoXYZMatrix()
405 assertArrayEquals(xyzToRGB, cs.getInverseTransform(), 1e-5f); in testXYZtoRGBMatrix()
419 assertArrayEquals(expected, r1, 1e-3f); in testRGBtoXYZ()
424 assertArrayEquals(r1, r3, 1e-5f); in testRGBtoXYZ()
438 assertArrayEquals(expected, r1, 1e-3f); in testXYZtoRGB()
443 assertArrayEquals(r1, r3, 1e-5f); in testXYZtoRGB()
484 assertArrayEquals(expected, r1, 1e-3f); in testConnector()
489 assertArrayEquals(r1, r3, 1e-5f); in testConnector()
[all …]
DColorMatrixTest.java18 import static org.junit.Assert.assertArrayEquals;
56 assertArrayEquals(SOURCE, fA1, 0.0f); in testColorMatrix()
60 assertArrayEquals(fA1, fA2, 0.0f); in testColorMatrix()
96 assertArrayEquals(fArray, ret, 0.0f); in testSet1()
113 assertArrayEquals(fArray, ret, 0.0f); in testSet2()
149 assertArrayEquals(new float[] { in testSetSaturation()
185 assertArrayEquals(new float[] { in testSetRGB2YUV()
198 assertArrayEquals(new float[] { in testSetYUV2RGB()
247 assertArrayEquals(new float[] { in testSetConcat()
DCameraTest.java18 import static org.junit.Assert.assertArrayEquals;
61 assertArrayEquals(new float[] { in testMatrixPreCompare()
77 assertArrayEquals(new float[] { in testTranslate()
93 assertArrayEquals(new float[] { in testRotateX()
109 assertArrayEquals(new float[] { in testRotateY()
125 assertArrayEquals(new float[] { in testRotateZ()
141 assertArrayEquals(new float[] { in testRotate()
/cts/tests/tests/car/src/android/car/cts/
DCarAppFocusManagerTest.java116 Assert.assertArrayEquals(emptyFocus, mManager.getActiveAppTypes()); in testFocusChange()
129 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange()
130 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange()
143 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange()
144 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange()
154 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange()
155 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange()
168 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange()
169 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange()
179 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java21 import static org.junit.Assert.assertArrayEquals;
132 assertArrayEquals(origBuffer32, buffer32); in onAttached()
141 assertArrayEquals(Arrays.copyOf(origBuffer32, 16), buffer16); in onAttached()
154 assertArrayEquals(origBuffer32, buffer32); in onAttached()
166 assertArrayEquals(Arrays.copyOf(origBuffer32, 16), in onAttached()
171 assertArrayEquals(Arrays.copyOfRange(origBuffer32, 16, 32), in onAttached()
181 assertArrayEquals(origBufferMax, bufferMax); in onAttached()
196 assertArrayEquals(origBufferMax, bufferMax); in onAttached()
200 assertArrayEquals(origBufferMax, bufferMax); in onAttached()
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamBytesTest.java70 Assert.assertArrayEquals(expected, po.getBytes()); in testWrite()
102 Assert.assertArrayEquals(expected, result); in testWriteCompat()
106 Assert.assertArrayEquals(val, readback.bytesField); in testWriteCompat()
144 Assert.assertArrayEquals(new byte[] { in testRepeated()
208 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
215 Assert.assertArrayEquals(val[i], readback.bytesFieldRepeated[i]); in testRepeatedCompat()
DProtoOutputStreamBoolTest.java55 Assert.assertArrayEquals(new byte[] { in testWrite()
87 Assert.assertArrayEquals(expected, result); in testWriteCompat()
121 Assert.assertArrayEquals(new byte[] { in testRepeated()
164 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
210 Assert.assertArrayEquals(new byte[] { in testPacked()
248 Assert.assertArrayEquals(expected, result); in testPackedCompat()
252 Assert.assertArrayEquals(val, readback.boolFieldPacked); in testPackedCompat()
DProtoOutputStreamSInt32Test.java58 Assert.assertArrayEquals(new byte[] { in testWrite()
102 Assert.assertArrayEquals(expected, result); in testWriteCompat()
142 Assert.assertArrayEquals(new byte[] { in testRepeated()
203 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
251 Assert.assertArrayEquals(new byte[] { in testPacked()
304 Assert.assertArrayEquals(expected, result); in testPackedCompat()
308 Assert.assertArrayEquals(val, readback.sint32FieldPacked); in testPackedCompat()
DProtoOutputStreamUInt32Test.java58 Assert.assertArrayEquals(new byte[] { in testWrite()
102 Assert.assertArrayEquals(expected, result); in testWriteCompat()
142 Assert.assertArrayEquals(new byte[] { in testRepeated()
203 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
251 Assert.assertArrayEquals(new byte[] { in testPacked()
305 Assert.assertArrayEquals(expected, result); in testPackedCompat()
309 Assert.assertArrayEquals(val, readback.uint32FieldPacked); in testPackedCompat()
DProtoOutputStreamFixed32Test.java58 Assert.assertArrayEquals(new byte[] { in testWrite()
102 Assert.assertArrayEquals(expected, result); in testWriteCompat()
142 Assert.assertArrayEquals(new byte[] { in testRepeated()
203 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
251 Assert.assertArrayEquals(new byte[] { in testPacked()
304 Assert.assertArrayEquals(expected, result); in testPackedCompat()
308 Assert.assertArrayEquals(val, readback.fixed32FieldPacked); in testPackedCompat()
DProtoOutputStreamEnumTest.java61 Assert.assertArrayEquals(new byte[] { in testWrite()
107 Assert.assertArrayEquals(expected, result); in testWriteCompat()
150 Assert.assertArrayEquals(new byte[] { in testRepeated()
215 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
267 Assert.assertArrayEquals(new byte[] { in testPacked()
333 Assert.assertArrayEquals(expected, result); in testPackedCompat()
337 Assert.assertArrayEquals(val, readback.outsideFieldPacked); in testPackedCompat()
DProtoOutputStreamSFixed32Test.java58 Assert.assertArrayEquals(new byte[] { in testWrite()
102 Assert.assertArrayEquals(expected, result); in testWriteCompat()
142 Assert.assertArrayEquals(new byte[] { in testRepeated()
203 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
252 Assert.assertArrayEquals(new byte[] { in testPacked()
305 Assert.assertArrayEquals(expected, result); in testPackedCompat()
309 Assert.assertArrayEquals(val, readback.sfixed32FieldPacked); in testPackedCompat()
DProtoOutputStreamInt32Test.java58 Assert.assertArrayEquals(new byte[] { in testWrite()
104 Assert.assertArrayEquals(expected, result); in testWriteCompat()
144 Assert.assertArrayEquals(new byte[] { in testRepeated()
209 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
258 Assert.assertArrayEquals(new byte[] { in testPacked()
320 Assert.assertArrayEquals(expected, result); in testPackedCompat()
324 Assert.assertArrayEquals(val, readback.int32FieldPacked); in testPackedCompat()
DProtoOutputStreamObjectTest.java89 Assert.assertArrayEquals(new byte[] { in testObjectOneChar()
116 Assert.assertArrayEquals(new byte[] { in testObjectOneLargeChar()
152 Assert.assertArrayEquals(new byte[] { in testObjectAndTwoChars()
184 Assert.assertArrayEquals(new byte[0], po.getBytes()); in testEmptyObject()
212 Assert.assertArrayEquals(new byte[0], po.getBytes()); in testDeepEmptyObjects()
242 Assert.assertArrayEquals(new byte[] { in testEmptyObjectAndTwoChars()
274 Assert.assertArrayEquals(new byte[] { in testEmptyRepeatedObject()
321 Assert.assertArrayEquals(new byte[] { in testComplexObject()
374 Assert.assertArrayEquals(new byte[] { in testDeepObjects()
663 Assert.assertArrayEquals(expected, result); in testNestedCompat()
[all …]
DProtoOutputStreamSFixed64Test.java61 Assert.assertArrayEquals(new byte[] { in testWrite()
119 Assert.assertArrayEquals(expected, result); in testWriteCompat()
163 Assert.assertArrayEquals(new byte[] { in testRepeated()
251 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
302 Assert.assertArrayEquals(new byte[] { in testPacked()
380 Assert.assertArrayEquals(expected, result); in testPackedCompat()
384 Assert.assertArrayEquals(val, readback.sfixed64FieldPacked); in testPackedCompat()
DProtoOutputStreamInt64Test.java60 Assert.assertArrayEquals(new byte[] { in testWrite()
116 Assert.assertArrayEquals(expected, result); in testWriteCompat()
160 Assert.assertArrayEquals(new byte[] { in testRepeated()
242 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
292 Assert.assertArrayEquals(new byte[] { in testPacked()
373 Assert.assertArrayEquals(expected, result); in testPackedCompat()
377 Assert.assertArrayEquals(val, readback.int64FieldPacked); in testPackedCompat()
DProtoOutputStreamSInt64Test.java61 Assert.assertArrayEquals(new byte[] { in testWrite()
115 Assert.assertArrayEquals(expected, result); in testWriteCompat()
159 Assert.assertArrayEquals(new byte[] { in testRepeated()
238 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
288 Assert.assertArrayEquals(new byte[] { in testPacked()
358 Assert.assertArrayEquals(expected, result); in testPackedCompat()
362 Assert.assertArrayEquals(val, readback.sint64FieldPacked); in testPackedCompat()
DProtoOutputStreamFixed64Test.java61 Assert.assertArrayEquals(new byte[] { in testWrite()
119 Assert.assertArrayEquals(expected, result); in testWriteCompat()
163 Assert.assertArrayEquals(new byte[] { in testRepeated()
252 Assert.assertArrayEquals(expected, result); in testRepeatedCompat()
303 Assert.assertArrayEquals(new byte[] { in testPacked()
381 Assert.assertArrayEquals(expected, result); in testPackedCompat()
385 Assert.assertArrayEquals(val, readback.fixed64FieldPacked); in testPackedCompat()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DScanRecordTest.java66 TestUtils.assertArrayEquals(manufacturerData, in testParser()
68 TestUtils.assertArrayEquals(manufacturerData, data.getManufacturerSpecificData(0x00E0)); in testParser()
73 TestUtils.assertArrayEquals(serviceData, data.getServiceData().get(uuid2)); in testParser()
74 TestUtils.assertArrayEquals(serviceData, data.getServiceData(uuid2)); in testParser()
/cts/tests/tests/text/src/android/text/style/cts/
DSuggestionSpanTest.java19 import static org.junit.Assert.assertArrayEquals;
65 assertArrayEquals(suggestions, span.getSuggestions()); in testConstructorWithContext()
74 assertArrayEquals("Should return the correct suggestions array", in testGetSuggestionSpans()
78 assertArrayEquals("Should (de)serialize suggestions", in testGetSuggestionSpans()
87 assertArrayEquals("Span should return empty suggestion array", in testGetSuggestionSpans_emptySuggestions()
92 assertArrayEquals("Should (de)serialize empty suggestions array", in testGetSuggestionSpans_emptySuggestions()
101 assertArrayEquals("Should accept and return null suggestions", in testGetSuggestionSpans_suggestionsWithNullValue()
105 assertArrayEquals("Should (de)serialize null in suggestions array", in testGetSuggestionSpans_suggestionsWithNullValue()
/cts/tests/tests/net/src/android/net/cts/
DProxyInfoTest.java19 import static org.junit.Assert.assertArrayEquals;
71 assertArrayEquals(new String[0], proxy1.getExclusionList()); in testBuildDirectProxy()
81 assertArrayEquals(exclList.toArray(new String[0]), proxy2.getExclusionList()); in testBuildDirectProxy()
91 assertArrayEquals(LOCAL_EXCL_LIST.toLowerCase(Locale.ROOT).split(","), in testBuildPacProxy()
99 assertArrayEquals(LOCAL_EXCL_LIST.toLowerCase(Locale.ROOT).split(","), in testBuildPacProxy()
/cts/tests/tests/text/src/android/text/method/cts/
DHideReturnsTransformationMethodTest.java19 import static org.junit.Assert.assertArrayEquals;
45 assertArrayEquals(new char[] { '\r' }, method.getOriginal()); in testGetOriginal()
60 assertArrayEquals(new char[] { '\uFEFF' }, method.getReplacement()); in testGetReplacement()

1234