/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | DefaultDialerOperationsTest.java | 47 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp() 50 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 53 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp() 55 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp() 69 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 75 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetDefaultDialerPackage() 79 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testGetDefaultDialerPackage() 80 assertEquals(TestUtils.PACKAGE, mTelecomManager.getDefaultDialerPackage()); in testGetDefaultDialerPackage() 84 if (!TestUtils.shouldTestTelecom(mContext)) { in testVoicemailReadWritePermissions() 110 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testVoicemailReadWritePermissions() [all …]
|
D | SimCallManagerTest.java | 19 import static android.telecom.cts.TestUtils.ACCOUNT_ID; 20 import static android.telecom.cts.TestUtils.ACCOUNT_LABEL; 21 import static android.telecom.cts.TestUtils.COMPONENT; 22 import static android.telecom.cts.TestUtils.PACKAGE; 65 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp() 68 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 71 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp() 73 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp() 83 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 89 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetSimCallManager() [all …]
|
D | BasicInCallServiceTest.java | 19 import static android.telecom.cts.TestUtils.shouldTestTelecom; 47 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 48 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in setUp() 54 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
|
D | BaseRemoteTelecomTest.java | 19 import static android.telecom.cts.TestUtils.*; 80 TestUtils.registerSimPhoneAccount(getInstrumentation(), in setupRemoteConnectionService() 88 TestUtils.enablePhoneAccount(getInstrumentation(), TEST_REMOTE_PHONE_ACCOUNT_HANDLE); in setupRemoteConnectionService() 111 if (!remoteConnectionService.lock.tryAcquire(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in verifyConnectionForOutgoingCallOnRemoteCS() 134 if (!remoteConnectionService.lock.tryAcquire(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in verifyConnectionForIncomingCallOnRemoteCS() 172 if (!remoteConnectionService.lock.tryAcquire(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in verifyConferenceForOutgoingCallOnRemoteCS()
|
D | VideoCallTest.java | 28 import static android.telecom.cts.TestUtils.shouldTestTelecom; 491 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in assertVideoState() 518 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in assertVideoCallbackRegistered() 546 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in assertCameraCapabilitiesReceived() 571 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in assertCallDataUsageReceived() 598 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in assertVideoQualityReceived() 625 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in assertCallSessionEventReceived() 652 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in assertPeerWidthChanged() 677 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in assertDeviceOrientationChanged() 703 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in assertPreviewSurfaceChanged() [all …]
|
D | ConferenceTest.java | 19 import static android.telecom.cts.TestUtils.*; 128 assertCallDisplayName(mCall1, TestUtils.MERGE_CALLER_NAME); in testConferenceMergeAndSwap() 129 assertCallDisplayName(mCall2, TestUtils.MERGE_CALLER_NAME); in testConferenceMergeAndSwap() 131 TestUtils.MERGE_CALLER_NAME); in testConferenceMergeAndSwap() 133 TestUtils.MERGE_CALLER_NAME); in testConferenceMergeAndSwap() 136 assertCallDisplayName(mCall1, TestUtils.SWAP_CALLER_NAME); in testConferenceMergeAndSwap() 137 assertCallDisplayName(mCall2, TestUtils.SWAP_CALLER_NAME); in testConferenceMergeAndSwap() 139 TestUtils.SWAP_CALLER_NAME); in testConferenceMergeAndSwap() 141 TestUtils.SWAP_CALLER_NAME); in testConferenceMergeAndSwap() 423 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in assertVideoState()
|
D | RemoteConferenceTest.java | 19 import static android.telecom.cts.TestUtils.*; 155 assertCallDisplayName(mCall1, TestUtils.MERGE_CALLER_NAME); in testRemoteConferenceMergeAndSwap() 156 assertCallDisplayName(mCall2, TestUtils.MERGE_CALLER_NAME); in testRemoteConferenceMergeAndSwap() 158 TestUtils.MERGE_CALLER_NAME); in testRemoteConferenceMergeAndSwap() 160 TestUtils.MERGE_CALLER_NAME); in testRemoteConferenceMergeAndSwap() 162 TestUtils.MERGE_CALLER_NAME); in testRemoteConferenceMergeAndSwap() 164 TestUtils.MERGE_CALLER_NAME); in testRemoteConferenceMergeAndSwap() 167 assertCallDisplayName(mCall1, TestUtils.SWAP_CALLER_NAME); in testRemoteConferenceMergeAndSwap() 168 assertCallDisplayName(mCall2, TestUtils.SWAP_CALLER_NAME); in testRemoteConferenceMergeAndSwap() 170 TestUtils.SWAP_CALLER_NAME); in testRemoteConferenceMergeAndSwap() [all …]
|
D | PhoneAccountOperationsTest.java | 19 import static android.telecom.cts.TestUtils.*; 83 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp() 91 if (!TestUtils.shouldTestTelecom(mContext)) { in tearDown() 167 TestUtils.enablePhoneAccount(getInstrumentation(), TEST_PHONE_ACCOUNT_HANDLE); in testRegisterPhoneAccount_ListEnabledAccounts()
|
D | MockConference.java | 79 TestUtils.MERGE_CALLER_NAME, TelecomManager.PRESENTATION_ALLOWED); in onMerge() 92 TestUtils.SWAP_CALLER_NAME, TelecomManager.PRESENTATION_ALLOWED); in onSwap()
|
/cts/tests/tests/telecom2/src/android/telecom/cts/ |
D | DefaultDialerOperationsNoPermissionsTest.java | 37 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp() 40 TestUtils.PACKAGE = mContext.getPackageName(); in setUp() 41 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 44 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp() 46 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp() 56 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 62 if (!TestUtils.shouldTestTelecom(mContext)) { in testShowInCallScreenPermissions() 74 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetCallCapableAccountsPermissions() 86 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetDefaultOutgoingPhoneAccount() 98 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetLine1Number() [all …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | CipherTest.java | 60 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; 213 private static final long DAY_IN_MILLIS = TestUtils.DAY_IN_MILLIS; 236 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList() 244 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList() 336 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEmptyPlaintextEncryptsAndDecrypts() 337 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testEmptyPlaintextEncryptsAndDecrypts() 381 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore() 382 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore() 458 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore() 459 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore() [all …]
|
D | KeyGeneratorTest.java | 47 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; 82 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList() 90 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList() 208 assertEquals(expectedSizeBits, TestUtils.getKeyInfo(key).getKeySize()); in testDefaultKeySize() 224 spec = TestUtils.buildUpon(goodSpec.setKeySize(i)).build(); in testAesKeySupportedSizes() 227 spec = TestUtils.buildUpon(goodSpec.setKeySize(i)).build(); in testAesKeySupportedSizes() 234 if (TestUtils.contains(AES_SUPPORTED_KEY_SIZES, i)) { in testAesKeySupportedSizes() 237 assertEquals(i, TestUtils.getKeyInfo(key).getKeySize()); in testAesKeySupportedSizes() 255 if (!TestUtils.isHmacAlgorithm(algorithm)) { in testHmacKeySupportedSizes() 277 assertEquals(i, TestUtils.getKeyInfo(key).getKeySize()); in testHmacKeySupportedSizes() [all …]
|
D | RSASignatureTest.java | 47 String keyAlgorithm = TestUtils.getSignatureAlgorithmKeyAlgorithm(algorithm); 112 String digest = TestUtils.getSignatureAlgorithmDigest(algorithm); in testSmallKeyRejected() 118 int digestOutputSizeBits = TestUtils.getDigestOutputSizeBits(digest); in testSmallKeyRejected() 124 KeyPair keyPair = TestUtils.importIntoAndroidKeyStore("test1", in testSmallKeyRejected() 128 TestUtils.getMinimalWorkingImportParametersForSigningingWith(algorithm)) in testSmallKeyRejected() 153 TestUtils.getMinimalWorkingImportParametersForSigningingWith(signatureAlgorithm); in importKatKeyPairs() 160 TestUtils.importIntoAndroidKeyStore("testRSA512", context, in importKatKeyPairs() 162 TestUtils.importIntoAndroidKeyStore("testRSA768", context, in importKatKeyPairs() 164 TestUtils.importIntoAndroidKeyStore("testRSA1024", context, in importKatKeyPairs() 166 TestUtils.importIntoAndroidKeyStore("testRSA2024", context, in importKatKeyPairs() [all …]
|
D | SecretKeyFactoryTest.java | 45 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; 67 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList() 75 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList() 81 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 83 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 85 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 95 if (TestUtils.isHmacAlgorithm(algorithm)) { in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 96 String digest = TestUtils.getHmacAlgorithmDigest(algorithm); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 118 TestUtils.assertContentsInAnyOrder( in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 120 TestUtils.assertContentsInAnyOrder( in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() [all …]
|
D | ECDSASignatureTest.java | 45 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSATruncatesInputToFieldSize() 87 int keySizeBits = TestUtils.getKeySizeBits(keyPair.getPublic()); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize() 108 byte[] fullLengthMessage = TestUtils.leftPadWithZeroBytes(message, keySizeBits / 8); in assertNONEwithECDSASupportsMessagesShorterThanFieldSize() 116 TestUtils.getMinimalWorkingImportParametersForSigningingWith(signatureAlgorithm); in importKatKeyPairs() 123 TestUtils.importIntoAndroidKeyStore("testECsecp224r1", context, in importKatKeyPairs() 125 TestUtils.importIntoAndroidKeyStore("testECsecp256r1", context, in importKatKeyPairs() 127 TestUtils.importIntoAndroidKeyStore("testECsecp384r1", context, in importKatKeyPairs() 129 TestUtils.importIntoAndroidKeyStore("testECsecp521r1", context, in importKatKeyPairs()
|
D | RSACipherTest.java | 36 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; 44 TestUtils.getMinimalWorkingImportParametersForCipheringWith( in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 57 byte[] expectedOutput = TestUtils.leftPadWithZeroBytes(input, modulusSizeBytes); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 77 TestUtils.getMinimalWorkingImportParametersForCipheringWith( in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() 88 TestUtils.getBigIntegerMagnitudeBytes(modulus.subtract(BigInteger.ONE)); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() 105 TestUtils.getMinimalWorkingImportParametersForCipheringWith( in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus() 114 byte[] plaintext = TestUtils.getBigIntegerMagnitudeBytes(modulus); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus() 133 TestUtils.getMinimalWorkingImportParametersForCipheringWith( in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus() 143 TestUtils.getBigIntegerMagnitudeBytes(modulus.add(BigInteger.ONE)); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus() 163 TestUtils.getMinimalWorkingImportParametersForCipheringWith( in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus() [all …]
|
D | SignatureTest.java | 51 static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; 329 private static final long DAY_IN_MILLIS = TestUtils.DAY_IN_MILLIS; 343 Arrays.asList(TestUtils.toLowerCase(EXPECTED_SIGNATURE_ALGORITHMS))); in testAlgorithmList() 360 TestUtils.assertContentsInAnyOrder(actualSigAlgsLowerCase, in testAlgorithmList() 401 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in testValidSignatureGeneratedForEmptyMessage() 430 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in testEmptySignatureDoesNotVerify() 453 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in testSignatureGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore() 484 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider() 529 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore() 577 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in DISABLED_testEntropyConsumption() [all …]
|
D | KeyPairGeneratorTest.java | 110 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; 143 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList() 151 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList() 220 TestUtils.getKeyInfo(keyPair.getPrivate()).getKeySize()); in testDefaultKeySize() 301 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizations() 303 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizations() 305 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizations() 328 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerateHonorsRequestedAuthorizations() 330 TestUtils.assertContentsInAnyOrder( in testGenerateHonorsRequestedAuthorizations() 337 TestUtils.assertContentsInAnyOrder( in testGenerateHonorsRequestedAuthorizations() [all …]
|
D | KeyFactoryTest.java | 61 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; 79 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList() 87 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList() 93 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 95 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 97 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 124 TestUtils.assertContentsInAnyOrder( in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 131 TestUtils.assertContentsInAnyOrder( in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 138 TestUtils.assertContentsInAnyOrder(actualDigests, digests); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 243 TestUtils.assertECParameterSpecEqualsIgnoreSeedIfNotPresent( in testGetKeySpecWithKeystorePublicKeyAcceptsTransparentKeySpec() [all …]
|
D | MacTest.java | 46 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; 183 private static final long DAY_IN_MILLIS = TestUtils.DAY_IN_MILLIS; 197 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList() 205 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList() 322 SecretKey key = TestUtils.importIntoAndroidKeyStore( in testSmallMsgKat() 351 byte[] message = TestUtils.generateLargeKatMsg(LONG_MSG_KAT_SEED, LONG_MSG_KAT_SIZE_BYTES); in testLargeMsgKat() 379 TestUtils.buildUpon(good, badPurposes).build()); in testInitFailsWhenNotAuthorizedToSign() 404 KeyProtection good = TestUtils.buildUpon(getWorkingImportParams(algorithm)) in testInitFailsWhenKeyNotYetValid() 411 TestUtils.buildUpon(good).setKeyValidityStart(badStartDate).build()); in testInitFailsWhenKeyNotYetValid() 421 KeyProtection good = TestUtils.buildUpon(getWorkingImportParams(algorithm)) in testInitFailsWhenKeyNoLongerValidForOrigination() [all …]
|
D | AndroidKeyStoreTest.java | 2036 Certificate cert1 = TestUtils.getRawResX509Certificate(getContext(), R.raw.rsa_key1_cert); in testKeyStore_LargeNumberOfKeysSupported_RSA() 2037 PrivateKey privateKey1 = TestUtils.getRawResPrivateKey(getContext(), R.raw.rsa_key1_pkcs8); in testKeyStore_LargeNumberOfKeysSupported_RSA() 2040 Certificate cert2 = TestUtils.getRawResX509Certificate(getContext(), R.raw.rsa_key2_cert); in testKeyStore_LargeNumberOfKeysSupported_RSA() 2041 PrivateKey privateKey2 = TestUtils.getRawResPrivateKey(getContext(), R.raw.rsa_key2_pkcs8); in testKeyStore_LargeNumberOfKeysSupported_RSA() 2135 Certificate cert1 = TestUtils.getRawResX509Certificate(getContext(), R.raw.ec_key1_cert); in testKeyStore_LargeNumberOfKeysSupported_EC() 2136 PrivateKey privateKey1 = TestUtils.getRawResPrivateKey(getContext(), R.raw.ec_key1_pkcs8); in testKeyStore_LargeNumberOfKeysSupported_EC() 2139 Certificate cert2 = TestUtils.getRawResX509Certificate(getContext(), R.raw.ec_key2_cert); in testKeyStore_LargeNumberOfKeysSupported_EC() 2140 PrivateKey privateKey2 = TestUtils.getRawResPrivateKey(getContext(), R.raw.ec_key2_pkcs8); in testKeyStore_LargeNumberOfKeysSupported_EC() 2402 if (!TestUtils.isHmacAlgorithm(algorithm)) { in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC() 2406 String digest = TestUtils.getHmacAlgorithmDigest(algorithm); in testKeyStore_OnlyOneDigestCanBeAuthorized_HMAC() [all …]
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | ScanRecordTest.java | 43 ScanRecord data = TestUtils.parseScanRecord(scanRecord); in testParser() 57 TestUtils.assertArrayEquals(manufacturerData, in testParser() 59 TestUtils.assertArrayEquals(manufacturerData, data.getManufacturerSpecificData(0x00E0)); in testParser() 64 TestUtils.assertArrayEquals(serviceData, data.getServiceData().get(uuid2)); in testParser() 65 TestUtils.assertArrayEquals(serviceData, data.getServiceData(uuid2)); in testParser()
|
D | ScanResultTest.java | 46 ScanResult result = new ScanResult(device, TestUtils.parseScanRecord(SCAN_RECORD), RSSI, in testScanResultParceling() 57 TestUtils.assertArrayEquals(SCAN_RECORD, resultFromParcel.getScanRecord().getBytes()); in testScanResultParceling() 64 ScanResult result = new ScanResult(device, TestUtils.parseScanRecord(SCAN_RECORD), RSSI, in testDescribeContents()
|
D | AdvertiseDataTest.java | 82 …TestUtils.assertArrayEquals(new byte[0], dataFromParcel.getManufacturerSpecificData().get(manufact… in testEmptyManufacturerData() 98 TestUtils.assertArrayEquals(new byte[0], dataFromParcel.getServiceData().get(uuid)); in testEmptyServiceData() 138 TestUtils.assertArrayEquals(manufacturerData, in testManufacturerData() 156 TestUtils.assertArrayEquals(serviceData, dataFromParcel.getServiceData().get(uuid)); in testServiceData()
|
D | TestUtils.java | 30 class TestUtils { class
|