Home
last modified time | relevance | path

Searched refs:keyFile (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/keystore/java/android/security/
DSystemKeyStore.java74 File keyFile = getKeyFile(keyName); in generateNewKey() local
75 if (keyFile.exists()) { in generateNewKey()
88 if (!keyFile.createNewFile()) { in generateNewKey()
92 FileOutputStream fos = new FileOutputStream(keyFile); in generateNewKey()
97 FileUtils.setPermissions(keyFile.getName(), (FileUtils.S_IRUSR | FileUtils.S_IWUSR), in generateNewKey()
108 File keyFile = new File(sysKeystoreDir, keyName + KEY_FILE_EXTENSION); in getKeyFile() local
109 return keyFile; in getKeyFile()
117 File keyFile = getKeyFile(keyName); in retrieveKey() local
118 if (!keyFile.exists()) { in retrieveKey()
121 return IoUtils.readFileAsByteArray(keyFile.toString()); in retrieveKey()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDebuggingManager.java406 File keyFile = getUserKeyFile(); in writeKey() local
408 if (keyFile == null) { in writeKey()
412 if (!keyFile.exists()) { in writeKey()
413 keyFile.createNewFile(); in writeKey()
414 FileUtils.setPermissions(keyFile.toString(), in writeKey()
419 FileOutputStream fo = new FileOutputStream(keyFile, true); in writeKey()
430 File keyFile = getUserKeyFile(); in deleteKeyFile() local
431 if (keyFile != null) { in deleteKeyFile()
432 keyFile.delete(); in deleteKeyFile()