commit | e949039081b08626590be9783c85f358955e1b82 | [log] [tgz] |
---|---|---|
author | Christopher Wiley <wiley@google.com> | Thu May 26 15:57:29 2016 -0700 |
committer | Christopher Wiley <wiley@google.com> | Tue Jun 07 09:32:43 2016 -0700 |
tree | e09211593d4f0bde678a34bf8d94fb108b2f9802 | |
parent | e10bfc0ee67ffe72b75969139b738c66eaa1d66a [diff] |
Use an ArrayMap instead of HashMap to track tether interfaces ( cherry-pick of 36f6f4e394750e4989d78f38a31ab8f2f66c07f7 ) Since the number of tetherable interfaces should be small (e.g. <10), the computational cost of a looking up objects in an ArrayMap is negligible, and the memory required is less than a HashMap. While here, remove some unused imports. Change-Id: I3fb7091cfb93697d2fc6388b843d60f7e8e7e1a6 Test: Compiles.