clone  of https://android.googlesource.com/platform/packages/apps/Calendar