summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorFyodor Kupolov <fkupolov@google.com>2017-08-21 16:07:14 -0700
committerFyodor Kupolov <fkupolov@google.com>2017-08-29 16:20:51 -0700
commit807e6508c48067b9e6aa893fed95008af0d51b38 (patch)
treefc189df2b4498a5b1de8b2f25d8b505e245066eb /tools/aapt2/java/JavaClassGenerator_test.cpp
parentdd0f38c8423cace05fa75defc153d9610ee0998d (diff)
Report only missing user switching callbacks
Right now we Slog.wtf all callbacks that occur after USER_SWITCH_TIMEOUT It adds noise, especially for slower devices. And in most cases, the error is not actionable. This change continues to log errors for all timeouts, but use wtf only when callback was never called (or took significantly more than USER_SWITCH_TIMEOUT). This is enforced through additional timeout mechanism which is triggered 5 seconds after the first timeout, but doesn't prevent device from switching the user. Test: simulating timeout by adding artificial delay in one of listeners Bug: 64725373 Change-Id: I397bdfdf463bd7ba74fa9a983c6fcafc9e8b6a54
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions