HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 1 - 25 of 2708) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
WizardManagerHelperTest.java 20 import android.content.Intent;
30 final Intent intent = new Intent("test.intent.ACTION"); local
31 intent.putExtra("scriptUri", "android-resource://test-script");
32 intent.putExtra("actionId", "test_action_id");
33 intent.putExtra("theme", "test_theme");
34 intent.putExtra("ignoreExtra", "poof"); // extra is ignored because it's not known
36 final Intent data = new Intent()
57 final Intent intent = new Intent(); local
65 final Intent intent = new Intent(); local
73 final Intent intent = new Intent(); local
81 final Intent intent = new Intent(); local
89 final Intent intent = new Intent(); local
97 final Intent intent = new Intent(); local
105 final Intent intent = new Intent(); local
113 final Intent intent = new Intent(); local
121 final Intent intent = new Intent(); local
131 final Intent intent = new Intent(); local
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
ContactsContractIntentsTest.java 19 import android.content.Intent;
31 public void assertCanBeHandled(Intent intent) {
33 .getPackageManager().queryIntentActivities(intent, 0);
35 assertTrue("No ResolveInfo found for " + intent.toInsecureString(),
40 Intent intent = new Intent(Intent.ACTION_VIEW); local
41 intent.setData(ContactsContract.Contacts.CONTENT_URI)
46 Intent intent = new Intent(Intent.ACTION_PICK); local
52 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
    [all...]
MediaStoreIntentsTest.java 19 import android.content.Intent;
32 public void assertCanBeHandled(Intent intent) {
34 .getPackageManager().queryIntentActivities(intent, 0);
36 assertTrue("No ResolveInfo found for " + intent.toInsecureString(),
41 Intent intent = new Intent(Intent.ACTION_PICK); local
42 intent.setData(MediaStore.Images.Media.EXTERNAL_CONTENT_URI)
47 Intent intent = new Intent(Intent.ACTION_PICK); local
53 Intent intent = new Intent(Intent.ACTION_PICK); local
59 Intent intent = new Intent(Intent.ACTION_VIEW); local
65 Intent intent = new Intent(Intent.ACTION_VIEW); local
78 Intent intent = new Intent(Intent.ACTION_VIEW); local
96 Intent intent = new Intent(Intent.ACTION_VIEW); local
114 Intent intent = new Intent(Intent.ACTION_VIEW); local
    [all...]
  /packages/apps/Gallery/src/com/android/camera/
Wallpaper.java 19 import android.content.Intent;
39 Intent intent = new Intent(); local
40 intent.setClass(this, CropImage.class);
41 intent.setData(imageToUse);
42 formatIntent(intent);
43 startActivityForResult(intent, CROP_DONE);
45 Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null) local
    [all...]
  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
NfcTest.java 19 import android.content.Intent;
31 Intent intent = getTextShareIntent(); local
32 assertFalse("Nfc beam activity should not be resolved", isNfcBeamActivityResolved(intent));
36 Intent intent = getTextShareIntent(); local
37 assertTrue("Nfc beam activity should be resolved", isNfcBeamActivityResolved(intent));
40 private Intent getTextShareIntent() {
41 Intent intent = new Intent() local
    [all...]
  /frameworks/support/customtabs/tests/src/android/support/customtabs/
CustomTabsIntentTest.java 19 import android.content.Intent;
30 Intent intent = customTabsIntent.intent; local
31 assertNotNull(intent);
34 assertEquals(Intent.ACTION_VIEW, intent.getAction());
35 assertTrue(intent.hasExtra(CustomTabsIntent.EXTRA_SESSION));
36 assertNull(intent.getExtras().getBinder(CustomTabsIntent.EXTRA_SESSION));
37 assertNull(intent.getComponent())
42 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(color).build().intent; local
50 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(colorId).build().intent; local
    [all...]
  /external/robolectric/src/main/java/android/content/
TestIntentSender.java 4 public Intent intent; field in class:TestIntentSender
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
TestBroadcastReceiver.java 5 import android.content.Intent;
9 public Intent intent; field in class:TestBroadcastReceiver
12 public void onReceive(Context context, Intent intent) {
14 this.intent = intent;
  /packages/apps/Browser/src/com/android/browser/
BookmarkSearch.java 20 import android.content.Intent;
33 Intent intent = getIntent(); local
34 if (intent != null) {
35 String action = intent.getAction();
36 if (Intent.ACTION_VIEW.equals(action)) {
37 intent.setClass(this, BrowserActivity.class);
38 startActivity(intent);
  /cts/tests/tests/content/src/android/content/cts/
AvailableIntentsTest.java 22 import android.content.Intent;
39 * Assert target intent can be handled by at least one Activity.
40 * @param intent - the Intent will be handled.
42 private void assertCanBeHandled(final Intent intent) {
44 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0);
46 // one or more activity can handle this intent.
56 Intent intent = new Intent(Intent.ACTION_VIEW, uri) local
66 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
76 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
87 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
98 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
110 Intent intent = new Intent(Intent.ACTION_CALL, uri); local
122 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local
134 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local
146 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); local
179 Intent intent = new Intent(Intent.ACTION_VIEW); local
189 Intent intent = new Intent(Intent.ACTION_VIEW); local
196 Intent intent = new Intent(AlarmClock.ACTION_SET_ALARM); local
204 Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); local
211 Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); local
218 Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT); local
225 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
232 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
    [all...]
  /development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/receiver/
MessagingReceiver.java 20 import android.content.Intent;
35 public void onReceive(Context context, Intent intent) {
36 String action = intent == null ? null : intent.getAction();
41 handleIncomingSms(context, intent);
43 handleIncomingMms(context, intent);
47 handleIncomingSms(context, intent);
49 handleIncomingMms(context, intent);
54 private void handleIncomingSms(Context context, Intent intent)
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
IntentTest.java 16 import android.content.Intent;
37 Intent intent = new Intent(); local
38 assertSame(intent, intent.putExtra("foo", "bar"));
39 assertEquals("bar", intent.getExtras().get("foo"));
44 Intent intent = new Intent(); local
52 Intent intent = new Intent(); local
60 Intent intent = new Intent(); local
68 Intent intent = new Intent(); local
76 Intent intent = new Intent(); local
87 Intent intent = new Intent(); local
98 Intent intent = new Intent(); local
109 Intent intent = new Intent(); local
118 Intent intent = new Intent(); local
129 Intent intent = new Intent(); local
145 Intent intent = new Intent(); local
154 Intent intent = new Intent(); local
163 Intent intent = new Intent(); local
171 Intent intent = new Intent(); local
178 Intent intent = new Intent(); local
188 Intent intent = new Intent(); local
197 Intent intent = new Intent(); local
206 Intent intent = new Intent(); local
217 Intent intent = new Intent(); local
228 Intent intent = new Intent(new Activity(), getClass()); local
234 Intent intent = new Intent(); local
242 Intent intent = new Intent(); local
251 Intent intent = new Intent(); local
276 Intent intent = new Intent(); local
377 Intent intent = new Intent(); local
387 Intent intent = new Intent(); local
397 Intent intent = new Intent(new Activity(), getClass()); local
410 Intent intent = new Intent("action"); local
    [all...]
  /packages/apps/Browser/src/com/android/browser/widget/
BookmarkWidgetProxy.java 23 import android.content.Intent;
31 public void onReceive(Context context, Intent intent) {
32 if (BookmarkThumbnailWidgetService.ACTION_CHANGE_FOLDER.equals(intent.getAction())) {
33 BookmarkThumbnailWidgetService.changeFolder(context, intent);
34 } else if (BrowserActivity.ACTION_SHOW_BROWSER.equals(intent.getAction())) {
36 new Intent(BrowserActivity.ACTION_SHOW_BROWSER,
39 Intent view = new Intent(intent);
    [all...]
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
PrivilegedCellBroadcastReceiver.java 20 import android.content.Intent;
29 public void onReceive(Context context, Intent intent) {
32 onReceiveWithPrivilege(context, intent, true);
  /packages/apps/Email/src/com/android/email2/ui/
CreateShortcutActivityEmail.java 26 import android.content.Intent;
35 Intent intent = getIntent(); local
37 intent.setClass(this, FolderSelectionActivity.class);
38 intent.setFlags(
39 Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_FORWARD_RESULT);
40 intent.setAction(Intent.ACTION_CREATE_SHORTCUT);
41 intent.putExtra(FolderSelectionActivity.EXTRA_ACCOUNT_SHORTCUT
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
CreateShortcutActivity.java 24 import android.content.Intent;
33 Intent intent = getIntent(); local
35 intent.setClass(this, FolderSelectionActivity.class);
36 intent.setFlags(
37 Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_FORWARD_RESULT);
38 intent.setAction(Intent.ACTION_CREATE_SHORTCUT);
39 intent.putExtra(FolderSelectionActivity.EXTRA_ACCOUNT_SHORTCUT, cachedAccounts[0])
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
AllIntentsActivity.java 25 import android.content.Intent;
146 new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI));
151 new Intent(Intent.ACTION_PICK, People.CONTENT_URI));
156 new Intent(Intent.ACTION_PICK, Phone.CONTENT_URI));
161 new Intent(Intent.ACTION_PICK, Phones.CONTENT_URI));
166 new Intent(Intent.ACTION_PICK, StructuredPostal.CONTENT_URI))
170 Intent intent = new Intent(Intent.ACTION_PICK); local
181 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local
186 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local
192 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local
198 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
204 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
210 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
216 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
222 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
228 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
234 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local
241 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local
248 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local
255 Intent intent = new Intent(Intent.ACTION_SEARCH); local
262 Intent intent = new Intent(Intent.ACTION_SEARCH); local
269 Intent intent = new Intent(Intent.ACTION_SEARCH); local
275 Intent intent = new Intent(Intent.ACTION_SEARCH); local
284 Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CLICKED); local
297 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local
308 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupWithoutIdUri); local
316 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupUri); local
324 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local
333 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local
342 Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local
368 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
383 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupWithoutIdUri); local
391 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupUri); local
399 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
408 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
454 final Intent intent = new Intent(Intent.ACTION_VIEW); local
460 final Intent intent = new Intent(Intent.ACTION_VIEW); local
467 final Intent intent = new Intent(Intent.ACTION_VIEW); local
479 final Intent intent = new Intent(Intent.ACTION_VIEW); local
490 final Intent intent = new Intent("android.intent.action.VIEW"); local
543 Intent intent = new Intent(this, ResultActivity.class); local
602 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local
609 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local
    [all...]
  /developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/
