Searched refs:restrictionsFile (Results 1 – 2 of 2) sorted by relevance
36 private File restrictionsFile; field in UserManagerServiceTest42 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()
3429 AtomicFile restrictionsFile = in readApplicationRestrictionsLAr() local3432 return readApplicationRestrictionsLAr(restrictionsFile); in readApplicationRestrictionsLAr()3437 static Bundle readApplicationRestrictionsLAr(AtomicFile restrictionsFile) { in readApplicationRestrictionsLAr() argument3440 if (!restrictionsFile.getBaseFile().exists()) { in readApplicationRestrictionsLAr()3446 fis = restrictionsFile.openRead(); in readApplicationRestrictionsLAr()3452 + restrictionsFile.getBaseFile()); in readApplicationRestrictionsLAr()3459 Log.w(LOG_TAG, "Error parsing " + restrictionsFile.getBaseFile(), e); in readApplicationRestrictionsLAr()3523 AtomicFile restrictionsFile = new AtomicFile( in writeApplicationRestrictionsLAr() local3526 writeApplicationRestrictionsLAr(restrictions, restrictionsFile); in writeApplicationRestrictionsLAr()3531 static void writeApplicationRestrictionsLAr(Bundle restrictions, AtomicFile restrictionsFile) { in writeApplicationRestrictionsLAr() argument[all …]