Home | History | Annotate | Download | only in wifi

Lines Matching defs:Event

65      * Records the initialize event of the current Wifi Wake session.
67 * <p>Note: The start event must be recorded before this event, otherwise this call will be
84 * Records the unlock event of the current Wifi Wake session.
86 * <p>The unlock event occurs when the WakeupLock has all of its networks removed. This event
87 * will not be recorded if the initialize event recorded 0 locked networks.
89 * <p>Note: The start event must be recorded before this event, otherwise this call will be
104 * Records the wakeup event of the current Wifi Wake session.
106 * <p>The wakeup event occurs when Wifi is re-enabled by the WakeupController.
108 * <p>Note: The start event must be recorded before this event, otherwise this call will be
123 * Records the reset event of the current Wifi Wake session.
125 * <p>The reset event occurs when Wifi enters client mode. Stores the first
128 * <p>Note: The start event must be recorded before this event, otherwise this call will be
129 * ignored. This event ends the current session.
154 * Records instance of the start event being ignored due to the controller already being active.
224 Event mUnlockEvent;
227 Event mInitEvent;
230 Event mWakeupEvent;
233 Event mResetEvent;
242 * Records an initialize event.
246 * @param numScans Total number of scans at the time of this event.
248 * @param timestamp The timestamp of the event.
253 mInitEvent = new Event(numScans, timestamp - mStartTimestamp);
258 * Records an unlock event.
262 * @param numScans Total number of scans at the time of this event.
263 * @param timestamp The timestamp of the event.
267 mUnlockEvent = new Event(numScans, timestamp - mStartTimestamp);
272 * Records a wakeup event.
276 * @param numScans Total number of scans at the time of this event.
277 * @param timestamp The timestamp of the event.
281 mWakeupEvent = new Event(numScans, timestamp - mStartTimestamp);
286 * Returns whether the current session has had its wakeup event triggered.
293 * Records a reset event.
297 * @param numScans Total number of scans at the time of this event.
298 * @param timestamp The timestamp of the event.
302 mResetEvent = new Event(numScans, timestamp - mStartTimestamp);
342 /** An event in a WifiWake session. */
343 public static class Event {
345 /** Total number of scans that have elapsed prior to this event. */
347 /** Total elapsed time in milliseconds at the instant of this event. */
350 public Event(int numScans, long elapsedTime) {
355 /** Returns the proto representation of this event. */
356 public WifiWakeStats.Session.Event buildProto() {
357 WifiWakeStats.Session.Event eventProto = new WifiWakeStats.Session.Event();