Home
last modified time | relevance | path

Searched refs:keyName (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/keystore/java/android/security/
DSystemKeyStore.java65 public String generateNewKeyHexString(int numBits, String algName, String keyName) in generateNewKeyHexString() argument
67 return toHexString(generateNewKey(numBits, algName, keyName)); in generateNewKeyHexString()
70 public byte[] generateNewKey(int numBits, String algName, String keyName) in generateNewKey() argument
74 File keyFile = getKeyFile(keyName); in generateNewKey()
105 private File getKeyFile(String keyName) { in getKeyFile() argument
108 File keyFile = new File(sysKeystoreDir, keyName + KEY_FILE_EXTENSION); in getKeyFile()
112 public String retrieveKeyHexString(String keyName) throws IOException { in retrieveKeyHexString() argument
113 return toHexString(retrieveKey(keyName)); in retrieveKeyHexString()
116 public byte[] retrieveKey(String keyName) throws IOException { in retrieveKey() argument
117 File keyFile = getKeyFile(keyName); in retrieveKey()
[all …]
DKeyStore.java307 public boolean importKey(String keyName, byte[] key, int uid, int flags) { in importKey() argument
309 return mBinder.import_key(keyName, key, uid, flags) == NO_ERROR; in importKey()
/frameworks/base/keystore/tests/src/android/security/
DSystemKeyStoreTest.java38 private static final String keyName = "TestKey"; field in SystemKeyStoreTest
50 mSysKeyStore.deleteKey(keyName); in setUp()
59 mSysKeyStore.deleteKey(keyName); in tearDown()
67 byte[] newKey = mSysKeyStore.generateNewKey(128, "AES", keyName); in testBasicAccess()
69 byte[] recKey = mSysKeyStore.retrieveKey(keyName); in testBasicAccess()
74 mSysKeyStore.deleteKey(keyName); in testBasicAccess()
75 byte[] nullKey = mSysKeyStore.retrieveKey(keyName); in testBasicAccess()
/frameworks/base/core/java/android/hardware/camera2/
DCameraMetadata.java180 String keyName; in getKeysStatic() local
182 keyName = ((CaptureRequest.Key<?>) k).getName(); in getKeysStatic()
184 keyName = ((CaptureResult.Key<?>) k).getName(); in getKeysStatic()
186 keyName = ((CameraCharacteristics.Key<?>) k).getName(); in getKeysStatic()
192 CameraMetadataNative.getTag(keyName)) >= 0) { in getKeysStatic()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DMockKeyStore.java118 private boolean importKey(String keyName, byte[] key, int uid, int flags) { in importKey() argument
119 return put(keyName, key, uid, flags); in importKey()
158 for (String keyName : mStore.get(uid).keySet()) { in toString()
159 sb.append(String.format("%d:%s, ", uid, keyName)); in toString()
/frameworks/wilhelm/src/android/
Dandroid_AudioSfDecoder.h65 bool getPcmFormatKeyName(uint32_t index, uint32_t keySize, char* keyName);
Dandroid_AudioSfDecoder.cpp113 bool AudioSfDecoder::getPcmFormatKeyName(uint32_t index, uint32_t keySize, char* keyName) { in getPcmFormatKeyName() argument
121 strncpy(keyName, kPcmDecodeMetadataKeys[index], actualKeySize); in getPcmFormatKeyName()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_CameraMetadata.cpp168 static jint CameraMetadata_getTagFromKey(JNIEnv *env, jobject thiz, jstring keyName);
782 static jint CameraMetadata_getTagFromKey(JNIEnv *env, jobject thiz, jstring keyName) { in CameraMetadata_getTagFromKey() argument
784 ScopedUtfChars keyScoped(env, keyName); in CameraMetadata_getTagFromKey()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DCameraMetadataTest.java373 private <T> Key<T> checkKeyMarshal(String keyName, TypeReference<T> typeReference, in checkKeyMarshal() argument
375 Key<T> key = new Key<T>(keyName, typeReference); in checkKeyMarshal()
417 private <T> Key<T> checkKeyMarshal(String keyName, T expected, byte[] expectedNative) { in checkKeyMarshal() argument
420 return checkKeyMarshal(keyName, in checkKeyMarshal()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraMetadataNative.java1094 private static native int nativeGetTagFromKey(String keyName) in nativeGetTagFromKey() argument