/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
VoiceSearch.java | 21 import android.content.Intent; 51 protected Intent createVoiceSearchIntent() { 52 return new Intent(RecognizerIntent.ACTION_WEB_SEARCH); 56 Intent intent = createVoiceSearchIntent(); local 58 resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); 66 public Intent createVoiceWebSearchIntent(Bundle appData) { 68 Intent intent = createVoiceSearchIntent(); 69 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
TetherProvisioningActivity.java | 20 import android.content.Intent; 53 Intent intent = new Intent(Intent.ACTION_MAIN); local 54 intent.setClassName(provisionApp[0], provisionApp[1]); 55 intent.putExtra(EXTRA_TETHER_TYPE, tetherType); 60 if (getPackageManager().queryIntentActivities(intent, 68 startActivityForResultAsUser(intent, PROVISION_REQUEST, UserHandle.CURRENT); 72 public void onActivityResult(int requestCode, int resultCode, Intent intent) [all...] |
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
StorageWizardMigrate.java | 19 import android.content.Intent; 84 final Intent intent = new Intent(this, StorageWizardMigrateConfirm.class); local 85 intent.putExtra(DiskInfo.EXTRA_DISK_ID, mDisk.getId()); 86 mEstimate.copyTo(intent); 87 startActivity(intent); 89 final Intent intent = new Intent(this, StorageWizardReady.class) local [all...] |
/packages/apps/TV/src/com/android/tv/receiver/ |
GlobalKeyReceiver.java | 21 import android.content.Intent; 36 private static final String ACTION_GLOBAL_BUTTON = "android.intent.action.GLOBAL_BUTTON"; 44 public void onReceive(Context context, Intent intent) { 51 if (DEBUG) Log.d(TAG, "onReceive: " + intent); 53 handleIntent(appContext, intent); 67 handleIntent(appContext, intent); 74 private void handleIntent(Context appContext, Intent intent) { 75 if (ACTION_GLOBAL_BUTTON.equals(intent.getAction())) [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
DialogActivity.java | 25 import android.content.Intent; 111 public static Intent createIntent(Context context, String title, 118 public static Intent createIntent(Context context, String title, 121 Intent intent = new Intent(context, DialogActivity.class); local 122 intent.putExtra(EXTRA_DIALOG_TITLE, title); 123 intent.putExtra(EXTRA_DIALOG_BREADCRUMB, breadcrumb); 124 intent.putExtra(EXTRA_DIALOG_DESCRIPTION, description); 125 intent.putExtra(EXTRA_DIALOG_IMAGE_URI, imageUri) 142 Intent intent = new Intent(context, activityClass); local 157 Intent intent = new Intent(context, activityClass); local 246 Intent intent = action.getIntent(); local [all...] |
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
SipIncomingCallReceiver.java | 21 import android.content.Intent; 38 public void onReceive(Context context, final Intent intent) { 39 String action = intent.getAction(); 52 takeCall(context, intent); 58 private void takeCall(Context context, Intent intent) { 59 if (VERBOSE) log("takeCall, intent: " + intent); 62 accountHandle = intent.getParcelableExtra(SipUtil.EXTRA_PHONE_ACCOUNT) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
RobolectricPackageManager.java | 11 import android.content.Intent; 23 private Map<Intent, List<ResolveInfo>> resolveList = new HashMap<Intent, List<ResolveInfo>>(); 76 public List<ResolveInfo> queryIntentActivities( Intent intent, int flags ) { 77 return queryIntent(intent, flags); 81 public List<ResolveInfo> queryIntentServices( Intent intent, int flags ) { 82 return queryIntent(intent, flags); 86 public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags) [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
SettingsStorageService.java | 22 import android.content.Intent; 49 final Intent intent = new Intent(context, Impl.class); local 50 intent.setAction(ACTION_FORMAT_AS_PUBLIC); 51 intent.putExtra(DiskInfo.EXTRA_DISK_ID, diskId); 52 context.startService(intent); 56 final Intent intent = new Intent(context, Impl.class) local 63 final Intent intent = new Intent(context, Impl.class); local [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
NfcDispatcher.java | 38 import android.content.Intent; 138 public synchronized void setForegroundDispatch(PendingIntent intent, 141 mOverrideIntent = intent; 154 public final Intent intent; field in class:NfcDispatcher.DispatchInfo 156 final Intent rootIntent; 163 intent = new Intent(); 164 intent.putExtra(NfcAdapter.EXTRA_TAG, tag); 165 intent.putExtra(NfcAdapter.EXTRA_ID, tag.getId()) 438 Intent intent; local 513 Intent intent = dispatch.setNdefIntent(); local 623 Intent intent = new Intent(mContext, TechListChooserActivity.class); local 649 Intent intent = new Intent(mContext, PeripheralHandoverService.class); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
GalleryActivity.java | 23 import android.content.Intent; 78 Intent intent = getIntent(); local 79 String action = intent.getAction(); 81 if (Intent.ACTION_GET_CONTENT.equalsIgnoreCase(action)) { 82 startGetContent(intent); 83 } else if (Intent.ACTION_PICK.equalsIgnoreCase(action)) { 84 // We do NOT really support the PICK intent. Handle it as 86 // in the intent here. 88 String type = Utils.ensureNotNull(intent.getType()) [all...] |
/cts/tests/tests/alarmclock/src/android/alarmclock/cts/ |
AlarmClockTestBase.java | 24 import android.content.Intent; 86 Intent intent; local 89 intent = new Intent(AlarmClock.ACTION_DISMISS_ALARM); 94 intent = new Intent(AlarmClock.ACTION_SET_ALARM); 98 intent = new Intent(AlarmClock.ACTION_SNOOZE_ALARM); 105 if (manager.resolveActivity(intent, 0) == null) 133 Intent intent = new Intent(); local [all...] |
/cts/tests/tests/background/src/android/app/cts/backgroundrestrictions/ |
BroadcastsTest.java | 24 import android.content.Intent; 66 public void onReceive(Context context, Intent intent) { 67 callback.accept(intent); 74 (intent) -> {}, 80 * receiver, even if an intent is targeted to the component. 89 MyReceiver.setCallback((intent) -> callback.accept(intent)); 91 (intent) -> intent.setComponent(MyReceiver.getComponent()) 141 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/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...] |
/frameworks/base/core/java/com/android/internal/app/ |
DumpHeapActivity.java | 25 import android.content.Intent; 65 Intent intent = new Intent(ActivityManager.ACTION_REPORT_HEAP_LIMIT); local 66 intent.setPackage(directLaunch); 68 intent.setClipData(clip); 69 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); 70 intent.setType(clip.getDescription().getMimeType(0)); 71 intent.putExtra(Intent.EXTRA_STREAM, JAVA_URI) [all...] |
NetInitiatedActivity.java | 23 import android.content.Intent; 50 // Received ID from intent, -1 when no notification is in progress 59 public void onReceive(Context context, Intent intent) { 60 if (DEBUG) Log.d(TAG, "NetInitiatedReceiver onReceive: " + intent.getAction()); 61 if (intent.getAction() == GpsNetInitiatedHandler.ACTION_NI_VERIFY) { 62 handleNIVerify(intent); 87 final Intent intent = getIntent(); local 90 p.mTitle = intent.getStringExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_TITLE) [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/app/ |
OSUService.java | 6 import android.content.Intent; 49 // TODO(b/32883320): use updated intent definitions. 84 public int onStartCommand(Intent intent, int flags, int startId) { 85 onHandleIntent(intent); 90 public IBinder onBind(Intent intent) { 93 public void onReceive(Context context, Intent intent) { 94 handleIntent(intent.getAction(), intent) [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
ActionHandler.java | 26 import android.content.Intent; 146 final Intent intent = new Intent(DocumentsContract.ACTION_DOCUMENT_ROOT_SETTINGS); local 147 intent.setDataAndType(root.getUri(), DocumentsContract.Root.MIME_TYPE_ITEM); 148 mActivity.startActivity(intent); 277 Intent intent = new Intent(DocumentsContract.ACTION_DOCUMENT_SETTINGS); local 278 intent.setPackage(mProviders.getPackageName(doc.authority)) 353 Intent intent; local 490 Intent intent = Intent.createChooser(buildViewIntent(doc), null); local 570 Intent intent = buildViewIntent(doc); local 590 Intent intent = new QuickViewIntentBuilder( local 660 Intent intent = new Intent(Intent.ACTION_VIEW); local 680 Intent intent = new Intent(mActivity, InspectorActivity.class); local [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/analytics/ |
AnalyticsUtilsTest.java | 28 import android.content.Intent; 84 // WHEN getting provisioning extras using null Intent. 92 Intent intent = new Intent(ACTION_RESUME_PROVISIONING); local 93 // WHEN getting provisioning extras using resume provisioning intent. 94 List<String> provisioningExtras = AnalyticsUtils.getAllProvisioningExtras(intent); 100 // GIVEN intent has null extras 101 Intent intent = new Intent(DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE) local 110 Intent intent = new Intent(NfcAdapter.ACTION_NDEF_DISCOVERED); local 119 Intent intent = new Intent(DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE); local 145 Intent intent = new Intent(NfcAdapter.ACTION_NDEF_DISCOVERED) local [all...] |
/packages/apps/Nfc/src/com/android/nfc/beam/ |
BeamStatusReceiver.java | 7 import android.content.Intent; 22 "android.nfc.handover.intent.action.HANDOVER_STARTED"; 25 "android.nfc.handover.intent.action.TRANSFER_PROGRESS"; 28 "android.nfc.handover.intent.action.TRANSFER_DONE"; 31 "android.nfc.handover.intent.extra.HANDOVER_DATA_LINK_TYPE"; 35 "android.nfc.handover.intent.extra.TRANSFER_PROGRESS"; 38 "android.nfc.handover.intent.extra.TRANSFER_URI"; 41 "android.nfc.handover.intent.extra.OBJECT_COUNT"; 44 "android.nfc.handover.intent.extra.TRANSFER_STATUS"; 47 "android.nfc.handover.intent.extra.TRANSFER_MIME_TYPE" [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
SettingsLicenseActivityTest.java | 29 import android.content.Intent; 61 void assertEqualIntents(Intent actual, Intent expected) { 77 final Intent intent = new Intent(Intent.ACTION_VIEW); local 78 intent.setDataAndType(Uri.parse("file:///system/etc/NOTICE.html.gz"), "text/html"); 79 intent.putExtra(Intent.EXTRA_TITLE, mActivity.getString 84 assertEqualIntents(shadowOf(mApplication).getNextStartedActivity(), intent); local 96 final Intent intent = new Intent(Intent.ACTION_VIEW); local 106 assertEqualIntents(shadowOf(mApplication).getNextStartedActivity(), intent); local [all...] |
/packages/apps/Stk/src/com/android/stk/ |
StkCmdReceiver.java | 24 import android.content.Intent; 36 public void onReceive(Context context, Intent intent) { 37 String action = intent.getAction(); 43 handleAction(context, intent, StkAppService.OP_CMD); 45 handleAction(context, intent, StkAppService.OP_END_SESSION); 47 handleAction(context, intent, StkAppService.OP_CARD_STATUS_CHANGED); 48 } else if (action.equals(Intent.ACTION_LOCALE_CHANGED)) { 51 handleAction(context, intent, StkAppService.OP_ALPHA_NOTIFY); 52 } else if (action.equals(Intent.ACTION_SCREEN_OFF)) [all...] |
/packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/ |
ImsFrameworkApp.java | 22 import android.content.Intent; 44 // Broadcast receiver for telephony intent broadcasts 54 // Register for telephony intent broadcasts 56 IntentFilter intentFilter = new IntentFilter(Intent.ACTION_AIRPLANE_MODE_CHANGED); 69 public void onReceive(Context context, Intent intent) { 70 String action = intent.getAction(); 72 if (action.equals(Intent.ACTION_AIRPLANE_MODE_CHANGED)) { 74 Log.d(TAG, "- state: " + intent.getBooleanExtra(Phone.STATE_KEY, false)); 77 Log.d(TAG, "- apnName: " + intent.getStringExtra(Phone.DATA_APN_KEY)) [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...] |