• Home
  • Raw
  • Download

Lines Matching +full:fail +full:- +full:on +full:- +full:alert

8  *      http://www.apache.org/licenses/LICENSE-2.0
11 * distributed under the License is distributed on an "AS IS" BASIS,
30 static const NSTimeInterval kGoalpostFrequency = 0.55; // TODO(pquinn): User-configurable settings.
47 return ((1 - alpha) * x0) + (alpha * x1);
77 const double alpha = (x[i] - xp[ip - 1]) / static_cast<double>(xp[ip] - xp[ip - 1]);
78 y.push_back(Lerp(yp[ip - 1], yp[ip], alpha));
110 return accum + ((value - mean) * (value - mean));
112 return sqrt(ss / (x.size() - 1));
159 - (void)updateCountDisplay;
160 - (void)processEvent:(UIEvent *)event;
161 - (void)receiveTriggers:(id)context;
162 - (void)stopReceiver;
176 - (void)dealloc {
180 - (void)viewDidLoad {
187 - (void)viewWillAppear:(BOOL)animated {
195 - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
199 - (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
203 - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
207 - (void)processEvent:(UIEvent *)event {
217 - (void)updateCountDisplay {
223 - (IBAction)start:(id)sender {
236 CGAffineTransformMakeTranslation(0.0, -CGRectGetHeight(self.view.frame) + 300);
247 - (IBAction)reset:(id)sender {
260 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Connection Error" error:error];
261 [alert show];
267 - (void)receiveTriggers:(id)context {
268 // Turn on laser change notifications.
271 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Connection Error" error:error];
272 [alert show];
279 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Response Error"
284 [alert show];
297 } else if (response.tag != '\0') { // Don't fail for timeout errors.
298 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WALT Response Error"
303 [alert show];
314 - (void)stopReceiver {
315 // TODO(pquinn): This will deadlock if called in rapid succession -- there is a small delay
316 // between dispatch_semaphore_signal() and -[NSThread isExecuting] changing.
324 - (IBAction)computeStatistics:(id)sender {
340 ft[i] = _touchEvents[i].kernelTime - t0;
367 lt[i] = _laserEvents[i].t - t0;
375 // The actual side is irrelevant, but events on the same side should have the same label. The