Home
last modified time | relevance | path

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

1234

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DOobDataTest.java19 import static android.bluetooth.cts.TestUtils.assertArrayEquals;
79 assertArrayEquals(confirmationHash, defaultClassicOobData.getConfirmationHash()); in testClassicBuilder()
80 assertArrayEquals(length, defaultClassicOobData.getClassicLength()); in testClassicBuilder()
81 assertArrayEquals(address, defaultClassicOobData.getDeviceAddressWithType()); in testClassicBuilder()
82 assertArrayEquals(defaultRandomizerHash, defaultClassicOobData.getRandomizerHash()); in testClassicBuilder()
83 assertArrayEquals(defaultClassOfDevice, defaultClassicOobData.getClassOfDevice()); in testClassicBuilder()
84 assertArrayEquals(defaultDeviceName, defaultClassicOobData.getDeviceName()); in testClassicBuilder()
86 assertArrayEquals(defaultLeTemporaryKey, defaultClassicOobData.getLeTemporaryKey()); in testClassicBuilder()
87 assertArrayEquals(defaultLeAppearance, defaultClassicOobData.getLeAppearance()); in testClassicBuilder()
103 assertArrayEquals(randomizerHash, classicData.getRandomizerHash()); in testClassicBuilder()
[all …]
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/binder_ndk/src/android/binder/cts/
DJavaClientTest.java140 Assert.assertArrayEquals(input, expectedBytes); in checkDump()
275 Assert.assertArrayEquals(input, output); in checkInOutSockets()
373 Assert.assertArrayEquals(value, out1); in testArrays()
374 Assert.assertArrayEquals(value, out2); in testArrays()
381 Assert.assertArrayEquals(value, out1); in testArrays()
382 Assert.assertArrayEquals(value, out2); in testArrays()
389 Assert.assertArrayEquals(value, out1); in testArrays()
390 Assert.assertArrayEquals(value, out2); in testArrays()
397 Assert.assertArrayEquals(value, out1); in testArrays()
398 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;
79 assertArrayEquals(new int[0], credential.getAuthenticationDataUsageCount()); in dynamicAuthTest()
82 assertArrayEquals( in dynamicAuthTest()
144 assertArrayEquals(certificates.toArray(), certificates2.toArray()); in dynamicAuthTest()
282 assertArrayEquals(expectedMac, rd.getMessageAuthenticationCode()); in dynamicAuthTest()
286 assertArrayEquals(new byte[]{42, 43, 44}, rd.getStaticAuthenticationData()); in dynamicAuthTest()
287 assertArrayEquals(new int[]{1, 0, 0, 0, 0}, credential.getAuthenticationDataUsageCount()); in dynamicAuthTest()
302 assertArrayEquals(new byte[]{43, 44, 45}, rd.getStaticAuthenticationData()); in dynamicAuthTest()
303 assertArrayEquals(new int[]{1, 0, 0, 0, 1}, credential.getAuthenticationDataUsageCount()); in dynamicAuthTest()
319 assertArrayEquals(expectedMac, rd.getMessageAuthenticationCode()); in dynamicAuthTest()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
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()
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()
/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()
DSingleLineTransformationMethodTest.java19 import static org.junit.Assert.assertArrayEquals;
63 assertArrayEquals(new char[] { ' ', '\uFEFF' }, method.getReplacement()); in testGetReplacement()
64 assertArrayEquals(new char[] { '\n', '\r' }, method.getOriginal()); in testGetReplacement()
/cts/tests/tests/vcn/src/android/net/vcn/cts/
DVcnGatewayConnectionConfigTest.java23 import static org.junit.Assert.assertArrayEquals;
67 assertArrayEquals( in testBuildVcnGatewayConnectionConfig()
69 assertArrayEquals(RETRY_INTERNAL_MILLIS, gatewayConnConfig.getRetryIntervalsMillis()); in testBuildVcnGatewayConnectionConfig()
80 assertArrayEquals( in testBuilderAddRemove()
/cts/tests/tests/car/src/android/car/cts/
DCarAppFocusManagerTest.java202 Assert.assertArrayEquals(emptyFocus, mManager.getActiveAppTypes()); in testFocusChange()
215 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange()
216 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange()
230 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange()
231 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange()
239 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange()
240 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange()
255 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange()
256 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange()
270 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange()
[all …]
/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()
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()
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()
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()
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()
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()
DProtoOutputStreamUInt64Test.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.uint64FieldPacked); 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/location/location_none/src/android/location/cts/none/
DGnssAntennaInfoTest.java19 import static org.junit.Assert.assertArrayEquals;
226 assertArrayEquals(PHASE_CENTER_VARIATION_CORRECTIONS, phaseCenterVariationCorrections in verifyFullGnssAntennaInfoValuesAndGetters()
228 assertArrayEquals(PHASE_CENTER_VARIATION_CORRECTION_UNCERTAINTIES, in verifyFullGnssAntennaInfoValuesAndGetters()
236 assertArrayEquals(SIGNAL_GAIN_CORRECTIONS, signalGainCorrections in verifyFullGnssAntennaInfoValuesAndGetters()
238 assertArrayEquals(SIGNAL_GAIN_CORRECTION_UNCERTAINTIES, in verifyFullGnssAntennaInfoValuesAndGetters()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java21 import static org.junit.Assert.assertArrayEquals;
162 assertArrayEquals(origBuffer32, buffer32); in onAttached()
171 assertArrayEquals(Arrays.copyOf(origBuffer32, 16), buffer16); in onAttached()
184 assertArrayEquals(origBuffer32, buffer32); in onAttached()
196 assertArrayEquals(Arrays.copyOf(origBuffer32, 16), in onAttached()
201 assertArrayEquals(Arrays.copyOfRange(origBuffer32, 16, 32), in onAttached()
211 assertArrayEquals(origBufferMax, bufferMax); in onAttached()
226 assertArrayEquals(origBufferMax, bufferMax); in onAttached()
230 assertArrayEquals(origBufferMax, bufferMax); in onAttached()
/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()

1234