Home
last modified time | relevance | path

Searched refs:restrictionsFile (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceTest.java36 private File restrictionsFile; field in UserManagerServiceTest
42 restrictionsFile = new File(mContext.getCacheDir(), "restrictions.xml"); in setUp()
43 restrictionsFile.delete(); in setUp()
48 restrictionsFile.delete(); in tearDown()
56 AtomicFile atomicFile = new AtomicFile(restrictionsFile); in testWriteReadApplicationRestrictions()
60 String s = FileUtils.readTextFile(restrictionsFile, 10000, ""); in testWriteReadApplicationRestrictions()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java3202 AtomicFile restrictionsFile = in readApplicationRestrictionsLAr() local
3205 return readApplicationRestrictionsLAr(restrictionsFile); in readApplicationRestrictionsLAr()
3210 static Bundle readApplicationRestrictionsLAr(AtomicFile restrictionsFile) { in readApplicationRestrictionsLAr() argument
3213 if (!restrictionsFile.getBaseFile().exists()) { in readApplicationRestrictionsLAr()
3219 fis = restrictionsFile.openRead(); in readApplicationRestrictionsLAr()
3225 + restrictionsFile.getBaseFile()); in readApplicationRestrictionsLAr()
3232 Log.w(LOG_TAG, "Error parsing " + restrictionsFile.getBaseFile(), e); in readApplicationRestrictionsLAr()
3296 AtomicFile restrictionsFile = new AtomicFile( in writeApplicationRestrictionsLAr() local
3299 writeApplicationRestrictionsLAr(restrictions, restrictionsFile); in writeApplicationRestrictionsLAr()
3304 static void writeApplicationRestrictionsLAr(Bundle restrictions, AtomicFile restrictionsFile) { in writeApplicationRestrictionsLAr() argument
[all …]