Add @UnsupportedAppUsage annotations for greylist.

go/cleanup-greylist-txt

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

This is partial merge of aosp/Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09. Telephony greylist cleanup has been done separately. Note that annotations outside of frameworks/base/ have been merged from AOSP.

Bug: 137350495
Test: m
Exempt-From-Owner-Approval: merge
Change-Id: I015c466e8b69cc0fed5e9d394ba865aad11d8ba6
This commit is contained in:
Artur Satayev
2019-11-15 19:12:49 +00:00
parent f7aca0ac43
commit fc03a99f74
2 changed files with 5 additions and 0 deletions

View File

@@ -1763,6 +1763,9 @@ public class ConnectivityManager {
/** @hide */
public static class PacketKeepaliveCallback {
@UnsupportedAppUsage
public PacketKeepaliveCallback() {
}
/** The requested keepalive was successfully started. */
@UnsupportedAppUsage
public void onStarted() {}

View File

@@ -111,6 +111,8 @@ public final class LinkProperties implements Parcelable {
/**
* @hide
*/
@UnsupportedAppUsage(implicitMember =
"values()[Landroid/net/LinkProperties$ProvisioningChange;")
public enum ProvisioningChange {
@UnsupportedAppUsage
STILL_NOT_PROVISIONED,