Home
last modified time | relevance | path

Searched refs:md (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmMockTest.java62 MediaDrm md = new MediaDrm(mockScheme); in testMediaDrmConstructor() local
92 MediaDrm md = new MediaDrm(badScheme); in testMediaDrmConstructorFails() local
104 MediaDrm md = new MediaDrm(mockScheme); in testStringProperties() local
106 md.setPropertyString("test-string", "test-value"); in testStringProperties()
107 assertTrue(md.getPropertyString("test-string").equals("test-value")); in testStringProperties()
115 MediaDrm md = new MediaDrm(mockScheme); in testByteArrayProperties() local
118 md.setPropertyByteArray("test-array", testArray); in testByteArrayProperties()
119 assertTrue(Arrays.equals(md.getPropertyByteArray("test-array"), testArray)); in testByteArrayProperties()
127 MediaDrm md = new MediaDrm(mockScheme); in testMissingPropertyString() local
131 md.getPropertyString("missing-property"); in testMissingPropertyString()
[all …]
DMediaDrmTest.java54 MediaDrm md = new MediaDrm(scheme); in testSingleScheme() local
56 md.close(); in testSingleScheme()
DMediaDrmClearkeyTest.java312 public void onEvent(MediaDrm md, byte[] sid, int event, in startDrm()
314 if (md != mDrm) { in startDrm()
345 … public void onExpirationUpdate(MediaDrm md, byte[] sid, long expirationTime) { in startDrm()
346 if (md != mDrm) { in startDrm()
358 public void onSessionLostState(MediaDrm md, byte[] sid) { in startDrm()
359 if (md != mDrm) { in startDrm()
371 public void onKeyStatusChange(MediaDrm md, byte[] sessionId, in startDrm()
374 assertTrue(md == mDrm); in startDrm()
/cts/apps/CameraITS/tests/scene0/
Dtest_metadata.py48 md = cap['metadata']
77 check(self, 'android.sensor.frameDuration' in md,
79 check(self, md['android.sensor.frameDuration'] is not None,
81 check(self, md['android.sensor.rollingShutterSkew'] > 0,
83 check(self, md['android.sensor.frameDuration'] > 0,
86 self, md['android.sensor.rollingShutterSkew'] <=
87 md['android.sensor.frameDuration'],
91 md['android.sensor.frameDuration'])
93 check(self, 'android.sensor.rollingShutterSkew' in md,
95 check(self, md['android.sensor.rollingShutterSkew'] is not None,
[all …]
/cts/apps/CameraITS/tests/scene2_e/
Dtest_continuous_picture.py61 md = cap['metadata']
62 exp = md['android.sensor.exposureTime']
63 iso = md['android.sensor.sensitivity']
64 fd = md['android.lens.focalLength']
65 ae_state = md['android.control.aeState']
66 af_state = md['android.control.afState']
67 awb_state = md['android.control.awbState']
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/
DPackageUtil.java44 MessageDigest md = MessageDigest.getInstance("SHA256"); in getSelfPackageSha256Cert() local
45 md.update(signingInfo.getSigningCertificateHistory()[0].toByteArray()); in getSelfPackageSha256Cert()
46 return md.digest(); in getSelfPackageSha256Cert()
/cts/hostsidetests/edi/src/android/edi/cts/
DSecurityPolicyDeviceInfo.java39 MessageDigest md = MessageDigest.getInstance("SHA-256"); in collectDeviceInfo() local
40 var digestStream = new DigestInputStream(new FileInputStream(file), md); in collectDeviceInfo()
42 byte[] digest = md.digest(); in collectDeviceInfo()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java309 private static Object getKeyValue(CameraMetadata md, Object keyObj) throws ItsException { in getKeyValue() argument
310 if (md.getClass() == CaptureResult.class || md.getClass() == TotalCaptureResult.class) { in getKeyValue()
311 return ((CaptureResult)md).get((CaptureResult.Key)keyObj); in getKeyValue()
312 } else if (md.getClass() == CaptureRequest.class) { in getKeyValue()
313 return ((CaptureRequest)md).get((CaptureRequest.Key)keyObj); in getKeyValue()
314 } else if (md.getClass() == CameraCharacteristics.class) { in getKeyValue()
315 return ((CameraCharacteristics)md).get((CameraCharacteristics.Key)keyObj); in getKeyValue()
320 private static MetadataEntry serializeEntry(Type keyType, Object keyObj, CameraMetadata md) in serializeEntry() argument
322 return serializeEntry(keyType, keyObj, getKeyValue(md, keyObj)); in serializeEntry()
397 private static MetadataEntry serializeArrayEntry(Type keyType, Object keyObj, CameraMetadata md) in serializeArrayEntry() argument
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java447 private static Object getKeyValue(CameraMetadata md, Object keyObj) { in getKeyValue() argument
448 if (md.getClass() == CaptureResult.class || md.getClass() == TotalCaptureResult.class) { in getKeyValue()
449 return ((CaptureResult) md).get((CaptureResult.Key) keyObj); in getKeyValue()
450 } else if (md.getClass() == CaptureRequest.class) { in getKeyValue()
451 return ((CaptureRequest) md).get((CaptureRequest.Key) keyObj); in getKeyValue()
452 } else if (md.getClass() == CameraCharacteristics.class) { in getKeyValue()
453 return ((CameraCharacteristics) md).get((CameraCharacteristics.Key) keyObj); in getKeyValue()
460 private static MetadataEntry serializeEntry(Type keyType, Object keyObj, CameraMetadata md) { in serializeEntry() argument
464 Object keyValue = getKeyValue(md, keyObj); in serializeEntry()
528 CameraMetadata md) { in serializeArrayEntry() argument
[all …]
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildDalvikSuite.java115 MethodData md = parseTestMethod(pName, classOnlyName, method); in handleTest() local
116 String methodContent = md.methodBody; in handleTest()
192 String details = (md.title != null ? md.title : ""); in handleTest()
193 if (md.constraint != null) { in handleTest()
194 details = " Constraint " + md.constraint + ", " + details; in handleTest()
DBuildUtilBase.java182 MethodData md = new MethodData(); in parseTestMethod() local
183 md.methodBody = builder.toString(); in parseTestMethod()
184 md.constraint = constraint; in parseTestMethod()
185 md.title = title; in parseTestMethod()
186 return md; in parseTestMethod()
DBuildCTSMainsSources.java101 MethodData md = parseTestMethod(pName, classOnlyName, method); in handleTest() local
102 String methodContent = md.methodBody; in handleTest()
DBuildCTSHostSources.java229 MethodData md = parseTestMethod(pName, classOnlyName, method); in handleTest() local
230 String methodContent = md.methodBody; in handleTest()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPackageUtil.java175 MessageDigest md; in computeFileHash() local
177 md = MessageDigest.getInstance("SHA-256"); in computeFileHash()
187 md.update(dataBytes, 0, nread); in computeFileHash()
189 BigInteger bigInt = new BigInteger(1, md.digest()); in computeFileHash()
DCarrierPrivilegeUtils.java212 final MessageDigest md = MessageDigest.getInstance("SHA-256"); in getCertHashForThisPackage() local
213 final byte[] certHash = md.digest(pkgInfo.signatures[0].toByteArray()); in getCertHashForThisPackage()
/cts/hostsidetests/hdmicec/
DREADME.md18 * CEC adapter, see [External CEC Adapter instructions](cec_adapter.md)
19 * Install `cec-client` binary, see [install instructions](cec_adapter.md#software)
40 * CEC adapter, see [External CEC Adapter instructions](cec_adapter.md)
41 * Install `cec-client` binary, see [install instructions](cec_adapter.md#software)
/cts/tools/cfassembler/src/dxconvext/
DClassFileAssembler.java129 MessageDigest md; in calcSignature() local
132 md = MessageDigest.getInstance("SHA-1"); in calcSignature()
137 md.update(bytes, 32, bytes.length - 32); in calcSignature()
140 int amt = md.digest(bytes, 12, 20); in calcSignature()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DTestSuiteContentReport.java268 MessageDigest md = MessageDigest.getInstance("SHA-256"); in getFileContentId() local
275 md.update(dataBytes, 0, nread); in getFileContentId()
277 byte[] mdbytes = md.digest(); in getFileContentId()
289 MessageDigest md = MessageDigest.getInstance("SHA-256"); in getFolderContentId() local
292 md.update(entry.getContentId().getBytes(StandardCharsets.UTF_8)); in getFolderContentId()
294 byte[] mdbytes = md.digest(); in getFolderContentId()
306 MessageDigest md = MessageDigest.getInstance("SHA-256"); in getId() local
307 md.update(name.getBytes(StandardCharsets.UTF_8)); in getId()
308 byte[] mdbytes = md.digest(); in getId()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DFileParser.java132 MessageDigest md = MessageDigest.getInstance("SHA-256"); in getFileContentId() local
137 md.update(dataBytes, 0, nread); in getFileContentId()
140 mContentId = Base64.getEncoder().encodeToString(md.digest()); in getFileContentId()
DReleaseParser.java216 MessageDigest md = MessageDigest.getInstance("SHA-256"); in getFolderContentId() local
218 md.update(entry.getContentId().getBytes(StandardCharsets.UTF_8)); in getFolderContentId()
221 id = Base64.getEncoder().encodeToString(md.digest()); in getFolderContentId()
DTestSuiteParser.java594 MessageDigest md = MessageDigest.getInstance("SHA-256"); in getTestModuleContentId() local
603 md.update(idStr.getBytes(StandardCharsets.UTF_8)); in getTestModuleContentId()
605 id = Base64.getEncoder().encodeToString(md.digest()); in getTestModuleContentId()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/
Dgenerate-client-cert-chain.sh57 -md sha256 \
76 -md sha256 \
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DLocaleDeviceInfo.java172 MessageDigest md = MessageDigest.getInstance("SHA-256"); in sha256() local
173 md.update(mappedByteBuffer); in sha256()
175 byte[] digest = md.digest(); in sha256()
/cts/tests/tests/media/player/src/android/media/player/cts/
DStreamingMediaPlayerTest.java401 public void onTimedMetaDataAvailable(MediaPlayer mp, TimedMetaData md) { in testPlayHlsStreamWithTimedId3()
404 long timeUs = md.getTimestamp(); in testPlayHlsStreamWithTimedId3()
405 byte[] rawData = md.getMetaData(); in testPlayHlsStreamWithTimedId3()
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestApp/testdata/
DAndroid.bp15 // A rule to collect apps for debugging purpose. See ApkVerityTestAppPrebuilt/README.md.

12