Add phan configuration for static analysis, and fix phan warnings. `PhanDeprecatedClass` and `PhanDeprecatedFunction` rules are supressed. Bug: T179554 Change-Id: I7cbb410ed88ba58198d0557cafd9e6df968ed885