/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
SipProfileDb.java | 19 import com.android.internal.os.AtomicFile; 106 AtomicFile atomicFile = new AtomicFile(new File(f, PROFILE_OBJ_FILE)); 110 fos = atomicFile.startWrite(); 114 atomicFile.finishWrite(fos); 116 atomicFile.failWrite(fos); 167 AtomicFile atomicFile = new AtomicFile(profileObjectFile) [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
UserManagerServiceTest.java | 27 import android.util.AtomicFile; 56 AtomicFile atomicFile = new AtomicFile(restrictionsFile); 58 UserManagerService.writeApplicationRestrictionsLP(bundle, atomicFile); 59 assertTrue(atomicFile.getBaseFile().exists()); 62 bundle = UserManagerService.readApplicationRestrictionsLP(atomicFile);
|
/frameworks/base/core/java/android/util/ |
AtomicFile.java | 32 * {@link android.support.v4.util.AtomicFile} in the v4 support library. 45 public class AtomicFile { 50 * Create a new AtomicFile for a file located at the given File path. 53 public AtomicFile(File baseName) { 86 * access to AtomicFile. 93 Log.w("AtomicFile", "Couldn't rename file " + mBaseName 134 Log.w("AtomicFile", "finishWrite: Got exception:", e); 152 Log.w("AtomicFile", "failWrite: Got exception:", e); 192 * AtomicFile.
|
/frameworks/support/compat/java/android/support/v4/util/ |
AtomicFile.java | 28 * Static library support version of the framework's {@link android.util.AtomicFile}, 43 public class AtomicFile { 48 * Create a new AtomicFile for a file located at the given File path. 51 public AtomicFile(File baseName) { 84 * access to AtomicFile. 91 Log.w("AtomicFile", "Couldn't rename file " + mBaseName 128 Log.w("AtomicFile", "finishWrite: Got exception:", e); 146 Log.w("AtomicFile", "failWrite: Got exception:", e); 161 * AtomicFile.
|
/cts/tests/tests/content/src/android/content/cts/ |
SyncStorageEngineTest.java | 38 import com.android.internal.os.AtomicFile; 58 AtomicFile accountInfoFile = new AtomicFile(new File(syncDir, "accounts.xml"));
|
/frameworks/base/services/core/java/com/android/server/pm/ |
AbstractStatsBase.java | 21 import android.util.AtomicFile; 31 * <li>Provide an AtomicFile to the actual read/write code 56 protected AtomicFile getFile() { 60 return new AtomicFile(fname);
|
PackageUsage.java | 25 import android.util.AtomicFile; 56 AtomicFile file = getFile(); 94 AtomicFile file = getFile();
|
CompilerStats.java | 20 import android.util.AtomicFile; 262 AtomicFile file = getFile(); 285 AtomicFile file = getFile();
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
UsageStatsXml.java | 19 import android.util.AtomicFile; 36 public static long parseBeginTime(AtomicFile file) throws IOException { 58 public static void read(AtomicFile file, IntervalStats statsOut) throws IOException { 78 public static void write(AtomicFile file, IntervalStats stats) throws IOException {
|
UsageStatsDatabase.java | 22 import android.util.AtomicFile; 61 private final TimeSparseArray<AtomicFile>[] mSortedStatFiles; 96 for (TimeSparseArray<AtomicFile> files : mSortedStatFiles) { 131 final TimeSparseArray<AtomicFile> files = 165 final AtomicFile file = files.valueAt(i); 176 // AtomicFile needs to set a new backup path with the same -c extension, so 177 // we replace the old AtomicFile with the updated one. 178 files.setValueAt(i, new AtomicFile(checkedInFile)); 206 final AtomicFile af = new AtomicFile(f) [all...] |
AppIdleHistory.java | 23 import android.util.AtomicFile; 154 AtomicFile screenOnTimeFile = new AtomicFile(getScreenOnTimeFile()); 296 AtomicFile appIdleFile = new AtomicFile(getUserFile(userId)); 337 AtomicFile appIdleFile = new AtomicFile(getUserFile(userId));
|
/frameworks/base/core/java/com/android/internal/os/ |
AtomicFile.java | 43 public final class AtomicFile { 47 public AtomicFile(File baseName) { 61 Log.w("AtomicFile", "Couldn't rename file " + mBaseName 96 Log.w("AtomicFile", "finishWrite: Got exception:", e); 109 Log.w("AtomicFile", "failWrite: Got exception:", e);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
SyncStorageEngineTest.java | 38 import com.android.internal.os.AtomicFile; 157 AtomicFile accountInfoFile = new AtomicFile(new File(syncDir, "accounts.xml")); 200 AtomicFile accountInfoFile = new AtomicFile(new File(syncDir, "accounts.xml")); 240 AtomicFile accountInfoFile = new AtomicFile(new File(syncDir, "accounts.xml"));
|
/frameworks/base/core/java/com/android/internal/util/ |
JournaledFile.java | 23 * @deprecated Use {@link com.android.internal.os.AtomicFile} instead. It would 24 * be nice to update all existing uses of this to switch to AtomicFile, but since
|
/frameworks/base/core/java/android/content/pm/ |
RegisteredServicesCache.java | 31 import android.util.AtomicFile; 119 AtomicFile file = createFileForUser(user.id); 665 AtomicFile oldFile = new AtomicFile(new File(syncDir, mInterfaceName + ".xml")); 714 AtomicFile atomicFile = createFileForUser(userId); 717 fos = atomicFile.startWrite(); 731 atomicFile.finishWrite(fos); 735 atomicFile.failWrite(fos); 757 private AtomicFile createFileForUser(int userId) [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
ProcessStatsService.java | 27 import android.util.AtomicFile; 68 AtomicFile mFile; 76 AtomicFile mPendingWriteFile; 219 mPendingWriteFile = new AtomicFile(mFile.getBaseFile()); 242 mFile = new AtomicFile(new File(mBaseDir, STATE_FILE_PREFIX 250 AtomicFile file; 280 boolean readLocked(ProcessStats stats, AtomicFile file) { 491 AtomicFile file = new AtomicFile(new File(files.get(i))); [all...] |
TaskPersister.java | 28 import android.util.AtomicFile; 734 AtomicFile atomicFile = null; 736 atomicFile = new AtomicFile(new File( 740 file = atomicFile.startWrite(); 743 atomicFile.finishWrite(file); 747 atomicFile.failWrite(file); 750 "Unable to open " + atomicFile + " for persisting. " + e);
|
CompatModePackages.java | 45 import android.util.AtomicFile; 54 private final AtomicFile mFile; 86 mFile = new AtomicFile(new File(systemDir, "packages-compat.xml"));
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
FingerprintsUserState.java | 23 import android.util.AtomicFile; 162 AtomicFile destination = new AtomicFile(mFile);
|
/frameworks/base/services/core/java/com/android/server/tv/ |
PersistentDataStore.java | 27 import android.util.AtomicFile; 72 private final AtomicFile mAtomicFile; 94 mAtomicFile = new AtomicFile(new File(userDir, "tv-input-manager-state.xml"));
|
/frameworks/base/services/core/java/com/android/server/wm/ |
DisplaySettings.java | 24 import android.util.AtomicFile; 49 private final AtomicFile mFile; 67 mFile = new AtomicFile(new File(systemDir, "display_settings.xml"));
|
/frameworks/base/services/core/java/com/android/server/display/ |
PersistentDataStore.java | 27 import android.util.AtomicFile; 79 private final AtomicFile mAtomicFile; 88 mAtomicFile = new AtomicFile(new File("/data/system/display-manager-state.xml"));
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
Owners.java | 29 import android.util.AtomicFile; 394 InputStream input = new AtomicFile(file).openRead(); 500 final AtomicFile f = new AtomicFile(mFile); 541 final AtomicFile f = new AtomicFile(mFile);
|
/frameworks/base/services/core/java/com/android/server/net/ |
NetworkStatsCollection.java | 36 import android.util.AtomicFile; 393 final AtomicFile inputFile = new AtomicFile(file); 432 final AtomicFile inputFile = new AtomicFile(file);
|
/frameworks/base/core/java/com/android/server/ |
BootReceiver.java | 34 import android.util.AtomicFile; 80 private static final AtomicFile sFile = new AtomicFile(new File(
|