Searched refs:grantIntent (Results 1 – 3 of 3) sorted by relevance
68 Intent grantIntent = new Intent(); in grantClipUriPermission() local70 grantIntent.setData(clip.getItemAt(0).getUri()); in grantClipUriPermission()72 grantIntent.setClipData(clip); in grantClipUriPermission()77 grantIntent.addCategory(uri.toString()); in grantClipUriPermission()81 grantIntent.addFlags(mode); in grantClipUriPermission()82 grantIntent.setClass(getContext(), in grantClipUriPermission()87 intent.putExtra(EXTRA_INTENT, grantIntent); in grantClipUriPermission()
155 Intent grantIntent = new Intent(); in assertNotGrantableToService() local156 grantIntent.setClipData(subClip); in assertNotGrantableToService()157 grantIntent.addFlags(mode); in assertNotGrantableToService()158 grantIntent.setClass(getContext(), ReceiveUriService.class); in assertNotGrantableToService()160 getContext().startService(grantIntent); in assertNotGrantableToService()
147 Intent grantIntent = new Intent(); in assertNotGrantableToActivity() local148 grantIntent.setClipData(subClip); in assertNotGrantableToActivity()149 grantIntent.addFlags(mode | Intent.FLAG_ACTIVITY_NEW_TASK); in assertNotGrantableToActivity()150 grantIntent.setClass(getContext(), ReceiveUriActivity.class); in assertNotGrantableToActivity()153 getContext().startActivity(grantIntent); in assertNotGrantableToActivity()