Home
last modified time | relevance | path

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

/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java331 final Uri badUri = Uri.fromFile(new File("/sdcard/meow.jpg")); in testFileUriExposure() local
336 intent.setDataAndType(badUri, "image/jpeg"); in testFileUriExposure()
340 assertThat(info.getStackTrace()).contains(badUri + " exposed beyond app"); in testFileUriExposure()
358 final Uri badUri = Uri.fromFile(new File("/sdcard/meow.jpg")); in testFileUriExposure_Chooser() local
364 intent.putExtra(Intent.EXTRA_STREAM, badUri); in testFileUriExposure_Chooser()
371 assertThat(info.getStackTrace()).contains(badUri + " exposed beyond app"); in testFileUriExposure_Chooser()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTest.java365 final Uri badUri = Uri.parse("file:///sdcard/Android/data/" in testSetDestinationUri_invalidRequests() local
368 badRequest2.setDestinationUri(badUri); in testSetDestinationUri_invalidRequests()
371 fail(badUri + " is not valid for setDestinationUri()"); in testSetDestinationUri_invalidRequests()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java2228 var badUri = "intent:#Intent;action=action%23action;launchFlags=0x990000000;" in testIntegerEncoding() local
2231 () -> Intent.parseUri(badUri, Intent.URI_INTENT_SCHEME)); in testIntegerEncoding()
2247 var badUri = Uri.fromParts(new Intent() in testEncoding() local
2252 var selectorIntent = new Intent().setData(badUri) in testEncoding()