android dumpstate grammar and test code 1st commit