1// Baseline format: 1.0 2BannedThrow: android.app.usage.NetworkStatsManager#queryDetails(int, String, long, long): 3 Methods must not mention RuntimeException subclasses in throws clauses (was `java.lang.SecurityException`) 4BannedThrow: android.app.usage.NetworkStatsManager#queryDetailsForUid(int, String, long, long, int): 5 Methods must not mention RuntimeException subclasses in throws clauses (was `java.lang.SecurityException`) 6BannedThrow: android.app.usage.NetworkStatsManager#queryDetailsForUidTag(int, String, long, long, int, int): 7 Methods must not mention RuntimeException subclasses in throws clauses (was `java.lang.SecurityException`) 8BannedThrow: android.app.usage.NetworkStatsManager#queryDetailsForUidTagState(int, String, long, long, int, int, int): 9 Methods must not mention RuntimeException subclasses in throws clauses (was `java.lang.SecurityException`) 10BannedThrow: android.app.usage.NetworkStatsManager#querySummary(int, String, long, long): 11 Methods must not mention RuntimeException subclasses in throws clauses (was `java.lang.SecurityException`) 12BannedThrow: android.app.usage.NetworkStatsManager#querySummaryForDevice(int, String, long, long): 13 Methods must not mention RuntimeException subclasses in throws clauses (was `java.lang.SecurityException`) 14BannedThrow: android.app.usage.NetworkStatsManager#querySummaryForUser(int, String, long, long): 15 Methods must not mention RuntimeException subclasses in throws clauses (was `java.lang.SecurityException`) 16 17 18BuilderSetStyle: android.net.IpSecTransform.Builder#buildTransportModeTransform(java.net.InetAddress, android.net.IpSecManager.SecurityParameterIndex): 19 Builder methods names should use setFoo() / addFoo() / clearFoo() style: method android.net.IpSecTransform.Builder.buildTransportModeTransform(java.net.InetAddress,android.net.IpSecManager.SecurityParameterIndex) 20 21 22EqualsAndHashCode: android.net.IpSecTransform#equals(Object): 23 Must override both equals and hashCode; missing one in android.net.IpSecTransform 24 25 26ExecutorRegistration: android.app.usage.NetworkStatsManager#registerUsageCallback(int, String, long, android.app.usage.NetworkStatsManager.UsageCallback, android.os.Handler): 27 Registration methods should have overload that accepts delivery Executor: `registerUsageCallback` 28 29 30GenericException: android.app.usage.NetworkStats#finalize(): 31 Methods must not throw generic exceptions (`java.lang.Throwable`) 32GenericException: android.net.IpSecManager.SecurityParameterIndex#finalize(): 33 Methods must not throw generic exceptions (`java.lang.Throwable`) 34GenericException: android.net.IpSecManager.UdpEncapsulationSocket#finalize(): 35 Methods must not throw generic exceptions (`java.lang.Throwable`) 36GenericException: android.net.IpSecTransform#finalize(): 37 Methods must not throw generic exceptions (`java.lang.Throwable`) 38 39 40MissingBuildMethod: android.net.IpSecTransform.Builder: 41 android.net.IpSecTransform.Builder does not declare a `build()` method, but builder classes are expected to 42 43 44MissingNullability: android.app.usage.NetworkStatsManager#queryDetails(int, String, long, long): 45 Missing nullability on method `queryDetails` return 46MissingNullability: android.app.usage.NetworkStatsManager#querySummary(int, String, long, long): 47 Missing nullability on method `querySummary` return 48MissingNullability: android.app.usage.NetworkStatsManager#querySummaryForDevice(int, String, long, long): 49 Missing nullability on method `querySummaryForDevice` return 50MissingNullability: android.app.usage.NetworkStatsManager#querySummaryForUser(int, String, long, long): 51 Missing nullability on method `querySummaryForUser` return 52MissingNullability: android.net.IpSecAlgorithm#writeToParcel(android.os.Parcel, int) parameter #0: 53 Missing nullability on parameter `out` in method `writeToParcel` 54MissingNullability: android.net.IpSecManager.UdpEncapsulationSocket#getFileDescriptor(): 55 Missing nullability on method `getFileDescriptor` return 56 57 58RethrowRemoteException: android.app.usage.NetworkStatsManager#queryDetails(int, String, long, long): 59 Methods calling system APIs should rethrow `RemoteException` as `RuntimeException` (but do not list it in the throws clause) 60RethrowRemoteException: android.app.usage.NetworkStatsManager#querySummary(int, String, long, long): 61 Methods calling system APIs should rethrow `RemoteException` as `RuntimeException` (but do not list it in the throws clause) 62RethrowRemoteException: android.app.usage.NetworkStatsManager#querySummaryForDevice(int, String, long, long): 63 Methods calling system APIs should rethrow `RemoteException` as `RuntimeException` (but do not list it in the throws clause) 64RethrowRemoteException: android.app.usage.NetworkStatsManager#querySummaryForUser(int, String, long, long): 65 Methods calling system APIs should rethrow `RemoteException` as `RuntimeException` (but do not list it in the throws clause) 66 67 68StaticFinalBuilder: android.net.IpSecTransform.Builder: 69 Builder must be final: android.net.IpSecTransform.Builder 70 71 72StaticUtils: android.net.TrafficStats: 73 Fully-static utility classes must not have constructor 74 75 76UseParcelFileDescriptor: android.net.IpSecManager#applyTransportModeTransform(java.io.FileDescriptor, int, android.net.IpSecTransform) parameter #0: 77 Must use ParcelFileDescriptor instead of FileDescriptor in parameter socket in android.net.IpSecManager.applyTransportModeTransform(java.io.FileDescriptor socket, int direction, android.net.IpSecTransform transform) 78UseParcelFileDescriptor: android.net.IpSecManager#removeTransportModeTransforms(java.io.FileDescriptor) parameter #0: 79 Must use ParcelFileDescriptor instead of FileDescriptor in parameter socket in android.net.IpSecManager.removeTransportModeTransforms(java.io.FileDescriptor socket) 80UseParcelFileDescriptor: android.net.IpSecManager.UdpEncapsulationSocket#getFileDescriptor(): 81 Must use ParcelFileDescriptor instead of FileDescriptor in method android.net.IpSecManager.UdpEncapsulationSocket.getFileDescriptor() 82UseParcelFileDescriptor: android.net.TrafficStats#tagFileDescriptor(java.io.FileDescriptor) parameter #0: 83 Must use ParcelFileDescriptor instead of FileDescriptor in parameter fd in android.net.TrafficStats.tagFileDescriptor(java.io.FileDescriptor fd) 84UseParcelFileDescriptor: android.net.TrafficStats#untagFileDescriptor(java.io.FileDescriptor) parameter #0: 85 Must use ParcelFileDescriptor instead of FileDescriptor in parameter fd in android.net.TrafficStats.untagFileDescriptor(java.io.FileDescriptor fd) 86UseParcelFileDescriptor: com.android.server.NetworkManagementSocketTagger#tag(java.io.FileDescriptor) parameter #0: 87 Must use ParcelFileDescriptor instead of FileDescriptor in parameter fd in com.android.server.NetworkManagementSocketTagger.tag(java.io.FileDescriptor fd) 88UseParcelFileDescriptor: com.android.server.NetworkManagementSocketTagger#untag(java.io.FileDescriptor) parameter #0: 89 Must use ParcelFileDescriptor instead of FileDescriptor in parameter fd in com.android.server.NetworkManagementSocketTagger.untag(java.io.FileDescriptor fd) 90