Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/app/activity/
DMetaDataTest.java46 Bundle md = ci.metaData; in checkMetaData() local
47 assertNotNull("No meta data found", md); in checkMetaData()
49 assertEquals("foo", md.getString("com.android.frameworks.coretests.string")); in checkMetaData()
50 assertTrue(md.getBoolean("com.android.frameworks.coretests.boolean")); in checkMetaData()
51 assertEquals(100, md.getInt("com.android.frameworks.coretests.integer")); in checkMetaData()
52 assertEquals(0xff000000, md.getInt("com.android.frameworks.coretests.color")); in checkMetaData()
55 Math.floor(md.getFloat("com.android.frameworks.coretests.float") * 10 + .5)); in checkMetaData()
57 assertEquals(R.xml.metadata, md.getInt("com.android.frameworks.coretests.reference")); in checkMetaData()
/frameworks/av/media/libstagefright/webm/
DWebmWriter.cpp84 sp<WebmElement> WebmWriter::videoTrack(const sp<MetaData>& md) { in videoTrack() argument
87 if (!md->findInt32(kKeyWidth, &width) in videoTrack()
88 || !md->findInt32(kKeyHeight, &height) in videoTrack()
89 || !md->findCString(kKeyMIMEType, &mimeType)) { in videoTrack()
91 md->dumpToLog(); in videoTrack()
109 return WebmElement::VideoTrackEntry(codec, width, height, md); in videoTrack()
113 sp<WebmElement> WebmWriter::audioTrack(const sp<MetaData>& md) { in audioTrack() argument
122 if (!md->findInt32(kKeyChannelCount, &nChannels) in audioTrack()
123 || !md->findInt32(kKeySampleRate, &samplerate) in audioTrack()
124 || !md->findData(kKeyVorbisInfo, &type, &headerData1, &headerSize1) in audioTrack()
[all …]
DWebmWriter.h123 static sp<WebmElement> videoTrack(const sp<MetaData>& md);
124 static sp<WebmElement> audioTrack(const sp<MetaData>& md);
DWebmFrameThread.cpp342 sp<MetaData> md = buffer->meta_data(); in run() local
343 CHECK(md->findInt64(kKeyTime, &timestampUs)); in run()
371 md->findInt32(kKeyIsSyncFrame, &isSync); in run()
DWebmElement.h65 const sp<MetaData> &md,
/frameworks/base/core/java/android/security/net/config/
DNetworkSecurityTrustManager.java132 MessageDigest md = digestMap.get(algorithm); in checkPins() local
133 if (md == null) { in checkPins()
135 md = MessageDigest.getInstance(algorithm); in checkPins()
139 digestMap.put(algorithm, md); in checkPins()
141 if (pinSet.pins.contains(new Pin(algorithm, md.digest(encodedSPKI)))) { in checkPins()
/frameworks/base/media/java/android/media/
DMediaDrm.java302 @NonNull MediaDrm md, @NonNull byte[] sessionId, long expirationTime);
346 @NonNull MediaDrm md, @NonNull byte[] sessionId,
452 @NonNull MediaDrm md, @Nullable byte[] sessionId,
510 public EventHandler(@NonNull MediaDrm md, @NonNull Looper looper) {
512 mMediaDrm = md;
607 MediaDrm md = (MediaDrm)((WeakReference<MediaDrm>)mediadrm_ref).get(); in postEventFromNative() local
608 if (md == null) { in postEventFromNative()
611 if (md.mEventHandler != null) { in postEventFromNative()
612 Message m = md.mEventHandler.obtainMessage(what, eventType, extra, obj); in postEventFromNative()
613 md.mEventHandler.sendMessage(m); in postEventFromNative()
/frameworks/base/services/core/java/com/android/server/search/
DSearchables.java140 Bundle md = ai.metaData; in getSearchableInfo() local
141 if (md != null) { in getSearchableInfo()
142 refActivityName = md.getString(MD_LABEL_DEFAULT_SEARCHABLE); in getSearchableInfo()
146 md = ai.applicationInfo.metaData; in getSearchableInfo()
147 if (md != null) { in getSearchableInfo()
148 refActivityName = md.getString(MD_LABEL_DEFAULT_SEARCHABLE); in getSearchableInfo()
/frameworks/base/services/core/java/com/android/server/pm/
DProcessLoggingHandler.java102 MessageDigest md = MessageDigest.getInstance("SHA-256"); in computeHashOfApkFile() local
107 md.update(buffer, 0, size); in computeHashOfApkFile()
110 return md.digest(); in computeHashOfApkFile()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DCustomPrinterIconCache.java71 MessageDigest md = MessageDigest.getInstance("SHA-1"); in getIconFileName() local
72 md.update( in getIconFileName()
75 sb.append(String.format("%#040x", new java.math.BigInteger(1, md.digest()))); in getIconFileName()
/frameworks/base/core/java/android/app/
DActivity.java1100 final ManagedDialog md = new ManagedDialog(); in restoreManagedDialogs() local
1101 md.mArgs = b.getBundle(savedDialogArgsKeyFor(dialogId)); in restoreManagedDialogs()
1102 md.mDialog = createDialog(dialogId, dialogState, md.mArgs); in restoreManagedDialogs()
1103 if (md.mDialog != null) { in restoreManagedDialogs()
1104 mManagedDialogs.put(dialogId, md); in restoreManagedDialogs()
1105 onPrepareDialog(dialogId, md.mDialog, md.mArgs); in restoreManagedDialogs()
1106 md.mDialog.onRestoreInstanceState(dialogState); in restoreManagedDialogs()
1534 final ManagedDialog md = mManagedDialogs.valueAt(i); in saveManagedDialogs() local
1535 dialogState.putBundle(savedDialogKeyFor(key), md.mDialog.onSaveInstanceState()); in saveManagedDialogs()
1536 if (md.mArgs != null) { in saveManagedDialogs()
[all …]
/frameworks/base/core/java/android/util/jar/
DStrictJarVerifier.java481 MessageDigest md; in verify() local
483 md = MessageDigest.getInstance(algorithm); in verify()
488 md.update(data, start, end - 1 - start); in verify()
490 md.update(data, start, end - start); in verify()
492 byte[] b = md.digest(); in verify()
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java242 MessageDigest md; in computeDigestLocked() local
244 md = MessageDigest.getInstance("SHA-256"); in computeDigestLocked()
261 md.update(data, 0, DIGEST_SIZE_BYTES); // include 0 checksum in digest in computeDigestLocked()
263 md.update(data, 0, read); in computeDigestLocked()
272 return md.digest(); in computeDigestLocked()
/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV2Verifier.java525 MessageDigest md = mds[i]; in computeContentDigests() local
527 md.digest( in computeContentDigests()
533 "Unexpected output size of " + md.getAlgorithm() + " digest: " in computeContentDigests()
549 MessageDigest md; in computeContentDigests() local
551 md = MessageDigest.getInstance(jcaAlgorithmName); in computeContentDigests()
555 byte[] output = md.digest(input); in computeContentDigests()
1060 for (MessageDigest md : mds) { in feedIntoMessageDigests()
1062 md.update(buf); in feedIntoMessageDigests()
1115 for (MessageDigest md : mds) { in feedIntoMessageDigests()
1119 md.update(region); in feedIntoMessageDigests()
/frameworks/base/telecomm/java/android/telecom/
DLog.java55 MessageDigest md; in initMd5Sum() local
57 md = MessageDigest.getInstance("SHA-1"); in initMd5Sum()
59 md = null; in initMd5Sum()
62 sMessageDigest = md; in initMd5Sum()
/frameworks/base/packages/SystemUI/
DREADME.md5 * [Demo Mode](/packages/SystemUI/docs/demo_mode.md)
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceProcessor.java348 for (int md = 1; md <= maxDay; md++) { in filterMonthlySetPos()
353 daySet[daySetLength++] = md; in filterMonthlySetPos()
/frameworks/native/vulkan/nulldrv/
Dnull_driver.tmpl46 // WARNING: This file is generated. See ../README.md for instructions.
98 // WARNING: This file is generated. See ../README.md for instructions.
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
DIPControls.java109 int md = (size.x > size.y) ? size.x : size.y; in onCreateOptionsMenu() local
111 if (Resolutions.values()[ct].width <= (int)(md * 1.2)) { in onCreateOptionsMenu()
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
DIPControlsJB.java110 int md = (size.x > size.y) ? size.x : size.y; in onCreateOptionsMenu() local
112 if (Resolutions.values()[ct].width <= (int)(md * 1.2)) { in onCreateOptionsMenu()
/frameworks/base/core/java/android/net/http/
DSslCertificate.java273 MessageDigest md = MessageDigest.getInstance(algorithm); in getDigest() local
274 byte[] digest = md.digest(bytes); in getDigest()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRules.java618 MessageDigest md = MessageDigest.getInstance(algo); in getCertHash() local
619 return md.digest(signature.toByteArray()); in getCertHash()
/frameworks/native/vulkan/libvulkan/
Dcode-generator.tmpl35 // WARNING: This file is generated. See ../README.md for instructions.
91 // WARNING: This file is generated. See ../README.md for instructions.
213 // WARNING: This file is generated. See ../README.md for instructions.
270 // WARNING: This file is generated. See ../README.md for instructions.
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java438 final Bundle md = ai.metaData; in queryTargetServices() local
439 final String serviceName = md != null ? convertServiceName(ai.packageName, in queryTargetServices()
440 md.getString(ChooserTargetService.META_DATA_NAME)) : null; in queryTargetServices()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java1112 MessageDigest md = MessageDigest.getInstance("SHA-1"); in patternToHash() local
1113 byte[] hash = md.digest(res); in patternToHash()

12