/developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/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...] |
/development/apps/CustomLocale/src/com/android/customlocale2/ |
CustomLocaleReceiver.java | 22 import android.content.Intent;
33 * $ adb shell am broadcast -a com.android.intent.action.SET_LOCALE \
34 * --es com.android.intent.extra.LOCALE en_US
42 /** Intent action that triggers this receiver. */
43 public static final String ACTION_SET_LOCALE = "com.android.intent.action.SET_LOCALE";
45 public static final String EXTRA_LOCALE = "com.android.intent.extra.LOCALE";
48 public void onReceive(Context context, Intent intent) {
50 if (intent == null || ! ACTION_SET_LOCALE.equals(intent.getAction())) { [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ShareContent.java | 21 import android.content.Intent; 42 Intent intent = new Intent(Intent.ACTION_SEND); 43 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); 52 intent.setType("image/jpeg"); 53 intent.putExtra(Intent.EXTRA_STREAM, uri) [all...] |
/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...] |
/device/google/cuttlefish_common/guest/monitoring/vsoc_service/java/com/android/google/gce/gceservice/ |
GceBroadcastReceiver.java | 21 import android.content.Intent; 33 Intent intent = new Intent(context, GceService.class); local 34 intent.setAction(intentType); 35 context.startService(intent); 40 public void onReceive(Context context, Intent intent) { 41 if (intent != null) { 42 final String action = intent.getAction() [all...] |
LocationServicesManager.java | 19 import android.content.Intent; 51 Intent intent = new Intent(); local 52 intent.setAction(ACTION_LOCATION_SERVICES_CONSENT_INTENT); 53 intent.setFlags(intent.getFlags() | 54 Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); 55 intent.putExtra(EXTRA_LOCATION_SERVICES_CONSENT_DISABLE, false) [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 | 28 import android.content.Intent; 54 private static final String TEST_HELP_URL = "intent:#Intent;action=com.android.test;end"; 57 private static final String HELP_INTENT_EXTRA_KEY = "help-intent-extra"; 58 private static final String HELP_INTENT_NAME_KEY = "help-intent-name"; 59 private static final String FEEDBACK_INTENT_EXTRA_KEY = "feedback-intent-extra"; 60 private static final String FEEDBACK_INTENT_NAME_KEY = "feedback-intent-name"; 93 Intent intent = new Intent(); local 111 Intent intent = new Intent(); local 125 Intent intent = new Intent(); local 139 Intent intent = new Intent(); local [all...] |
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
BroadcastPerfTest.java | 19 import android.content.Intent; 36 final Intent intent = createBroadcastIntent( 41 mContext.sendBroadcast(intent); 52 final Intent intent = createBroadcastIntent( 57 mContext.sendBroadcast(intent); 70 final Intent intent = createBroadcastIntent( 75 mContext.sendBroadcast(intent); [all...] |
/frameworks/support/samples/SupportLeanbackJank/src/main/java/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/Car/Settings/src/com/android/car/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/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/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/ |
DatabaseIndexingUtils.java | 21 import android.content.Intent; 48 * Builds intent that launches the search destination as a sub-setting. 50 public static Intent buildSearchTrampolineIntent(Context context, String className, String key, 52 final Intent intent = new Intent(SEARCH_RESULT_TRAMPOLINE_ACTION); local 53 intent.putExtra(EXTRA_SHOW_FRAGMENT, className) 57 return intent; 60 public static Intent buildDirectSearchResultIntent(String action, String targetPackage, 62 final Intent intent = new Intent(action).putExtra(EXTRA_FRAGMENT_ARG_KEY, key) local [all...] |
/packages/apps/TV/common/src/com/android/tv/common/actions/ |
InputSetupActionUtils.java | 19 import android.content.Intent; 28 * An intent action to launch setup activity of a TV input. 30 * <p>The intent should include TV input ID in the value of {@link #EXTRA_INPUT_ID}. Optionally, 37 * A constant of the key to indicate a TV input ID for the intent action {@link 44 * A constant of the key for intent to launch actual TV input setup activity used with {@link 47 * <p>Value type: Intent (Parcelable) 51 * A constant of the key to indicate an Activity launch intent for the intent action {@link 54 * <p>Value type: Intent (Parcelable) 57 "com.android.tv.intent.extra.ACTIVITY_AFTER_COMPLETION" [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/Car/tests/carservice_test/src/com/android/car/ |
CarStorageMonitoringBroadcastReceiver.java | 21 import android.content.Intent; 29 private static Intent mLastIntent; 32 static void deliver(Intent intent) { 33 Log.i(TAG, "onReceive, intent: " + intent); 35 mLastIntent = intent; 41 public void onReceive(Context context, Intent intent) { 42 Log.i(TAG, "onReceive, intent: " + intent) [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/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/ |
ImsTestServiceApp.java | 20 import android.content.Intent; 54 Intent intent = new Intent(this, ImsRegistrationActivity.class); local 55 startActivity(intent); 59 Intent intent = new Intent(this, ImsCallingActivity.class); local 60 startActivity(intent); 64 Intent intent = new Intent(this, ImsConfigActivity.class) local [all...] |