Deprecate type name proto dump

Stop dumping type name string into proto and use the type number
instead.

For CTS purpose, exposet the toString to CTS as a test API.

Test: m cts
Test: winscope
Bug: 311548419
Change-Id: I793c1273861f60be82e780165c3ec89702cf7145
8 files changed