Home | History | Annotate | Download | only in phone

Lines Matching refs:intent

21 import android.content.Intent;
41 // Extra on intent containing the id of a subscription.
44 // Extra on intent containing the label of a subscription.
54 * Instantiates the helper, by extracting the subscription id and label from the intent.
56 public SubscriptionInfoHelper(Context context, Intent intent) {
59 intent.getParcelableExtra(TelephonyManager.EXTRA_PHONE_ACCOUNT_HANDLE);
64 mSubId = intent.getIntExtra(SUB_ID_EXTRA, SubscriptionManager.INVALID_SUBSCRIPTION_ID);
66 mSubLabel = intent.getStringExtra(SUB_LABEL_EXTRA);
70 * @param newActivityClass The class of the activity for the intent to start.
71 * @return Intent containing extras for the subscription id and label if they exist.
73 public Intent getIntent(Class newActivityClass) {
74 Intent intent = new Intent(mContext, newActivityClass);
77 intent.putExtra(SUB_ID_EXTRA, mSubId);
81 intent.putExtra(SUB_LABEL_EXTRA, mSubLabel);
84 return intent;
87 public static void addExtrasToIntent(Intent intent, SubscriptionInfo subscription) {
92 intent.putExtra(SubscriptionInfoHelper.SUB_ID_EXTRA, subscription.getSubscriptionId());
93 intent.putExtra(