EMMA Coverage Report (generated Fri Aug 23 16:39:17 PDT 2013)
[all classes][org.chromium.content.browser]

COVERAGE SUMMARY FOR SOURCE FILE [VibrationMessageFilter.java]

nameclass, %method, %block, %line, %
VibrationMessageFilter.java0%   (0/1)0%   (0/4)0%   (0/23)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class VibrationMessageFilter0%   (0/1)0%   (0/4)0%   (0/23)0%   (0/8)
VibrationMessageFilter (Context): void 0%   (0/1)0%   (0/9)0%   (0/3)
cancelVibration (): void 0%   (0/1)0%   (0/4)0%   (0/2)
create (Context): VibrationMessageFilter 0%   (0/1)0%   (0/5)0%   (0/1)
vibrate (long): void 0%   (0/1)0%   (0/5)0%   (0/2)

1// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4 
5package org.chromium.content.browser;
6 
7import android.content.Context;
8import android.os.Vibrator;
9 
10import org.chromium.base.CalledByNative;
11import org.chromium.base.JNINamespace;
12 
13/**
14 * This is the implementation of the C++ counterpart VibrationMessageFilter.
15 */
16@JNINamespace("content")
17class VibrationMessageFilter {
18 
19    private final Vibrator mVibrator;
20 
21    @CalledByNative
22    private static VibrationMessageFilter create(Context context) {
23        return new VibrationMessageFilter(context);
24    }
25 
26    @CalledByNative
27    private void vibrate(long milliseconds) {
28        mVibrator.vibrate(milliseconds);
29    }
30 
31    @CalledByNative
32    private void cancelVibration() {
33        mVibrator.cancel();
34    }
35 
36    private VibrationMessageFilter(Context context) {
37        mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
38    }
39}

[all classes][org.chromium.content.browser]
EMMA 2.0.5312 (C) Vladimir Roubtsov