Searched refs:invalidFile (Results 1 – 2 of 2) sorted by relevance
471 final File invalidFile = new File("/some/invalid/path/to/font/file"); in testTypefaceBuilder_fallback() local474 assertNull(new Typeface.Builder(invalidFile).build()); in testTypefaceBuilder_fallback()485 assertNotNull(new Typeface.Builder(invalidFile).setFallback("").build()); in testTypefaceBuilder_fallback()487 assertNotNull(new Typeface.Builder(invalidFile).setFallback("invalid name").build()); in testTypefaceBuilder_fallback()489 Typeface sansSerifTypeface = new Typeface.Builder(invalidFile) in testTypefaceBuilder_fallback()493 Typeface serifTypeface = new Typeface.Builder(invalidFile).setFallback("serif").build(); in testTypefaceBuilder_fallback()496 Typeface boldSansSerifTypeface = new Typeface.Builder(invalidFile) in testTypefaceBuilder_fallback()500 Typeface boldSerifTypeface = new Typeface.Builder(invalidFile) in testTypefaceBuilder_fallback()504 Typeface italicSansSerifTypeface = new Typeface.Builder(invalidFile) in testTypefaceBuilder_fallback()508 Typeface italicSerifTypeface = new Typeface.Builder(invalidFile) in testTypefaceBuilder_fallback()
2560 File invalidFile = new File(getDownloadDir(), "<>"); in testCantCreateOrRenameFileWithInvalidName() local2565 invalidFile.createNewFile(); in testCantCreateOrRenameFileWithInvalidName()2570 assertCantRenameFile(validFile, invalidFile); in testCantCreateOrRenameFileWithInvalidName()2572 invalidFile.delete(); in testCantCreateOrRenameFileWithInvalidName()