Searched refs:grantIntent (Results 1 – 1 of 1) sorted by relevance
351 Intent grantIntent = new Intent(); in doTryGrantUriActivityPermissionToSelf() local352 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 …]