blob: 2996a3ea5f9fbafa1f6ae19790220522e1f1fde4 [file] [log] [blame]
Aaron Huang68ca3732022-01-06 19:30:43 +08001// Baseline format: 1.0
Junyu Lai2ef865e2022-01-17 11:52:57 +00002BannedThrow: 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`)
Aaron Huang68ca3732022-01-06 19:30:43 +080032GenericException: 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`)
Junyu Lai2ef865e2022-01-17 11:52:57 +000038
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
Junyu Lai2ef865e2022-01-17 11:52:57 +000044MissingNullability: android.app.usage.NetworkStatsManager#queryDetails(int, String, long, long):
45 Missing nullability on method `queryDetails` return
Junyu Lai2ef865e2022-01-17 11:52:57 +000046MissingNullability: android.app.usage.NetworkStatsManager#querySummary(int, String, long, long):
47 Missing nullability on method `querySummary` return
Junyu Lai2ef865e2022-01-17 11:52:57 +000048MissingNullability: android.app.usage.NetworkStatsManager#querySummaryForDevice(int, String, long, long):
49 Missing nullability on method `querySummaryForDevice` return
Junyu Lai2ef865e2022-01-17 11:52:57 +000050MissingNullability: android.app.usage.NetworkStatsManager#querySummaryForUser(int, String, long, long):
51 Missing nullability on method `querySummaryForUser` return
Junyu Lai2ef865e2022-01-17 11:52:57 +000052MissingNullability: 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
Junyu Lai2ef865e2022-01-17 11:52:57 +000056
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)