p2p: add metrics for P2P connections and groups

Add P2P metrics listed below:
* general information
  * the number of scanning
  * saved persistent groups
* p2p connection
  * connection type: fresh or reinvoke
  * connecting time
  * connection result
  * failure reason
* p2p group
  * channel used
  * group role
  * connected clients
  * session duration
  * idle duration

Bug: 119998319
Test: Unit Test - atest frameworks/opt/net/wifi/tests/wifitests
Test: Normal Dump - dumpsys wifi
Test: Metrics dump - dumpsys wifi wifiMetricsProto
Test: Metrics dump - dumpsys wifi wifiMetricsProto clean
Change-Id: I8688aafee44605ea46c41c0b8d8dbe8fbfe71408
8 files changed