Lines Matching defs:file
4 * you may not use this file except in compliance with the License.
80 File file = new File(utility.getHapPath());
81 if (!file.isFile() || !file.getName().toLowerCase(Locale.ENGLISH).endsWith(HAP_SUFFIX)) {
94 return verifyOutPath(utility, file);
99 File file = new File(utility.getHspPath());
100 if (!file.isFile() || !file.getName().toLowerCase(Locale.ENGLISH).endsWith(HSP_SUFFIX)) {
104 return verifyOutPath(utility, file);
130 File file = new File(utility.getHarPath());
131 if (!file.isFile() || !file.getName().toLowerCase(Locale.ENGLISH).endsWith(HAR_SUFFIX)) {
141 return verifyOutPath(utility, file);
148 * @return true if input app file is valid.
158 File file = new File(utility.getAppPath());
159 if (!file.isFile() || !file.getName().toLowerCase(Locale.ENGLISH).endsWith(APP_SUFFIX)) {
164 return verifyOutPath(utility, file);
175 File file = new File(utility.getAPPQFPath());
176 if (!file.isFile() || !file.getName().toLowerCase(Locale.ENGLISH).endsWith(APPQF_SUFFIX)) {
178 " check input file is exist or this file is not end with .appqf!");
182 return verifyOutPath(utility, file);
189 * @param file file to be verified
192 private static boolean verifyOutPath(Utility utility, File file) {
200 LOG.error("UncompressVerify::isArgsValidInHapMode out file already existed!");
216 LOG.error("Input invalid file " + path);
219 File file = new File(path);
220 if (isFile && (file.isFile()) && file.getName().toLowerCase(Locale.ENGLISH).endsWith(flag)) {
223 return (!isFile) && file.isDirectory();