diff options
author | yangyankai1 <yangyankai1@xiaomi.com> | 2020-10-12 15:13:24 +0800 |
---|---|---|
committer | yangyankai1 <yangyankai1@xiaomi.com> | 2020-10-12 15:13:24 +0800 |
commit | ea86d71308fad8e05398f653034e1714b2b98e28 (patch) | |
tree | bae24d5d8ffe31302bc044c602f85534058cc91f /cmds/idmap2/libidmap2/BinaryStreamVisitor.cpp | |
parent | 19189d886b32928e9da0c96108310a42c0db2c1f (diff) |
AutoBrightness: Remove handler's messages before send.
The contentprovider's callback 'onChange(...)' is asynchronous.
If one app set the 'screen_brightness' provider frequently over a period of time,
the contentprovider's 'onChange(...)' can't stop, just like 'Self-exciting oscillation'.
So, We need remove handler's messages before send.
Test: build pass, feature pass.
TestCase: set the 'screen_brightness' provider frequently, can use a
loop: for(i=0;i<1000;i++){put(...)}.
Signed-off-by: yangyankai1 <yangyankai1@xiaomi.com>
Change-Id: I346696c69623829d4dda372edaf35b6e3f147780
Diffstat (limited to 'cmds/idmap2/libidmap2/BinaryStreamVisitor.cpp')
0 files changed, 0 insertions, 0 deletions