/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | OobDataTest.java | 19 import static android.bluetooth.cts.TestUtils.assertArrayEquals; 95 assertArrayEquals(confirmationHash, defaultClassicOobData.getConfirmationHash()); in classicBuilder() 96 assertArrayEquals(length, defaultClassicOobData.getClassicLength()); in classicBuilder() 97 assertArrayEquals(address, defaultClassicOobData.getDeviceAddressWithType()); in classicBuilder() 98 assertArrayEquals(defaultRandomizerHash, defaultClassicOobData.getRandomizerHash()); in classicBuilder() 99 assertArrayEquals(defaultClassOfDevice, defaultClassicOobData.getClassOfDevice()); in classicBuilder() 100 assertArrayEquals(defaultDeviceName, defaultClassicOobData.getDeviceName()); in classicBuilder() 102 assertArrayEquals(defaultLeTemporaryKey, defaultClassicOobData.getLeTemporaryKey()); in classicBuilder() 103 assertArrayEquals(defaultLeAppearance, defaultClassicOobData.getLeAppearance()); in classicBuilder() 119 assertArrayEquals(randomizerHash, classicData.getRandomizerHash()); in classicBuilder() [all …]
|
D | ScanRecordTest.java | 86 TestUtils.assertArrayEquals(data.getTransportDiscoveryData().toByteArray(), tdsData); in parser() 95 TestUtils.assertArrayEquals(manufacturerData, in parser() 97 TestUtils.assertArrayEquals(manufacturerData, data.getManufacturerSpecificData(0x00E0)); in parser() 102 TestUtils.assertArrayEquals(serviceData, data.getServiceData().get(uuid2)); in parser() 103 TestUtils.assertArrayEquals(serviceData, data.getServiceData(uuid2)); in parser() 106 TestUtils.assertArrayEquals(adData, data.getAdvertisingDataMap().get(0x50)); in parser()
|
D | BluetoothLeAudioContentMetadataTest.java | 22 import static org.junit.Assert.assertArrayEquals; 113 assertArrayEquals(TEST_METADATA_BYTES, contentMetadata.getRawMetadata()); in createContentMetadataFromBuilder() 121 assertArrayEquals(contentMetadata.getRawMetadata(), in createContentMetadataFromBuilder() 135 assertArrayEquals(TEST_METADATA_BYTES, contentMetadataCopy.getRawMetadata()); in createContentMetadataFromCopy() 145 assertArrayEquals(TEST_METADATA_BYTES, metadataBytes); in createContentMetadataFromBytes()
|
/cts/tests/tests/binder_ndk/src/android/binder/cts/ |
D | JavaClientTest.java | 19 import static org.junit.Assert.assertArrayEquals; 142 Assert.assertArrayEquals(input, expectedBytes); in checkDump() 267 Assert.assertArrayEquals(input, output); in checkInOutSockets() 379 assertArrayEquals(boolV, result.getBooleanArray("boolv")); in testRepeatTypesPersistableBundle() 380 assertArrayEquals(intV, result.getIntArray("intv")); in testRepeatTypesPersistableBundle() 381 assertArrayEquals(longV, result.getLongArray("longv")); in testRepeatTypesPersistableBundle() 387 assertArrayEquals(stringV, result.getStringArray("stringv")); in testRepeatTypesPersistableBundle() 433 Assert.assertArrayEquals(value, out1); in testArrays() 434 Assert.assertArrayEquals(value, out2); in testArrays() 441 Assert.assertArrayEquals(value, out1); in testArrays() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | MonthDisplayHelperTest.java | 19 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/telephony/current/src/android/telephony/ims/cts/ |
D | MediaThresholdTest.java | 19 import static org.junit.Assert.assertArrayEquals; 48 assertArrayEquals(THRESHOLD_PACKET_LOSS_RATE, status.getThresholdsRtpPacketLossRate()); in testBuilderAndGetters() 49 assertArrayEquals(THRESHOLD_JITTER_MILLIS, status.getThresholdsRtpJitterMillis()); in testBuilderAndGetters() 50 assertArrayEquals( in testBuilderAndGetters() 59 assertArrayEquals(new int[]{10}, status.getThresholdsRtpPacketLossRate()); in testBuilderAndGetters() 60 assertArrayEquals(new int[]{100}, status.getThresholdsRtpJitterMillis()); in testBuilderAndGetters() 61 assertArrayEquals(new long[]{3000, 5000}, status.getThresholdsRtpInactivityTimeMillis()); in testBuilderAndGetters()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | DynamicAuthTest.java | 19 import static org.junit.Assert.assertArrayEquals; 82 assertArrayEquals(new int[0], credential.getAuthenticationDataUsageCount()); in dynamicAuthTest() 85 assertArrayEquals( in dynamicAuthTest() 147 assertArrayEquals(certificates.toArray(), certificates2.toArray()); in dynamicAuthTest() 285 assertArrayEquals(expectedMac, rd.getMessageAuthenticationCode()); in dynamicAuthTest() 289 assertArrayEquals(new byte[]{42, 43, 44}, rd.getStaticAuthenticationData()); in dynamicAuthTest() 290 assertArrayEquals(new int[]{1, 0, 0, 0, 0}, credential.getAuthenticationDataUsageCount()); in dynamicAuthTest() 304 assertArrayEquals(new byte[]{43, 44, 45}, rd.getStaticAuthenticationData()); in dynamicAuthTest() 305 assertArrayEquals(new int[]{1, 0, 0, 0, 1}, credential.getAuthenticationDataUsageCount()); in dynamicAuthTest() 321 assertArrayEquals(expectedMac, rd.getMessageAuthenticationCode()); in dynamicAuthTest() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | CameraTest.java | 18 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()
|
D | ColorMatrixTest.java | 18 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()
|
D | ColorSpaceTest.java | 412 assertArrayEquals(whitePoint, cs.getWhitePoint(), 1e-5f); in testWhitePoint() 428 assertArrayEquals(primaries, cs.getPrimaries(), 1e-5f); in testPrimaries() 444 assertArrayEquals(rgbToXYZ, cs.getTransform(), 1e-5f); in testRGBtoXYZMatrix() 460 assertArrayEquals(xyzToRGB, cs.getInverseTransform(), 1e-5f); in testXYZtoRGBMatrix() 474 assertArrayEquals(expected, r1, 1e-3f); in testRGBtoXYZ() 479 assertArrayEquals(r1, r3, 1e-5f); in testRGBtoXYZ() 493 assertArrayEquals(expected, r1, 1e-3f); in testXYZtoRGB() 498 assertArrayEquals(r1, r3, 1e-5f); in testXYZtoRGB() 539 assertArrayEquals(expected, r1, 1e-3f); in testConnector() 544 assertArrayEquals(r1, r3, 1e-5f); in testConnector() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | HideReturnsTransformationMethodTest.java | 19 import static org.junit.Assert.assertArrayEquals; 45 assertArrayEquals(new char[] { '\r' }, method.getOriginal()); in testGetOriginal() 60 assertArrayEquals(new char[] { '\uFEFF' }, method.getReplacement()); in testGetReplacement()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | TextRunAdvancesTest.java | 21 import static org.junit.Assert.assertArrayEquals; 56 assertArrayEquals(advances, new float[] {10.0f, 10.0f, 0.0f, 0.0f, 0.0f}, 0.0f); in testGetRunCharacterAdvance() 69 assertArrayEquals(advances, new float[] {30.0f, 10.0f, 10.0f, 10.0f, 10.0f}, 0.0f); in testGetRunCharacterAdvance_charSequence() 81 assertArrayEquals(advances, new float[] {30.0f, 10.0f, 10.0f, 10.0f, 10.0f}, 0.0f); in testGetRunCharacterAdvance_LTR() 93 assertArrayEquals(advances, new float[] {30.0f, 10.0f, 10.0f, 10.0f, 10.0f}, 0.0f); in testGetRunCharacterAdvance_RTL() 106 assertArrayEquals(advances, new float[] {30.0f, 0.0f, 30.0f, 10.0f, 10.0f}, 0.0f); in testGetRunCharacterAdvance_surrogate() 118 assertArrayEquals(advances, new float[] {0.0f, 0.0f, 30.0f, 10.0f, 10.0f}, 0.0f); in testGetRunCharacterAdvance_advanceIndex()
|
/cts/tests/tests/proto/src/android/util/proto/cts/ |
D | ProtoOutputStreamBytesTest.java | 70 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()
|
D | ProtoOutputStreamBoolTest.java | 55 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()
|
D | ProtoOutputStreamSInt32Test.java | 58 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()
|
D | ProtoOutputStreamEnumTest.java | 61 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()
|
D | ProtoOutputStreamInt32Test.java | 58 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()
|
D | ProtoOutputStreamSFixed32Test.java | 58 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()
|
D | ProtoOutputStreamUInt32Test.java | 58 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()
|
D | ProtoOutputStreamFixed32Test.java | 58 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()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarAppFocusManagerTest.java | 224 Assert.assertArrayEquals(emptyFocus, mManager.getActiveAppTypes()); in testFocusChange() 237 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange() 238 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange() 252 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange() 253 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange() 261 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange() 262 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange() 277 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange() 278 Assert.assertArrayEquals(expectedFocuses, manager2.getActiveAppTypes()); in testFocusChange() 292 Assert.assertArrayEquals(expectedFocuses, mManager.getActiveAppTypes()); in testFocusChange() [all …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AESGCMCipherTestBase.java | 19 import static org.junit.Assert.assertArrayEquals; 164 assertArrayEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInOneGo() 168 assertArrayEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInOneGo() 172 assertArrayEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInOneGo() 185 assertArrayEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInChunks()
|
D | BlockCipherTestBase.java | 19 import static org.junit.Assert.assertArrayEquals; 192 assertArrayEquals(expectedIv, actualIv); in assertAlgoritmParametersIv() 391 assertArrayEquals(getKatIv(), mCipher.getIV()); in testGetIV() 394 assertArrayEquals(getKatIv(), mCipher.getIV()); in testGetIV() 398 assertArrayEquals(getKatIv(), mCipher.getIV()); in testGetIV() 401 assertArrayEquals(getKatIv(), mCipher.getIV()); in testGetIV() 420 assertArrayEquals(generatedIv, getIv(generatedParams)); in testIvGeneratedAndUsedWhenEncryptingWithoutExplicitIv() 430 assertArrayEquals(plaintext, decryptedPlaintext); in testIvGeneratedAndUsedWhenEncryptingWithoutExplicitIv() 446 assertArrayEquals(iv, mCipher.getIV()); in testGeneratedIvSurvivesReset() 455 assertArrayEquals(ciphertext, mCipher.doFinal(getKatPlaintext())); in testGeneratedIvSurvivesReset() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/ |
D | UsbAccessoryTestActivity.java | 21 import static org.junit.Assert.assertArrayEquals; 180 assertArrayEquals(origBuffer32, buffer32); in onAttached() 189 assertArrayEquals(Arrays.copyOf(origBuffer32, 16), buffer16); in onAttached() 202 assertArrayEquals(origBuffer32, buffer32); in onAttached() 214 assertArrayEquals(Arrays.copyOf(origBuffer32, 16), in onAttached() 219 assertArrayEquals(Arrays.copyOfRange(origBuffer32, 16, 32), in onAttached() 229 assertArrayEquals(origBufferMax, bufferMax); in onAttached() 244 assertArrayEquals(origBufferMax, bufferMax); in onAttached() 248 assertArrayEquals(origBufferMax, bufferMax); in onAttached()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | SuggestionSpanTest.java | 19 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()
|