IP connectivity metrics: fix LINGER/UNLINGER logging

This patch fixes a regression introduced by commit d5c11bbb6569b
for logging NetworkEvents when lingering and unlingering a network.

Commit d5c11bbb6569b removed an overloaded constructor for the
NetworkEvent class, which caused NetworkEvents with event type of
LINGER or UNLINGER logged in ConnectivityService to have incorrect
event types (set to the network id instead) and incorrect duration
(set as the event type instead).

Bug: 34901696
Test: runtest frameworks-net
Change-Id: Iab97a58ca805413617c8e8b4553404625a820ceb
1 file changed
tree: 8231c2e6e53a4eedfdba8dbb4b8d4da654563a7f
  1. core/
  2. services/
  3. tests/