commit | e0f2f3d85dac3dea8d88ab4f078910770d125dbe | [log] [tgz] |
---|---|---|
author | JW Wang <wangchun@google.com> | Tue Sep 10 15:06:43 2019 +0800 |
committer | JW Wang <wangchun@google.com> | Tue Sep 17 21:07:17 2019 +0800 |
tree | d0d2ea1b9277b58594284757d5a6a5660c5f700a | |
parent | e4828cb97c43c0bdc06cfbc88b0e97ee62f2e970 [diff] |
Use a default value in case of an invalid parameter Since startObservingHealth is called during boot, it is less desirable to cause boot loops by an uncaught exception. We will fall back to DEFAULT_OBSERVING_DURATION_MS when invalid durationMs is passed. See b/140780361 for more details about the design decision. Bug: 140780361 Test: atest PackageWatchdogTest Change-Id: I2bcbecb2dc4c2448ef697001dd93aea5f50f9dbf