summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Caitlin Shkuratov <caitlinshk@google.com> 2024-09-05 16:36:50 +0000
committer Caitlin Shkuratov <caitlinshk@google.com> 2024-09-09 19:39:08 +0000
commit1a5478a70933cb1fc04fb16dc42b76da6dbf4d38 (patch)
treee706786f30702c14dd18b39f25aa72803537a3f2 /api/api.go
parentae8b2ea9df6932dfd1ec27681e4e873fb80db047 (diff)
[SB][Wifi] More protection against invalid values from WifiTrackerLib.
This change creates new factory methods for WifiNetworkModel.Active and WifiNetworkModel.CarrierMerged that will ensure the parameters are valid before creating the object. This means that WifiRepositoryImpl doesn't need to save the level or subscription ID to local variables. Most of the diffs in this change is converting all WifiNetworkModel clients to use the factory method instead of the normal constructor (the normal constructor is now private). Bug: 362384551 Flag: EXEMPT bugfix Test: atest WifiRepositoryImplTest Change-Id: Id295c2ecb15bc7a1931661b887a25ca4dd993927
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions