Searched refs:restrictionsFile (Results 1 – 2 of 2) sorted by relevance
40 private File restrictionsFile; field in UserManagerServiceTest46 restrictionsFile = new File(mContext.getCacheDir(), "restrictions.xml"); in setUp()47 restrictionsFile.delete(); in setUp()52 restrictionsFile.delete(); in tearDown()60 AtomicFile atomicFile = new AtomicFile(restrictionsFile); in testWriteReadApplicationRestrictions()64 String s = FileUtils.readTextFile(restrictionsFile, 10000, ""); in testWriteReadApplicationRestrictions()
4102 AtomicFile restrictionsFile = in readApplicationRestrictionsLAr() local4105 return readApplicationRestrictionsLAr(restrictionsFile); in readApplicationRestrictionsLAr()4110 static Bundle readApplicationRestrictionsLAr(AtomicFile restrictionsFile) { in readApplicationRestrictionsLAr() argument4113 if (!restrictionsFile.getBaseFile().exists()) { in readApplicationRestrictionsLAr()4119 fis = restrictionsFile.openRead(); in readApplicationRestrictionsLAr()4125 + restrictionsFile.getBaseFile()); in readApplicationRestrictionsLAr()4132 Slog.w(LOG_TAG, "Error parsing " + restrictionsFile.getBaseFile(), e); in readApplicationRestrictionsLAr()4196 AtomicFile restrictionsFile = new AtomicFile( in writeApplicationRestrictionsLAr() local4199 writeApplicationRestrictionsLAr(restrictions, restrictionsFile); in writeApplicationRestrictionsLAr()4204 static void writeApplicationRestrictionsLAr(Bundle restrictions, AtomicFile restrictionsFile) { in writeApplicationRestrictionsLAr() argument[all …]