summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorDaichi Hirono <hirono@google.com>2016-03-14 21:49:14 +0900
committerDaichi Hirono <hirono@google.com>2016-03-15 11:35:34 +0900
commitacb0e27bb33e373f1c42d6e2ef9344169cae96f0 (patch)
tree24dbae73fd22691b26f12cfe364d4d9c47f10fda /tools/aapt2/java/JavaClassGenerator.cpp
parent62006a72a66ddc5849b28d7ceaaa304b66aa3dc9 (diff)
Regard timeout as an error in the MtpDocumentsProvider test.
Previously if DocumentsProvider found timeout when terminatnig RootScanner's background thread, it just output it in error log. Thus the timeout is not regarded as an error in MtpDocumentsProviderTest, and it makes flaky PipeManagerTest which runs just after MtpDocumentsProviderTest. The CL * lets MtpDocumentsProvider throw TimeoutException for timeout. * removes redundant resumeRootScanner calls to avoid timeout of RootScanner#pause. Also the CL did cleanup the logic that pauses RootScanner when we don't find any devices. Previously the logic was in MtpDocumentsProvider#closeInternal but it is not efficient because we invokes RootScanner#resume just after MtpDocumentsProvider#closeInternal. Now the CL moves the logic to RootScanner so that it can pause itself automatically. BUG=27638500 Change-Id: Ic11bca67c099cbb0f46679db2f035988045d67d6
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions