utils: add Enum method.

BUG=none
TEST=make test; make lint

Change-Id: I87e7cddf54d8d2b1b27b3dae9404a99a95d66811
2 files changed