summaryrefslogtreecommitdiff
path: root/libs/input/PointerControllerContext.cpp
diff options
context:
space:
mode:
author Evan Laird <evanlaird@google.com> 2024-04-26 12:35:11 -0400
committer Evan Laird <evanlaird@google.com> 2024-04-26 20:15:08 +0000
commit6da4eef8184679a156993fedd3f06800b7b69577 (patch)
tree986569a09d3254ac0d3c897dab3852cd1f94b3c5 /libs/input/PointerControllerContext.cpp
parentf34e83cab03416f512bfd78af5b5ba2d54c5752f (diff)
[Sat] Use new TelephonyCallback instead of ServiceState
Previously, we were using `ServiceState.isUsingNonTerrestrialNetwork` to know if a given mobile connection was using satellite (non-terrestrial). This single bit was insufficient though, given that there are carrier requirements for hysteresis when losing the connection. This new TelephonyCallback.CarrierRoamingNtnModeListener surfaces the same information as `isUsingNonTerrestrialNetwork`, but it also embeds the hysteresis information along with it. So we should be able to use this single bit instead of modeling the hysteresis ourselves. Test: tests in statusbar/pipeline/mobile Test: demo mode using `-e ntn true` mobile command Bug: 337103875 Flag: NONE Change-Id: Id003d57662c682bab150795782827f600063243e (cherry picked from commit 7940c14e6a89930496d833804b7eee0d9f010fd3)
Diffstat (limited to 'libs/input/PointerControllerContext.cpp')
0 files changed, 0 insertions, 0 deletions