Add equality operator for state checking

Bug: 63710530
Test: compile
Change-Id: I8e9f875def10ad09dae1d647fca078f0243c6b96
2 files changed