Revert "Revert "Unhide RouteInfo#getType and related fields""

This reverts commit 6d1ea2bb16.

Reason for revert: Re-landing changes not related to postsubmit failure

Change-Id: If7940801518be5ddec91270b3663ddfc8b42eadb
This commit is contained in:
Taras Antoshchuk
2021-12-19 11:51:39 +00:00
parent 6d1ea2bb16
commit 2b3d62f3e9
4 changed files with 32 additions and 13 deletions

View File

@@ -86,16 +86,26 @@ public final class RouteInfo implements Parcelable {
private final String mInterface;
/** Unicast route. @hide */
@SystemApi
/**
* Unicast route.
*
* Indicates that destination is reachable directly or via gateway.
**/
public static final int RTN_UNICAST = 1;
/** Unreachable route. @hide */
@SystemApi
/**
* Unreachable route.
*
* Indicates that destination is unreachable.
**/
public static final int RTN_UNREACHABLE = 7;
/** Throw route. @hide */
@SystemApi
/**
* Throw route.
*
* Indicates that routing information about this destination is not in this table.
* Routing lookup should continue in another table.
**/
public static final int RTN_THROW = 9;
/**
@@ -391,10 +401,7 @@ public final class RouteInfo implements Parcelable {
* Retrieves the type of this route.
*
* @return The type of this route; one of the {@code RTN_xxx} constants defined in this class.
*
* @hide
*/
@SystemApi
@RouteType
public int getType() {
return mType;