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

1 2 3 4 5 6 7 8 91011>>

  /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/tests/tests/content/src/android/content/cts/
AvailableIntentsTest.java 21 import android.content.Intent;
37 * Assert target intent can be handled by at least one Activity.
38 * @param intent - the Intent will be handled.
40 private void assertCanBeHandled(final Intent intent) {
42 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0);
44 // one or more activity can handle this intent.
54 Intent intent = new Intent(Intent.ACTION_VIEW, uri) local
64 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
74 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
85 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
96 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
106 Intent intent = new Intent(Intent.ACTION_CALL, uri); local
117 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local
129 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local
141 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); local
174 Intent intent = new Intent(Intent.ACTION_VIEW); local
184 Intent intent = new Intent(Intent.ACTION_VIEW); local
191 Intent intent = new Intent(AlarmClock.ACTION_SET_ALARM); local
    [all...]
  /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);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
SettingsActivity.java 19 import android.content.Intent;
26 public Intent getIntent() {
27 final Intent intent = super.getIntent(); local
28 if (!intent.hasExtra(EXTRA_SHOW_FRAGMENT)) {
29 intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT);
31 intent.putExtra(EXTRA_NO_HEADERS, true);
32 return intent;
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
AllIntentsActivity.java 28 import android.content.Intent;
151 new Intent(UI.LIST_DEFAULT, Contacts.CONTENT_URI));
156 new Intent(UI.LIST_ALL_CONTACTS_ACTION, Contacts.CONTENT_URI));
161 new Intent(UI.LIST_CONTACTS_WITH_PHONES_ACTION, Contacts.CONTENT_URI));
166 new Intent(UI.LIST_STARRED_ACTION, Contacts.CONTENT_URI));
171 new Intent(UI.LIST_FREQUENT_ACTION, Contacts.CONTENT_URI));
176 new Intent(UI.LIST_STREQUENT_ACTION, Contacts.CONTENT_URI));
181 new Intent(UI.LIST_GROUP_ACTION, Contacts.CONTENT_URI));
186 new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI))
210 Intent intent = new Intent(Intent.ACTION_PICK); local
221 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local
226 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local
232 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT); local
238 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
244 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
250 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
256 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
262 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
268 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local
274 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local
281 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local
288 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); local
295 Intent intent = new Intent(Intent.ACTION_SEARCH); local
302 Intent intent = new Intent(Intent.ACTION_SEARCH); local
309 Intent intent = new Intent(Intent.ACTION_SEARCH); local
315 Intent intent = new Intent(Intent.ACTION_SEARCH); local
324 Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CLICKED); local
335 Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CLICKED); local
342 Intent intent = new Intent(Intents.SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED); local
348 Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED); local
360 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local
371 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupWithoutIdUri); local
379 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupUri); local
387 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local
396 final Intent intent = new Intent(Intent.ACTION_EDIT, uri); local
405 Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local
431 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
446 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupWithoutIdUri); local
454 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupUri); local
462 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
471 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
517 final Intent intent = new Intent(Intent.ACTION_VIEW, null); local
528 final Intent intent = new Intent(Intent.ACTION_VIEW); local
539 final Intent intent = new Intent("android.intent.action.VIEW"); local
575 Intent intent = new Intent(UI.FILTER_CONTACTS_ACTION); local
600 Intent intent = new Intent(this, ResultActivity.class); local
659 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); local
666 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); 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);
  /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/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/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...]
