author | Yifan Hong <elsk@google.com> | |
Tue, 2 Oct 2018 21:11:35 +0000 (14:11 -0700) | ||
committer | Yifan Hong <elsk@google.com> | |
Tue, 2 Oct 2018 21:30:03 +0000 (14:30 -0700) | ||
commit | e9fc235eb4c238e3f9e43a5e8d2e9e30f567ffce | |
tree | 4062469057e3226fc10e730af61394ed1d277a3f | tree | snapshot (tar.xz tar.gz zip) |
parent | a46c0dae812d59d5f40d7293724e1d99909fdb34 | commit | diff |
health: registerCallback() and getHealthInfo() does not notify all callbacks
registerCallback() and getHealthInfo() unintentionally broadcast
health info to all callbacks, which has a performance impact.
* registerCallback() still invokes the new callback immediately
* getHealthInfo() does not call any callbacks at all.
Test: VTS test call getHealthInfo does not invoke update()
Bug: 117167903
Change-Id: Ida99fdd73831e747fbf2d65089c7c0e7661fe7c4
registerCallback() and getHealthInfo() unintentionally broadcast
health info to all callbacks, which has a performance impact.
* registerCallback() still invokes the new callback immediately
* getHealthInfo() does not call any callbacks at all.
Test: VTS test call getHealthInfo does not invoke update()
Bug: 117167903
Change-Id: Ida99fdd73831e747fbf2d65089c7c0e7661fe7c4
health/2.0/default/Health.cpp | diff | blob | history | |
health/2.0/default/include/health2/Health.h | diff | blob | history |