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.java153 private AtomicFile mPolicyFile; field in SmsUsageMonitor
431 if (mPolicyFile == null) { in loadPremiumSmsPolicyDb()
433 mPolicyFile = new AtomicFile(new File(dir, SMS_POLICY_FILE_NAME)); in loadPremiumSmsPolicyDb()
439 infile = mPolicyFile.openRead(); in loadPremiumSmsPolicyDb()
495 outfile = mPolicyFile.startWrite(); in writePremiumSmsPolicyDb()
514 mPolicyFile.finishWrite(outfile); in writePremiumSmsPolicyDb()
518 mPolicyFile.failWrite(outfile); in writePremiumSmsPolicyDb()
/frameworks/base/services/core/java/com/android/server/
DPackageWatchdog.java117 private final AtomicFile mPolicyFile; field in PackageWatchdog
152 mPolicyFile = policyFile; in PackageWatchdog()
683 infile = mPolicyFile.openRead(); in loadFromFile()
698 mPolicyFile.delete(); in loadFromFile()
775 stream = mPolicyFile.startWrite(); in saveToFile()
792 mPolicyFile.finishWrite(stream); in saveToFile()
796 mPolicyFile.failWrite(stream); in saveToFile()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java562 private final AtomicFile mPolicyFile; field in NetworkPolicyManagerService
630 mPolicyFile = new AtomicFile(new File(systemDir, "netpolicy.xml"), "net-policy"); in NetworkPolicyManagerService()
2168 fis = mPolicyFile.openRead(); in readPolicyAL()
2425 fos = mPolicyFile.startWrite(); in writePolicyAL()
2526 mPolicyFile.finishWrite(fos); in writePolicyAL()
2529 mPolicyFile.failWrite(fos); in writePolicyAL()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java431 private AtomicFile mPolicyFile; field in NotificationManagerService
639 synchronized (mPolicyFile) { in loadPolicyFile()
642 infile = mPolicyFile.openRead(); in loadPolicyFile()
664 synchronized (mPolicyFile) { in handleSavePolicyFile()
667 stream = mPolicyFile.startWrite(); in handleSavePolicyFile()
675 mPolicyFile.finishWrite(stream); in handleSavePolicyFile()
678 mPolicyFile.failWrite(stream); in handleSavePolicyFile()
1667 mPolicyFile = policyFile; in init()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java199 AtomicFile mPolicyFile; field in NotificationManagerServiceTest
365 mPolicyFile = new AtomicFile(mFile); in setUp()
366 FileOutputStream fos = mPolicyFile.startWrite(); in setUp()
368 mPolicyFile.finishWrite(fos); in setUp()
390 mCompanionMgr, mSnoozeHelper, mUsageStats, mPolicyFile, mActivityManager, in setUp() local