Searched defs:algorithm (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/http/
H A DDefaultHttpClientTest.java125 private void authenticateDigestAlgorithm(String algorithm) throws Exception { argument
128 + "algorithm=" + algorithm;
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/
H A DMediaDrmSigner.java128 * @param algorithm the signing algorithm to use, e.g. "PKCS1-BlockType1"
134 String algorithm, byte[] wrappedKey, byte[] message) {
135 return drm.signRSA(sessionId, algorithm, wrappedKey, message);
133 signRSA(MediaDrm drm, byte[] sessionId, String algorithm, byte[] wrappedKey, byte[] message) argument
/frameworks/base/core/java/android/text/
H A DTextDirectionHeuristics.java41 new TextDirectionHeuristicInternal(null /* no algorithm */, false);
47 new TextDirectionHeuristicInternal(null /* no algorithm */, true);
113 * Computes the text direction based on an algorithm. Subclasses implement
114 * {@link #defaultIsRtl} to handle cases where the algorithm cannot determine the
120 public TextDirectionHeuristicImpl(TextDirectionAlgorithm algorithm) { argument
121 mAlgorithm = algorithm;
160 private TextDirectionHeuristicInternal(TextDirectionAlgorithm algorithm, argument
162 super(algorithm);
173 * Interface for an algorithm to guess the direction of a paragraph of text.
177 * Returns whether the range of text is RTL according to the algorithm
[all...]
/frameworks/support/v4/java/android/support/v4/text/
H A DTextDirectionHeuristicsCompat.java34 new TextDirectionHeuristicInternal(null /* no algorithm */, false);
40 new TextDirectionHeuristicInternal(null /* no algorithm */, true);
107 * Computes the text direction based on an algorithm. Subclasses implement
108 * {@link #defaultIsRtl} to handle cases where the algorithm cannot determine the
114 public TextDirectionHeuristicImpl(TextDirectionAlgorithm algorithm) { argument
115 mAlgorithm = algorithm;
154 private TextDirectionHeuristicInternal(TextDirectionAlgorithm algorithm, argument
156 super(algorithm);
167 * Interface for an algorithm to guess the direction of a paragraph of text.
171 * Returns whether the range of text is RTL according to the algorithm
[all...]
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DDrmPlugin.h156 const Vector<uint8_t>& sessionId, const String8& algorithm) {
158 UNUSED(algorithm);
163 const Vector<uint8_t>& sessionId, const String8& algorithm) {
165 UNUSED(algorithm);
224 const String8& algorithm,
229 UNUSED(algorithm);
155 setCipherAlgorithm( const Vector<uint8_t>& sessionId, const String8& algorithm) argument
162 setMacAlgorithm( const Vector<uint8_t>& sessionId, const String8& algorithm) argument
222 signRSA( const Vector<uint8_t>& sessionId, const String8& algorithm, const Vector<uint8_t>& message, const Vector<uint8_t>& wrappedKey, Vector<uint8_t>& signature) argument
/frameworks/base/core/java/android/net/http/
H A DSslCertificate.java265 private static String getDigest(X509Certificate x509Certificate, String algorithm) { argument
271 MessageDigest md = MessageDigest.getInstance(algorithm);
H A DRequestHandle.java242 String algorithm,
246 username, password, realm, nonce, QOP, algorithm, opaque);
301 String algorithm,
327 if (algorithm != null) {
328 response += ", algorithm=" + algorithm;
236 setupDigestAuthResponse(boolean isProxy, String username, String password, String realm, String nonce, String QOP, String algorithm, String opaque) argument
296 computeDigestAuthResponse(String username, String password, String realm, String nonce, String QOP, String algorithm, String opaque) argument
/frameworks/base/keystore/java/android/security/
H A DKeyChain.java377 * specific {@code PrivateKey} type indicated by {@code algorithm} (e.g.,
380 public static boolean isKeyAlgorithmSupported(String algorithm) { argument
381 final String algUpper = algorithm.toUpperCase(Locale.US);
387 * {@code PrivateKey} of the given {@code algorithm} to the device once
392 public static boolean isBoundKeyAlgorithm(String algorithm) { argument
393 if (!isKeyAlgorithmSupported(algorithm)) {
397 return KeyStore.getInstance().isHardwareBacked(algorithm);
/frameworks/av/drm/mediadrm/plugins/mock/
H A DMockDrmCryptoPlugin.cpp447 String8 const &algorithm)
451 ALOGD("MockDrmPlugin::setCipherAlgorithm(sessionId=%s, algorithm=%s)",
452 vectorToString(sessionId).string(), algorithm.string());
460 if (algorithm == "AES/CBC/NoPadding") {
467 String8 const &algorithm)
471 ALOGD("MockDrmPlugin::setMacAlgorithm(sessionId=%s, algorithm=%s)",
472 vectorToString(sessionId).string(), algorithm.string());
480 if (algorithm == "HmacSHA256") {
639 String8 const &algorithm,
645 ALOGD("MockDrmPlugin::signRSA(sessionId=%s, algorithm
446 setCipherAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
466 setMacAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
638 signRSA(Vector<uint8_t> const &sessionId, String8 const &algorithm, Vector<uint8_t> const &message, Vector<uint8_t> const &wrappedKey, Vector<uint8_t> &signature) argument
[all...]
/frameworks/av/media/libmedia/
H A DIDrm.cpp337 String8 const &algorithm) {
342 data.writeString8(algorithm);
348 String8 const &algorithm) {
353 data.writeString8(algorithm);
432 String8 const &algorithm,
440 data.writeString8(algorithm);
753 String8 algorithm = data.readString8(); local
754 reply->writeInt32(setCipherAlgorithm(sessionId, algorithm));
763 String8 algorithm = data.readString8(); local
764 reply->writeInt32(setMacAlgorithm(sessionId, algorithm));
336 setCipherAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
347 setMacAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
431 signRSA(Vector<uint8_t> const &sessionId, String8 const &algorithm, Vector<uint8_t> const &message, Vector<uint8_t> const &wrappedKey, Vector<uint8_t> &signature) argument
829 String8 algorithm = data.readString8(); local
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DDrm.cpp553 String8 const &algorithm) {
564 return mPlugin->setCipherAlgorithm(sessionId, algorithm);
568 String8 const &algorithm) {
579 return mPlugin->setMacAlgorithm(sessionId, algorithm);
654 String8 const &algorithm,
672 return mPlugin->signRSA(sessionId, algorithm, message, wrappedKey, signature);
552 setCipherAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
567 setMacAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
653 signRSA(Vector<uint8_t> const &sessionId, String8 const &algorithm, Vector<uint8_t> const &message, Vector<uint8_t> const &wrappedKey, Vector<uint8_t> &signature) argument
/frameworks/base/media/java/android/media/
H A DMediaDrm.java653 String algorithm);
656 String algorithm);
707 * Encrypt data using the CryptoSession's cipher algorithm
718 * Decrypt data using the CryptoSessions's cipher algorithm
729 * Sign data using the CryptoSessions's mac algorithm.
739 * Verify a signature using the CryptoSessions's mac algorithm. Return true
760 * @param cipherAlgorithm the algorithm to use for encryption and
761 * decryption ciphers. The algorithm string conforms to JCA Standard
764 * @param macAlgorithm the algorithm to use for sign and verify
765 * The algorithm strin
652 setCipherAlgorithmNative(MediaDrm drm, byte[] sessionId, String algorithm) argument
655 setMacAlgorithmNative(MediaDrm drm, byte[] sessionId, String algorithm) argument
872 signRSANative(MediaDrm drm, byte[] sessionId, String algorithm, byte[] wrappedKey, byte[] message) argument
886 signRSA(byte[] sessionId, String algorithm, byte[] wrappedKey, byte[] message) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaDrm.cpp1187 "algorithm String is null");
1192 String8 algorithm = JStringToString8(env, jalgorithm); local
1194 status_t err = drm->setCipherAlgorithm(sessionId, algorithm);
1196 throwExceptionAsNecessary(env, err, "Failed to set cipher algorithm");
1211 "algorithm String is null");
1216 String8 algorithm = JStringToString8(env, jalgorithm); local
1218 status_t err = drm->setMacAlgorithm(sessionId, algorithm);
1220 throwExceptionAsNecessary(env, err, "Failed to set mac algorithm");
1361 String8 algorithm = JStringToString8(env, jalgorithm); local
1366 status_t err = drm->signRSA(sessionId, algorithm, messag
[all...]
/frameworks/base/services/backup/java/com/android/server/backup/
H A DBackupManagerService.java169 // Historical and current algorithm names
1384 private SecretKey buildPasswordKey(String algorithm, String pw, byte[] salt, int rounds) { argument
1385 return buildCharArrayKey(algorithm, pw.toCharArray(), salt, rounds);
1388 private SecretKey buildCharArrayKey(String algorithm, char[] pwArray, byte[] salt, int rounds) { argument
1390 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm);
1401 private String buildPasswordHash(String algorithm, String pw, byte[] salt, int rounds) { argument
1402 SecretKey key = buildPasswordKey(algorithm, pw, salt, rounds);
1430 private byte[] makeKeyChecksum(String algorithm, byte[] pwBytes, byte[] salt, int rounds) { argument
1436 Key checksum = buildCharArrayKey(algorithm, mkAsChar, salt, rounds);
1447 boolean passwordMatchesSaved(String algorithm, Strin argument
5693 attemptMasterKeyDecryption(String algorithm, byte[] userSalt, byte[] ckSalt, int rounds, String userIvHex, String masterKeyBlobHex, InputStream rawInStream, boolean doLog) argument
[all...]

Completed in 642 milliseconds