Also adds a requireNonNull check for the extras in NetworkProviderInfo.
Bug: 274133298
Test: sharedconnectivity cts tests
Change-Id: If50bedf4f764f0850f259c9001f50aca7c8e96b5
When resource string for the shared connectivity service or intent
are empty, the create method now returns null instead of creating
the manager.
Bug: 277383431
Test: atest SharedConnectivityManagerTest
Change-Id: Ib192821ed2311fb80689cef3c9adc31bf2c21f5b
Calling bind in the first callback register and unbind when all
callbackswere unregistered.
Bug: 268743334
Test: atest SharedConnectiviyManagerTest
Change-Id: Ib37c5d26a575813588d930026acfc48fef68091f
Made sure all extras are non-null on all data classes.
Bug: 273606522
Test: atest HotspotNetworkTest KnownNetworkTest NetworkProviderInfoTest
Change-Id: Ieb393bfd8868fbde38a4699b0c78e98df4bb42a8
Added methods and flags to check what level of funcionality
the service supports.
Added flags to enable instant tether and nearby Wi-Fi. The flags
will be enabled in an overlay file based on the level of UI
support by the OEM. The service checks the flags and provides
an API to allow the API's client to decide what level
of functionality to provide.
Also fixed the naming of flags.
Bug: 271934662
Test: atest SharedConnectivityServiceTest
Change-Id: Ifba6b73904862dfdc58741856e8b940ae6d6634b
Per API review comment, changed getters for hotspot and
known network to return null on failure.
Fixed tests to correspond to the fix.
Bug: 271178371
Test: atest SharedConnectivityManagerTest
Change-Id: I6a1aac661d1d0f7a730d52a1ee92fd6ea2705cf5
Renamed TetherNetwork to HotspotNetwork and replaced all usage
of Tether with Hotspot.
Renamed DeviceInfo to NetworkProviderInfo.
Added DEVICE_TYPE_WATCH and DEVICE_TYPE_AUTO for futureproofing
in NetworkProviderInfo.java
Bug: 268486125
Test: atest (all affected test classes)
Change-Id: I889457f02322644f3779bf25c3a125f7f973c69c
Also fixed all test classes to support Truth and added
hashcode verification too.
Bug: 270700093, 270697412
Test: atest KnownNetworkTest TetherNetworkTest
Change-Id: If01e72bffa3297c4d34a32639c4211c4d8ee191b
Moved to manage callbacks with RemoteCallbackList and removed
DeathRecipient implementation since RemoteCallbackList is doing it
already.
Bug: 268742027
Test: atest SharedConnectivityServiceTest
Change-Id: I30dd49580df423bb484bc13fc91d0d7081ec02a7
Set default values for the getters' data.
Bug: 270583470, 270487088
Test: atest SharedConnectivityServiceTest
Change-Id: Iae62abbc87258c9d596d2458f96c7a38bcd602c8
Previously, the Handler couldn't be built because we tried to call
getMainLooper() before the Service's base context was attached.
Bug: 268741053
API-Coverage-Bug: 265968015
Test: atest SharedConnectivityServiceTest
Change-Id: I70caac89ca69545e62b177872ef144b031cc4846
Including some fixes to documentation and annotations.
Bug: 267765640, 268486125
API-Coverage-Bug: 265968015
Test: atest SharedConnectivityManagerTest
Change-Id: I0e7113aa621f3086573a01dc4bd70c7e9dfe3227
Set PNO scan iterations and interval multiplier as variables and
get them from modules instead of hard coding.
Create related APIs for PNO scan iterations and interval multiplier.
Co-authored-by: Ziwen Xiao <Ziwen.Xiao@sony.com>
Test: manual test
Bug: 208172490
Change-Id: Iab7f80c9462e3facf15d8ec5a03b2f2560d48b4d