/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | ProvisioningTest.java | 45 import com.android.security.identity.internal.Util; 163 .putEntry(mdlNs, "First name", idsNoAuth, Util.cborEncodeString("Alan")) in createCredentialWithChallengeAndAcpId() 164 .putEntry(mdlNs, "Last name", idsNoAuth, Util.cborEncodeString("Turing")) in createCredentialWithChallengeAndAcpId() 166 Util.cborEncodeString("Maida Vale, London, England")) in createCredentialWithChallengeAndAcpId() 167 .putEntry(mdlNs, "Birth date", idsNoAuth, Util.cborEncodeString("19120623")) in createCredentialWithChallengeAndAcpId() 168 .putEntry(mdlNs, "Cryptanalyst", idsNoAuth, Util.cborEncodeBoolean(true)) in createCredentialWithChallengeAndAcpId() 169 .putEntry(mdlNs, "Portrait image", idsNoAuth, Util.cborEncodeBytestring( in createCredentialWithChallengeAndAcpId() 171 .putEntry(mdlNs, "Height", idsNoAuth, Util.cborEncodeInt(180)) in createCredentialWithChallengeAndAcpId() 172 .putEntry(mdlNs, "Neg Item", idsNoAuth, Util.cborEncodeInt(-42)) in createCredentialWithChallengeAndAcpId() 173 .putEntry(mdlNs, "Int Two Bytes", idsNoAuth, Util.cborEncodeInt(0x101)) in createCredentialWithChallengeAndAcpId() [all …]
|
D | CreateItemsRequestTest.java | 21 import com.android.security.identity.internal.Util; 48 Util.cborPrettyPrint(Util.createItemsRequest(entriesToRequest, docType))); in basicRequest() 70 Util.cborPrettyPrint(Util.createItemsRequest(entriesToRequest, docType))); in multipleNamespaces() 85 Util.cborPrettyPrint(Util.createItemsRequest(entriesToRequest, null))); in noDocType() 94 Util.cborPrettyPrint(Util.createItemsRequest(entriesToRequest, null))); in empty()
|
D | DynamicAuthTest.java | 37 import com.android.security.identity.internal.Util; 94 Util.createItemsRequest(entriesToRequest, null), in dynamicAuthTest() 100 String pretty = Util.cborPrettyPrint(Util.canonicalizeCbor(resultCbor)); in dynamicAuthTest() 113 KeyPair readerEphemeralKeyPair = Util.createEphemeralKeyPair(); in dynamicAuthTest() 120 byte[] sessionTranscript = Util.buildSessionTranscript(ephemeralKeyPair); in dynamicAuthTest() 125 Util.createItemsRequest(entriesToRequest, null), in dynamicAuthTest() 216 Util.createItemsRequest(entriesToRequest, null), in dynamicAuthTest() 242 sessionTranscript = Util.buildSessionTranscript(ephemeralKeyPair); in dynamicAuthTest() 244 Util.createItemsRequest(entriesToRequest, null), in dynamicAuthTest() 250 String pretty = Util.cborPrettyPrint(Util.canonicalizeCbor(resultCbor)); in dynamicAuthTest() [all …]
|
D | MultiDocumentPresentationTest.java | 41 import com.android.security.identity.internal.Util; 114 KeyPair readerEphemeralKeyPair = Util.createEphemeralKeyPair(); in multipleDocuments() 116 byte[] sessionTranscript = Util.buildSessionTranscript(ephemeralKeyPair); in multipleDocuments() 157 .setRequestMessage(Util.createItemsRequest(dsEntriesToRequest, null)) in checkPresentation() 165 String pretty = Util.cborPrettyPrint(Util.canonicalizeCbor(resultCbor)); in checkPresentation() 183 byte[] deviceAuthenticationCbor = Util.buildDeviceAuthenticationCbor( in checkPresentation() 190 SecretKey eMacKey = Util.calcEMacKeyForReader( in checkPresentation() 195 Util.prependSemanticTagForEncodedCbor(deviceAuthenticationCbor); in checkPresentation() 196 byte[] expectedMac = Util.coseMac0(eMacKey, in checkPresentation() 207 assertEquals(0, Util.coseSign1GetData(signature).length); in checkPresentation() [all …]
|
D | UserAuthTest.java | 28 import com.android.security.identity.internal.Util; 161 Util.cborEncodeString("foo0")) in doTestUserAuth() 163 Util.cborEncodeString("foo1")) in doTestUserAuth() 166 byte[] proofOfProvisioning = Util.coseSign1GetData(proofOfProvisioningSignature); in doTestUserAuth() 168 String pretty = Util.cborPrettyPrint(proofOfProvisioning); in doTestUserAuth() 228 Util.createItemsRequest(entriesToRequest, null), in doTestUserAuth() 244 Util.getStringEntry(rd, "org.iso.18013-5.2019", "Accessible to all (0)")); in doTestUserAuth() 261 rd = credential.getEntries(Util.createItemsRequest(entriesToRequest, null), in doTestUserAuth() 277 Util.getStringEntry(rd, "org.iso.18013-5.2019", "Accessible to all (0)")); in doTestUserAuth() 279 Util.getStringEntry(rd, "org.iso.18013-5.2019", in doTestUserAuth() [all …]
|
D | ReaderAuthTest.java | 32 import com.android.security.identity.internal.Util; 141 X509Certificate certASignedByC = Util.signPublicKeyWithPrivateKey("readerKeyA", in readerAuth() 143 X509Certificate certBSignedByC = Util.signPublicKeyWithPrivateKey("readerKeyB", in readerAuth() 206 Util.cborEncodeString("foo")) in readerAuth() 208 Util.cborEncodeString("bar")) in readerAuth() 210 Util.cborEncodeString("baz")) in readerAuth() 212 Util.cborEncodeString("bat")) in readerAuth() 215 byte[] proofOfProvisioning = Util.coseSign1GetData(proofOfProvisioningSignature); in readerAuth() 217 String pretty = Util.cborPrettyPrint(proofOfProvisioning); in readerAuth() 218 pretty = Util.replaceLine(pretty, 6, " 'readerCertificate' : [] // Removed"); in readerAuth() [all …]
|
D | NoSessionEncryptionTest.java | 34 import com.android.security.identity.internal.Util; 124 String pretty = Util.cborPrettyPrint(Util.canonicalizeCbor(resultCbor)); in noSessionEncryption() 146 byte[] deviceAuthenticationCbor = Util.buildDeviceAuthenticationCbor( in noSessionEncryption() 151 Util.prependSemanticTagForEncodedCbor(deviceAuthenticationCbor); in noSessionEncryption() 154 assertEquals(0, Util.coseSign1GetData(signature).length); in noSessionEncryption() 155 assertTrue(Util.coseSign1CheckSignature(signature, in noSessionEncryption()
|
D | X509CertificateSigningTest.java | 30 import com.android.security.identity.internal.Util; 88 X509Certificate cert = Util.signPublicKeyWithPrivateKey(keyToSignAlias, in testSigning()
|
D | EphemeralKeyTest.java | 33 import com.android.security.identity.internal.Util; 162 byte[] derivedKey = Util.computeHkdf("HmacSha256", sharedSecret, salt, info, 32); in TestReader() 166 derivedKey = Util.computeHkdf("HmacSha256", sharedSecret, salt, info,32); in TestReader()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | WavAnalyzer.java | 33 this.data = Util.toDouble(shortData); in WavAnalyzer() 86 coeffOfVar[i] = Util.std(powerAtFreq) / Util.mean(powerAtFreq); in isConsistent() 88 if (Util.mean(coeffOfVar) > 1.0) { in isConsistent() 109 if (Util.mean(dB) - Util.mean(noiseDB) < Common.SIGNAL_MIN_STRENGTH_DB_ABOVE_NOISE) { in responsePassesHifiTest() 115 int indexOf2000Hz = Util.findClosest(Common.FREQUENCIES_ORIGINAL, 2000.0); in responsePassesHifiTest() 117 int indexOf18500Hz = Util.findClosest(Common.FREQUENCIES_ORIGINAL, 18500.0); in responsePassesHifiTest() 118 int indexOf20000Hz = Util.findClosest(Common.FREQUENCIES_ORIGINAL, 20000.0); in responsePassesHifiTest() 121 if (Util.mean(responseInRange) < threshold) { in responsePassesHifiTest() 137 + Util.toLength(Common.PREFIX_LENGTH_S + Common.PAUSE_AFTER_PREFIX_DURATION_S, sampleRate); in measurePipStrength() 191 + Util.toLength(i * (Common.PIP_DURATION_S + Common.PAUSE_DURATION_S), sampleRate); in measurePipStrength() [all …]
|
D | SoundGenerator.java | 16 int prefixTotalLength = Util.toLength(Common.PREFIX_LENGTH_S, Common.PLAYING_SAMPLE_RATE_HZ) in SoundGenerator() 17 + Util.toLength(Common.PAUSE_BEFORE_PREFIX_DURATION_S, Common.PLAYING_SAMPLE_RATE_HZ) in SoundGenerator() 18 + Util.toLength(Common.PAUSE_AFTER_PREFIX_DURATION_S, Common.PLAYING_SAMPLE_RATE_HZ); in SoundGenerator() 19 int repetitionLength = pipNum * Util.toLength( in SoundGenerator() 26 Util.toLength(Common.PAUSE_BEFORE_PREFIX_DURATION_S, Common.PLAYING_SAMPLE_RATE_HZ), in SoundGenerator() 33 prefixTotalLength + i * Util.toLength( in SoundGenerator()
|
D | Common.java | 50 hann(Util.toLength(PIP_DURATION_S, RECORDING_SAMPLE_RATE_HZ)); 52 hann(Util.toLength(PIP_DURATION_S, PLAYING_SAMPLE_RATE_HZ));
|
D | Util.java | 12 public class Util { class
|
/cts/tests/tests/secure_element/sample_applet/src/com/android/cts/omapi/test/ |
D | CtsAndroidOmapiTestApplet.java | 7 import javacard.framework.Util; 118 Util.arrayCopy(respBuf, (short)0, buf, (short)0, (short)respBuf.length); in process() 134 Util.arrayCopy(respBuf, (short)0, buf, (short)0, (short)respBuf.length); in process() 163 Util.arrayCopy(respBuf, (short)0, buf, (short)0, (short)respBuf.length); in process() 173 Util.arrayCopy(respBuf, (short)0, buf, (short)0, (short) respBuf.length); in process() 179 Util.arrayCopy(SW_62xx_VALIDATE_DATA_RESP, (short) 0, buf, (short) 0, in process() 242 Util.arrayCopy(p2_00, (short) 0, buf, (short) 0, (short) p2_00.length); in process() 305 Util.arrayCopyNonAtomic(resp_bytes256, (short)0, respBuf, in fillBytes()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/ |
D | Util.java | 25 public class Util { class 26 private static final String LOG_TAG = Util.class.getSimpleName();
|
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/ |
D | AndroidTestUtil.java | 24 import static androidx.media3.common.util.Util.SDK_INT; 43 import androidx.media3.common.util.Util; 621 assumeFalse(Util.SDK_INT == 21 && Ascii.toLowerCase(Util.MODEL).contains("nexus")); in extractBitmapsFromVideo() 695 for (String line : Util.split(analysisContents, "\n")) { in writeTestSummaryToFile() 846 && (Util.MODEL.equals("SM-F711U1") || Util.MODEL.equals("SM-F926U1")); in deviceNeedsDisable8kWorkaround()
|
D | TransformerAndroidTestRunner.java | 35 import androidx.media3.common.util.Util; 448 if (Util.SDK_INT == 21 && Ascii.toLowerCase(Util.MODEL).contains("nexus")) { in runInternal() 473 if (Util.SDK_INT >= 23) { in hasNetworkConnection()
|
D | VideoDecodingWrapper.java | 40 import androidx.media3.common.util.Util; 117 Handler mainThreadHandler = Util.createHandlerForCurrentOrMainLooper(); in VideoDecodingWrapper()
|
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/ |
D | MediaParserTest.java | 39 import com.google.android.exoplayer2.util.Util; 563 Util.getBytesFromHexString("01020304050607080910111213141516"), 16), in testMatroskaOutOfBandCrypto() 564 /* newIv= */ Arrays.copyOf(Util.getBytesFromHexString("0101010101010101"), 16), in testMatroskaOutOfBandCrypto() 631 Util.getBytesFromHexString("91341951696b5e1ba232439ecec1f12a"), 16), in testMp4FragmentedOutOfBandCrypto() 632 /* newIv= */ Arrays.copyOf(Util.getBytesFromHexString("aab4ed0108dd5267"), 16), in testMp4FragmentedOutOfBandCrypto() 637 expectedCryptoInfo.iv = Arrays.copyOf(Util.getBytesFromHexString("aab4ed0108dd5272"), 16); in testMp4FragmentedOutOfBandCrypto()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/ |
D | UsbAccessoryTestActivity.java | 19 import static com.android.cts.verifier.usb.Util.runAndAssertException;
|
/cts/tests/tests/media/muxer/src/android/media/muxer/cts/ |
D | MediaMuxerTest.java | 49 import com.google.android.exoplayer2.util.Util; 503 Util.getBytesFromHexString("006b84e33eda2f4e89f31a280a123d4140e80300004c04b400"); in testAdditionOfHdrStaticMetadata()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/ |
D | UsbDeviceTestActivity.java | 19 import static com.android.cts.verifier.usb.Util.runAndAssertException;
|