HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 1 - 25 of 857) 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...]
  /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/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...]
  /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/apps/Contacts/src/com/android/contacts/
StickyTabs.java 20 import android.content.Intent;
50 * Writes the selected tab to the passed intent
51 * @param intent The intent to modify.
52 * @param tabIndex The tab index to write to the intent
53 * @return Returns the modified intent. Notice that this is not a new instance (the passed-in
54 * intent is modified)
56 public static Intent setTab(Intent intent, int tabIndex)
    [all...]
DialtactsActivity.java 23 import android.content.Intent;
54 /** If true, when handling the contacts intent the favorites tab will be shown instead */
66 final Intent intent = getIntent(); local
80 setCurrentTab(intent);
82 if (intent.getAction().equals(UI.FILTER_CONTACTS_ACTION)
84 setupFilterText(intent);
104 Intent intent = new Intent("com.android.phone.action.RECENT_CALLS") local
115 Intent intent = new Intent("com.android.phone.action.TOUCH_DIALER"); local
126 Intent intent = new Intent(UI.LIST_DEFAULT); local
137 Intent intent = new Intent(UI.LIST_STREQUENT_ACTION); local
    [all...]
  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeyActivityEvent.java 21 import android.content.Intent;
46 * @return Intent for the new activity
48 private Intent getEvent() {
49 Intent intent = new Intent(Intent.ACTION_MAIN); local
50 intent.addCategory(Intent.CATEGORY_LAUNCHER);
51 intent.setComponent(mApp)
58 Intent intent = getEvent(); local
    [all...]
  /frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
Menu.java 19 import android.content.Intent;
50 Intent intent = new Intent(Intent.ACTION_VIEW); local
51 intent.setClass(this, TestShellActivity.class);
52 intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
53 intent.putExtra(TestShellActivity.TEST_URL, "file://" + filename);
54 startActivity(intent);
60 Intent intent = new Intent(Intent.ACTION_VIEW); local
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
SuggestionUtils.java 20 import android.content.Intent;
32 public static Intent getSuggestionIntent(SuggestionCursor suggestion, Bundle appSearchData) {
41 // Now build the Intent
42 Intent intent = new Intent(action); local
43 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
46 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
    [all...]
  /packages/apps/Tag/src/com/android/apps/tag/
TagService.java 27 import android.content.Intent;
60 public IBinder onBind(Intent intent) {
67 public void onHandleIntent(Intent intent) {
68 if (intent.hasExtra(EXTRA_SAVE_MSGS)) {
69 Parcelable[] msgs = intent.getParcelableArrayExtra(EXTRA_SAVE_MSGS);
74 intent.getBooleanExtra(EXTRA_STARRED, false),
75 intent.getBooleanExtra(EXTRA_SAVE_IN_MY_TAGS, false),
78 if (intent.hasExtra(EXTRA_REPLACE_ID))
127 Intent intent = new Intent(context, TagService.class); local
135 Intent intent = new Intent(context, TagService.class); local
182 Intent intent = new Intent(context, TagService.class); local
190 Intent intent = new Intent(context, TagService.class); local
196 Intent intent = new Intent(context, TagService.class); local
    [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...]
  /frameworks/base/keystore/java/android/security/
Credentials.java 21 import android.content.Intent;
76 Intent intent = new Intent(UNLOCK_ACTION); local
77 context.startActivity(intent);
83 private Intent createInstallIntent() {
84 Intent intent = new Intent(INSTALL_ACTION); local
85 intent.setClassName("com.android.certinstaller"
92 Intent intent = createInstallIntent(); local
103 Intent intent = createInstallIntent(); local
    [all...]
  /packages/apps/Phone/src/com/android/phone/
SipUtil.java 21 import android.content.Intent;
30 Intent intent = new Intent(phoneContext, SipBroadcastReceiver.class); local
31 intent.setAction(SipManager.ACTION_SIP_INCOMING_CALL);
32 return PendingIntent.getBroadcast(phoneContext, 0, intent,
FdnList.java 19 import android.content.Intent;
41 Intent intent = getIntent(); local
42 intent.setData(Uri.parse("content://icc/fdn"));
43 return intent.getData();
102 Intent intent = new Intent(); local
103 intent.setClass(this, EditFdnContactScreen.class);
104 startActivity(intent);
125 Intent intent = new Intent(); local
138 Intent intent = new Intent(); local
    [all...]
  /cts/tests/SignatureTest/src/android/tests/sigtest/
InstrumentationRunner.java 20 import android.content.Intent;
32 Intent intent = new Intent(Intent.ACTION_MAIN); local
33 intent.setClassName(getTargetContext(),
35 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
37 SignatureTestActivity activity = (SignatureTestActivity) startActivitySync(intent);
  /development/samples/ApiDemos/src/com/example/android/apis/app/
LauncherShortcuts.java 20 import android.content.Intent;
35 * 2. Any time the user clicks on an installed shortcut, an intent is sent.
40 * of an {@link android.content.Intent} that the launcher will use to create the shortcut.
47 * of the incoming {@link android.content.Intent}.
49 * In a real application, you would probably use the shortcut intent to display specific content
60 // Resolve the intent
62 final Intent intent = getIntent(); local
63 final String action = intent.getAction();
65 // If the intent is a request to create a shortcut, we'll do that and exi
130 Intent intent = new Intent(); local
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppLiveFolder.java 39 import android.content.Intent;
54 final Intent intent = getIntent(); local
55 final String action = intent.getAction();
68 private static Intent createLiveFolder(Context context, Uri uri, String name, int icon) {
69 final Intent intent = new Intent(); local
71 intent.setData(uri);
72 intent.putExtra(LiveFolders.EXTRA_LIVE_FOLDER_BASE_INTENT, new Intent
    [all...]
  /packages/apps/Mms/src/com/android/mms/transaction/
SmsReceiver.java 24 import android.content.Intent;
44 public void onReceive(Context context, Intent intent) {
45 onReceiveWithPrivilege(context, intent, false);
48 protected void onReceiveWithPrivilege(Context context, Intent intent, boolean privileged) {
49 // If 'privileged' is false, it means that the intent was delivered to the base
53 if (!privileged && intent.getAction().equals(Intents.SMS_RECEIVED_ACTION)) {
57 intent.setClass(context, SmsReceiverService.class);
58 intent.putExtra("result", getResultCode())
    [all...]
  /packages/apps/Settings/src/com/android/settings/bluetooth/
DockEventReceiver.java 28 import android.content.Intent;
51 public void onReceive(Context context, Intent intent) {
52 if (intent == null)
55 int state = intent.getIntExtra(Intent.EXTRA_DOCK_STATE, intent.getIntExtra(
57 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
60 Log.d(TAG, "Action: " + intent.getAction() + " State:" + state + " Device: "
64 if (Intent.ACTION_DOCK_EVENT.equals(intent.getAction()
    [all...]
  /frameworks/base/test-runner/tests/src/android/test/
TestBrowserControllerImplTest.java 19 import android.content.Intent;
71 Intent intent = mTestBrowserController.getIntentForTestAt(1); local
72 verifyIntent(intent, DummyTestCase.class, expectedTargetPackageName);
73 assertEquals(targetBrowserActvityClassName, intent.getComponent().getClassName());
81 Intent intent = mTestBrowserController.getIntentForTestAt(1); local
82 verifyIntent(intent, DummyTestCase.class, "com.android.testharness");
84 intent.getComponent().getClassName());
86 intent.getStringExtra(TestBrowserController.BUNDLE_EXTRA_TEST_METHOD_NAME))
94 Intent intent = mTestBrowserController.getIntentForTestAt(0); local
    [all...]
  /packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/
DialogSmsDisplayTests.java 21 import android.content.Intent;
110 Intent intent = new Intent(Intents.SMS_CB_RECEIVED_ACTION); local
113 intent.putExtra("pdus", pdus);
114 getActivity().sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS");
118 Intent intent = new Intent(Intents.SMS_CB_RECEIVED_ACTION); local
121 intent.putExtra("pdus", pdus)
126 Intent intent = new Intent(Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); local
135 Intent intent = new Intent(Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); local
144 Intent intent = new Intent(Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION); local
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
AvailableIntentsTest.java 24 import android.content.Intent;
32 @TestTargetClass(Intent.class)
38 * Assert target intent can be handled by at least one Activity.
39 * @param intent - the Intent will be handled.
41 private void assertCanBeHandled(final Intent intent) {
43 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0);
45 // one or more activity can handle this intent.
55 method = "Intent",
60 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
75 Intent intent = new Intent(Intent.ACTION_VIEW, uri); local
90 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
106 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
122 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); local
137 Intent intent = new Intent(Intent.ACTION_CALL, uri); local
153 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local
170 Intent intent = new Intent(Intent.ACTION_DIAL, uri); local
    [all...]
  /cts/tests/src/android/content/cts/
HighPriorityBroadcastReceiver.java 20 import android.content.Intent;
25 public void onReceive(Context context, Intent intent) {
26 super.onReceive(context, intent);
ResultReceiver.java 21 import android.content.Intent;
34 public void onReceive(Context context, Intent intent) {
35 mReceivedBroadCast = MOCK_ACTION.equals(intent.getAction());
  /development/samples/Home/src/com/example/android/home/
ApplicationInfo.java 20 import android.content.Intent;
24 * Represents a launchable application. An application is made of a name (or title), an intent
34 * The intent used to start the application.
36 Intent intent; field in class:ApplicationInfo
49 * Creates the application intent based on a component name and various launch flags.
51 * @param className the class name of the component representing the intent
55 intent = new Intent(Intent.ACTION_MAIN)
    [all...]

Completed in 998 milliseconds

1 2 3 4 5 6 7 8 91011>>