Searched refs:invalidFile (Results 1 – 2 of 2) sorted by relevance
432 final File invalidFile = new File("/some/invalid/path/to/font/file"); in testTypefaceBuilder_fallback() local435 assertNull(new Typeface.Builder(invalidFile).build()); in testTypefaceBuilder_fallback()446 assertNotNull(new Typeface.Builder(invalidFile).setFallback("").build()); in testTypefaceBuilder_fallback()448 assertNotNull(new Typeface.Builder(invalidFile).setFallback("invalid name").build()); in testTypefaceBuilder_fallback()450 Typeface sansSerifTypeface = new Typeface.Builder(invalidFile) in testTypefaceBuilder_fallback()454 Typeface serifTypeface = new Typeface.Builder(invalidFile).setFallback("serif").build(); in testTypefaceBuilder_fallback()457 Typeface boldSansSerifTypeface = new Typeface.Builder(invalidFile) in testTypefaceBuilder_fallback()461 Typeface boldSerifTypeface = new Typeface.Builder(invalidFile) in testTypefaceBuilder_fallback()465 Typeface italicSansSerifTypeface = new Typeface.Builder(invalidFile) in testTypefaceBuilder_fallback()469 Typeface italicSerifTypeface = new Typeface.Builder(invalidFile) in testTypefaceBuilder_fallback()
2366 File invalidFile = new File(getDownloadDir(), "<>"); in testCantCreateOrRenameFileWithInvalidName() local2371 invalidFile.createNewFile(); in testCantCreateOrRenameFileWithInvalidName()2376 assertCantRenameFile(validFile, invalidFile); in testCantCreateOrRenameFileWithInvalidName()2378 invalidFile.delete(); in testCantCreateOrRenameFileWithInvalidName()