Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b027694 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Document Telephony PendingIntent creation.

Document some pending intents created in Telephony.

Test: Docs only change.
Fixes: 155916100
Bug: 155094269
Change-Id: I08eba30fd68cea818abfa8037f9d9c69cc4ef5ae
parent 7c0ba434
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1845,6 +1845,9 @@ public class SubscriptionController extends ISub.Stub {
                EuiccManager euiccManager = ((EuiccManager)
                        mContext.getSystemService(Context.EUICC_SERVICE)).createForCardId(cardId);
                euiccManager.updateSubscriptionNickname(subId, displayName,
                        // This PendingIntent simply fulfills the requirement to pass in a callback;
                        // we don't care about the result (hence 0 requestCode and no action
                        // specified on the intent).
                        PendingIntent.getService(
                            mContext, 0 /* requestCode */, new Intent(), 0 /* flags */));
            }
+5 −0
Original line number Diff line number Diff line
@@ -1882,6 +1882,9 @@ public class ImsPhone extends ImsPhoneBase {
                        intent.getCharSequenceExtra(EXTRA_KEY_NOTIFICATION_MESSAGE);

                Intent resultIntent = new Intent(Intent.ACTION_MAIN);
                // Note: If the classname below is ever removed, the call to
                // PendingIntent.getActivity should also specify FLAG_IMMUTABLE to ensure the
                // pending intent cannot be tampered with.
                resultIntent.setClassName("com.android.settings",
                        "com.android.settings.Settings$WifiCallingSettingsActivity");
                resultIntent.putExtra(EXTRA_KEY_ALERT_SHOW, true);
@@ -1892,6 +1895,8 @@ public class ImsPhone extends ImsPhoneBase {
                                mContext,
                                0,
                                resultIntent,
                                // Note: Since resultIntent above specifies an explicit class name
                                // we do not need to specify PendingIntent.FLAG_IMMUTABLE here.
                                PendingIntent.FLAG_UPDATE_CURRENT
                        );