Home
last modified time | relevance | path

Searched refs:mPolicyFile (Results 1 – 5 of 5) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java161 private AtomicFile mPolicyFile; field in SmsUsageMonitor
446 if (mPolicyFile == null) { in loadPremiumSmsPolicyDb()
448 mPolicyFile = new AtomicFile(new File(dir, SMS_POLICY_FILE_NAME)); in loadPremiumSmsPolicyDb()
454 infile = mPolicyFile.openRead(); in loadPremiumSmsPolicyDb()
510 outfile = mPolicyFile.startWrite(); in writePremiumSmsPolicyDb()
529 mPolicyFile.finishWrite(outfile); in writePremiumSmsPolicyDb()
533 mPolicyFile.failWrite(outfile); in writePremiumSmsPolicyDb()
/frameworks/base/services/core/java/com/android/server/
DPackageWatchdog.java177 private final AtomicFile mPolicyFile; field in PackageWatchdog
233 mPolicyFile = policyFile; in PackageWatchdog()
977 infile = mPolicyFile.openRead(); in loadFromFile()
991 mPolicyFile.delete(); in loadFromFile()
1072 stream = mPolicyFile.startWrite(); in saveToFile()
1088 mPolicyFile.finishWrite(stream); in saveToFile()
1092 mPolicyFile.failWrite(stream); in saveToFile()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java640 private final AtomicFile mPolicyFile; field in NetworkPolicyManagerService
755 mPolicyFile = new AtomicFile(new File(systemDir, "netpolicy.xml"), "net-policy"); in NetworkPolicyManagerService()
2366 fis = mPolicyFile.openRead();
2664 fos = mPolicyFile.startWrite();
2772 mPolicyFile.finishWrite(fos);
2775 mPolicyFile.failWrite(fos);
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java567 private AtomicFile mPolicyFile; field in NotificationManagerService
1013 synchronized (mPolicyFile) { in loadPolicyFile()
1016 infile = mPolicyFile.openRead(); in loadPolicyFile()
1046 synchronized (mPolicyFile) { in run()
1049 stream = mPolicyFile.startWrite(); in run()
1057 mPolicyFile.finishWrite(stream); in run()
1060 mPolicyFile.failWrite(stream); in run()
2288 mPolicyFile = policyFile; in init()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java255 AtomicFile mPolicyFile; field in NotificationManagerServiceTest
484 mPolicyFile = new AtomicFile(mFile); in setUp()
485 FileOutputStream fos = mPolicyFile.startWrite(); in setUp()
487 mPolicyFile.finishWrite(fos); in setUp()
522 mSnoozeHelper, mUsageStats, mPolicyFile, mActivityManager, mGroupHelper, mAm, mAtm, in setUp()