Following API review, add @NonNull annotations to allowed* BitSets in
WifiConfiguration class.
Bug: 126702434
Test: atest WifiConfigurationTest
Change-Id: I05550f4d4677702de7ec5e3f0c8393a516c0a5e6
* changes:
p2p: add valid string documentation for network name and passphrase
p2p: rename the annotation to match the API names.
p2p: add annotation for WifiP2pConfig.Builder public API
p2p: add annotation for WifiP2pConfig.Builder public API
p2p: add annotation for WifiP2pConfig.Builder public API
... and deprecate constructors that should not be called anymore.
Test: Looked at permissions (incl 3rd party) in UI
Fixes: 126701534
Change-Id: Ic5ceb522ca75d130001add47a1a3dcb2ea8f7e8f
* Make the PhoneAccountSuggestion ctor public
* Change protection level of the bind-suggestion-service permission to
signature-only.
Fixes: 126442573
Fixes: 126442403
Test: CTS
Change-Id: Ic6d44989efd28420a5e9e7e9c365318538d140bb
As per API council script's feedback, the scripts
do not support having nullable annotations preceding
the return tupe. Moving the @NonNull annotations to a
script friendly location.
Bug: 126700393
Test: make update-api && make
&& make offline-sdk-docs (no functional change)
Change-Id: Ie063ffa2e311f4eb7d9e07cd5ee212af97d9d45d
Add a second method to the OnPropertyChangedListener which returns a
Properties object instead of a single flag. This object will hold only
one flag for now (Q) but easily supports multiple flags at a time when
we are ready to support atomic writes (R). This Properties object also
contains typed getters, so we don't force every single client to
dupliate the parsing and default value logic.
For now, the new method in the change listener has a default
implementation which calls the old method. This ensures that no one's
code is broken (because they aren't implementing the new method) and no
one's feature stops working (the old method is still being called).
This is part 1 of a 4 step migration from the single flag callback to
the new Properties callback.
Part 2 will update the OneTimeDeviceConfigListener in the gts/ repo to
override both the old and new callback methods.
Part 3 will update the DeviceConfig.OnPropertyChangedListener to provide
a default implementation for the old method instead of a default
implementation for the new method. At the same time, all implementations
of DeviceConfig.OnPropertyChangedListener in the core repo will be
updated to implement the new method instead of the old method.
Part 4 will update the OneTimeDeviceConfigListener in the gts/ repo to
override only the new callback method and delete the implementation of
the old callback method.
These 4 parts have to happen in order.
Bug: 126414261
Test: atest FrameworksCoreTests:DeviceConfigTest
Change-Id: If75bce326dcdbc38e22d95982e57ad466cbecdb6