/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 21 import static org.junit.Assert.assertArrayEquals; 96 assertArrayEquals(new int[] { 1 }, in testAppendInt() 98 assertArrayEquals(new int[] { 1 }, in testAppendInt() 100 assertArrayEquals(new int[] { 1, 2 }, in testAppendInt() 102 assertArrayEquals(new int[] { 1, 2 }, in testAppendInt() 108 assertArrayEquals(new int[] { }, in testRemoveInt() 110 assertArrayEquals(new int[] { 1, 2, 3, }, in testRemoveInt() 112 assertArrayEquals(new int[] { 2, 3, }, in testRemoveInt() 114 assertArrayEquals(new int[] { 1, 3, }, in testRemoveInt() 116 assertArrayEquals(new int[] { 1, 2, }, in testRemoveInt() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | RedactingFileDescriptorTest.java | 23 import static org.junit.Assert.assertArrayEquals; 87 assertArrayEquals(new byte[] { 64, 64, 64, 64, 64, 64, 64, 64, 64, 64 }, buf); in testRanges() 90 assertArrayEquals(new byte[] { 64, 64, 64, 64, 64, 0, 0, 0, 0, 0 }, buf); in testRanges() 93 assertArrayEquals(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, buf); in testRanges() 96 assertArrayEquals(new byte[] { 0, 0, 0, 0, 0, 64, 64, 64, 64, 64 }, buf); in testRanges() 99 assertArrayEquals(new byte[] { 0, 0, 0, 0, 0, 64, 64, 64, 64, 64 }, buf); in testRanges() 123 assertArrayEquals(new byte[] { 64, 64, 64, 64, 64, 0, 0, 0, 0, 0 }, buf); in testReadWrite() 128 assertArrayEquals(new byte[] { 64, 64, 64, 64, 64, 0, 0, 32, 32, 0 }, buf); in testReadWrite() 134 assertArrayEquals(new long[] { 100, 200, 300, 400 }, in testRemoveRange() 136 assertArrayEquals(new long[] { 100, 200, 300, 400 }, in testRemoveRange() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/ |
D | IccUtilsTest.java | 19 import static org.junit.Assert.assertArrayEquals; 92 assertArrayEquals(new byte[] {0}, IccUtils.unsignedIntToBytes(0)); in testUnsignedToBytes() 93 assertArrayEquals(new byte[] {0x12, 0x34}, IccUtils.unsignedIntToBytes(0x1234)); in testUnsignedToBytes() 94 assertArrayEquals( in testUnsignedToBytes() 96 assertArrayEquals(new byte[] {-128}, IccUtils.unsignedIntToBytes(0x80)); in testUnsignedToBytes() 97 assertArrayEquals(new byte[] {-128, 0x05}, IccUtils.unsignedIntToBytes(0x8005)); in testUnsignedToBytes() 101 assertArrayEquals(new byte[] {0, 0, 0x7F, 0x12, -2, 0x34}, bs); in testUnsignedToBytes() 107 assertArrayEquals(new byte[] {0}, IccUtils.signedIntToBytes(0)); in testSignedToBytes() 108 assertArrayEquals(new byte[] {0x12, 0x34}, IccUtils.signedIntToBytes(0x1234)); in testSignedToBytes() 109 assertArrayEquals( in testSignedToBytes() [all …]
|
D | Asn1DecoderTest.java | 19 import static org.junit.Assert.assertArrayEquals; 61 assertArrayEquals( in testNormalOperation() 103 assertArrayEquals( in testNodeList() 116 assertArrayEquals( in testNodeList() 140 assertArrayEquals( in testMissingData() 169 assertArrayEquals(new byte[] {}, childOfFirst.asBytes()); in testEmptyData() 181 assertArrayEquals(new byte[] {}, childOfSecond.asBytes()); in testEmptyData() 202 assertArrayEquals(new byte[] {1, 2, 3}, node.asBytes()); in testLongFormLength()
|
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | TransactionExecutorTests.java | 29 import static org.junit.Assert.assertArrayEquals; 96 assertArrayEquals(new int[] {}, path(PRE_ON_CREATE)); in testLifecycleFromPreOnCreate() 97 assertArrayEquals(new int[] {ON_CREATE}, path(ON_CREATE)); in testLifecycleFromPreOnCreate() 98 assertArrayEquals(new int[] {ON_CREATE, ON_START}, path(ON_START)); in testLifecycleFromPreOnCreate() 99 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME}, path(ON_RESUME)); in testLifecycleFromPreOnCreate() 100 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME, ON_PAUSE}, path(ON_PAUSE)); in testLifecycleFromPreOnCreate() 101 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME, ON_PAUSE, ON_STOP}, in testLifecycleFromPreOnCreate() 103 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME, ON_PAUSE, ON_STOP, ON_DESTROY}, in testLifecycleFromPreOnCreate() 110 assertArrayEquals(new int[] {}, path(ON_CREATE)); in testLifecycleFromOnCreate() 111 assertArrayEquals(new int[] {ON_START}, path(ON_START)); in testLifecycleFromOnCreate() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LongSamplingCounterArrayTest.java | 24 import static org.junit.Assert.assertArrayEquals; 87 assertArrayEquals(COUNTS, mCounterArray.mCounts); in testReadWriteParcel() 101 assertArrayEquals(COUNTS, mCounterArray.mCounts); in testReadWriteSummaryParcel() 109 assertArrayEquals(COUNTS, mCounterArray.mCounts); in testOnTimeStarted() 116 assertArrayEquals(COUNTS, mCounterArray.mCounts); in testOnTimeStopped() 124 assertArrayEquals(COUNTS, mCounterArray.getCountsLocked(STATS_SINCE_CHARGED)); in testGetCountsLocked() 127 assertArrayEquals(COUNTS, mCounterArray.getCountsLocked(STATS_SINCE_CHARGED)); in testGetCountsLocked() 146 assertArrayEquals(deltas, mCounterArray.mCounts); in testAddCountLocked() 150 assertArrayEquals(null, mCounterArray.mCounts); in testAddCountLocked() 152 assertArrayEquals(deltas, mCounterArray.mCounts); in testAddCountLocked() [all …]
|
D | KernelCpuThreadReaderTest.java | 19 import static org.junit.Assert.assertArrayEquals; 177 assertArrayEquals( in testBucketSetup_simple() 180 assertArrayEquals( in testBucketSetup_simple() 191 assertArrayEquals( in testBucketSetup_noBig() 194 assertArrayEquals( in testBucketSetup_noBig() 205 assertArrayEquals( in testBucketSetup_moreLittle() 208 assertArrayEquals( in testBucketSetup_moreLittle() 219 assertArrayEquals( in testBucketSetup_moreBig() 222 assertArrayEquals( in testBucketSetup_moreBig() 233 assertArrayEquals( in testBucketSetup_equalBuckets() [all …]
|
D | ProcTimeInStateReaderTest.java | 19 import static org.junit.Assert.assertArrayEquals; 63 assertArrayEquals( in testSimple() 67 assertArrayEquals( in testSimple() 80 assertArrayEquals( in testHeaderFormat() 84 assertArrayEquals( in testHeaderFormat() 98 assertArrayEquals( in testDifferentFile()
|
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/ |
D | WrappedApplicationKeyTest.java | 19 import static org.junit.Assert.assertArrayEquals; 59 assertArrayEquals(KEY_MATERIAL, buildTestKey().getEncryptedKeyMaterial()); in build_setsEncryptedKeyMaterial() 64 assertArrayEquals(METADATA, buildTestKeyWithMetadata(METADATA).getMetadata()); in build_setsMetadata_nonNull() 69 assertArrayEquals(null, buildTestKeyWithMetadata(null).getMetadata()); in build_setsMetadata_null() 89 assertArrayEquals(KEY_MATERIAL, readFromParcel.getEncryptedKeyMaterial()); in writeToParcel_writesKeyMaterial() 99 assertArrayEquals(METADATA, readFromParcel.getMetadata()); in writeToParcel_writesMetadata_nonNull() 109 assertArrayEquals(null, readFromParcel.getMetadata()); in writeToParcel_writesMetadata_null() 119 assertArrayEquals(null, readFromParcel.getMetadata()); in writeToParcel_writesMetadata_absent()
|
D | KeyChainSnapshotTest.java | 19 import static org.junit.Assert.assertArrayEquals; 68 assertArrayEquals(SERVER_PARAMS, createKeyChainSnapshot().getServerParams()); in build_setsServerParams() 73 assertArrayEquals(RECOVERY_KEY_BLOB, in build_setsRecoveryKeyBlob() 93 assertArrayEquals(SALT, keyDerivationParams.getSalt()); in build_setsKeyChainProtectionParams() 103 assertArrayEquals(KEY_MATERIAL, wrappedApplicationKey.getEncryptedKeyMaterial()); in build_setsWrappedApplicationKeys() 104 assertArrayEquals(KEY_METADATA, wrappedApplicationKey.getMetadata()); in build_setsWrappedApplicationKeys() 132 assertArrayEquals(SERVER_PARAMS, snapshot.getServerParams()); in writeToParcel_writesServerParams() 139 assertArrayEquals(RECOVERY_KEY_BLOB, snapshot.getEncryptedRecoveryKeyBlob()); in writeToParcel_writesKeyRecoveryBlob() 160 assertArrayEquals(SALT, keyDerivationParams.getSalt()); in writeToParcel_writesKeyChainProtectionParams() 170 assertArrayEquals(KEY_MATERIAL, wrappedApplicationKey.getEncryptedKeyMaterial()); in writeToParcel_writesWrappedApplicationKeys() [all …]
|
D | KeyChainProtectionParamsTest.java | 19 import static org.junit.Assert.assertArrayEquals; 41 assertArrayEquals(SECRET, createTestParams().getSecret()); in build_setsSecret() 60 assertArrayEquals(SALT, keyDerivationParams.getSalt()); in build_setsKeyDerivationParams() 67 assertArrayEquals(SECRET, protParams.getSecret()); in writeToParcel_writesSecret() 90 assertArrayEquals(SALT, keyDerivationParams.getSalt()); in writeToParcel_writesKeyDerivationParams()
|
D | KeyDerivationParamsTest.java | 19 import static org.junit.Assert.assertArrayEquals; 47 assertArrayEquals(SALT, keyDerivationParams.getSalt()); in createSha256Params_setsSalt() 63 assertArrayEquals(SALT, keyDerivationParams.getSalt()); in writeToParcel_writesSalt()
|
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/utils/ |
D | BigIntegerUtilsTest.java | 19 import static org.junit.Assert.assertArrayEquals; 39 assertArrayEquals(EXPECTED_BYTE_ARRAY_A_2, byteArrayA2); in testBigIntegerToUnsignedByteArray() 41 assertArrayEquals(EXPECTED_BYTE_ARRAY_B_2, byteArrayB2); in testBigIntegerToUnsignedByteArray() 45 assertArrayEquals(EXPECTED_BYTE_ARRAY_A_3, byteArrayA3); in testBigIntegerToUnsignedByteArray() 47 assertArrayEquals(EXPECTED_BYTE_ARRAY_B_3, byteArrayB3); in testBigIntegerToUnsignedByteArray()
|
/frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
D | AsmAnalyzerTest.java | 35 import static org.junit.Assert.assertArrayEquals; 68 assertArrayEquals(new String[] { in testParseZip() 98 assertArrayEquals(new String[] {"mock_android/data/dataFile"}, in testParseZip() 115 assertArrayEquals(new String[] { "mock_android.view.ViewGroup$LayoutParams" }, in testFindClass() 117 assertArrayEquals(new ClassReader[] { cr }, found.values().toArray()); in testFindClass() 131 assertArrayEquals(new String[] { in testInclude() 162 assertArrayEquals(new String[] { in testFindClassesDerivingFrom() 194 assertArrayEquals(new String[] { in testDependencyVisitor() 209 assertArrayEquals(new String[] { in testDependencyVisitor() 225 assertArrayEquals(new String[] { }, out_deps.keySet().toArray()); in testDependencyVisitor() [all …]
|
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/ |
D | SaProposalTest.java | 19 import static org.junit.Assert.assertArrayEquals; 70 assertArrayEquals( in testBuildIkeSaProposalWithNormalModeCipher() 73 assertArrayEquals( in testBuildIkeSaProposalWithNormalModeCipher() 76 assertArrayEquals( in testBuildIkeSaProposalWithNormalModeCipher() 78 assertArrayEquals( in testBuildIkeSaProposalWithNormalModeCipher() 94 assertArrayEquals( in testBuildIkeSaProposalWithCombinedModeCipher() 97 assertArrayEquals( in testBuildIkeSaProposalWithCombinedModeCipher() 99 assertArrayEquals( in testBuildIkeSaProposalWithCombinedModeCipher() 115 assertArrayEquals( in testBuildFirstChildSaProposalWithCombinedCipher() 118 assertArrayEquals( in testBuildFirstChildSaProposalWithCombinedCipher() [all …]
|
D | SaRecordTest.java | 19 import static org.junit.Assert.assertArrayEquals; 99 assertArrayEquals(expectedSKeySeed, calculatedSKeySeed); in testCalculateSKeySeed() 121 assertArrayEquals(expectedKeyMat, calculatedKeyMat); in testSignWithPrfPlusForIke() 136 assertArrayEquals(expectedKeyMat, calculatedKeyMat); in testSignWithPrfPlusForFirstChild()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsAddressTest.java | 19 import static org.junit.Assert.assertArrayEquals; 36 assertArrayEquals(CdmaSmsAddress.parseToDtmf(address), cdmaAddress.origBytes); in testNumberAddress() 46 assertArrayEquals(CdmaSmsAddress.parseToDtmf("3141592653"), cdmaAddress.origBytes); in testNumberWithSugar() 58 assertArrayEquals(UserData.stringToAscii("10068"), cdmaAddress.origBytes); in testInternationalAddress() 69 assertArrayEquals(UserData.stringToAscii(address), cdmaAddress.origBytes); in testEmailAddress()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | NativeUtilTest.java | 38 assertArrayEquals(new byte[]{0x61, 0x52, 0x43, 0x34, 0x25, 0x16}, in testMacAddressToByteArray() 47 assertArrayEquals(new byte[]{0, 0, 0, 0, 0, 0}, in testEmptyMacAddressToByteArray() 49 assertArrayEquals(new byte[]{0, 0, 0, 0, 0, 0}, in testEmptyMacAddressToByteArray() 68 assertArrayEquals(new byte[]{0x61, 0x52, 0x43}, in testMacAddressOuiToByteArray() 77 assertArrayEquals(new byte[]{0x45, 0x12, 0x23, 0x34}, in testHexStringToByteArray()
|
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/message/ |
D | IkeEncryptedPayloadBodyTest.java | 18 import static org.junit.Assert.assertArrayEquals; 123 assertArrayEquals(mChecksum, calculatedChecksum); in testCalculateChecksum() 184 assertArrayEquals(mEncryptedPaddedData, calculatedData); in testEncrypt() 193 assertArrayEquals(mDataToPadAndEncrypt, calculatedPlainText); in testDecrypt() 217 assertArrayEquals(expectedEncodedData, paylaodBody.encode()); in testBuildAndEncodeOutboundIkeEncryptedPayloadBody() 230 assertArrayEquals(mDataToPadAndEncrypt, paylaodBody.getUnencryptedData()); in testAuthenticateAndDecryptInboundIkeEncryptedPayloadBody()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyHistogramTest.java | 75 assertArrayEquals(new int[]{23, 36}, mHistogram.getBucketEndPoints()); in testAddTimeTaken() 76 assertArrayEquals(new int[]{2, 1, 2}, mHistogram.getBucketCounters()); in testAddTimeTaken() 90 assertArrayEquals(new int[]{40, 70}, mHistogram.getBucketEndPoints()); in testAddTimeTaken() 91 assertArrayEquals(new int[]{5, 3, 4}, mHistogram.getBucketCounters()); in testAddTimeTaken()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/wificond/ |
D | NativeScanResultTest.java | 19 import static org.junit.Assert.assertArrayEquals; 78 assertArrayEquals(scanResult.ssid, scanResultDeserialized.ssid); in canSerializeAndDeserialize() 79 assertArrayEquals(scanResult.bssid, scanResultDeserialized.bssid); in canSerializeAndDeserialize() 80 assertArrayEquals(scanResult.infoElement, scanResultDeserialized.infoElement); in canSerializeAndDeserialize()
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/ |
D | ScanRecordTest.java | 57 assertArrayEquals(new byte[] { in testParser() 61 assertArrayEquals(new byte[] { in testParser() 66 private static void assertArrayEquals(byte[] expected, byte[] actual) { in assertArrayEquals() method in ScanRecordTest
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | ParcelUtilTest.java | 19 import static org.junit.Assert.assertArrayEquals; 64 assertArrayEquals(writeKey.getEncoded(), readKey.getEncoded()); in readWriteValidPrivateKey() 84 assertArrayEquals(writeCert.getEncoded(), readCert.getEncoded()); in readWriteValidCertificate() 109 assertArrayEquals(writeCerts[i].getEncoded(), readCerts[i].getEncoded()); in readWriteValidCertificates()
|
/frameworks/base/tests/net/java/android/net/netlink/ |
D | ConntrackMessageTest.java | 19 import static org.junit.Assert.assertArrayEquals; 116 assertArrayEquals(CT_V4UPDATE_TCP_BYTES, tcp); in testConntrackIPv4TcpTimeoutUpdate() 128 assertArrayEquals(CT_V4UPDATE_UDP_BYTES, udp); in testConntrackIPv4UdpTimeoutUpdate()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | AmbientBrightnessStatsTrackerTest.java | 19 import static org.junit.Assert.assertArrayEquals; 74 assertArrayEquals(expectedStats, userStats.get(0).getStats(), 0); in testBrightnessStatsTrackerOverSingleDay() 91 assertArrayEquals(expectedStats, userStats.get(0).getStats(), 0); in testBrightnessStatsTrackerOverSingleDay() 124 assertArrayEquals(expectedStats, userStats.get(0).getStats(), 0); in testBrightnessStatsTrackerOverMultipleDays() 129 assertArrayEquals(expectedStats, userStats.get(1).getStats(), 0); in testBrightnessStatsTrackerOverMultipleDays() 162 assertArrayEquals(expectedStats, userStats.get(0).getStats(), 0); in testBrightnessStatsTrackerOverMultipleUsers() 169 assertArrayEquals(expectedStats, userStats.get(0).getStats(), 0); in testBrightnessStatsTrackerOverMultipleUsers() 348 assertArrayEquals(expectedStats, userStats.get(0).getStats(), 0); in testWriteThenReadAmbientBrightnessStats() 354 assertArrayEquals(expectedStats, userStats.get(1).getStats(), 0); in testWriteThenReadAmbientBrightnessStats() 362 assertArrayEquals(expectedStats, userStats.get(0).getStats(), 0); in testWriteThenReadAmbientBrightnessStats()
|