/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...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/app/ |
LinkerParams.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 LinkerParams(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);
|
/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);
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
AllIntentsActivity.java | 25 import android.content.Intent; 148 new Intent(UI.LIST_DEFAULT, Contacts.CONTENT_URI)); 153 new Intent(UI.LIST_ALL_CONTACTS_ACTION, Contacts.CONTENT_URI)); 158 new Intent(UI.LIST_CONTACTS_WITH_PHONES_ACTION, Contacts.CONTENT_URI)); 163 new Intent(UI.LIST_STARRED_ACTION, Contacts.CONTENT_URI)); 168 new Intent(UI.LIST_FREQUENT_ACTION, Contacts.CONTENT_URI)); 173 new Intent(UI.LIST_STREQUENT_ACTION, Contacts.CONTENT_URI)); 178 new Intent(UI.LIST_GROUP_ACTION, Contacts.CONTENT_URI)); 183 new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI)) 207 Intent intent = new Intent(Intent.ACTION_PICK); local 218 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local 223 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_GET_CONTENT); 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_INSERT_OR_EDIT); local 278 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local 285 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local 292 Intent intent = new Intent(Intent.ACTION_SEARCH); local 299 Intent intent = new Intent(Intent.ACTION_SEARCH); local 306 Intent intent = new Intent(Intent.ACTION_SEARCH); local 312 Intent intent = new Intent(Intent.ACTION_SEARCH); local 321 Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CLICKED); local 334 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local 345 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupWithoutIdUri); local 353 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupUri); local 361 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local 370 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local 379 Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local 405 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local 420 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupWithoutIdUri); local 428 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupUri); local 436 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local 445 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local 491 final Intent intent = new Intent(Intent.ACTION_VIEW, null); local 502 final Intent intent = new Intent(Intent.ACTION_VIEW); local 513 final Intent intent = new Intent("android.intent.action.VIEW"); local 549 Intent intent = new Intent(UI.FILTER_CONTACTS_ACTION); local 574 Intent intent = new Intent(this, ResultActivity.class); local 633 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local 640 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/service/ |
ApiService.java | 37 import android.content.Intent; 199 private static final Map<String, Intent> mPendingIntents = new HashMap<String, Intent>(); 241 final Intent intent = mIntentPool.get(); local 242 intent.putExtra(PARAM_OP, OP_VIDEO_EDITOR_GENERATE_PREVIEW_PROGRESS); 243 intent.putExtra(PARAM_PROJECT_PATH, mProjectPath); 244 intent.putExtra(PARAM_ACTION, action); 245 intent.putExtra(PARAM_PROGRESS_VALUE, progress); 249 intent.putExtra(PARAM_STORYBOARD_ITEM_ID, ((MediaItem)item).getId()) 297 final Intent intent = mIntentPool.get(context, ApiService.class); local 317 final Intent intent = mIntentPool.get(context, ApiService.class); local 335 final Intent intent = mIntentPool.get(context, ApiService.class); local 353 final Intent intent = mIntentPool.get(context, ApiService.class); local 398 final Intent intent = mIntentPool.get(context, ApiService.class); local 414 final Intent intent = mIntentPool.get(context, ApiService.class); local 430 final Intent intent = mIntentPool.get(context, ApiService.class); local 484 final Intent intent = mIntentPool.get(context, ApiService.class); local 498 final Intent intent = mIntentPool.get(context, ApiService.class); local 512 final Intent intent = mIntentPool.get(context, ApiService.class); local 533 final Intent intent = mIntentPool.get(context, ApiService.class); local 560 final Intent intent = mIntentPool.get(context, ApiService.class); local 583 final Intent intent = mIntentPool.get(context, ApiService.class); local 603 final Intent intent = mIntentPool.get(context, ApiService.class); local 623 final Intent intent = mIntentPool.get(context, ApiService.class); local 641 final Intent intent = mIntentPool.get(context, ApiService.class); local 665 final Intent intent = mIntentPool.get(context, ApiService.class); local 690 final Intent intent = mIntentPool.get(context, ApiService.class); local 710 final Intent intent = mIntentPool.get(context, ApiService.class); local 730 final Intent intent = mIntentPool.get(context, ApiService.class); local 749 final Intent intent = mIntentPool.get(context, ApiService.class); local 771 final Intent intent = mIntentPool.get(context, ApiService.class); local 820 final Intent intent = mIntentPool.get(context, ApiService.class); local 846 final Intent intent = mIntentPool.get(context, ApiService.class); local 869 final Intent intent = mIntentPool.get(context, ApiService.class); local 894 final Intent intent = mIntentPool.get(context, ApiService.class); local 914 final Intent intent = mIntentPool.get(context, ApiService.class); local 932 final Intent intent = mIntentPool.get(context, ApiService.class); local 951 final Intent intent = mIntentPool.get(context, ApiService.class); local 999 final Intent intent = mIntentPool.get(context, ApiService.class); local 1027 final Intent intent = mIntentPool.get(context, ApiService.class); local 1050 final Intent intent = mIntentPool.get(context, ApiService.class); local 1071 final Intent intent = mIntentPool.get(context, ApiService.class); local 1093 final Intent intent = mIntentPool.get(context, ApiService.class); local 1113 final Intent intent = mIntentPool.get(context, ApiService.class); local 1134 final Intent intent = mIntentPool.get(context, ApiService.class); local 1155 final Intent intent = mIntentPool.get(context, ApiService.class); local 1176 final Intent intent = mIntentPool.get(context, ApiService.class); local 1194 final Intent intent = mIntentPool.get(context, ApiService.class); local 1213 final Intent intent = mIntentPool.get(context, ApiService.class); local 1233 final Intent intent = mIntentPool.get(context, ApiService.class); local 1252 final Intent intent = mIntentPool.get(context, ApiService.class); local 1271 final Intent intent = mIntentPool.get(context, ApiService.class); local 1290 final Intent intent = mIntentPool.get(context, ApiService.class); local 1311 final Intent intent = mIntentPool.get(context, ApiService.class); local [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
SearchManagerTest.java | 19 import android.content.Intent; 24 Intent intent = new Intent(); local 25 intent.setAction(action); 26 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 27 intent.setClass(getInstrumentation().getTargetContext(), SearchManagerStubActivity.class); 28 getInstrumentation().getTargetContext().startActivity(intent);
|
/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...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
SettingsActivity.java | 21 import android.content.Intent; 28 public Intent getIntent() { 29 final Intent intent = super.getIntent(); local 30 final String fragment = intent.getStringExtra(EXTRA_SHOW_FRAGMENT); 32 intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT); 34 intent.putExtra(EXTRA_NO_HEADERS, true); 35 return intent;
|