OSDN Git Service

Update PhoneStateListener#onCallStateChanged Javadoc.
authorJeff Davidson <jpd@google.com>
Fri, 10 Nov 2017 23:58:20 +0000 (15:58 -0800)
committerTyler Gunn <tgunn@google.com>
Thu, 14 Dec 2017 16:34:28 +0000 (08:34 -0800)
While the doc suggested that the phone number was "incoming" (e.g.
only populated for incoming calls), it should also be populated for
outgoing calls.

Bug: 67748129
Test: Verified expected behavior on Taimen running OC-MR1, added CTS
test (see other CL in this topic)
Change-Id: I1ddd9c042f287953358a794b91b2af5ed6f5b597
Merged-In: I1ddd9c042f287953358a794b91b2af5ed6f5b597

telephony/java/android/telephony/PhoneStateListener.java

index 9ccfa94..c7e5131 100644 (file)
@@ -408,7 +408,7 @@ public class PhoneStateListener {
     /**
      * Callback invoked when device call state changes.
      * @param state call state
-     * @param incomingNumber incoming call phone number. If application does not have
+     * @param phoneNumber call phone number. If application does not have
      * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE} permission, an empty
      * string will be passed as an argument.
      *
@@ -416,7 +416,7 @@ public class PhoneStateListener {
      * @see TelephonyManager#CALL_STATE_RINGING
      * @see TelephonyManager#CALL_STATE_OFFHOOK
      */
-    public void onCallStateChanged(int state, String incomingNumber) {
+    public void onCallStateChanged(int state, String phoneNumber) {
         // default implementation empty
     }