Merge changes from topic "ns05" into sc-dev

* changes:
  [NS06] Implement the don't-reap mechanism
  [NS05] Feed network offer callbacks
This commit is contained in:
Chalard Jean
2021-03-26 05:07:39 +00:00
committed by Android (Google) Code Review
5 changed files with 76 additions and 21 deletions

View File

@@ -3345,7 +3345,7 @@ public class ConnectivityManager {
* @param score The prospective score of the network.
* @param caps The prospective capabilities of the network.
* @param callback The callback to call when this offer is needed or unneeded.
* @hide
* @hide exposed via the NetworkProvider class.
*/
@RequiresPermission(anyOf = {
NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
@@ -3368,7 +3368,7 @@ public class ConnectivityManager {
*
* @param callback The callback passed at registration time. This must be the same object
* that was passed to {@link #offerNetwork}
* @hide
* @hide exposed via the NetworkProvider class.
*/
public void unofferNetwork(@NonNull final INetworkOfferCallback callback) {
try {