IntentPool.java 24 import android.content.Intent;
36 private final List<Intent> mIntentPool;
44 mIntentPool = new ArrayList<Intent>(initialSize);
48 * @return The Intent is retrieved from the pool or if the pool is empty
49 * a new Intent is allocated
51 public synchronized Intent get(Context context, Class<?> cls) {
52 final Intent intent = get(); local
53 intent.setComponent(new ComponentName(context, cls));
54 return intent;
63 final Intent intent = mIntentPool.remove(0); local
    [all...]
  /cts/tests/src/android/app/cts/
ClearTop.java 20 import android.content.Intent;
32 final Intent intent = new Intent(getIntent()).setAction(LocalScreen.CLEAR_TASK).setClass( local
34 startActivity(intent);
38 public void onNewIntent(Intent intent) {
39 if (LocalScreen.CLEAR_TASK.equals(intent.getAction())) {
42 setResult(RESULT_CANCELED, new Intent().setAction("New intent received " + inten
    [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);
  /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...]
  /frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
Menu.java 19 import android.content.Intent;
52 Intent intent = new Intent(Intent.ACTION_VIEW); local
53 intent.setClass(this, TestShellActivity.class);
54 intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
55 intent.putExtra(TestShellActivity.TEST_URL, "file://" + filename);
56 intent.putExtra(TestShellActivity.TOTAL_TEST_COUNT, 1)
64 Intent intent = new Intent(Intent.ACTION_VIEW); local
    [all...]
  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeyActivityEvent.java 21 import android.content.Intent;
45 * @return Intent for the new activity
47 private Intent getEvent() {
48 Intent intent = new Intent(Intent.ACTION_MAIN); local
49 intent.addCategory(Intent.CATEGORY_LAUNCHER);
50 intent.setComponent(mApp)
57 Intent intent = getEvent(); local
    [all...]
  /cts/tests/tests/holo/src/android/holo/cts/
AllThemesIterator.java 19 import android.content.Intent;
26 class AllThemesIterator implements Iterator<Intent> {
48 public Intent next() {
49 Intent intent = new Intent(); local
50 intent.putExtra(LayoutTestActivity.EXTRA_THEME_INDEX, mThemeIndex);
51 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_INDEX, mLayoutIndex);
52 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_ADAPTER_MODE, mAdapterMode);
53 intent.putExtra(LayoutTestActivity.EXTRA_TASK, mTask)
    [all...]
LayoutPickerActivity.java 20 import android.content.Intent;
46 Intent intent = new Intent(this, ThemeTestActivity.class); local
47 intent.putExtra(ThemeTestActivity.EXTRA_THEME_INDEX, mThemeIndex);
48 intent.putExtra(ThemeTestActivity.EXTRA_LAYOUT_INDEX, position);
49 intent.putExtra(ThemeTestActivity.EXTRA_TASK, mTestTask);
50 intent.putExtra(ThemeTestActivity.EXTRA_LAYOUT_ADAPTER_MODE, LayoutAdapter.MODE_VIEWING);
51 startActivity(intent);
SingleLayoutIterator.java 19 import android.content.Intent;
26 class SingleLayoutIterator implements Iterator<Intent> {
47 public Intent next() {
48 Intent intent = new Intent(); local
49 intent.putExtra(LayoutTestActivity.EXTRA_THEME_INDEX, mThemeIndex);
50 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_INDEX, mLayoutIndex);
51 intent.putExtra(LayoutTestActivity.EXTRA_TASK, mTask);
52 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_ADAPTER_MODE, mLayoutAdapterMode)
    [all...]
SingleThemeIterator.java 19 import android.content.Intent;
26 class SingleThemeIterator implements Iterator<Intent> {
48 public Intent next() {
49 Intent intent = new Intent(); local
50 intent.putExtra(LayoutTestActivity.EXTRA_THEME_INDEX, mThemeIndex);
51 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_INDEX, mLayoutIndex);
52 intent.putExtra(LayoutTestActivity.EXTRA_TASK, mTask);
53 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_ADAPTER_MODE, mLayoutAdapterMode)
    [all...]
SingleThemeLayoutIterator.java 19 import android.content.Intent;
23 class SingleThemeLayoutIterator implements Iterator<Intent> {
45 public Intent next() {
46 Intent intent = new Intent(); local
47 intent.putExtra(LayoutTestActivity.EXTRA_THEME_INDEX, mThemeIndex);
48 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_INDEX, mLayoutIndex);
49 intent.putExtra(LayoutTestActivity.EXTRA_TASK, mTask);
50 intent.putExtra(LayoutTestActivity.EXTRA_LAYOUT_ADAPTER_MODE, mLayoutAdapterMode)
    [all...]
  /packages/apps/Browser/tests/src/com/android/browser/
IntentHandlerTests.java 19 import android.content.Intent;
38 Intent intent = new Intent(Intent.ACTION_VIEW); local
39 intent.setData(Uri.parse("http://google.com/"));
40 sendIntent(intent);
46 intent.setData(Uri.parse("http://maps.google.com/"));
47 sendIntent(intent);
52 intent.setData(Uri.parse("http://google.com/"))
59 Intent intent = BookmarkUtils.createShortcutIntent("http:\/\/google.com\/"); local
84 Intent intent = new Intent(Intent.ACTION_VIEW); local
    [all...]
  /packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/
ImsFrameworkReceiver.java 21 import android.content.Intent;
28 public void onReceive(Context context, Intent intent) {
29 String action = intent.getAction();
30 if (Intent.ACTION_BOOT_COMPLETED.equals(action)) {
32 intent = new Intent(intent);
33 intent.setClass(context, ImsFrameworkService.class);
34 if (context.startService(intent) == null)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/media/
MediaPlayerDemo.java 21 import android.content.Intent;
60 Intent intent =
61 new Intent(MediaPlayerDemo.this.getApplication(),
63 intent.putExtra(MEDIA, LOCAL_AUDIO);
64 startActivity(intent);
70 Intent intent =
71 new Intent(MediaPlayerDemo.this.getApplication(),
73 intent.putExtra(MEDIA, RESOURCES_AUDIO)
    [all...]

Completed in 195 milliseconds

1 2 3 4 5 6 7 8 91011>>