Commit Graph

8 Commits

Author SHA1 Message Date
Aurimas Liutikas
00be951a08 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-30 00:14:44 +00:00
Michele Berionne
38d78c1f7b Merge "Remove @hide from builder of CarrierRestrictionRules" am: 0299ff6fa5
am: f4e40a5cc0

Change-Id: I6c400bce18f28f9422e170b4064dde991bcc731f
2019-04-11 10:35:31 -07:00
Michele
e111540709 Remove @hide from builder of CarrierRestrictionRules
Remove @hide from builder of CarrierRestrictionRules class.

Bug: 124325937
Test: compilation

Change-Id: If05e7d950b6737a6bb92af962816c7cbc36b00d1
2019-04-10 15:37:59 -07:00
Michele Berionne
475f8da097 Merge "Changes to APIs for CarrierRestrictionRules class" am: 6d9dd94da0 am: 5654a52322
am: 3d35392cee

Change-Id: Iadbe8373de40af780de89beba3b8a393deb8e1e6
2019-03-04 11:52:30 -08:00
Michele
9a7b0638ca Changes to APIs for CarrierRestrictionRules class
Add @NonNull annotation where applicable.
Rename isCarrierIdentifiersAllowed into areCarrierIdentifiersAllowed.
Make Builder class final.

Bug: 126375826
Bug: 126699079
Bug: 126700761
Test: Compilation
Change-Id: I1a02bc007f147597df97eaa55c00fd31a952870b
2019-03-04 10:59:42 -08:00
Jeff Sharkey
9e8f83db6d All Parcelable CREATOR fields are @NonNull.
If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
2019-02-28 23:29:04 -07:00
Michele
a10f9e82f7 Add API to check if a SIM card matches carrier restrictions.
Add API to check if one SIM card or a combination of SIM cards for
multisim devices is allowed on the terminal, based on the existing
carrier restriction rules.

Bug: 123939943
Test: added test cases for the new API
Change-Id: Ieaa3c25da75e04e2acb3b169e10638d967732f99
2019-02-07 16:02:49 -08:00
Michele Berionne
a4a1ae499d Carrier restriction enhancements for Android Q
Add support for dual SIM to carrier restrictions.
Add support to exclude specific carriers in the list of carrier
restrictions.

Bug: 120313541
Test: Created test application to verify correct functionality.
Test: Added test cases for CarrierRestrictionRules.
Change-Id: I2723fb07db13efdafbc74471a87182e2d2a32718
Merged-In: I2723fb07db13efdafbc74471a87182e2d2a32718
2019-01-18 22:37:12 +00:00