Searched defs:algorithm (Results 1 - 11 of 11) 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/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/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.java364 * specific {@code PrivateKey} type indicated by {@code algorithm} (e.g.,
367 public static boolean isKeyAlgorithmSupported(String algorithm) { argument
368 final String algUpper = algorithm.toUpperCase(Locale.US);
374 * {@code PrivateKey} of the given {@code algorithm} to the device once
379 public static boolean isBoundKeyAlgorithm(String algorithm) { argument
380 if (!isKeyAlgorithmSupported(algorithm)) {
384 return KeyStore.getInstance().isHardwareBacked(algorithm);
/frameworks/av/media/libmediaplayerservice/
H A DDrm.cpp492 String8 const &algorithm) {
503 return mPlugin->setCipherAlgorithm(sessionId, algorithm);
507 String8 const &algorithm) {
518 return mPlugin->setMacAlgorithm(sessionId, algorithm);
491 setCipherAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
506 setMacAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
/frameworks/av/drm/mediadrm/plugins/mock/
H A DMockDrmCryptoPlugin.cpp412 String8 const &algorithm)
416 ALOGD("MockDrmPlugin::setCipherAlgorithm(sessionId=%s, algorithm=%s)",
417 vectorToString(sessionId).string(), algorithm.string());
425 if (algorithm == "AES/CBC/NoPadding") {
432 String8 const &algorithm)
436 ALOGD("MockDrmPlugin::setMacAlgorithm(sessionId=%s, algorithm=%s)",
437 vectorToString(sessionId).string(), algorithm.string());
445 if (algorithm == "HmacSHA256") {
411 setCipherAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
431 setMacAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
/frameworks/av/media/libmedia/
H A DIDrm.cpp295 String8 const &algorithm) {
300 data.writeString8(algorithm);
306 String8 const &algorithm) {
311 data.writeString8(algorithm);
657 String8 algorithm = data.readString8(); local
658 reply->writeInt32(setCipherAlgorithm(sessionId, algorithm));
667 String8 algorithm = data.readString8(); local
668 reply->writeInt32(setMacAlgorithm(sessionId, algorithm));
294 setCipherAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
305 setMacAlgorithm(Vector<uint8_t> const &sessionId, String8 const &algorithm) argument
/frameworks/base/media/java/android/media/
H A DMediaDrm.java561 String algorithm);
564 String algorithm);
616 * Encrypt data using the CryptoSession's cipher algorithm
627 * Decrypt data using the CryptoSessions's cipher algorithm
638 * Sign data using the CryptoSessions's mac algorithm.
648 * Verify a signature using the CryptoSessions's mac algorithm. Return true
669 * @param cipherAlgorithm the algorithm to use for encryption and
670 * decryption ciphers. The algorithm string conforms to JCA Standard
673 * @param macAlgorithm the algorithm to use for sign and verify
674 * The algorithm strin
560 setCipherAlgorithmNative(MediaDrm drm, byte[] sessionId, String algorithm) argument
563 setMacAlgorithmNative(MediaDrm drm, byte[] sessionId, String algorithm) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaDrm.cpp1054 "algorithm String is null");
1059 String8 algorithm = JStringToString8(env, jalgorithm); local
1061 status_t err = drm->setCipherAlgorithm(sessionId, algorithm);
1063 throwExceptionAsNecessary(env, err, "Failed to set cipher algorithm");
1078 "algorithm String is null");
1083 String8 algorithm = JStringToString8(env, jalgorithm); local
1085 status_t err = drm->setMacAlgorithm(sessionId, algorithm);
1087 throwExceptionAsNecessary(env, err, "Failed to set mac algorithm");

Completed in 281 milliseconds