Home
last modified time | relevance | path

Searched refs:invalidFile (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceTest.java471 final File invalidFile = new File("/some/invalid/path/to/font/file"); in testTypefaceBuilder_fallback() local
474 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()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java2560 File invalidFile = new File(getDownloadDir(), "<>"); in testCantCreateOrRenameFileWithInvalidName() local
2565 invalidFile.createNewFile(); in testCantCreateOrRenameFileWithInvalidName()
2570 assertCantRenameFile(validFile, invalidFile); in testCantCreateOrRenameFileWithInvalidName()
2572 invalidFile.delete(); in testCantCreateOrRenameFileWithInvalidName()