| // Copyright 2016 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| 'use strict'; |
| |
| /** |
| * @fileoverview WiFiStateMachine class to represent and hold state for each |
| * instance of an Android WiFiStateMachine for a given log being processed. |
| */ |
| |
| /** |
| * @constructor |
| * |
| * @param {String} id Identifier for new WifiStateMachine instance. |
| * @param {long} ms WifiStateMachine start time in ms. |
| * @param {long} offset WifiStateMachine log time offset in ms. |
| */ |
| function WifiStateMachine(id, ms, offset) { |
| this.id = id; |
| this.startTime = ms; |
| this.scans = 0; |
| this.scanDetails = []; |
| this.states = []; |
| this.endTime = -1; |
| this.timeOffset = offset; |
| this.supplicantStates = []; |
| } |