FileDocCategorySizeDatePackage
TimePickerClockDelegate_Delegate.javaAPI DocAndroid 5.1 API1452Thu Mar 12 22:22:44 GMT 2015android.widget

TimePickerClockDelegate_Delegate

public class TimePickerClockDelegate_Delegate extends Object
Delegate used to provide new implementation of few methods in {@link TimePickerClockDelegate}.

Fields Summary
private static final int
AM
private static final int
PM
Constructors Summary
Methods Summary
static intgetAmOrPmKeyCode(TimePickerClockDelegate tpcd, int amOrPm)


    
          
        // We don't care about locales here.
        if (amOrPm == AM) {
            return KeyEvent.KEYCODE_A;
        } else if (amOrPm == PM) {
            return KeyEvent.KEYCODE_P;
        } else {
            assert false : "amOrPm value in TimePickerSpinnerDelegate can only be 0 or 1";
            return -1;
        }