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

COVERAGE SUMMARY FOR SOURCE FILE [MonthPickerDialog.java]

nameclass, %method, %block, %line, %
MonthPickerDialog.java0%   (0/1)0%   (0/4)0%   (0/39)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MonthPickerDialog0%   (0/1)0%   (0/4)0%   (0/39)0%   (0/10)
MonthPickerDialog (Context, TwoFieldDatePickerDialog$OnValueSetListener, int,... 0%   (0/1)0%   (0/12)0%   (0/3)
createPicker (Context, long, long): TwoFieldDatePicker 0%   (0/1)0%   (0/7)0%   (0/1)
getMonthPicker (): MonthPicker 0%   (0/1)0%   (0/4)0%   (0/1)
tryNotifyDateSet (): void 0%   (0/1)0%   (0/16)0%   (0/5)

1// Copyright (c) 2012 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.input;
6 
7import android.content.Context;
8 
9import org.chromium.content.R;
10 
11public class MonthPickerDialog extends TwoFieldDatePickerDialog {
12 
13    /**
14     * @param context The context the dialog is to run in.
15     * @param callBack How the parent is notified that the date is set.
16     * @param year The initial year of the dialog.
17     * @param monthOfYear The initial month of the dialog.
18     */
19    public MonthPickerDialog(Context context,  OnValueSetListener callBack,
20            int year, int monthOfYear, long minMonth, long maxMonth) {
21        super(context, callBack, year, monthOfYear, minMonth, maxMonth);
22        setTitle(R.string.month_picker_dialog_title);
23    }
24 
25    @Override
26    protected TwoFieldDatePicker createPicker(Context context, long minValue, long maxValue) {
27        return new MonthPicker(context, minValue, maxValue);
28    }
29 
30    @Override
31    protected void tryNotifyDateSet() {
32        if (mCallBack != null) {
33            MonthPicker picker = getMonthPicker();
34            picker.clearFocus();
35            mCallBack.onValueSet(picker.getYear(), picker.getMonth());
36        }
37    }
38 
39    /**
40     * Gets the {@link MonthPicker} contained in this dialog.
41     *
42     * @return The calendar view.
43     */
44    public MonthPicker getMonthPicker() {
45        return (MonthPicker) mPicker;
46    }
47}

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