Home | History | Annotate | Download | only in cts

Lines Matching defs:intent

19 import android.content.Intent;
32 public void assertCanBeHandled(Intent intent) {
34 .getPackageManager().queryIntentActivities(intent, 0);
36 assertTrue("No ResolveInfo found for " + intent.toString(),
41 Intent intent = new Intent(Intent.ACTION_PICK);
42 intent.setData(MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
43 assertCanBeHandled(intent);
47 Intent intent = new Intent(Intent.ACTION_PICK);
48 intent.setData(MediaStore.Video.Media.EXTERNAL_CONTENT_URI);
49 assertCanBeHandled(intent);
53 Intent intent = new Intent(Intent.ACTION_PICK);
54 intent.setData(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI);
55 assertCanBeHandled(intent);
59 Intent intent = new Intent(Intent.ACTION_VIEW);
60 intent.setData(MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
61 assertCanBeHandled(intent);
65 Intent intent = new Intent(Intent.ACTION_VIEW);
66 intent.setData(MediaStore.Video.Media.EXTERNAL_CONTENT_URI);
67 assertCanBeHandled(intent);
81 Intent intent = new Intent(Intent.ACTION_VIEW);
84 intent.setDataAndType(uri, mime);
85 assertCanBeHandled(intent);
99 Intent intent = new Intent(Intent.ACTION_VIEW);
102 intent.setDataAndType(uri, mime);
103 assertCanBeHandled(intent);
117 Intent intent = new Intent(Intent.ACTION_VIEW);
120 intent.setDataAndType(uri, mime);
121 assertCanBeHandled(intent);