Home
last modified time | relevance | path

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

12

/cts/tests/tests/security/src/android/security/cts/
DKernelSettingsTest.java43 assertEquals("32768", getFile("/proc/sys/vm/mmap_min_addr")); in testMmapMinAddr()
57 assertEquals("2", getFile("/proc/sys/kernel/kptr_restrict")); in testKptrRestrict()
68 assertEquals("0", getFile("/proc/sys/fs/suid_dumpable")); in testSetuidDumpable()
80 "0", getFile("/proc/sys/net/ipv4/conf/all/accept_redirects")); in testNoIcmpRedirects()
87 "0", getFile("/proc/sys/net/ipv6/conf/all/accept_redirects")); in testNoIcmpRedirects()
93 static String getFile(String filename) throws IOException { in getFile() method in KernelSettingsTest
/cts/hostsidetests/theme/app/src/android/theme/app/
DTypefaceTestUtil.java37 requireNonNull(font.getFile()); in getFirstFont()
38 return font.getFile(); in getFirstFont()
45 if (font.getFile().getName().startsWith("Roboto-")) { in getRobotoTypeface()
51 } else if (font.getFile().getName().equals("RobotoStatic-Regular.ttf")) { in getRobotoTypeface()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DTypefaceTestUtil.java39 assertThat(font.getFile()).isNotNull(); in getFirstFont()
40 return font.getFile(); in getFirstFont()
47 if (font.getFile().getName().startsWith("Roboto-")) { in getRobotoTypeface()
53 } else if (font.getFile().getName().equals("RobotoStatic-Regular.ttf")) { in getRobotoTypeface()
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceTestUtil.java39 assertThat(font.getFile()).isNotNull(); in getFirstFont()
40 return font.getFile(); in getFirstFont()
47 if (font.getFile().getName().startsWith("Roboto-")) { in getRobotoTypeface()
53 } else if (font.getFile().getName().equals("RobotoStatic-Regular.ttf")) { in getRobotoTypeface()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DSystemFontsUniqueNameTest.java42 if (seenFile.contains(font.getFile())) { in uniquePostScript()
45 String psName = FontFileTestUtil.getPostScriptName(font.getFile()); in uniquePostScript()
49 seenFile.add(font.getFile()); in uniquePostScript()
DSystemEmojiTest.java41 if (font.getFile().getName().equals("NotoColorEmoji.ttf")) { in uniquePostScript()
42 emojiFont = font.getFile(); in uniquePostScript()
58 File file = glyphs.getFont(0).getFile(); in getFontName()
DSystemFontsTest.java83 assertNotNull("System font must provide file path to the font file.", font.getFile()); in testAvailableFonts_ReadOnlyFile()
85 final String absPath = font.getFile().getAbsolutePath(); in testAvailableFonts_ReadOnlyFile()
88 assertTrue(absPath + " must exists", font.getFile().exists()); in testAvailableFonts_ReadOnlyFile()
89 assertTrue(absPath + " must be a file", font.getFile().isFile()); in testAvailableFonts_ReadOnlyFile()
90 assertTrue(absPath + " must be readable", font.getFile().canRead()); in testAvailableFonts_ReadOnlyFile()
91 assertFalse(absPath + " must not executable", font.getFile().canExecute()); in testAvailableFonts_ReadOnlyFile()
92 assertFalse(absPath + " must not writable", font.getFile().canWrite()); in testAvailableFonts_ReadOnlyFile()
DFontTest.java168 assertNull(font.getFile()); in testBuilder_buffer()
190 assertNull(font.getFile()); in testBuilder_buffer_ttc()
213 assertNull(font.getFile()); in testBuilder_buffer_vf()
235 assertNull(font.getFile()); in testBuilder_buffer_override()
251 assertNull(font.getFile()); in testBuilder_buffer_override()
286 assertNotNull(font.getFile()); in testBuilder_file()
313 assertNotNull(font.getFile()); in testBuilder_file_ttc()
341 assertNotNull(font.getFile()); in testBuilder_file_vf()
368 assertNotNull(font.getFile()); in testBuilder_file_override()
388 assertNotNull(font.getFile()); in testBuilder_file_override()
[all …]
DFontManagerTest.java117 assertThat(font.getFile().canRead()).isTrue(); in fontManager_getFontConfig_checkFamilies()
288 String psNameInFile = FontFileTestUtil.getPostScriptName(font.getFile()); in fontManager_PostScriptName()
DNativeSystemFontTest.java46 font.mFilePath = f.getFile().getAbsolutePath(); in convertToDescriptors()
/cts/hostsidetests/library/src/android/appmanifest/cts/
DUsesNativeLibraryTestCase.java141 FileUtil.chmod(getFile("aapt2"), "u+x"); in setUp()
142 FileUtil.chmod(getFile("merge_zips"), "u+x"); in setUp()
157 private File getFile(String path) { in getFile() method in UsesNativeLibraryTestCase
284 getFile("aapt2"),
286 getFile("android.jar"),
293 getFile("merge_zips"),
296 getFile("CtsUsesNativeLibraryTestApp.jar")));
302 getFile("signapk.jar"),
303 getFile("testkey.x509.pem"),
304 getFile("testkey.pk8"),
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DRcParser.java70 String file = service.getFile().substring(1); in getDependencies()
74 "err Service " + service.getName() + " File:" + service.getFile()); in getDependencies()
125 FileReader fileReader = new FileReader(getFile()); in parseFile()
DApkParser.java75 AndroidManifestParser manifestParser = new AndroidManifestParser(getFile()); in processManifest()
80 DexParser dexParser = new DexParser(getFile()); in processDex()
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()
DBuildPropParser.java85 FileReader fileReader = new FileReader(getFile()); in parseFile()
DVdexParser.java67 RandomAccessFile raFile = new RandomAccessFile(getFile(), "r"); in parse()
DDexParser.java116 System.out.println("dexFile: " + getFile().getAbsoluteFile()); in parse()
118 dexFile = DexFileFactory.loadDexFile(getFile().getAbsoluteFile(), Opcodes.getDefault()); in parse()
193 String error = "Unable to load dex file: " + getFile().getAbsoluteFile(); in parse()
DArtParser.java69 RandomAccessFile raFile = new RandomAccessFile(getFile(), "r"); in parse()
/cts/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java25 protected static String getFile(String filename) throws IOException { in getFile() method in SELinuxTargetSdkTestBase
140 Matcher m = p.matcher(getFile("/proc/self/attr/current")); in appDomainContext()
141 String context = getFile("/proc/self/attr/current"); in appDomainContext()
/cts/tests/tests/view/src/android/view/cts/util/
DBitmapDumper.java85 private static File getFile(String className, String testName, String type) { in getFile() method in BitmapDumper
107 File capture = getFile(className, testName, TYPE_SINGULAR); in dumpBitmap()
/cts/libs/install/src/android/cts/install/lib/host/
DInstallUtilsHost.java203 File hostLinkedDir = getTestInfo().getBuildInfo().getFile( in getTestFile()
213 File buildInfoFile = getTestInfo().getBuildInfo().getFile(testFileName); in getTestFile()
/cts/tests/tests/text/src/android/text/cts/
DNotoCJKFontRequirement.java91 String psName = FontFileTestUtil.getPostScriptName(font.getFile(), font.getTtcIndex()); in getNotoCJKFonts()

12