summaryrefslogtreecommitdiff
path: root/framework-t/src/android/net/DataUsageRequest.java
diff options
context:
space:
mode:
authorXiao Ma <xiaom@google.com>2022-01-30 11:27:16 +0000
committerLorenzo Colitti <lorenzo@google.com>2022-02-11 18:50:04 +0900
commit11170dd9ef00ec57b85772494be1dd1c75b24f1a (patch)
tree874fbf34e7ecaba8f5cba74dbd52ad20b65919b6 /framework-t/src/android/net/DataUsageRequest.java
parentca0be94009194dbcae8023d7ac738501aedd5037 (diff)
Expose EthernetManager state and control APIs.
This CL exposes EthernetManager APIs that settings and other system components can use to modify and monitor Ethernet state. The new APIs are similar to the existing @hide methods but pass on more information and meet API guidelines: 1. Add an InterfaceStateListener interface, and addInterfaceStateListener and removeInterfaceStateListener methods that meet API guidelines (e.g., take Executor, take SAM parameter last, etc.) This new listener passes interface state (absent, up, down), role (client or server) and IP configuration. 2. Implement the legacy Listener type as a subinterface of the new interface. Hopefully existing callers should be able to use it unchanged. 3. Expose setIncludeTestInterfaces as module-lib api instead of TestApi, since modules cannot expose TestApi methods. Bug: 210586283 Test: m Test: atest EthernetServiceTests Test: atest EthernetTetheringTest Change-Id: I88240a546ab51d128ed83775499f2bcabab74db0 Merged-In: I88240a546ab51d128ed83775499f2bcabab74db0
Diffstat (limited to 'framework-t/src/android/net/DataUsageRequest.java')
0 files changed, 0 insertions, 0 deletions