Merge "[CS] Allow network factory implementations to re-evaluate requests" into oc-mr1-dev

am: 19f12028b7

Change-Id: I2a99242470c37ca423221ff31e2fdd72ea53d4f1
This commit is contained in:
Etan Cohen
2017-08-24 19:54:06 +00:00
committed by android-build-merger

View File

@@ -254,6 +254,16 @@ public class NetworkFactory extends Handler {
}
}
/**
* Post a command, on this NetworkFactory Handler, to re-evaluate all
* oustanding requests. Can be called from a factory implementation.
*/
protected void reevaluateAllRequests() {
post(() -> {
evalRequests();
});
}
// override to do simple mode (request independent)
protected void startNetwork() { }
protected void stopNetwork() { }