Searched refs:restrictionsFile (Results 1 – 2 of 2) sorted by relevance
56 private File restrictionsFile; field in UserManagerServiceTest76 restrictionsFile = new File(mContext.getCacheDir(), "restrictions.xml"); in setup()77 restrictionsFile.delete(); in setup()82 restrictionsFile.delete(); in teardown()90 AtomicFile atomicFile = new AtomicFile(restrictionsFile); in testWriteReadApplicationRestrictions()94 String s = FileUtils.readTextFile(restrictionsFile, 10000, ""); in testWriteReadApplicationRestrictions()
6574 AtomicFile restrictionsFile =6577 return readApplicationRestrictionsLAr(restrictionsFile);6582 static Bundle readApplicationRestrictionsLAr(AtomicFile restrictionsFile) {6585 if (!restrictionsFile.getBaseFile().exists()) {6591 fis = restrictionsFile.openRead();6596 + restrictionsFile.getBaseFile());6603 Slog.w(LOG_TAG, "Error parsing " + restrictionsFile.getBaseFile(), e);6666 AtomicFile restrictionsFile = new AtomicFile(6669 writeApplicationRestrictionsLAr(restrictions, restrictionsFile);6674 static void writeApplicationRestrictionsLAr(Bundle restrictions, AtomicFile restrictionsFile) {[all …]