ScanDetail: do not inherit ScanResult.seen if it is unset
Set |ScanDetail.mSeen| to the current system time, if the |seen| field
of the ScanResult passed to the ScanDetail constructor is unset. This
ensures that |ScanDetail.mSeen| will always contain a valid timestamp,
and consequently, that ScanDetail.getSeen() always returns a valid
timestamp.
BUG: 29877741
TEST: Manual inspection of debug messages in ScanDetailCache, indicating
the return values of ScanDetail.getSeen().
Change-Id: I46651d5b7b16f1ac0c46830fc6e0f0e187de830d
1 file changed