/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...] |
/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/SmsSample/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/Contacts/tests/src/com/android/contacts/tests/allintents/ |
AllIntentsActivity.java | 25 import android.content.Intent; 154 new Intent(UI.LIST_DEFAULT, Contacts.CONTENT_URI)); 159 new Intent(UI.LIST_ALL_CONTACTS_ACTION, Contacts.CONTENT_URI)); 164 new Intent(UI.LIST_CONTACTS_WITH_PHONES_ACTION, Contacts.CONTENT_URI)); 169 new Intent(UI.LIST_STARRED_ACTION, Contacts.CONTENT_URI)); 174 new Intent(UI.LIST_FREQUENT_ACTION, Contacts.CONTENT_URI)); 179 new Intent(UI.LIST_STREQUENT_ACTION, Contacts.CONTENT_URI)); 184 new Intent(UI.LIST_GROUP_ACTION, Contacts.CONTENT_URI)); 189 new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI)) 213 Intent intent = new Intent(Intent.ACTION_PICK); local 224 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local 229 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local 235 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local 241 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 247 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 253 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 259 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 265 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 271 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 277 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local 284 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local 291 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local 298 Intent intent = new Intent(Intent.ACTION_SEARCH); local 305 Intent intent = new Intent(Intent.ACTION_SEARCH); local 312 Intent intent = new Intent(Intent.ACTION_SEARCH); local 318 Intent intent = new Intent(Intent.ACTION_SEARCH); local 327 Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CLICKED); local 340 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local 351 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupWithoutIdUri); local 359 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupUri); local 367 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local 376 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local 385 Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local 411 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local 426 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupWithoutIdUri); local 434 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupUri); local 442 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local 451 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local 497 final Intent intent = new Intent(Intent.ACTION_VIEW); local 503 final Intent intent = new Intent(Intent.ACTION_VIEW); local 510 final Intent intent = new Intent(Intent.ACTION_VIEW); local 522 final Intent intent = new Intent(Intent.ACTION_VIEW); local 533 final Intent intent = new Intent("android.intent.action.VIEW"); local 570 Intent intent = new Intent(UI.FILTER_CONTACTS_ACTION); local 595 Intent intent = new Intent(this, ResultActivity.class); local 654 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local 661 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local [all...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/app/ |
ChromiumLinkerParams.java | 7 import android.content.Intent; 43 * Use this constructor to recreate a LinkerParams instance from an Intent. 44 * @param intent An Intent, its content must have been populated by a previous 47 public ChromiumLinkerParams(Intent intent) { 48 mBaseLoadAddress = intent.getLongExtra(EXTRA_LINKER_PARAMS_BASE_LOAD_ADDRESS, 0); 49 mWaitForSharedRelro = intent.getBooleanExtra( 51 mTestRunnerClassName = intent.getStringExtra( 57 * it to an intent's extras [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...] |
/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);
|
/frameworks/base/core/java/android/service/voice/ |
IVoiceInteractionSession.aidl | 19 import android.content.Intent; 25 void taskStarted(in Intent intent, int taskId); 26 void taskFinished(in Intent intent, int taskId);
|
/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/Mms/src/com/android/mms/transaction/ |
MessageStatusReceiver.java | 22 import android.content.Intent; 29 public void onReceive(Context context, Intent intent) { 30 if (MESSAGE_STATUS_RECEIVED_ACTION.equals(intent.getAction())) { 31 intent.setClass(context, MessageStatusService.class); 32 context.startService(intent);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
IntentUtils.java | 19 import android.content.Intent; 32 public static Intent getInputLanguageSelectionIntent(final String inputMethodId, 36 final Intent intent = new Intent(action); local 38 intent.putExtra(EXTRA_INPUT_METHOD_ID, inputMethodId); 41 intent.setFlags(flagsForSubtypeSettings); 43 return intent;
|
/packages/apps/KeyChain/src/com/android/keychain/ |
KeyChainBroadcastReceiver.java | 6 import android.content.Intent; 10 public void onReceive(final Context context, final Intent intent) { 11 intent.setClass(context, KeyChainService.class); 12 context.startService(intent);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
EventHandler.java | 21 import android.content.Intent; 25 * Receives a intent broadcast. 36 * Also @see {@link BroadcastReceiver#onReceive(Context, Intent)} 39 * @param intent the intent that was broadcast. 42 public void onReceive(final Context context, final Intent intent) { 43 intent.setClass(context, DictionaryService.class); 44 context.startService(intent);
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
BatteryStatusManagerTest.java | 8 import android.content.Intent; 30 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); local 31 intent.putExtra(BatteryManager.EXTRA_PRESENT, true); 32 intent.putExtra(BatteryManager.EXTRA_LEVEL, 10); 33 intent.putExtra(BatteryManager.EXTRA_SCALE, 100); 34 intent.putExtra(BatteryManager.EXTRA_STATUS, BatteryManager.BATTERY_STATUS_DISCHARGING); 36 mBatteryStatusManager.onReceive(intent); 45 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); local 60 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); local 74 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); local [all...] |
/development/samples/devbytes/telephony/SmsSampleProject/SmsSample/src/main/java/com/example/android/smssample/service/ |
MessagingService.java | 20 import android.content.Intent; 42 protected void onHandleIntent(Intent intent) { 43 if (intent != null) { 44 String intentAction = intent.getAction(); 49 MessagingReceiver.completeWakefulIntent(intent); 54 MessagingReceiver.completeWakefulIntent(intent);
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
ClearTop.java | 20 import android.content.Intent; 34 Intent intent = new Intent(getIntent()).setAction(LocalScreen.CLEAR_TASK) local 36 startActivity(intent); 40 public void onNewIntent(Intent intent) { 41 //Log.i("foo", "New intent in " + this + ": " + intent); 42 if (LocalScreen.CLEAR_TASK.equals(intent.getAction())) [all...] |