Searched refs:jsonFile (Results 1 – 7 of 7) sorted by relevance
89 File jsonFile; in testCollectDeviceInfo() local91 jsonFile = new File(dir, getClass().getSimpleName() + DEVICE_INFO_SUFFIX); in testCollectDeviceInfo()92 jsonFile.createNewFile(); in testCollectDeviceInfo()93 mResultFilePath = jsonFile.getAbsolutePath(); in testCollectDeviceInfo()94 try (DeviceInfoStore store = new DeviceInfoStore(jsonFile)) { in testCollectDeviceInfo()98 if (jsonFile != null && jsonFile.exists() && in testCollectDeviceInfo()99 jsonFile.length() == 0) { in testCollectDeviceInfo()100 jsonFile.delete(); in testCollectDeviceInfo()
87 File jsonFile = null; in testCollectClasspathDeviceInfo() local90 jsonFile = FileUtil.createTempFile(REPORT_NAME, REPORT_SUFFIX); in testCollectClasspathDeviceInfo()91 HostInfoStore store = new HostInfoStore(jsonFile); in testCollectClasspathDeviceInfo()103 FileUtil.copyFile(jsonFile, resultFile); in testCollectClasspathDeviceInfo()107 source = new FileInputStreamSource(jsonFile); in testCollectClasspathDeviceInfo()115 FileUtil.deleteFile(jsonFile); in testCollectClasspathDeviceInfo()
48 protected void collectDeviceInfo(File jsonFile) throws Exception { in collectDeviceInfo() argument81 try (FileWriter writer = new FileWriter(jsonFile)) { in collectDeviceInfo()
32 public ReportLogDeviceInfoStore(File jsonFile, String streamName) throws Exception { in ReportLogDeviceInfoStore() argument33 mJsonFile = jsonFile; in ReportLogDeviceInfoStore()
58 File jsonFile = new File(logDirectory, mReportLogName + ".reportlog.json"); in DeviceReportLog() local59 store = new ReportLogDeviceInfoStore(jsonFile, mStreamName); in DeviceReportLog()
242 File jsonFile; in open() local244 jsonFile = new File(fileName); in open()245 FileOutputStream fOutStrem = new FileOutputStream(jsonFile); in open()
334 jsonFile = zip.open(resultInfo)335 jsonData = json.load(jsonFile)340 jsonFile = zip.open(info)342 jsonData = json.load(jsonFile, object_pairs_hook=lambda items: items)