/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...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowPendingIntentTest.java | 17 import android.content.Intent; 40 Intent intent = new Intent(); local 41 PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 99, intent, 100); 48 assertThat(intent).isEqualTo(shadow.getSavedIntent()); 56 Intent intent = new Intent(); local 57 PendingIntent pendingIntent = PendingIntent.getActivity(context, 99, intent, 100) 103 Intent intent = new Intent(); local 120 Intent intent = new Intent(); local 156 Intent intent = new Intent("action"); local 172 Intent intent = new Intent("action"); local 244 Intent intent = new Intent(); local 260 Intent intent = new Intent().putExtra("whatever", 5); local 276 Intent intent = new Intent(); local 282 Intent intent = new Intent(); local 289 Intent intent = new Intent(); local 300 Intent intent = new Intent(); local 348 Intent intent = new Intent(); local 355 Intent intent = new Intent(); local 362 Intent intent = new Intent(); local 373 Intent intent = new Intent(); local 384 Intent intent = new Intent(); local 391 Intent intent = new Intent(); local 398 Intent intent = new Intent(); local 409 Intent intent = new Intent(); local 421 Intent intent = new Intent(); local 430 Intent intent = new Intent(); local 438 Intent intent = new Intent(); local 451 Intent intent = new Intent(); local 462 Intent intent = new Intent(); local 472 Intent intent = new Intent(); local 492 Intent intent = new Intent(); local 503 Intent intent = new Intent(); local 513 Intent intent = new Intent(); local 538 Intent intent = new Intent(); local 550 Intent intent = new Intent(); local 558 Intent intent = new Intent(); local [all...] |
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/ |
UtilsProvider.java | 23 import android.content.Intent; 46 public static final String EXTRA_INTENT = Intent.EXTRA_INTENT; 53 final Intent intent = extras.getParcelable(Intent.EXTRA_INTENT); local 54 final String action = intent.getAction(); 59 final Uri uri = intent.getParcelableExtra(EXTRA_URI); 60 context.grantUriPermission(intent.getStringExtra(EXTRA_PACKAGE_NAME), uri, 61 intent.getIntExtra(EXTRA_MODE, 0)); 64 final Uri uri = intent.getParcelableExtra(EXTRA_URI) [all...] |
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
DelegatedCertInstallerTest.java | 27 import android.content.Intent; 154 public void onReceive(Context context, Intent intent) { 155 if (ACTION_CERT_OPERATION_DONE.equals(intent.getAction())) { 157 mReceivedResult = intent.getBooleanExtra(EXTRA_RESULT_VALUE, false); 159 (Exception) intent.getSerializableExtra(EXTRA_RESULT_EXCEPTION); 317 Intent intent = new Intent(); local 318 intent.setAction(ACTION_INSTALL_CERT) 326 Intent intent = new Intent(); local 335 Intent intent = new Intent(); local 367 Intent intent = new Intent(); local [all...] |
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
BlockedNumberUtil.java | 28 import android.content.Intent; 51 Intent intent = new Intent(INSERT_ACTION); local 52 intent.putExtra(PHONE_NUMBER_EXTRA, phoneNumber); 54 return Uri.parse(runBlockedNumberService(context, intent).getString(URI_EXTRA)); 59 Intent intent = new Intent(DELETE_ACTION); local 60 intent.putExtra(URI_EXTRA, uri.toString()) [all...] |
BlockedNumberService.java | 25 import android.content.Intent; 55 public void onHandleIntent(Intent intent) { 56 Log.i(TAG, "Starting BlockedNumberService service: " + intent); 57 if (intent == null) { 62 switch (intent.getAction()) { 64 bundle = insertBlockedNumber(intent.getStringExtra(PHONE_NUMBER_EXTRA)); 67 bundle = deleteBlockedNumber(Uri.parse(intent.getStringExtra(URI_EXTRA))); 73 ResultReceiver receiver = intent.getParcelableExtra(RESULT_RECEIVER_EXTRA);
|
BroadcastTestBase.java | 22 import android.content.Intent; 73 Intent intent = new Intent(intentStr); local 76 if (manager.resolveActivity(intent, 0) == null) { 77 Log.i(TAG, "No Activity found for the intent: " + intentStr); 84 Intent intent = new Intent(); local 85 intent.setAction("android.intent.action.TEST_START_ACTIVITY_" + intentSuffix) [all...] |
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
BlockedNumberUtil.java | 28 import android.content.Intent; 51 Intent intent = new Intent(INSERT_ACTION); local 52 intent.putExtra(PHONE_NUMBER_EXTRA, phoneNumber); 54 return Uri.parse(runBlockedNumberService(context, intent).getString(URI_EXTRA)); 59 Intent intent = new Intent(DELETE_ACTION); local 60 intent.putExtra(URI_EXTRA, uri.toString()) [all...] |
BlockedNumberService.java | 25 import android.content.Intent; 55 public void onHandleIntent(Intent intent) { 56 Log.i(TAG, "Starting BlockedNumberService service: " + intent); 57 if (intent == null) { 62 switch (intent.getAction()) { 64 bundle = insertBlockedNumber(intent.getStringExtra(PHONE_NUMBER_EXTRA)); 67 bundle = deleteBlockedNumber(Uri.parse(intent.getStringExtra(URI_EXTRA))); 73 ResultReceiver receiver = intent.getParcelableExtra(RESULT_RECEIVER_EXTRA);
|
/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...] |
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ |
ReplyToMessageIntentService.java | 19 import android.content.Intent; 56 protected void onHandleIntent(@Nullable Intent intent) { 58 if (intent != null) { 59 if (intent.hasExtra(Constants.EXTRA_CHAT)) { 60 String action = intent.getAction(); 62 handleReply(getMessage(intent), extractChat(intent)); 85 private Chat extractChat(Intent intent) { [all...] |
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ |
ReplyToMessageIntentService.java | 19 import android.content.Intent; 56 protected void onHandleIntent(@Nullable Intent intent) { 58 if (intent != null) { 59 if (intent.hasExtra(Constants.EXTRA_CHAT)) { 60 String action = intent.getAction(); 62 handleReply(getMessage(intent), extractChat(intent)); 85 private Chat extractChat(Intent intent) { [all...] |
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
CertInstallerReceiver.java | 21 import android.content.Intent; 68 public void onReceive(Context context, Intent intent) { 69 if (intent == null) { 73 String action = intent.getAction(); 81 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); 99 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); 111 certBuffer = intent.getByteArrayExtra(EXTRA_CERT_DATA); 119 String alias = intent.getStringExtra(EXTRA_KEY_ALIAS); 120 String key = intent.getStringExtra(EXTRA_KEY_DATA) 149 Intent intent = new Intent(); local [all...] |
/cts/tests/app/app/src/android/app/stubs/ |
MockService.java | 21 import android.content.Intent; 47 public IBinder onBind(Intent intent) { 60 public void onStart(Intent intent, int startId) { 61 super.onStart(intent, startId); 63 if (!intent.getBooleanExtra(EXTRA_NO_STOP, false)) { 126 Intent intent = new Intent(); local [all...] |
/cts/tests/leanbackjank/src/android/leanbackjank/cts/ |
CtsDeviceLeanback.java | 18 import android.content.Intent; 68 Intent intent = new Intent(Intent.ACTION_MAIN); local 69 intent.setComponent(new ComponentName(APP_PACKAGE, CLASS)); 72 intent.putExtra(IntentKeys.SCROLL_DELAY, PRE_SCROLL_DELAY_MILLIS); 73 intent.putExtra(IntentKeys.SCROLL_COUNT, SCROLL_COUNT); 74 intent.putExtra(IntentKeys.SCROLL_INTERVAL, SCROLL_INTERVAL_MILLIS); 75 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) [all...] |
/cts/tests/tests/background/src/android/app/cts/backgroundrestrictions/ |
BroadcastsTest.java | 24 import android.content.Intent; 71 public void onReceive(Context context, Intent intent) { 72 callback.accept(intent); 79 (intent) -> {}, 85 * receiver, even if an intent is targeted to the component. 96 MyReceiver.setCallback((intent) -> callback.accept(intent)); 98 (intent) -> intent.setComponent(MyReceiver.getComponent()) 151 final Intent intent = new Intent(action) local [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
ReadableUriExtraToClipDataTest.java | 21 import android.content.Intent; 54 public void onReceive(Context context, Intent intent) { 83 Intent intent = new Intent(Intent.ACTION_SEND); local 84 intent.setComponent(new ComponentName(getContext(), ReadableFileReceiverActivity.class)); 85 intent.putExtra(Intent.EXTRA_STREAM, mTestFileUris.get(0)) 95 Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE); local [all...] |
/development/samples/ReceiveShareDemo/src/com/example/android/receiveshare/ |
ReceiveShare.java | 22 import android.content.Intent; 35 static Uri getShareUri(Intent intent) { 36 Uri uri = intent.getParcelableExtra(Intent.EXTRA_STREAM); 38 ClipData clip = intent.getClipData(); 46 static CharSequence buildShareInfo(ContentResolver resolver, Intent intent) { 48 if (intent.getType() != null) { 49 sb.append("Type: "); sb.append(intent.getType()); sb.append("\n") [all...] |
/device/sample/apps/tv/LeanbackCustomizer/src/com/google/android/leanbacklauncher/partnercustomizer/ |
PartnerReceiver.java | 24 import android.content.Intent; 62 public void onReceive(Context context, Intent intent) { 70 String action = intent.getAction(); 71 if (Intent.ACTION_PACKAGE_ADDED.equals(action)|| 72 Intent.ACTION_PACKAGE_REMOVED.equals(action)) { 73 postNotification(getPackageName(intent)); 75 mRowCutoff = intent.getIntExtra(EXTRA_ROW_WRAPPING_CUTOFF, 0); 113 Intent intent = mPkgMan.getLeanbackLaunchIntentForPackage(pkgName) local 139 Intent intent = new Intent(Intent.ACTION_VIEW); local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/ |
MockVrListenerService.java | 19 import android.content.Intent; 71 public IBinder onBind(Intent intent) { 75 sEventQueue.put(Event.build(this, EventType.ONBIND, intent)); 79 return super.onBind(intent); 83 public void onRebind(Intent intent) { 86 sEventQueue.put(Event.build(this, EventType.ONREBIND, intent)); 90 super.onRebind(intent); 94 public boolean onUnbind(Intent intent) [all...] |