blob: b12cd08a58f57348a3991519cf6fa8741a7d9712 [file] [log] [blame]
# Copyright (c) 2014 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.
from fuzzy_check import FuzzyCheck
from validators import *
# originally generated gestures:
# FlingStop
# Motion d=139.2 x=106.7 y=86.72 r=0.3793 s=317.5
def Validate(raw, events, gestures):
for entry in raw['entries']:
if entry['type'] == 'gesture':
if entry['endTime'] > 7334.241601:
return False, "Has activity during lift"
return True, "Success"