Lines Matching refs:file
5 * you may not use this file except in compliance with the License.
43 * agent running to perform a backup while our UI is updating the file, the
51 /** Also supply a global standard file name for everyone to use */
59 /** Cache a reference to our persistent data file */
78 /** Set up our file bookkeeping */
92 * data file and establishing defaults if necessary.
95 RandomAccessFile file;
97 // Default values in case there's no data file yet
102 /** Hold the data-access lock around access to the file */
106 file = new RandomAccessFile(mDataFile, "rw");
109 whichFilling = file.readInt();
110 addMayo = file.readBoolean();
111 addTomato = file.readBoolean();
117 // to the newly-created file.
119 writeDataToFileLocked(file,
129 /** Now that we've processed the file, build the UI outside the lock */
143 // entire state file
163 * Handy helper routine to write the UI data to a file.
165 void writeDataToFileLocked(RandomAccessFile file,
168 file.setLength(0L);
169 file.writeInt(whichFilling);
170 file.writeBoolean(addMayo);
171 file.writeBoolean(addTomato);
188 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw");
189 writeDataToFileLocked(file, addMayo, addTomato, whichFilling);