Lines Matching refs:file

5  * you may not use this file except in compliance with the License.
68 /** When not flushing delay this long before writing the first file out. This gives the next
323 private String fileToString(File file) {
326 BufferedReader reader = new BufferedReader(new FileReader(file));
327 StringBuffer sb = new StringBuffer((int) file.length() * 2);
335 Slog.e(TAG, "Couldn't read file " + file.getName());
409 Slog.e(TAG, "Failing file: " + fileToString(taskFile));
415 Slog.d(TAG, "Deleting file=" + taskFile.getName());
459 File file = files[fileNdx];
460 String filename = file.getName();
468 Slog.wtf(TAG, "removeObsoleteFile: Can't parse file=" + file.getName());
469 file.delete();
473 if (true || DEBUG_PERSISTER) Slog.d(TAG, "removeObsoleteFile: deleting file=" +
474 file.getName());
475 file.delete();
531 // Go ahead and remove the file on disk if we are unable to create a task from
533 if (DEBUG_RESTORER) Slog.e(TAG, "Unable to create task for file="
534 + taskFile.getName() + "...deleting file.");
619 final File file = chain.get(k).mFile;
620 if (DEBUG_RESTORER) Slog.d(TAG, "Deleting expired file="
621 + file.getName() + " mapped to not installed component="
623 file.delete();
698 if (DEBUG_RESTORER) Slog.d(TAG, "Can't create task record for file="
770 File file = other.mFile;
773 if (DEBUG_RESTORER) Slog.d(TAG, "createTaskRecordLocked: file=" + file.getName());
776 reader = new BufferedReader(new FileReader(file));
824 Slog.e(TAG, "Unable to create task for backed-up file=" + file + ": "
825 + fileToString(file));
835 Slog.wtf(TAG, "Unable to parse " + file + ". Error ", e);
836 Slog.e(TAG, "Failing file: " + fileToString(file));
859 "Can't add chain due to missing file=" + task.mFile);
1043 // Write out xml file while not holding mService lock.
1044 FileOutputStream file = null;
1049 file = atomicFile.startWrite();
1050 file.write(stringWriter.toString().getBytes());
1051 file.write('\n');
1052 atomicFile.finishWrite(file);
1054 if (file != null) {
1055 atomicFile.failWrite(file);
1081 private OtherDeviceTask(File file, ComponentName componentName, int taskId,
1083 mFile = file;
1096 * Creates a new {@link OtherDeviceTask} object based on the contents of the input file.
1098 * @param file input file that contains the complete task information.
1101 static OtherDeviceTask createFromFile(File file) {
1102 if (file == null || !file.exists()) {
1104 Slog.d(TAG, "createFromFile: file=" + file + " doesn't exist.");
1111 reader = new BufferedReader(new FileReader(file));
1143 + " taskId=" + taskId + " file=" + file);
1166 if (DEBUG_RESTORER) Slog.d(TAG, "creating OtherDeviceTask from file="
1167 + file.getName() + " componentName=" + componentName
1169 return new OtherDeviceTask(file, componentName, taskId,
1176 Slog.wtf(TAG, "createFromFile: Unable to find start tag in file=" + file);
1179 Slog.wtf(TAG, "Unable to parse " + file + ". Error ", e);