Home
last modified time | relevance | path

Searched refs:getFile (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/security/src/android/security/cts/
DKernelSettingsTest.java45 assertEquals("32768", getFile("/proc/sys/vm/mmap_min_addr")); in testMmapMinAddr()
59 assertEquals("2", getFile("/proc/sys/kernel/kptr_restrict")); in testKptrRestrict()
70 assertEquals("0", getFile("/proc/sys/fs/suid_dumpable")); in testSetuidDumpable()
82 "0", getFile("/proc/sys/net/ipv4/conf/all/accept_redirects")); in testNoIcmpRedirects()
89 "0", getFile("/proc/sys/net/ipv6/conf/all/accept_redirects")); in testNoIcmpRedirects()
95 static String getFile(String filename) throws IOException { in getFile() method in KernelSettingsTest
/cts/tests/tests/graphics/src/android/graphics/fonts/
DSystemFontsTest.java63 assertNotNull("System font must provide file path to the font file.", font.getFile()); in testAvailableFonts_ReadOnlyFile()
66 assertTrue(font.getFile().exists()); in testAvailableFonts_ReadOnlyFile()
67 assertTrue(font.getFile().isFile()); in testAvailableFonts_ReadOnlyFile()
68 assertTrue(font.getFile().canRead()); in testAvailableFonts_ReadOnlyFile()
69 assertFalse(font.getFile().canExecute()); in testAvailableFonts_ReadOnlyFile()
70 assertFalse(font.getFile().canWrite()); in testAvailableFonts_ReadOnlyFile()
73 final String absPath = font.getFile().getAbsolutePath(); in testAvailableFonts_ReadOnlyFile()
DFontTest.java142 assertNull(font.getFile()); in testBuilder_buffer()
164 assertNull(font.getFile()); in testBuilder_buffer_ttc()
187 assertNull(font.getFile()); in testBuilder_buffer_vf()
209 assertNull(font.getFile()); in testBuilder_buffer_override()
225 assertNull(font.getFile()); in testBuilder_buffer_override()
260 assertNotNull(font.getFile()); in testBuilder_file()
287 assertNotNull(font.getFile()); in testBuilder_file_ttc()
315 assertNotNull(font.getFile()); in testBuilder_file_vf()
342 assertNotNull(font.getFile()); in testBuilder_file_override()
362 assertNotNull(font.getFile()); in testBuilder_file_override()
[all …]
/cts/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java20 protected static String getFile(String filename) throws IOException { in getFile() method in SELinuxTargetSdkTestBase
123 Matcher m = p.matcher(getFile("/proc/self/attr/current")); in appDomainContext()
124 String context = getFile("/proc/self/attr/current"); in appDomainContext()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DApkParser.java75 AndroidManifestParser manifestParser = new AndroidManifestParser(getFile()); in processManifest()
80 DexParser dexParser = new DexParser(getFile()); in processDex()
DRcParser.java69 String file = service.getFile().substring(1); in getDependencies()
120 FileReader fileReader = new FileReader(getFile()); in parseFile()
DTestSuiteTradefedParser.java110 ZipFile zip = new ZipFile(getFile()); in praseKnownFailure()
149 ZipFile zip = new ZipFile(getFile()); in parseFile()
DFileParser.java110 public File getFile() { in getFile() method in FileParser
202 mFileEntryBuilder.setSize(getFile().length()); in parse()
DTestModuleConfigParser.java68 FileReader fileReader = new FileReader(getFile()); in parseFile()
DXmlParser.java65 FileReader fileReader = new FileReader(getFile()); in parse()
DDexParser.java101 System.out.println("dexFile: " + getFile().getAbsoluteFile()); in parse()
103 dexFile = DexFileFactory.loadDexFile(getFile().getAbsoluteFile(), Opcodes.getDefault()); in parse()
178 String error = "Unable to load dex file: " + getFile().getAbsoluteFile(); in parse()
DBuildPropParser.java85 FileReader fileReader = new FileReader(getFile()); in parseFile()
DVdexParser.java67 RandomAccessFile raFile = new RandomAccessFile(getFile(), "r"); in parse()
DArtParser.java69 RandomAccessFile raFile = new RandomAccessFile(getFile(), "r"); in parse()
DZipParser.java127 zFile = new ZipFile(getFile()); in parseFileContent()
DSoParser.java139 ReadElf mElf = ReadElf.read(getFile()); in parse()
DOatParser.java81 ReadElf elf = ReadElf.read(getFile()); in parse()
DDepCsvPrinter.java173 target.getFile().replace("/system/", "SYSTEM/").replace("/vendor/", "VENDOR/"); in writeRcDigraph()
DDepPrinter.java158 target.getFile().replace("/system/", "SYSTEM/").replace("/vendor/", "VENDOR/"); in writeRcDigraph()
/cts/hostsidetests/incident/src/com/android/server/cts/
DActivityManagerIncidentTest.java230 assertTrue(dump.getMemWatchProcesses().getDump().getFile().isEmpty()); in verifyActivityManagerServiceDumpProcessesProto()
/cts/tests/tests/provider/src/android/provider/cts/
DProviderTestUtils.java202 final File source = ParcelFileDescriptor.getFile(afd.getFileDescriptor()); in stageFile()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java491 final File source = ParcelFileDescriptor.getFile(afd.getFileDescriptor()); in stageFile()