Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DMediaDrmMockTest.java56 MediaDrm md = new MediaDrm(mockScheme); in testMediaDrmConstructor() local
86 MediaDrm md = new MediaDrm(badScheme); in testMediaDrmConstructorFails() local
98 MediaDrm md = new MediaDrm(mockScheme); in testStringProperties() local
100 md.setPropertyString("test-string", "test-value"); in testStringProperties()
101 assertTrue(md.getPropertyString("test-string").equals("test-value")); in testStringProperties()
109 MediaDrm md = new MediaDrm(mockScheme); in testByteArrayProperties() local
112 md.setPropertyByteArray("test-array", testArray); in testByteArrayProperties()
113 assertTrue(Arrays.equals(md.getPropertyByteArray("test-array"), testArray)); in testByteArrayProperties()
121 MediaDrm md = new MediaDrm(mockScheme); in testMissingPropertyString() local
125 md.getPropertyString("missing-property"); in testMissingPropertyString()
[all …]
DStreamingMediaPlayerTest.java498 public void onTimedMetaDataAvailable(MediaPlayer mp, TimedMetaData md) { in testPlayHlsStreamWithTimedId3()
501 long timeUs = md.getTimestamp(); in testPlayHlsStreamWithTimedId3()
502 byte[] rawData = md.getMetaData(); in testPlayHlsStreamWithTimedId3()
DStreamingMediaPlayer2Test.java627 TimedMetaData md) { in testPlayHlsStreamWithTimedId3()
630 long timeUs = md.getTimestamp(); in testPlayHlsStreamWithTimedId3()
631 byte[] rawData = md.getMetaData(); in testPlayHlsStreamWithTimedId3()
D.goutputstream-9KZYJZ627 TimedMetaData md) {
630 long timeUs = md.getTimestamp();
631 byte[] rawData = md.getMetaData();
DMediaDrmClearkeyTest.java265 public void onEvent(MediaDrm md, byte[] sessionId, int event, in startDrm()
/cts/apps/CameraITS/tests/scene0/
Dtest_metadata.py28 global md, props, failed
36 md = cap["metadata"]
99 fl = md["android.lens.focalLength"]
122 global md, props, failed
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java293 private static Object getKeyValue(CameraMetadata md, Object keyObj) throws ItsException { in getKeyValue() argument
294 if (md.getClass() == CaptureResult.class || md.getClass() == TotalCaptureResult.class) { in getKeyValue()
295 return ((CaptureResult)md).get((CaptureResult.Key)keyObj); in getKeyValue()
296 } else if (md.getClass() == CaptureRequest.class) { in getKeyValue()
297 return ((CaptureRequest)md).get((CaptureRequest.Key)keyObj); in getKeyValue()
298 } else if (md.getClass() == CameraCharacteristics.class) { in getKeyValue()
299 return ((CameraCharacteristics)md).get((CameraCharacteristics.Key)keyObj); in getKeyValue()
305 private static MetadataEntry serializeEntry(Type keyType, Object keyObj, CameraMetadata md) in serializeEntry() argument
310 Object keyValue = getKeyValue(md, keyObj); in serializeEntry()
373 private static MetadataEntry serializeArrayEntry(Type keyType, Object keyObj, CameraMetadata md) in serializeArrayEntry() argument
[all …]
/cts/apps/CameraITS/tests/scene2/
Dtest_num_faces.py52 md = cap['metadata']
53 assert md['android.statistics.faceDetectMode'] == fd_mode
54 faces = md['android.statistics.faces']
Dtest_faces.py54 md = cap['metadata']
55 assert(md['android.statistics.faceDetectMode'] == fd_mode)
56 faces = md['android.statistics.faces']
/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/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/vm-tests-tf/src/util/build/
DBuildDalvikSuite.java259 private void addCTSHostMethod(String pName, String method, MethodData md,
335 MethodData md = parseTestMethod(pName, classOnlyName, method);
336 String methodContent = md.methodBody;
341 addCTSHostMethod(pName, method, md, dependentTestClassNames);
429 String details = (md.title != null ? md.title : "");
430 if (md.constraint != null) {
431 details = " Constraint " + md.constraint + ", " + details;
750 MethodData md = new MethodData();
751 md.methodBody = builder.toString();
752 md.constraint = constraint;
[all …]
/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/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/
Dgenerate-client-cert-chain.sh57 -md sha256 \
76 -md sha256 \
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java126 MessageDigest md = MessageDigest.getInstance("SHA-1"); in getCertHash() local
127 return IccUtils.bytesToHexString(md.digest(pInfo.signatures[0].toByteArray())); in getCertHash()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java1155 MessageDigest md = MessageDigest.getInstance("MD5"); in getImageMD5Checksum() local
1214 md.update(bb, 0, width * height); in getImageMD5Checksum()
1217 return convertByteArrayToHEXString(md.digest()); in getImageMD5Checksum()
/cts/tests/tests/media/assets/
Dsegment000000.ts4823 …��������&����-���T��-_`H��AB��q�U�����?��F���3h��0���;����=t����md�o�#�qO���c������_W�…