| Aaron Huang | 2e778ee | 2022-01-06 19:30:43 +0800 | [diff] [blame] | 1 | // Baseline format: 1.0 | 
| Junyu Lai | eb6f4be | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 2 | BannedThrow: android.app.usage.NetworkStatsManager#queryDetails(int, String, long, long): | 
|  | 3 | Methods must not mention RuntimeException subclasses in throws clauses (was `java.lang.SecurityException`) | 
|  | 4 | BannedThrow: android.app.usage.NetworkStatsManager#queryDetailsForUid(int, String, long, long, int): | 
|  | 5 | Methods must not mention RuntimeException subclasses in throws clauses (was `java.lang.SecurityException`) | 
|  | 6 | BannedThrow: 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`) | 
|  | 8 | BannedThrow: 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`) | 
|  | 10 | BannedThrow: android.app.usage.NetworkStatsManager#querySummary(int, String, long, long): | 
|  | 11 | Methods must not mention RuntimeException subclasses in throws clauses (was `java.lang.SecurityException`) | 
|  | 12 | BannedThrow: android.app.usage.NetworkStatsManager#querySummaryForDevice(int, String, long, long): | 
|  | 13 | Methods must not mention RuntimeException subclasses in throws clauses (was `java.lang.SecurityException`) | 
|  | 14 | BannedThrow: 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 |  | 
|  | 18 | BuilderSetStyle: 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 |  | 
|  | 22 | EqualsAndHashCode: android.net.IpSecTransform#equals(Object): | 
|  | 23 | Must override both equals and hashCode; missing one in android.net.IpSecTransform | 
|  | 24 |  | 
|  | 25 |  | 
|  | 26 | ExecutorRegistration: 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 |  | 
|  | 30 | GenericException: android.app.usage.NetworkStats#finalize(): | 
|  | 31 | Methods must not throw generic exceptions (`java.lang.Throwable`) | 
| Aaron Huang | 2e778ee | 2022-01-06 19:30:43 +0800 | [diff] [blame] | 32 | GenericException: android.net.IpSecManager.SecurityParameterIndex#finalize(): | 
|  | 33 | Methods must not throw generic exceptions (`java.lang.Throwable`) | 
|  | 34 | GenericException: android.net.IpSecManager.UdpEncapsulationSocket#finalize(): | 
|  | 35 | Methods must not throw generic exceptions (`java.lang.Throwable`) | 
|  | 36 | GenericException: android.net.IpSecTransform#finalize(): | 
|  | 37 | Methods must not throw generic exceptions (`java.lang.Throwable`) | 
| Junyu Lai | eb6f4be | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 38 |  | 
|  | 39 |  | 
|  | 40 | MissingBuildMethod: android.net.IpSecTransform.Builder: | 
|  | 41 | android.net.IpSecTransform.Builder does not declare a `build()` method, but builder classes are expected to | 
|  | 42 |  | 
|  | 43 |  | 
| Junyu Lai | eb6f4be | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 44 | MissingNullability: android.app.usage.NetworkStatsManager#queryDetails(int, String, long, long): | 
|  | 45 | Missing nullability on method `queryDetails` return | 
| Junyu Lai | eb6f4be | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 46 | MissingNullability: android.app.usage.NetworkStatsManager#querySummary(int, String, long, long): | 
|  | 47 | Missing nullability on method `querySummary` return | 
| Junyu Lai | eb6f4be | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 48 | MissingNullability: android.app.usage.NetworkStatsManager#querySummaryForDevice(int, String, long, long): | 
|  | 49 | Missing nullability on method `querySummaryForDevice` return | 
| Junyu Lai | eb6f4be | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 50 | MissingNullability: android.app.usage.NetworkStatsManager#querySummaryForUser(int, String, long, long): | 
|  | 51 | Missing nullability on method `querySummaryForUser` return | 
| Junyu Lai | eb6f4be | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 52 | MissingNullability: android.net.IpSecAlgorithm#writeToParcel(android.os.Parcel, int) parameter #0: | 
|  | 53 | Missing nullability on parameter `out` in method `writeToParcel` | 
|  | 54 | MissingNullability: android.net.IpSecManager.UdpEncapsulationSocket#getFileDescriptor(): | 
|  | 55 | Missing nullability on method `getFileDescriptor` return | 
| Junyu Lai | eb6f4be | 2022-01-17 11:52:57 +0000 | [diff] [blame] | 56 |  | 
|  | 57 |  | 
|  | 58 | RethrowRemoteException: 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) | 
|  | 60 | RethrowRemoteException: 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) | 
|  | 62 | RethrowRemoteException: 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) | 
|  | 64 | RethrowRemoteException: 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 |  | 
|  | 68 | StaticFinalBuilder: android.net.IpSecTransform.Builder: | 
|  | 69 | Builder must be final: android.net.IpSecTransform.Builder | 
|  | 70 |  | 
|  | 71 |  | 
|  | 72 | StaticUtils: android.net.TrafficStats: | 
|  | 73 | Fully-static utility classes must not have constructor | 
|  | 74 |  | 
|  | 75 |  | 
|  | 76 | UseParcelFileDescriptor: 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) | 
|  | 78 | UseParcelFileDescriptor: 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) | 
|  | 80 | UseParcelFileDescriptor: android.net.IpSecManager.UdpEncapsulationSocket#getFileDescriptor(): | 
|  | 81 | Must use ParcelFileDescriptor instead of FileDescriptor in method android.net.IpSecManager.UdpEncapsulationSocket.getFileDescriptor() | 
|  | 82 | UseParcelFileDescriptor: 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) | 
|  | 84 | UseParcelFileDescriptor: 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) | 
|  | 86 | UseParcelFileDescriptor: 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) | 
|  | 88 | UseParcelFileDescriptor: 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) |