UtilityReceiver.java 20 import android.content.Intent;
31 public void onReceive(Context context, Intent intent) {
36 intent.setClass(context, UtilityService.class);
37 intent.setAction(UtilityService.ACTION_GEOFENCE_TRIGGERED);
38 startWakefulService(context, intent);
  /developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/
UtilityReceiver.java 20 import android.content.Intent;
31 public void onReceive(Context context, Intent intent) {
36 intent.setClass(context, UtilityService.class);
37 intent.setAction(UtilityService.ACTION_GEOFENCE_TRIGGERED);
38 startWakefulService(context, intent);
  /development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/
UtilityReceiver.java 20 import android.content.Intent;
31 public void onReceive(Context context, Intent intent) {
36 intent.setClass(context, UtilityService.class);
37 intent.setAction(UtilityService.ACTION_GEOFENCE_TRIGGERED);
38 startWakefulService(context, intent);
  /development/samples/training/device-management-policy/src/com/example/training/deviceadmin/
SecureActivity.java 20 import android.content.Intent;
32 Intent intent = new Intent(); local
33 intent.setClass(this, PolicySetupActivity.class);
34 intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP |
35 Intent.FLAG_ACTIVITY_CLEAR_TASK);
36 startActivity(intent);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
ImplicitIntentsUtil.java 20 import android.content.Intent;
39 * Why not just always use explicit intents? The Contacts/Dialer app implements standard intent
40 * actions used by others apps. We want to continue exercising these intent filters to make sure
41 * they still work. Plus we sometimes don't know an explicit intent would work. See
49 * Start an intent. If it is possible for this app to handle the intent, force this app's
50 * activity to handle the intent. Sometimes it is impossible to know whether this app
51 * can handle an intent while coding since the code is used inside both Dialer and Contacts.
57 public static void startActivityInAppIfPossible(Context context, Intent intent) {
96 final Intent intent = new Intent(QuickContact.ACTION_QUICK_CONTACT); local
    [all...]
  /packages/apps/Gallery2/src/com/android/camera/
CameraActivity.java 21 import android.content.Intent;
29 Intent intent = IntentHelper.getCameraIntent(CameraActivity.this); local
33 intent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
34 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
35 startActivity(intent);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
ThemeHelper.java 19 import android.content.Intent;
27 * Returns true if the given intent is from the setup wizard.
29 public static boolean fromSetupWizard(Intent intent) {
30 return intent.getBooleanExtra(EXTRA_FROM_SETUP_WIZARD, false);
36 public static int getThemeResource(Intent intent) {
37 return getThemeResource(fromSetupWizard(intent));
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/setup/
SetupActivity.java 20 import android.content.Intent;
27 final Intent intent = new Intent(); local
28 intent.setClass(this, SetupWizardActivity.class);
29 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
30 | Intent.FLAG_ACTIVITY_NEW_TASK);
31 startActivity(intent);

Completed in 536 milliseconds

1 2 3 4 5 6 7 8 91011>>