/frameworks/base/keystore/tests/src/android/security/ |
SystemKeyStoreTest.java | 38 private static final String keyName = "TestKey"; 50 mSysKeyStore.deleteKey(keyName); 59 mSysKeyStore.deleteKey(keyName); 67 byte[] newKey = mSysKeyStore.generateNewKey(128, "AES", keyName); 69 byte[] recKey = mSysKeyStore.retrieveKey(keyName); 74 mSysKeyStore.deleteKey(keyName); 75 byte[] nullKey = mSysKeyStore.retrieveKey(keyName);
|
/frameworks/base/keystore/java/android/security/ |
SystemKeyStore.java | 65 public String generateNewKeyHexString(int numBits, String algName, String keyName) 67 return toHexString(generateNewKey(numBits, algName, keyName)); 70 public byte[] generateNewKey(int numBits, String algName, String keyName) 74 File keyFile = getKeyFile(keyName); 105 private File getKeyFile(String keyName) { 108 File keyFile = new File(sysKeystoreDir, keyName + KEY_FILE_EXTENSION); 112 public String retrieveKeyHexString(String keyName) throws IOException { 113 return toHexString(retrieveKey(keyName)); 116 public byte[] retrieveKey(String keyName) throws IOException { 117 File keyFile = getKeyFile(keyName); [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
ItsSerializer.java | 302 String keyName = getKeyName(keyObj); 307 return new MetadataEntry(keyName, JSONObject.NULL); 311 Logt.w(TAG, "Inf/NaN floating point value serialized: " + keyName); 314 return new MetadataEntry(keyName, keyValue); 317 return new MetadataEntry(keyName, keyValue); 319 return new MetadataEntry(keyName, serializeRational((Rational)keyValue)); 321 return new MetadataEntry(keyName, serializeSize((Size)keyValue)); 323 return new MetadataEntry(keyName, serializeSizeF((SizeF)keyValue)); 325 return new MetadataEntry(keyName, serializeRect((Rect)keyValue)); 327 return new MetadataEntry(keyName, serializeFace((Face)keyValue)) [all...] |
/cts/tests/camera/src/android/hardware/camera2/cts/helpers/ |
CameraMetadataGetter.java | 461 String keyName = getKeyName(keyObj); 466 return new MetadataEntry(keyName, JSONObject.NULL); 470 Log.w(TAG, "Inf/NaN floating point value serialized: " + keyName); 473 return new MetadataEntry(keyName, keyValue); 476 return new MetadataEntry(keyName, keyValue); 478 return new MetadataEntry(keyName, serializeRational((Rational) keyValue)); 480 return new MetadataEntry(keyName, serializeSize((Size) keyValue)); 482 return new MetadataEntry(keyName, serializeSizeF((SizeF) keyValue)); 484 return new MetadataEntry(keyName, serializeRect((Rect) keyValue)); 486 return new MetadataEntry(keyName, serializeFace((Face) keyValue)) [all...] |
/external/lzma/CPP/Windows/ |
Registry.h | 12 LONG SetValue(HKEY parentKey, LPCTSTR keyName, LPCTSTR valueName, LPCTSTR value);
30 LONG Create(HKEY parentKey, LPCTSTR keyName,
35 LONG Open(HKEY parentKey, LPCTSTR keyName, REGSAM accessMask = KEY_ALL_ACCESS) throw();
61 LONG SetKeyValue(LPCTSTR keyName, LPCTSTR valueName, LPCTSTR value) throw();
|
Registry.cpp | 19 LONG CKey::Create(HKEY parentKey, LPCTSTR keyName,
26 LONG res = RegCreateKeyEx(parentKey, keyName, 0, keyClass,
38 LONG CKey::Open(HKEY parentKey, LPCTSTR keyName, REGSAM accessMask) throw()
42 LONG res = RegOpenKeyEx(parentKey, keyName, 0, accessMask, &key);
170 LONG SetValue(HKEY parentKey, LPCTSTR keyName, LPCTSTR valueName, LPCTSTR value)
174 LONG res = key.Create(parentKey, keyName);
180 LONG CKey::SetKeyValue(LPCTSTR keyName, LPCTSTR valueName, LPCTSTR value) throw()
184 LONG res = key.Create(_object, keyName);
306 CSysString keyName;
312 LONG result = ::RegEnumKeyEx(_object, index, keyName.GetBuffer(kBufferSize), [all...] |
/external/tpm2/ |
Ticket_fp.h | 34 TPM2B_NAME *keyName, // IN: name of key that signed the value
|
Ticket.c | 55 TPM2B_NAME *keyName, // IN: name of key that signed the value 74 CryptUpdateDigest2B(&hmacState, &keyName->b); 114 // Adding keyName
|
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/ |
OptionHelper.java | 119 String keyName = keyNameTokens[0].replaceFirst("^\"?--?", ""); 122 if (optionShortNames.contains(keyName) || optionNames.contains(keyName)) {
|
/system/security/keystore/ |
keystore.h | 56 android::String8 getKeyName(const android::String8& keyName); 57 android::String8 getKeyNameForUid(const android::String8& keyName, uid_t uid); 58 android::String8 getKeyNameForUidWithDir(const android::String8& keyName, uid_t uid); 87 ResponseCode getKeyForName(Blob* keyBlob, const android::String8& keyName, const uid_t uid,
|
keystore.cpp | 91 static size_t encode_key_length(const android::String8& keyName) { 92 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string()); 93 size_t length = keyName.length(); 102 static int encode_key(char* out, const android::String8& keyName) { 103 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string()); 104 size_t length = keyName.length(); 118 android::String8 KeyStore::getKeyName(const android::String8& keyName) { 119 char encoded[encode_key_length(keyName) + 1]; // add 1 for null char 120 encode_key(encoded, keyName); 124 android::String8 KeyStore::getKeyNameForUid(const android::String8& keyName, uid_t uid) [all...] |
/frameworks/base/core/java/android/hardware/camera2/ |
CameraMetadata.java | 180 String keyName; 182 keyName = ((CaptureRequest.Key<?>) k).getName(); 184 keyName = ((CaptureResult.Key<?>) k).getName(); 186 keyName = ((CameraCharacteristics.Key<?>) k).getName(); 192 CameraMetadataNative.getTag(keyName)) >= 0) { [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
MockKeyStore.java | 118 private boolean importKey(String keyName, byte[] key, int uid, int flags) { 119 return put(keyName, key, uid, flags); 158 for (String keyName : mStore.get(uid).keySet()) { 159 sb.append(String.format("%d:%s, ", uid, keyName));
|
/frameworks/wilhelm/src/android/ |
android_AudioSfDecoder.h | 65 bool getPcmFormatKeyName(uint32_t index, uint32_t keySize, char* keyName);
|
android_AudioSfDecoder.cpp | 113 bool AudioSfDecoder::getPcmFormatKeyName(uint32_t index, uint32_t keySize, char* keyName) { 121 strncpy(keyName, kPcmDecodeMetadataKeys[index], actualKeySize);
|
/external/clang/lib/Driver/ |
MSVCToolChain.cpp | 152 char keyName[256]; 154 DWORD index, size = sizeof(keyName) - 1; 155 for (index = 0; RegEnumKeyEx(hTopKey, index, keyName, &size, NULL, 157 const char *sp = keyName; 172 bestName = keyName; 188 size = sizeof(keyName) - 1;
|
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/ |
CameraDeviceInfo.java | 228 String keyName = getKeyName(keyObj); 229 String protoName = keyName.replace('.', '_'); 289 " for keyName: " + keyName); 296 String keyName = getKeyName(keyObj); 297 String protoName = keyName.replace('.', '_'); 371 " for keyName: " + keyName); 391 String keyName = getKeyName(keyObj); 392 if (charsKeyNames.contains(keyName)) { [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeySourceNetwork.java | 215 Log.e(TAG, "Can't find keyname: " + command.get(2)); 237 * Get an integer keycode value from a given keyname. 239 * @param keyName the key name to get the code for 242 private static int getKeyCode(String keyName) { 245 keyCode = Integer.parseInt(keyName); 249 keyCode = MonkeySourceRandom.getKeyCode(keyName); 256 keyCode = MonkeySourceRandom.getKeyCode("KEYCODE_" + keyName.toUpperCase()); 372 Log.e(TAG, "Can't find keyname: " + command.get(1));
|
MonkeySourceRandom.java | 115 * @param keyName the name of the KEYCODE_VALUE to lookup. 118 public static int getKeyCode(String keyName) { 119 return KeyEvent.keyCodeFromString(keyName);
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
ProducerFactoryGenerator.java | 409 TypeName keyName = TypeNames.forTypeMirror(dependency.key().type()); 412 return keyName; 414 return ParameterizedTypeName.create(ClassName.fromClass(Produced.class), keyName);
|
/external/icu/icu4c/source/common/ |
usprep.cpp | 353 LocalMemory<char> keyName; 356 keyName.allocateInsteadAndCopy(uprv_strlen(name)+1) == NULL || 374 key->name = keyName.orphan();
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/ |
OpenWnnDictionaryImplJni.c | [all...] |
/sdk/find_java/src/source/ |
find_java_lib.cpp | 206 const char *keyName,
225 keyName, // lpValueName
|
/sdk/find_java2/src/ |
JavaFinder.cpp | 290 const TCHAR *keyName,
308 keyName, // lpValueName
|
/prebuilts/devtools/tools/lib/ |
chimpchat.jar | |