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

Commit 3a47293c authored by Nathan Harold's avatar Nathan Harold
Browse files

Remove Deprecated-At-Birth APIs from PDCS

Two APIs were added as @SystemApi and then @Deprecated within
the same API level (RVC). These methods were never exposed
publicly, and instead were replaced with more-appropriate
named methods that were added to the public API. As such they
were not fully deleted in RVC but were never exposed and expected
to be deleted following SDK finalization. This CL does precisely
that - removes all traces of these methods, as per the will of
the API Council.

-Remove #getDataConnectionLinkProperties()
-Remove #getDataConnectionNetworkType()

Bug: 152787887
Test: make update-api && make
Change-Id: I89463b0bd641e9316f90fe4f535d326f6e74a061
parent 04681489
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -180,11 +180,6 @@ package android.telecom {

package android.telephony {

  public final class PreciseDataConnectionState implements android.os.Parcelable {
    method @Deprecated @Nullable public android.net.LinkProperties getDataConnectionLinkProperties();
    method @Deprecated public int getDataConnectionNetworkType();
  }

  public class TelephonyManager {
    method @Deprecated @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void answerRingingCall();
    method @Deprecated @RequiresPermission(android.Manifest.permission.CALL_PHONE) public boolean endCall();
+0 −1
Original line number Diff line number Diff line
@@ -18839,7 +18839,6 @@ HSPLandroid/telephony/PreciseDataConnectionState;-><init>(Landroid/os/Parcel;)V
HSPLandroid/telephony/PreciseDataConnectionState;-><init>(Landroid/os/Parcel;Landroid/telephony/PreciseDataConnectionState$1;)V
HPLandroid/telephony/PreciseDataConnectionState;->equals(Ljava/lang/Object;)Z
HPLandroid/telephony/PreciseDataConnectionState;->getDataConnectionApn()Ljava/lang/String;
HPLandroid/telephony/PreciseDataConnectionState;->getDataConnectionLinkProperties()Landroid/net/LinkProperties;
HPLandroid/telephony/PreciseDataConnectionState;->getNetworkType()I
HPLandroid/telephony/PreciseDataConnectionState;->getState()I
HSPLandroid/telephony/PreciseDataConnectionState;->toString()Ljava/lang/String;
+0 −5
Original line number Diff line number Diff line
@@ -165,11 +165,6 @@ package android.telecom {

package android.telephony {

  public final class PreciseDataConnectionState implements android.os.Parcelable {
    method @Deprecated @Nullable public android.net.LinkProperties getDataConnectionLinkProperties();
    method @Deprecated public int getDataConnectionNetworkType();
  }

  public class TelephonyManager {
    method @Deprecated @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void answerRingingCall();
    method @Deprecated @RequiresPermission(android.Manifest.permission.CALL_PHONE) public boolean endCall();
+1 −1
Original line number Diff line number Diff line
@@ -1707,7 +1707,7 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
            apn = preciseState.getDataConnectionApn();
            state = preciseState.getState();
            networkType = preciseState.getNetworkType();
            linkProps = preciseState.getDataConnectionLinkProperties();
            linkProps = preciseState.getLinkProperties();
        }
        if (VDBG) {
            log("notifyDataConnectionForSubscriber: subId=" + subId
+0 −5
Original line number Diff line number Diff line
// Signature format: 2.0
package android.telephony {

  public final class PreciseDataConnectionState implements android.os.Parcelable {
    method @Deprecated @Nullable public android.net.LinkProperties getDataConnectionLinkProperties();
    method @Deprecated public int getDataConnectionNetworkType();
  }

  public class TelephonyManager {
    method @Deprecated @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void answerRingingCall();
    method @Deprecated @RequiresPermission(android.Manifest.permission.CALL_PHONE) public boolean endCall();
Loading