Warn when offload is verified to be started

This commit is contained in:
Mygod
2020-05-28 15:11:45 -04:00
parent 4447dfd86e
commit 547815ffaf
2 changed files with 17 additions and 0 deletions

View File

@@ -86,10 +86,13 @@ object TetheringManager {
const val EXTRA_ERRORED_TETHER = "erroredArray"
/** Tethering offload status is stopped. */
@RequiresApi(30)
const val TETHER_HARDWARE_OFFLOAD_STOPPED = 0
/** Tethering offload status is started. */
@RequiresApi(30)
const val TETHER_HARDWARE_OFFLOAD_STARTED = 1
/** Fail to start tethering offload. */
@RequiresApi(30)
const val TETHER_HARDWARE_OFFLOAD_FAILED = 2
// tethering types supported by enableTetheringInternal: https://android.googlesource.com/platform/frameworks/base/+/5d36f01/packages/Tethering/src/com/android/networkstack/tethering/Tethering.java#549