HomeSort by relevance Sort by last modified time
    Searched defs:intent (Results 226 - 250 of 1045) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /packages/screensavers/WebView/src/com/android/dreams/web/
Screensaver.java 25 import android.content.Intent;
52 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); local
53 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
54 startActivity(intent);
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
AuthenticatorActivity.java 30 import android.content.Intent;
46 /** The Intent flag to confirm credentials. */
49 /** The Intent extra to store password. */
52 /** The Intent extra to store username. */
55 /** The Intent extra to store username. */
100 Log.i(TAG, "loading data from Intent");
101 final Intent intent = getIntent(); local
102 mUsername = intent.getStringExtra(PARAM_USERNAME);
104 mConfirmCredentials = intent.getBooleanExtra(PARAM_CONFIRM_CREDENTIALS, false)
175 final Intent intent = new Intent(); local
202 final Intent intent = new Intent(); local
    [all...]
  /frameworks/base/core/java/android/text/style/
SuggestionSpan.java 20 import android.content.Intent;
227 * The class will get notified by an intent that has those information.
348 final Intent intent = new Intent(); local
364 intent.setClassName(mNotificationTargetPackageName, mNotificationTargetClassName);
365 intent.setAction(SuggestionSpan.ACTION_SUGGESTION_PICKED);
366 intent.putExtra(SuggestionSpan.SUGGESTION_SPAN_PICKED_BEFORE, original);
367 intent.putExtra(SuggestionSpan.SUGGESTION_SPAN_PICKED_AFTER, mSuggestions[index]);
368 intent.putExtra(SuggestionSpan.SUGGESTION_SPAN_PICKED_HASHCODE, hashCode())
    [all...]
  /frameworks/base/packages/Shell/src/com/android/shell/
