HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 476 - 500 of 4825) sorted by null

<<11121314151617181920>>

  /developers/samples/android/content/contacts/BasicContactables/Application/src/main/java/com/example/android/basiccontactables/
MainActivity.java 21 import android.content.Intent;
48 protected void onNewIntent(Intent intent) {
49 handleIntent(intent);
53 * Assuming this activity was started with a new intent, process the incoming information and
55 * @param intent
57 private void handleIntent(Intent intent) {
58 // Special processing of the incoming intent only occurs if the if the action specified
59 // by the intent is ACTION_SEARCH
    [all...]
  /developers/samples/android/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/
SchedulerHelper.java 21 import android.content.Intent;
52 Intent intent = new Intent(context, MockIncomingMessageReceiver.class); local
53 intent.setAction(Constants.ACTION_RECEIVE_MESSAGE);
54 intent.putExtra(Constants.EXTRA_CHAT, chat.getId());
55 intent.putExtra(Constants.EXTRA_MESSAGE, message.getId());
57 return PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
  /development/samples/ApiDemos/src/com/example/android/apis/app/
ActionBarNavigation.java 20 import android.content.Intent;
44 if (getIntent().hasCategory(Intent.CATEGORY_SAMPLE_CODE)) {
52 Intent intent = new Intent(this, ActionBarNavigationTarget.class); local
53 startActivity(intent);
57 Intent intent = new Intent(this, ActionBarNavigationTarget.class); local
58 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT)
    [all...]
  /development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/
MainActivity.java 21 import android.content.Intent;
48 protected void onNewIntent(Intent intent) {
49 handleIntent(intent);
53 * Assuming this activity was started with a new intent, process the incoming information and
55 * @param intent
57 private void handleIntent(Intent intent) {
58 // Special processing of the incoming intent only occurs if the if the action specified
59 // by the intent is ACTION_SEARCH
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowNfcAdapter.java 19 private PendingIntent intent; field in class:ShadowNfcAdapter
42 public void enableForegroundDispatch(Activity activity, PendingIntent intent, IntentFilter[] filters, String[][] techLists) {
44 this.intent = intent;
59 return intent;
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowNfcAdapter.java 18 private PendingIntent intent; field in class:ShadowNfcAdapter
30 public void enableForegroundDispatch(Activity activity, PendingIntent intent, IntentFilter[] filters, String[][] techLists) {
32 this.intent = intent;
61 return intent;
  /frameworks/base/core/java/com/android/internal/app/
ShutdownActivity.java 21 import android.content.Intent;
40 Intent intent = getIntent(); local
41 mReboot = Intent.ACTION_REBOOT.equals(intent.getAction());
42 mConfirm = intent.getBooleanExtra(Intent.EXTRA_KEY_CONFIRM, false);
43 mUserRequested = intent.getBooleanExtra(Intent.EXTRA_USER_REQUESTED_SHUTDOWN, false);
46 : intent.getStringExtra(Intent.EXTRA_REASON)
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DcFailBringUp.java 19 import android.content.Intent;
24 * saves the parameters from a action_fail_bringup intent. See
50 // Get the Extra Intent parameters
51 void saveParameters(Intent intent, String s) {
52 if (DBG) log(s + ".saveParameters: action=" + intent.getAction());
53 mCounter = intent.getIntExtra(COUNTER, DEFAULT_COUNTER);
55 intent.getIntExtra(FAIL_CAUSE, DEFAULT_FAIL_CAUSE.getErrorCode()));
57 intent.getIntExtra(SUGGESTED_RETRY_TIME, DEFAULT_SUGGESTED_RETRY_TIME);
  /frameworks/support/compat/src/androidTest/java/androidx/core/app/
RemoteInputTest.java 24 import android.content.Intent;
102 Intent intent = new Intent(); local
105 RemoteInput.addDataResultToIntent(input, intent, putResults);
107 verifyIntentHasDataResults(intent, uri);
115 Intent intent = new Intent(); local
120 RemoteInput.addResultsToIntent(arr, intent, putResults)
135 Intent intent = new Intent(); local
161 Intent intent = new Intent(); local
    [all...]
  /frameworks/support/legacy/core-utils/src/main/java/androidx/legacy/content/
WakefulBroadcastReceiver.java 22 import android.content.Intent;
47 * starts. The intent that is passed with
57 * completeWakefulIntent(intent)}. The intent it passes as a parameter
58 * is the same intent that the {@link WakefulBroadcastReceiver} originally
80 * Do a {@link android.content.Context#startService(android.content.Intent)
82 * This will modify the Intent to hold an extra identifying the wake lock;
84 * Service.onStartCommand}, it should pass back the Intent it receives there to
85 * {@link #completeWakefulIntent(android.content.Intent)} in order to release
89 * @param intent The Intent with which to start the service, as pe
    [all...]
  /frameworks/support/lifecycle/service/src/androidTest/java/androidx/lifecycle/service/
TestService.java 20 import android.content.Intent;
44 Intent intent = new Intent(ACTION_LOG_EVENT);
45 intent.putExtra(EXTRA_KEY_EVENT, event);
46 LocalBroadcastManager.getInstance(context).sendBroadcast(intent);
53 public IBinder onBind(Intent intent) {
54 super.onBind(intent);
  /packages/apps/Gallery/src/com/android/camera/
MovieView.java 23 import android.content.Intent;
47 Intent intent = getIntent(); local
48 mControl = new MovieViewControl(rootView, this, intent.getData()) {
56 if (intent.hasExtra(MediaStore.EXTRA_SCREEN_ORIENTATION)) {
57 int orientation = intent.getIntExtra(
64 mFinishOnCompletion = intent.getBooleanExtra(
  /packages/apps/Messaging/src/com/android/messaging/receiver/
MmsWapPushReceiver.java 21 import android.content.Intent;
29 * Class that handles MMS WAP push intent from telephony on pre-KLP Devices.
36 public void onReceive(final Context context, final Intent intent) {
37 if (Telephony.Sms.Intents.WAP_PUSH_RECEIVED_ACTION.equals(intent.getAction())
38 && ContentType.MMS_MESSAGE.equals(intent.getType())) {
42 intent, MmsWapPushReceiver.EXTRA_SUBSCRIPTION);
43 final byte[] data = intent.getByteArrayExtra(MmsWapPushReceiver.EXTRA_DATA);
NotificationReceiver.java 20 import android.content.Intent;
29 // clears all notifications or swipes a bugle notification away, the intent we pass in as
30 // the delete intent will get handled here.
37 public void onReceive(final Context context, final Intent intent) {
39 LogUtil.v(TAG, "NotificationReceiver.onReceive: intent " + intent);
41 if (intent.getAction().equals(UIIntents.ACTION_RESET_NOTIFICATIONS)) {
43 intent.getStringExtra(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID_SET);
44 final int notificationTargets = intent.getIntExtra
    [all...]
  /packages/apps/Settings/src/com/android/settings/applications/
ConfirmConvertToFbe.java 19 import android.content.Intent;
41 Intent intent = new Intent(Intent.ACTION_FACTORY_RESET);
42 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
43 intent.setPackage("android");
44 intent.putExtra(Intent.EXTRA_REASON, "convert_fbe")
    [all...]
EnterpriseDefaultApps.java 19 import android.content.Intent;
28 BROWSER(new Intent[] {
29 buildIntent(Intent.ACTION_VIEW, Intent.CATEGORY_BROWSABLE, "http:", null)}),
30 CALENDAR(new Intent[] {
31 buildIntent(Intent.ACTION_INSERT, null, null, "vnd.android.cursor.dir/event")}),
32 CAMERA(new Intent[] {
33 new Intent(MediaStore.ACTION_IMAGE_CAPTURE),
34 new Intent(MediaStore.ACTION_VIDEO_CAPTURE)}),
35 CONTACTS(new Intent[] {
54 final Intent intent = new Intent(action); local
    [all...]
  /packages/apps/Settings/src/com/android/settings/applications/appinfo/
AppSettingPreferenceController.java 22 import android.content.Intent;
47 final Intent intent = resolveIntent( local
48 new Intent(Intent.ACTION_APPLICATION_PREFERENCES).setPackage(mPackageName));
49 return intent != null ? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
57 final Intent intent = resolveIntent( local
58 new Intent(Intent.ACTION_APPLICATION_PREFERENCES).setPackage(mPackageName))
    [all...]
  /packages/apps/Settings/src/com/android/settings/bluetooth/
BluetoothFilesPreferenceController.java 21 import android.content.Intent;
40 /* Private intent to show the list of received files */
44 static final String EXTRA_SHOW_ALL_FILES = "android.btopp.intent.extra.SHOW_ALL";
72 Intent intent = new Intent(ACTION_OPEN_FILES); local
73 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
74 intent.putExtra(EXTRA_DIRECTION, 1 /* DIRECTION_INBOUND */)
    [all...]
  /packages/apps/Settings/src/com/android/settings/datausage/
AppDataUsageActivity.java 17 import android.content.Intent;
29 * {@link Settings#ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS} intent.
38 final Intent intent = getIntent(); local
39 final String packageName = intent.getData().getSchemeSpecificPart();
63 intent.putExtra(EXTRA_SHOW_FRAGMENT_ARGUMENTS, args);
64 intent.putExtra(EXTRA_SHOW_FRAGMENT, AppDataUsage.class.getName());
65 intent.putExtra(EXTRA_SHOW_FRAGMENT_TITLE_RESID, R.string.app_data_usage);
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
FeedbackPreferenceController.java 20 import android.content.Intent;
33 private final Intent intent; field in class:FeedbackPreferenceController
38 intent = new Intent("android.intent.action.BUG_REPORT");
49 intent.setPackage(DeviceInfoUtils.getFeedbackReporterPackage(mContext));
50 preference.setIntent(intent);
74 this.mHost.startActivityForResult(intent, 0);
  /packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
MobileDataUsageActivityTest.java 22 import android.content.Intent;
45 Intent intent = new Intent(android.provider.Settings.ACTION_MOBILE_DATA_USAGE); local
46 intent.putExtra(android.provider.Settings.EXTRA_NETWORK_TEMPLATE, template);
47 intent.putExtra(android.provider.Settings.EXTRA_SUB_ID, subId);
49 assertEquals(packageManager.queryIntentActivities(intent, 0).size(), 1);
51 context.startActivity(intent);
  /packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
IntentSearchViewHolder.java 19 import android.content.Intent;
31 * ViewHolder for intent based search results.
59 final Intent intent = result.payload.getIntent();
63 fragment.getActivity().startActivity(intent);
66 final List<ResolveInfo> info = pm.queryIntentActivities(intent, 0 /* flags */);
68 fragment.startActivityForResult(intent, REQUEST_CODE_NO_OP);
71 + result.title + ", " + intent);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
BluetoothPairingRequest.java 22 import android.content.Intent;
32 public void onReceive(Context context, Intent intent) {
33 String action = intent.getAction();
38 // convert broadcast intent into activity intent (same action string)
40 intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
41 int type = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_VARIANT,
43 Intent pairingIntent = new Intent();
    [all...]
  /packages/providers/CalendarProvider/src/com/android/providers/calendar/
CalendarProviderBroadcastReceiver.java 24 import android.content.Intent;
33 public void onReceive(Context context, Intent intent) {
34 String action = intent.getAction();
37 Log.e(TAG, "Received invalid intent: " + intent);
42 Log.d(TAG, "Received intent: " + intent);
60 final boolean removeAlarms = intent
  /packages/apps/Contacts/src/com/android/contacts/list/
ContactsIntentResolver.java 21 import android.content.Intent;
41 * Parses a Contacts intent, extracting all relevant parts and packaging them
55 public ContactsRequest resolveIntent(Intent intent) {
58 String action = intent.getAction();
78 final String resolvedType = intent.resolveType(mContext);
84 } else if (Intent.ACTION_PICK.equals(action)) {
85 final String resolvedType = intent.resolveType(mContext);
106 intent.getStringExtra(UiIntentActions.GROUP_ACCOUNT_NAME),
107 intent.getStringExtra(UiIntentActions.GROUP_ACCOUNT_TYPE)
    [all...]

Completed in 849 milliseconds

<<11121314151617181920>>