/cts/tests/tests/security/src/android/security/cts/ |
D | KernelSettingsTest.java | 43 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/tests/tests/graphics/src/android/graphics/fonts/ |
D | SystemFontsTest.java | 64 assertNotNull("System font must provide file path to the font file.", font.getFile()); in testAvailableFonts_ReadOnlyFile() 66 final String absPath = font.getFile().getAbsolutePath(); in testAvailableFonts_ReadOnlyFile() 69 assertTrue(absPath + " must exists", font.getFile().exists()); in testAvailableFonts_ReadOnlyFile() 70 assertTrue(absPath + " must be a file", font.getFile().isFile()); in testAvailableFonts_ReadOnlyFile() 71 assertTrue(absPath + " must be readable", font.getFile().canRead()); in testAvailableFonts_ReadOnlyFile() 72 assertFalse(absPath + " must not executable", font.getFile().canExecute()); in testAvailableFonts_ReadOnlyFile() 73 assertFalse(absPath + " must not writable", font.getFile().canWrite()); in testAvailableFonts_ReadOnlyFile()
|
D | SystemFontsUniqueNameTest.java | 43 if (seenFile.contains(font.getFile())) { in uniquePostScript() 46 String psName = FontFileTestUtil.getPostScriptName(font.getFile()); in uniquePostScript() 50 seenFile.add(font.getFile()); in uniquePostScript()
|
D | SystemEmojiTest.java | 38 if (font.getFile().getName().equals("NotoColorEmoji.ttf")) { in uniquePostScript() 39 emojiFont = font.getFile(); in uniquePostScript()
|
D | FontTest.java | 168 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 …]
|
D | FontManagerTest.java | 109 assertThat(font.getFile().canRead()).isTrue(); in fontManager_getFontConfig_checkFamilies() 268 String psNameInFile = FontFileTestUtil.getPostScriptName(font.getFile()); in fontManager_PostScriptName()
|
D | NativeSystemFontTest.java | 46 font.mFilePath = f.getFile().getAbsolutePath(); in convertToDescriptors()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | BitmapDumper.java | 84 private static File getFile(String className, String testName, String type) { in getFile() method in BitmapDumper 121 File idealFile = getFile(className, testName, TYPE_IDEAL_RENDERING); in dumpBitmaps() 122 File testedFile = getFile(className, testName, TYPE_TESTED_RENDERING); in dumpBitmaps() 123 File visualizerFile = getFile(className, testName, TYPE_VISUALIZER_RENDERING); in dumpBitmaps() 139 File testedFile = getFile(className, testName, TYPE_TESTED_RENDERING); in dumpBitmaps() 140 File visualizerFile = getFile(className, testName, TYPE_VISUALIZER_RENDERING); in dumpBitmaps() 156 File capture = getFile(className, testName, TYPE_SINGULAR); in dumpBitmap()
|
/cts/hostsidetests/library/src/android/appmanifest/cts/ |
D | UsesNativeLibraryTestCase.java | 141 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"))); 301 getFile("signapk.jar"), 302 getFile("testkey.x509.pem"), 303 getFile("testkey.pk8"),
|
/cts/tests/tests/selinux/common/src/android/security/ |
D | SELinuxTargetSdkTestBase.java | 22 protected static String getFile(String filename) throws IOException { in getFile() method in SELinuxTargetSdkTestBase 136 Matcher m = p.matcher(getFile("/proc/self/attr/current")); in appDomainContext() 137 String context = getFile("/proc/self/attr/current"); in appDomainContext()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | RcParser.java | 70 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()
|
D | ApkParser.java | 75 AndroidManifestParser manifestParser = new AndroidManifestParser(getFile()); in processManifest() 80 DexParser dexParser = new DexParser(getFile()); in processDex()
|
D | TestSuiteTradefedParser.java | 110 ZipFile zip = new ZipFile(getFile()); in praseKnownFailure() 149 ZipFile zip = new ZipFile(getFile()); in parseFile()
|
D | TestModuleConfigParser.java | 68 FileReader fileReader = new FileReader(getFile()); in parseFile()
|
D | FileParser.java | 110 public File getFile() { in getFile() method in FileParser 202 mFileEntryBuilder.setSize(getFile().length()); in parse()
|
D | XmlParser.java | 65 FileReader fileReader = new FileReader(getFile()); in parse()
|
D | BuildPropParser.java | 85 FileReader fileReader = new FileReader(getFile()); in parseFile()
|
D | DexParser.java | 101 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()
|
D | ArtParser.java | 69 RandomAccessFile raFile = new RandomAccessFile(getFile(), "r"); in parse()
|
D | ZipParser.java | 127 zFile = new ZipFile(getFile()); in parseFileContent()
|
D | SoParser.java | 139 ReadElf mElf = ReadElf.read(getFile()); in parse()
|
D | OatParser.java | 81 ReadElf elf = ReadElf.read(getFile()); in parse()
|
D | DepCsvPrinter.java | 173 target.getFile().replace("/system/", "SYSTEM/").replace("/vendor/", "VENDOR/"); in writeRcDigraph()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | BitmapDumper.java | 85 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/ |
D | InstallUtilsHost.java | 190 File hostLinkedDir = mTest.getBuild().getFile( in getTestFile() 200 File buildInfoFile = mTest.getBuild().getFile(testFileName); in getTestFile()
|