Searched refs:mJsonFile (Results 1 – 3 of 3) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactoryTest.java | 44 private File mJsonFile; field in JSONFileKeyStoreFactoryTest 53 mJsonFile = FileUtil.createTempFile("json-keystore", ".json"); in setUp() 54 FileUtil.writeToFile(mJsonData, mJsonFile); in setUp() 63 FileUtil.recursiveDelete(mJsonFile); in tearDown() 74 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_same() 85 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_modified() 88 mJsonFile.setLastModified(mJsonFile.lastModified() + 5000l); in testLoadKeyStore_modified() 101 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_null() 104 FileUtil.deleteFile(mJsonFile); in testLoadKeyStore_null() 117 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_primaryFileModified() [all …]
|
/tools/tradefederation/core/global_configuration/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactory.java | 49 private File mJsonFile = null; field in JSONFileKeyStoreFactory 82 mJsonFile.getAbsolutePath(), mHostBasedJsonFiles.size()); in createKeyStoreClient() 117 if (!mJsonFile.exists() || !mJsonFile.canRead()) { in findInvalidJsonKeyStoreFiles() 118 invalidFiles.add(mJsonFile.getAbsolutePath()); in findInvalidJsonKeyStoreFiles() 130 if (mLastLoadedTime < mJsonFile.lastModified()) { in findChangedJsonKeyStoreFiles() 131 changedFiles.add(mJsonFile.getAbsolutePath()); in findChangedJsonKeyStoreFiles() 143 mCachedClient = new JSONFileKeyStoreClient(mJsonFile); in createKeyStoreInternal() 155 mHostName, mJsonFile.getAbsolutePath()); in overrideClientWithHostKeyStoreFromFile() 164 mHostName, key, mJsonFile.getAbsolutePath()); in overrideClientWithHostKeyStoreFromFile()
|
D | JSONFileKeyStoreClient.java | 34 private File mJsonFile = null; field in JSONFileKeyStoreClient 42 mJsonFile = jsonFile; in JSONFileKeyStoreClient() 43 if (mJsonFile == null) { in JSONFileKeyStoreClient() 46 if (!mJsonFile.canRead()) { in JSONFileKeyStoreClient() 49 mJsonFile.toString())); in JSONFileKeyStoreClient() 52 String data = FileUtil.readStringFromFile(mJsonFile); in JSONFileKeyStoreClient() 56 mJsonFile.toString(), e)); in JSONFileKeyStoreClient() 60 mJsonFile.toString(), e)); in JSONFileKeyStoreClient()
|