Home
last modified time | relevance | path

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

/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java225 final Uri badUri = Uri.fromFile(new File("/sdcard/meow.jpg")); in testFileUriExposure() local
230 intent.setDataAndType(badUri, "image/jpeg"); in testFileUriExposure()
234 assertThat(info.getStackTrace()).contains(badUri + " exposed beyond app"); in testFileUriExposure()
252 final Uri badUri = Uri.fromFile(new File("/sdcard/meow.jpg")); in testFileUriExposure_Chooser() local
258 intent.putExtra(Intent.EXTRA_STREAM, badUri); in testFileUriExposure_Chooser()
265 assertThat(info.getStackTrace()).contains(badUri + " exposed beyond app"); in testFileUriExposure_Chooser()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTest.java323 final Uri badUri = Uri.parse("file:///sdcard/Android/data/" in testSetDestinationUri_invalidRequests() local
326 badRequest2.setDestinationUri(badUri); in testSetDestinationUri_invalidRequests()
329 fail(badUri + " is not valid for setDestinationUri()"); in testSetDestinationUri_invalidRequests()