clone of https://android.googlesource.com/platform/frameworks/opt/datetimepicker/