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.java432 final File invalidFile = new File("/some/invalid/path/to/font/file"); in testTypefaceBuilder_fallback() local
435 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()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java2366 File invalidFile = new File(getDownloadDir(), "<>"); in testCantCreateOrRenameFileWithInvalidName() local
2371 invalidFile.createNewFile(); in testCantCreateOrRenameFileWithInvalidName()
2376 assertCantRenameFile(validFile, invalidFile); in testCantCreateOrRenameFileWithInvalidName()
2378 invalidFile.delete(); in testCantCreateOrRenameFileWithInvalidName()