/packages/apps/Messaging/src/com/android/messaging/receiver/ |
AbortMmsWapPushReceiver.java | 21 import android.content.Intent; 33 public void onReceive(final Context context, final Intent intent) { 34 if (Telephony.Sms.Intents.WAP_PUSH_RECEIVED_ACTION.equals(intent.getAction()) 35 && ContentType.MMS_MESSAGE.equals(intent.getType())) {
|
/packages/apps/Nfc/src/com/android/nfc/ |
TechListChooserActivity.java | 21 import android.content.Intent; 34 Intent intent = getIntent(); local 35 Parcelable targetParcelable = intent.getParcelableExtra(Intent.EXTRA_INTENT); 36 if (!(targetParcelable instanceof Intent)) { 37 Log.w("TechListChooserActivity", "Target is not an intent: " + targetParcelable); 41 Intent target = (Intent)targetParcelable; 42 ArrayList<ResolveInfo> rList = intent.getParcelableArrayListExtra(EXTRA_RESOLVE_INFOS) [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
RemoveReceiver.java | 21 import android.content.Intent; 28 public void onReceive(Context context, Intent intent) { 29 if (Intent.ACTION_PACKAGE_FULLY_REMOVED.equals(intent.getAction())) { 30 Uri uri = intent.getData();
|
/packages/apps/Settings/src/com/android/settings/ |
HelpTrampoline.java | 21 import android.content.Intent; 37 final String name = getIntent().getStringExtra(Intent.EXTRA_TEXT); 46 final Intent intent = HelpUtils.getHelpIntent(this, value, null); local 47 if (intent != null) { 52 startActivityForResult(intent, 0);
|
/packages/apps/Settings/src/com/android/settings/applications/autofill/ |
AutofillPickerTrampolineActivity.java | 17 import android.content.Intent; 25 * {@link android.provider.Settings#ACTION_REQUEST_SET_AUTOFILL_SERVICE} intent. 37 final Intent intent = getIntent(); local 38 final String packageName = intent.getData().getSchemeSpecificPart(); 57 final Intent newIntent = new Intent(this, AutofillPickerActivity.class) 58 .setFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT) 59 .setData(intent.getData());
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
BatterySaverModeVoiceActivity.java | 20 import android.content.Intent; 36 protected boolean onVoiceSettingInteraction(Intent intent) { 37 if (intent.hasExtra(EXTRA_BATTERY_SAVER_MODE_ENABLED)) { 40 intent.getBooleanExtra(EXTRA_BATTERY_SAVER_MODE_ENABLED, false))) {
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/ |
AnomalyActivity.java | 18 import android.content.Intent; 63 Intent intent = new Intent(this, AnomalyService.class); local 64 intent.putExtra(AnomalyActions.KEY_ACTION, AnomalyActions.ACTION_BLE_SCAN_UNOPTIMIZED); 65 intent.putExtra(AnomalyActions.KEY_DURATION_MS, 67 intent.putExtra(AnomalyActions.KEY_RESULT_RECEIVER, mResultReceiver); 68 intent.putExtra(KEY_TARGET_BUTTON, view.getId()); 69 startService(intent); 91 Intent intent = new Intent(this, AnomalyService.class) local [all...] |
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/ |
PrivateVolumeForgetTest.java | 20 import android.content.Intent; 46 Intent intent = new Intent(targetContext, Settings.PrivateVolumeForgetActivity.class); local 47 intent.putExtra(VolumeRecord.EXTRA_FS_UUID, "totally-fake-uuid-doesnt-even-fit-format"); 48 mActivityRule.launchActivity(intent);
|
/packages/apps/SpareParts/src/com/android/spare_parts/ |
Enabler.java | 23 import android.content.Intent; 32 public void onReceive(Context context, Intent intent) { 33 String action = intent.getAction(); 34 boolean enabled = intent.getIntExtra("state",
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
RecordUtils.java | 24 import android.content.Intent; 51 public Intent intent; field in class:RecordUtils.ClickInfo 53 public ClickInfo(Activity activity, Intent intent) { 55 this.intent = intent; 60 * Creates one or more views for a parsed record that wants to display an actionable intent. 64 ViewGroup parent, OnClickListener listener, Intent intent, String description) [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
HomeNormal.java | 22 import android.content.Intent; 44 Intent intent = new Intent(this, DetailsNormal.class); local 45 intent.setData(contactUri); 46 startActivity(intent);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
DictionaryDumpBroadcastReceiver.java | 21 import android.content.Intent; 38 public void onReceive(Context context, Intent intent) { 39 final String action = intent.getAction(); 41 final String dictName = intent.getStringExtra(DICTIONARY_NAME_KEY); 43 Log.e(TAG, "Received dictionary dump intent action " +
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PhoneAccountRegistrationReceiver.java | 23 import android.content.Intent; 40 public void onReceive(Context context, Intent intent) { 43 if (TelecomManager.ACTION_PHONE_ACCOUNT_REGISTERED.equals(intent.getAction())) { 45 PhoneAccountHandle handle = (PhoneAccountHandle) intent.getParcelableExtra(
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
OpenHelper.java | 30 import android.content.Intent; 43 * Build and start an {@link Intent} to view the download with given ID, 47 final Intent intent = OpenHelper.buildViewIntent(context, id); local 48 if (intent == null) { 49 Log.w(TAG, "No intent built for " + id); 53 intent.addFlags(intentFlags); 55 context.startActivity(intent); 58 Log.w(TAG, "Failed to start " + intent + ": " + e); 64 * Build an {@link Intent} to view the download with given ID, handlin 86 final Intent intent = new Intent(Intent.ACTION_VIEW); local [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
PhoneAccountBroadcastReceiver.java | 23 import android.content.Intent; 30 * Captures {@code android.intent.action.ACTION_PACKAGE_FULLY_REMOVED} intents and triggers the 33 * Note: This class listens for the {@code PACKAGE_FULLY_REMOVED} intent rather than 45 * @param intent The Intent being received. 48 public void onReceive(Context context, Intent intent) { 49 if (Intent.ACTION_PACKAGE_FULLY_REMOVED.equals(intent.getAction())) { 50 Uri uri = intent.getData() [all...] |
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
NewOutgoingCallIntentBroadcasterTest.java | 25 import android.content.Intent; 63 public Intent intent; field in class:NewOutgoingCallIntentBroadcasterTest.ReceiverIntentPair 65 public ReceiverIntentPair(BroadcastReceiver receiver, Intent intent) { 67 this.intent = intent; 87 Intent intent = new Intent(Intent.ACTION_CALL, null) local 97 Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(voicemailNumber)); local 123 Intent intent = new Intent(Intent.ACTION_ALARM_CHANGED, handle); local 149 Intent intent = new Intent(Intent.ACTION_CALL, handle); local 163 Intent intent = new Intent(Intent.ACTION_CALL, handle); local 190 Intent intent = buildIntent(handle, Intent.ACTION_CALL, null); local 197 Intent intent = buildIntent(handle, Intent.ACTION_CALL_EMERGENCY, null); local 204 Intent intent = buildIntent(handle, Intent.ACTION_CALL_PRIVILEGED, null); local 216 Intent intent = buildIntent(handle, Intent.ACTION_CALL, gatewayExtras); local 225 Intent intent = new Intent(Intent.ACTION_CALL_EMERGENCY, handle); local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
OrganizationInfoTestActivity.java | 19 import android.content.Intent; 58 Intent intent = new Intent(ByodHelperActivity.ACTION_SET_ORGANIZATION_INFO); local 59 intent.putExtra(EXTRA_ORGANIZATION_NAME, organizationNameEditText.getText().toString()); 61 intent.putExtra(EXTRA_ORGANIZATION_COLOR, mOrganizationColor); 63 startActivity(intent); 65 Intent intent = new Intent(ByodHelperActivity.ACTION_LAUNCH_CONFIRM_WORK_CREDENTIALS) local [all...] |
/cts/tests/app/app/src/android/app/stubs/ |
LocalService.java | 20 import android.content.Intent; 66 public void onStart(Intent intent, int startId) { 67 if (intent.getExtras() != null) { 69 = (IBinderParcelable) intent.getExtras().getParcelable(REPORT_OBJ_NAME); 85 public IBinder onBind(Intent intent) { 90 public boolean onUnbind(Intent intent) { 98 public void onRebind(Intent intent) [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
GlPlanetsActivity.java | 20 import android.content.Intent; 29 * Intent. For the meaning of parameters, check {@PlanetsRenderingParam} 65 * @return can return null if INTENT_EXTRA_NUM_FRAMES was not set in intent. 77 Intent intent = getIntent(); local 79 param.mNumPlanets = intent.getIntExtra(INTENT_EXTRA_NUM_PLANETS, param.mNumPlanets); 80 param.mUseVboForVertices = intent.getBooleanExtra(INTENT_EXTRA_USE_VBO_VERTICES, 82 param.mUseVboForIndices = intent.getBooleanExtra(INTENT_EXTRA_USE_VBO_INDICES, 84 param.mNumFrames = intent.getIntExtra(INTENT_EXTRA_NUM_FRAMES, param.mNumFrames); 85 param.mNumIndicesPerVertex = intent.getIntExtra(INTENT_EXTRA_NUM_INDEX_BUFFERS [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
LocalService.java | 20 import android.content.Intent; 66 public void onStart(Intent intent, int startId) { 67 if (intent.getExtras() != null) { 69 = (IBinderParcelable) intent.getExtras().getParcelable(REPORT_OBJ_NAME); 85 public IBinder onBind(Intent intent) { 90 public boolean onUnbind(Intent intent) { 98 public void onRebind(Intent intent) [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
NoActivityRelatedPermissionTest.java | 24 import android.content.Intent; 84 private boolean isHomeIntent(Intent intent) { 85 return Intent.ACTION_MAIN.equals(intent.getAction()) 86 && intent.hasCategory(Intent.CATEGORY_HOME) 87 && intent.getCategories().size() == 1 88 && intent.getData() == null 89 && intent.getType() == null [all...] |
/developers/build/prebuilts/gradle/MessagingService/Application/src/main/java/com/example/android/messagingservice/ |
MessageReplyReceiver.java | 22 import android.content.Intent; 40 public void onReceive(Context context, Intent intent) { 41 if (MessagingService.REPLY_ACTION.equals(intent.getAction())) { 42 int conversationId = intent.getIntExtra(MessagingService.CONVERSATION_ID, -1); 43 CharSequence reply = getMessageText(intent); 64 * Get the message text from the intent. 65 * Note that you should call {@code RemoteInput#getResultsFromIntent(intent)} to process 68 private CharSequence getMessageText(Intent intent) { [all...] |
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/provider/ |
ComplicationToggleReceiver.java | 22 import android.content.Intent; 44 public void onReceive(Context context, Intent intent) { 45 Bundle extras = intent.getExtras(); 68 * Returns a pending intent, suitable for use as a tap intent, that causes a complication to be 73 Intent intent = new Intent(context, ComplicationToggleReceiver.class); local 74 intent.putExtra(EXTRA_PROVIDER_COMPONENT, provider) [all...] |
/developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/ui/ |
DetailActivity.java | 22 import android.content.Intent; 42 Intent intent = getLaunchIntent(activity, attraction); local 46 ActivityCompat.startActivity(activity, intent, options.toBundle()); 48 activity.startActivity(intent); 52 public static Intent getLaunchIntent(Context context, String attraction) { 53 Intent intent = new Intent(context, DetailActivity.class); local 54 intent.putExtra(EXTRA_ATTRACTION, attraction) [all...] |
/developers/samples/android/notification/MessagingService/Application/src/main/java/com/example/android/messagingservice/ |
MessageReplyReceiver.java | 22 import android.content.Intent; 40 public void onReceive(Context context, Intent intent) { 41 if (MessagingService.REPLY_ACTION.equals(intent.getAction())) { 42 int conversationId = intent.getIntExtra(MessagingService.CONVERSATION_ID, -1); 43 CharSequence reply = getMessageText(intent); 64 * Get the message text from the intent. 65 * Note that you should call {@code RemoteInput#getResultsFromIntent(intent)} to process 68 private CharSequence getMessageText(Intent intent) { [all...] |