Expose measurement results to interested callers.
With this it's possible for callers to: Network network = ... LinkProperties lp = ... NetworkDiagnostics netdiag = new NetworkDiagnostics(network, lp, 5000); netdiag.startMeasurements(); netdiag.waitForMeasurements(); boolean result = true; for (Measurement m : netdiag.getMeasurements()) { if (!m.checkSucceeded()) { result = false; // Additional error handling here. } } return result; Bug: 21832299 Bug: 26780890 Change-Id: Iaf7ff029e2c6a998b574c23d0dcde8d57a467a22
Loading
Please register or sign in to comment