Home
last modified time | relevance | path

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

/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAccessPermissionWithDiffSigTest.java351 Intent grantIntent = new Intent(); in doTryGrantUriActivityPermissionToSelf() local
352 grantIntent.setData(grantDataUri); in doTryGrantUriActivityPermissionToSelf()
353 grantIntent.addFlags(mode | Intent.FLAG_ACTIVITY_NEW_TASK); in doTryGrantUriActivityPermissionToSelf()
354 grantIntent.setClass(getContext(), ReceiveUriActivity.class); in doTryGrantUriActivityPermissionToSelf()
357 getContext().startActivity(grantIntent); in doTryGrantUriActivityPermissionToSelf()
364 grantIntent = makeClipIntent(uri, mode | Intent.FLAG_ACTIVITY_NEW_TASK); in doTryGrantUriActivityPermissionToSelf()
365 grantIntent.setClass(getContext(), ReceiveUriActivity.class); in doTryGrantUriActivityPermissionToSelf()
368 getContext().startActivity(grantIntent); in doTryGrantUriActivityPermissionToSelf()
370 … fail("expected SecurityException granting " + grantIntent.getClipData() + " to activity"); in doTryGrantUriActivityPermissionToSelf()
414 Intent grantIntent = new Intent(); in doTryGrantUriServicePermissionToSelf() local
[all …]