commit | d2457a3ee39ea55ed8e302bd93feede793cb5055 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Thu Feb 18 00:32:44 2016 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Feb 19 10:26:55 2016 +0900 |
tree | 520c8a63a05c9ab0d27cf2f4a54fcfcec37563d6 | |
parent | 0d0f0c7faf530a0fa5595dd539c3f56afeb6603a [diff] |
Add a MessageUtils class to convert int constants to strings. This class uses reflection to find accessible static integer members in a specified list of classes and returns a SparseArray mapping the integers to their names. This will allow us to replace various 400-line switch statements with a simple array access. Change-Id: I3607e6389a423cde0bd83270c00b3c863ae1bb29