BugreportReceiver.java 29 import android.content.Intent;
45 * {@link Intent#ACTION_SEND}.
52 private static final String EXTRA_BUGREPORT = "android.intent.extra.BUGREPORT";
53 private static final String EXTRA_SCREENSHOT = "android.intent.extra.SCREENSHOT";
67 public void onReceive(Context context, Intent intent) {
68 final File bugreportFile = getFileExtra(intent, EXTRA_BUGREPORT);
69 final File screenshotFile = getFileExtra(intent, EXTRA_SCREENSHOT);
76 Intent sendIntent = buildSendIntent(context, bugreportUri, screenshotUri);
77 Intent notifIntent
111 final Intent intent = new Intent(context, BugreportWarningActivity.class); local
120 final Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE); local
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
UsbConfirmActivity.java 23 import android.content.Intent;
62 Intent intent = getIntent(); local
63 mDevice = (UsbDevice) intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
64 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
65 mResolveInfo = (ResolveInfo) intent.getParcelableExtra("rinfo");
120 Intent intent = null; local
123 intent = new Intent(UsbManager.ACTION_USB_DEVICE_ATTACHED)
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/
GoogleCalendarUriIntentFilter.java 31 import android.content.Intent;
142 Intent intent = getIntent(); local
143 if (intent != null) {
144 Uri uri = intent.getData();
221 // Send intent to calendar app
224 intent = new Intent(Intent.ACTION_VIEW, calendarUri);
225 intent.setClass(this, EventInfoActivity.class)
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/handover/
BluetoothOppHandover.java 22 import android.content.Intent;
47 "android.btopp.intent.action.HANDOVER_SEND";
50 "android.btopp.intent.action.HANDOVER_SEND_MULTIPLE";
119 Intent intent = new Intent(); local
120 intent.setPackage("com.android.bluetooth");
122 intent.setType(mimeType);
123 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);
125 intent.setAction(ACTION_HANDOVER_SEND)
    [all...]
  /packages/apps/Settings/src/com/android/settings/bluetooth/
BluetoothPermissionActivity.java 23 import android.content.Intent;
61 public void onReceive(Context context, Intent intent) {
62 String action = intent.getAction();
64 int requestType = intent.getIntExtra(BluetoothDevice.EXTRA_ACCESS_REQUEST_TYPE,
67 BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
82 Intent i = getIntent();
85 Log.e(TAG, "Error: this activity may be started only with intent "
209 Intent intent = new Intent(intentName) local
    [all...]
BluetoothPermissionRequest.java 25 import android.content.Intent;
52 public void onReceive(Context context, Intent intent) {
54 String action = intent.getAction();
59 // convert broadcast intent into activity intent (same action string)
60 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
61 mRequestType = intent.getIntExtra(BluetoothDevice.EXTRA_ACCESS_REQUEST_TYPE,
63 mReturnPackage = intent.getStringExtra(BluetoothDevice.EXTRA_PACKAGE_NAME);
64 mReturnClass = intent.getStringExtra(BluetoothDevice.EXTRA_CLASS_NAME)
234 Intent intent = new Intent(intentName); local
    [all...]
RequestPermissionActivity.java 28 import android.content.Intent;
77 public void onReceive(Context context, Intent intent) {
78 if (intent == null) {
82 && BluetoothAdapter.ACTION_STATE_CHANGED.equals(intent.getAction())) {
83 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothDevice.ERROR);
124 Intent intent = new Intent(); local
125 intent.setClass(this, RequestPermissionHelperActivity.class)
257 Intent intent = getIntent(); local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/browse/
AttachmentActionHandler.java 28 import android.content.Intent;
157 * Update progress-related views. Will also trigger a view intent if a progress dialog was
207 Intent intent = new Intent(Intent.ACTION_SEND); local
208 intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION
209 | Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
212 intent.putExtra(Intent.EXTRA_STREAM, uri)
224 Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE); local
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
BluetoothPbapActivity.java 40 import android.content.Intent;
102 public void onReceive(Context context, Intent intent) {
103 if (!BluetoothPbapService.USER_CONFIRM_TIMEOUT_ACTION.equals(intent.getAction())) {
113 Intent i = getIntent();
119 Log.e(TAG, "Error: this activity may be started only with intent "
196 Intent intent = new Intent(intentName); local
197 intent.setClassName(BluetoothPbapService.THIS_PACKAGE_NAME, BluetoothPbapReceiver.clas
207 Intent intent = new Intent(intentName); local
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/alerts/
AlarmScheduler.java 24 import android.content.Intent;
312 // only used by AlertService for logging. It is ignored by Intent.filterEquals,
316 Intent intent = new Intent(AlertReceiver.EVENT_REMINDER_APP_ACTION); local
317 intent.setClass(context, AlertReceiver.class);
318 intent.putExtra(CalendarContract.CalendarAlerts.ALARM_TIME, alarmTime);
319 PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent, 0);
  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastAlertService.java 25 import android.content.Intent;
50 /** Intent action to display alert dialog/notification, after verifying the alert is new. */
114 public int onStartCommand(Intent intent, int flags, int startId) {
115 String action = intent.getAction();
118 handleCellBroadcastIntent(intent);
120 showNewAlert(intent);
122 Log.e(TAG, "Unrecognized intent action: " + action);
127 private void handleCellBroadcastIntent(Intent intent) {
264 Intent intent = new Intent(CB_AREA_INFO_RECEIVED_ACTION); local
361 Intent intent = createDisplayMessageIntent(this, CellBroadcastAlertDialog.class, local
397 Intent intent = new Intent(context, intentClass); local
    [all...]
  /packages/apps/Settings/src/com/android/settings/quicklaunch/
BookmarkPicker.java 22 import android.content.Intent;
48 * the {@link Intent#ACTION_CREATE_SHORTCUT}.
54 /** Extra in the returned intent from this activity. */
67 /** Intent used to get all the activities that are launch-able */
68 private static Intent sLaunchIntent;
69 /** Intent used to get all the activities that are {@link #REQUEST_CREATE_SHORTCUT}-able */
70 private static Intent sShortcutIntent;
140 sLaunchIntent = new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_LAUNCHER)
249 Intent intent = getIntentForResolveInfo(info, Intent.ACTION_MAIN); local
264 Intent intent = new Intent(action); local
277 Intent intent = getIntentForResolveInfo(info, Intent.ACTION_CREATE_SHORTCUT); local
    [all...]
  /packages/services/Telephony/src/com/android/phone/
EditFdnContactScreen.java 26 import android.content.Intent;
90 /** static intent to invoke phone number picker */
91 private static final Intent CONTACT_IMPORT_INTENT;
93 CONTACT_IMPORT_INTENT = new Intent(Intent.ACTION_GET_CONTENT);
122 protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
127 Bundle extras = (intent != null) ? intent.getExtras() : null;
151 cursor = getContentResolver().query(intent.getData()
213 Intent intent = getIntent(); local
336 Intent intent = new Intent(); local
346 Intent intent = new Intent(); local
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/
AbstractTestListActivity.java 22 import android.content.Intent;
38 private Intent getIntent(int position) {
40 return item.intent;
44 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
56 private void handleLaunchTestResult(int resultCode, Intent data) {
67 Intent intent = getIntent(position); local
68 startActivityForResult(intent, LAUNCH_TEST_REQUEST_CODE);
  /cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
ModifyInstallerPackageTest.java 22 import android.content.Intent;
48 public void onReceive(Context context, Intent intent) {
184 Intent intent = new Intent(); local
185 intent.setComponent(SET_INSTALLER_PACKAGE_COMP);
186 intent.putExtra("target", OTHER_PACKAGE);
187 intent.putExtra("installer", OTHER_PACKAGE);
189 getContext().sendOrderedBroadcast(intent, null, receiver, null, 0, null, null)
    [all...]
  /cts/libs/wrappedgtest/src/
WrappedGTestInstrumentation.java 24 import android.content.Intent;
59 Intent intent = new Intent(getTargetContext(), mActivityClass); local
60 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
62 mActivity = (WrappedGTestActivity)startActivitySync(intent);
  /cts/tests/src/android/opengl/cts/
EglConfigStubActivity.java 20 import android.content.Intent;
58 Intent intent = getIntent(); local
59 if (intent != null) {
60 return intent.getIntExtra(CONFIG_ID_EXTRA, 0);
67 Intent intent = getIntent(); local
68 if (intent != null) {
69 return intent.getIntExtra(CONTEXT_CLIENT_VERSION_EXTRA, 0);
  /cts/tests/tests/app/src/android/app/cts/
Instrumentation_ActivityMonitorTest.java 24 import android.content.Intent;
39 ActivityResult result = new ActivityResult(Activity.RESULT_OK, new Intent());
44 Intent intent = new Intent(context, InstrumentationTestActivity.class); local
45 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
46 context.startActivity(intent);
60 context.startActivity(intent);
NotificationManagerTest.java 23 import android.content.Intent;
67 icon, "No intent", System.currentTimeMillis());
69 final Intent intent = new Intent(Intent.ACTION_MAIN, Threads.CONTENT_URI); local
71 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP
72 | Intent.FLAG_ACTIVITY_CLEAR_TOP)
    [all...]
  /cts/tests/tests/os/src/android/os/cts/
CountDownTimerTest.java 22 import android.content.Intent;
36 Intent intent = new Intent(mContext, CountDownTimerTestStub.class); local
37 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
38 mActivity = (CountDownTimerTestStub) getInstrumentation().startActivitySync(intent);
  /cts/tests/tests/permission2/src/android/permission2/cts/
NoProcessOutgoingCallPermissionTest.java 21 import android.content.Intent;
41 Intent intent = new Intent(Intent.ACTION_CALL, uri); local
42 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
43 mContext.startActivity(intent);
56 Intent ntnt = mContext.registerReceiver(rcvr,
57 new IntentFilter(Intent.ACTION_NEW_OUTGOING_CALL))
    [all...]
  /developers/samples/android/background/alarms/Scheduler/src/com/example/android/scheduler/
SampleAlarmReceiver.java 7 import android.content.Intent;
14 * When the alarm fires, this WakefulBroadcastReceiver receives the broadcast Intent
21 // The pending intent that is triggered when the alarm fires.
25 public void onReceive(Context context, Intent intent) {
28 * If your receiver intent includes extras that need to be passed along to the
30 * receiver's intent. For example:
35 * // This intent passed in this call will include the wake lock extra as well as
36 * // the receiver intent contents.
37 * startWakefulService(context, (intent.setComponent(comp)))
57 Intent intent = new Intent(context, SampleAlarmReceiver.class); local
    [all...]

Completed in 814 milliseconds

1 2 3 4 5 6 7 8 91011>>