Reland #2: Android: Replace ConcurrentHashMap usage with manual lock.
ConcurrentHashMap has a bug on L.
* Also adds a checkstyle check to prevent future uses.
* Also adds @AnyThread / @MainThread to all public methods
Previously reverted in ab41c2866ed57abc1f778496440e84a7023a787c.
Reason for reland: Fixed toolchain issue (crbug.com/693079)
Change since previous land:
* Optimizations so that we're now removing some methods rather than
adding some (which the previous land did).
Reviewed-by: Paul Jensen <email@example.com>
Reviewed-by: Tibor Goldschwendt <firstname.lastname@example.org>
Commit-Queue: agrieve <email@example.com>
1 file changed