HomeSort by relevance Sort by last modified time
    Searched refs:intent (Results 301 - 325 of 4230) sorted by null

<<11121314151617181920>>

  /development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
NotificationIntentReceiver.java 21 import android.content.Intent;
40 public void onReceive(Context context, Intent intent) {
41 if (intent.getAction().equals(ACTION_EXAMPLE)) {
43 String message = intent.getStringExtra(NotificationUtil.EXTRA_MESSAGE);
44 Bundle remoteInputResults = RemoteInput.getResultsFromIntent(intent);
54 } else if (intent.getAction().equals(ACTION_ENABLE_MESSAGES)) {
56 } else if (intent.getAction().equals(ACTION_DISABLE_MESSAGES)) {
  /development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/content/
ContentItem.java 20 import android.content.Intent;
75 * Returns an {@link android.content.Intent} which can be used to share this item's content with other
79 * @return Intent to be given to a ShareActionProvider.
81 public Intent getShareIntent(Context context) {
82 Intent intent = new Intent(Intent.ACTION_SEND); local
86 intent.setType("image/jpg");
88 intent.putExtra(Intent.EXTRA_STREAM, getContentUri())
    [all...]
  /development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/
ListenerService.java 19 import android.content.Intent;
46 Intent intent = DetailActivity.getLaunchIntent(this, attractionName); local
47 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
48 startActivity(intent);
54 Intent intent = new Intent(Intent.ACTION_VIEW, uri) local
    [all...]
  /external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
AlarmBroadcastReceiver.java 33 import android.content.Intent;
50 public void onReceive(Context context, Intent intent) {
51 logger.info("onReceive(), intent: " + intent +
54 String action = intent.getAction();
58 int pollingType = intent.getIntExtra("pollingType",
65 long id = intent.getLongExtra("pollingTaskId", -1);
71 String number = intent.getStringExtra(Contacts.NEW_PHONE_NUMBER);
75 logger.debug("No interest in this intent: " + action)
    [all...]
  /external/ims/rcs/rcsservice/src/com/android/service/ims/presence/
AlarmBroadcastReceiver.java 33 import android.content.Intent;
51 public void onReceive(Context context, Intent intent) {
52 String action = intent.getAction();
53 logger.info("onReceive intent: " + action);
55 // this could happen when there is a crash and the previous broadcasted intent
64 int times = intent.getIntExtra("times", -1);
67 int taskId = intent.getIntExtra("taskId", -1);
71 int sipCode = intent.getIntExtra("sipCode", 888);
78 logger.debug("not interest in intent=" + intent)
    [all...]
  /frameworks/base/core/java/android/app/
IntentService.java 21 import android.content.Intent;
30 * requests (expressed as {@link Intent}s) on demand. Clients send requests
31 * through {@link android.content.Context#startService(Intent)} calls; the
32 * service is started as needed, handles each Intent in turn using a worker
38 * IntentService and implement {@link #onHandleIntent(Intent)}. IntentService
76 onHandleIntent((Intent)msg.obj);
92 * Sets intent redelivery preferences. Usually called from the constructor
96 * {@link #onStartCommand(Intent, int, int)} will return
98 * {@link #onHandleIntent(Intent)} returns, the process will be restarted
99 * and the intent redelivered. If multiple Intents have been sent, onl
    [all...]
  /frameworks/base/core/java/android/service/restrictions/
RestrictionsReceiver.java 22 import android.content.Intent;
73 public void onReceive(Context context, Intent intent) {
74 String action = intent.getAction();
77 String packageName = intent.getStringExtra(RestrictionsManager.EXTRA_PACKAGE_NAME);
78 String requestType = intent.getStringExtra(RestrictionsManager.EXTRA_REQUEST_TYPE);
79 String requestId = intent.getStringExtra(RestrictionsManager.EXTRA_REQUEST_ID);
81 intent.getParcelableExtra(RestrictionsManager.EXTRA_REQUEST_BUNDLE);
  /frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
HelpUtilsTest.java 21 import android.content.Intent;
55 private static final String TEST_HELP_URL = "intent:#Intent;action=com.android.test;end";
58 private static final String HELP_INTENT_EXTRA_KEY = "help-intent-extra";
59 private static final String HELP_INTENT_NAME_KEY = "help-intent-name";
60 private static final String FEEDBACK_INTENT_EXTRA_KEY = "feedback-intent-extra";
61 private static final String FEEDBACK_INTENT_NAME_KEY = "feedback-intent-name";
94 Intent intent = new Intent(); local
112 Intent intent = new Intent(); local
126 Intent intent = new Intent(); local
140 Intent intent = new Intent(); local
    [all...]
  /frameworks/support/samples/SupportLeanbackJank/src/com/google/android/leanbackjank/ui/
VideoActivity.java 20 import android.content.Intent;
63 private boolean checkIntent(Intent intent) {
64 if (Intent.ACTION_VIEW.equals(intent.getAction())) {
65 Uri uri = intent.getData();
75 protected void onNewIntent(Intent intent) {
76 super.onNewIntent(intent);
77 checkIntent(intent);
    [all...]
  /packages/apps/Settings/src/com/android/settings/bluetooth/
BluetoothPairingRequest.java 22 import android.content.Intent;
36 public void onReceive(Context context, Intent intent) {
37 String action = intent.getAction();
41 // convert broadcast intent into activity intent (same action string)
42 Intent pairingIntent = BluetoothPairingService.getPairingDialogIntent(context, intent);
47 intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
58 intent.setClass(context, BluetoothPairingService.class)
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
LicenseActivity.java 23 import android.content.Intent;
65 final Intent intent = new Intent(Intent.ACTION_VIEW); local
66 intent.setDataAndType(Uri.fromFile(file), "text/html");
67 intent.putExtra(Intent.EXTRA_TITLE, getString(R.string.about_legal_license));
68 intent.addCategory(Intent.CATEGORY_DEFAULT)
    [all...]
  /packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
ToastService.java 22 import android.content.Intent;
43 public int onStartCommand(Intent intent, int flags, int startId) {
45 return super.onStartCommand(intent, flags, startId);
49 protected void onHandleIntent(Intent intent) {
50 Log.v(TAG, "clicked a thing! intent=" + intent.toString());
51 if (intent.hasExtra("text")) {
52 final String text = intent.getStringExtra("text")
    [all...]
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
RawDocumentsHelper.java 23 import android.content.Intent;
50 * Build and start an {@link Intent} to view the download with given raw documentId.
53 final Intent intent = new Intent(Intent.ACTION_VIEW); local
54 intent.setData(documentUri);
55 intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION
56 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION)
    [all...]
  /packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
TestCallActivity.java 20 import android.content.Intent;
64 final Intent intent = getIntent(); local
65 final String action = intent != null ? intent.getAction() : null;
66 final Uri data = intent != null ? intent.getData() : null;
71 CallNotificationReceiver.addNewUnknownCall(this, data, intent.getExtras());
TestInCallServiceBroadcastReceiver.java 21 import android.content.Intent;
47 * @param intent The Intent being received.
50 public void onReceive(Context context, Intent intent) {
51 String action = intent.getAction();
55 final int videoState = Integer.parseInt(intent.getData().getSchemeSpecificPart());
58 final int videoState = Integer.parseInt(intent.getData().getSchemeSpecificPart());
61 Log.i(TAG, "onReceive: registered " + intent.getExtras().get(
64 Log.i(TAG, "onReceive: unregistered " + intent.getExtras().get
    [all...]
  /packages/services/Telephony/src/com/android/phone/vvm/
RemoteVvmTaskManager.java 23 import android.content.Intent;
84 Intent intent = new Intent(ACTION_START_CELL_SERVICE_CONNECTED, null, context, local
86 intent.putExtra(VisualVoicemailService.DATA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle);
87 context.startService(intent);
91 Intent intent = new Intent(ACTION_START_SMS_RECEIVED, null, context, local
93 intent.putExtra(VisualVoicemailService.DATA_PHONE_ACCOUNT_HANDLE
100 Intent intent = new Intent(ACTION_START_SIM_REMOVED, null, context, local
313 Intent intent = new Intent(ACTION_VISUAL_VOICEMAIL_SERVICE_EVENT); local
330 Intent intent = newBindIntent(this); local
348 Intent intent = new Intent(); local
    [all...]
  /cts/tests/tests/assist/src/android/assist/cts/
TestStartActivity.java 22 import android.content.Intent;
68 sendBroadcast(new Intent(Utils.TEST_ACTIVITY_LOADED));
85 Intent intent = new Intent(); local
86 intent.putExtra(Utils.TESTCASE_TYPE, testCaseName);
87 intent.setAction("android.intent.action.START_TEST_" + testCaseName);
88 intent.setComponent(new ComponentName("android.assist.service",
90 startActivity(intent);
94 Intent intent = new Intent(); local
102 Intent intent = new Intent(); local
    [all...]
  /frameworks/base/core/java/com/android/internal/app/
UnlaunchableAppActivity.java 19 import static android.content.Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS;
20 import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
28 import android.content.Intent;
66 Intent intent = getIntent(); local
67 mReason = intent.getIntExtra(EXTRA_UNLAUNCHABLE_REASON, -1);
68 mUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL);
69 mTarget = intent.getParcelableExtra(Intent.EXTRA_INTENT)
126 Intent intent = new Intent(); local
133 Intent intent = createBaseIntent(); local
140 Intent intent = createInQuietModeDialogIntent(userId); local
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
GoogleSearch.java 27 import android.content.Intent;
41 * the global {@link Intent#ACTION_WEB_SEARCH}.
58 Intent intent = getIntent(); local
59 String action = intent != null ? intent.getAction() : null;
65 if (Intent.ACTION_WEB_SEARCH.equals(action) || Intent.ACTION_SEARCH.equals(action)) {
66 handleWebSearchIntent(intent);
103 private void handleWebSearchIntent(Intent intent)
    [all...]
  /packages/apps/Settings/src/com/android/settings/backup/
BackupSettingsHelper.java 23 import android.content.Intent;
52 * Returns an intent to launch backup settings from backup transport if the intent was provided
53 * by the transport. Otherwise returns the intent to launch the default backup settings screen.
55 * @return Intent for launching backup settings
57 public Intent getIntentForBackupSettings() {
58 Intent intent; local
60 intent = getIntentForBackupSettingsFromTransport();
62 Log.e(TAG, "Backup transport has not provided an intent"
147 Intent intent = getIntentFromBackupTransport(); local
166 Intent intent = getIntentFromBackupTransport(); local
178 Intent intent = local
    [all...]
  /external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
ScriptingLayerService.java 24 import android.content.Intent;
84 public IBinder onBind(Intent intent) {
118 Intent notificationIntent = new Intent(this, ScriptingLayerService.class);
159 private void startAction(Intent intent, int flags, int startId) {
163 if (intent == null) {
164 } else if (intent.getAction().equals(Constants.ACTION_KILL_ALL)) {
167 } else if (intent.getAction().equals(Constants.ACTION_KILL_PROCESS))
    [all...]
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/
HelpUtils.java 23 import android.content.Intent;
44 * Functions to easily prepare contextual help menu option items with an intent that opens up the
94 * - Otherwise, this makes the help menu item visible and sets the intent for the help menu
111 final Intent intent = getHelpIntent(activity, helpUriString, backupContext); local
113 // Set the intent to the help menu item, show the help menu item in the overflow
115 if (intent != null) {
121 intent.getStringExtra(EXTRA_CONTEXT));
123 activity.startActivityForResult(intent, 0);
125 Log.e(TAG, "No activity found for intent: " + intent)
149 Intent intent = Intent.parseUri(helpUriString, local
169 Intent intent = new Intent(Intent.ACTION_VIEW, fullUri); local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/activities/
ContactEditorSpringBoardActivity.java 8 import android.content.Intent;
91 final Intent intent = getIntent(); local
92 final String action = intent.getAction();
94 if (!Intent.ACTION_EDIT.equals(action)) {
102 if (intent.hasExtra(primary) && intent.hasExtra(secondary)) {
103 mMaterialPalette = new MaterialPalette(intent.getIntExtra(primary, -1),
104 intent.getIntExtra(secondary, -1));
106 mShowReadOnly = intent.getBooleanExtra(EXTRA_SHOW_READ_ONLY, false)
193 final Intent intent; local
220 final Intent intent = EditorIntents.createEditContactIntentForRawContact( local
252 final Intent intent = ContactSaveService.createJoinContactsIntent( local
263 final Intent intent = ContactSaveService.createHardSplitContactIntent(this, rawContactIds); local
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/app/calllog/
CallLogNotificationsService.java 22 import android.content.Intent;
89 Intent serviceIntent = new Intent(context, CallLogNotificationsService.class);
98 Intent serviceIntent = new Intent(context, CallLogNotificationsService.class);
105 Intent serviceIntent = new Intent(context, CallLogNotificationsService.class);
112 Intent intent = new Intent(context, CallLogNotificationsService.class) local
119 Intent intent = new Intent(context, CallLogNotificationsService.class); local
133 Intent intent = new Intent(context, CallLogNotificationsService.class); local
140 Intent intent = new Intent(context, CallLogNotificationsService.class); local
    [all...]
  /cts/hostsidetests/devicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/
WifiConfigCreatorActivity.java 20 import android.content.Intent;
46 Intent intent = getIntent(); local
47 String action = intent.getAction();
49 String ssid = intent.getStringExtra(EXTRA_SSID);
50 int securityType = intent.getIntExtra(EXTRA_SECURITY_TYPE, SECURITY_TYPE_NONE);
51 String password = intent.getStringExtra(EXTRA_PASSWORD);
54 int netId = intent.getIntExtra(EXTRA_NETID, -1);
55 String ssid = intent.getStringExtra(EXTRA_SSID);
56 int securityType = intent.getIntExtra(EXTRA_SECURITY_TYPE, SECURITY_TYPE_NONE)
    [all...]

Completed in 1232 milliseconds

<<11121314151617181920>>