How to select date from the datepicker on android (Tried all options, day, month and year have same locators)

Hello I am trying to select the day, month and year. I tried with swipe but it did not work out. I also tried with sendKeys() but it too did not work out. The problem is all the 3 have same locator

Please guide

Check https://android.googlesource.com/platform/frameworks/testing/+/idea133/uiautomator_test_libraries/src/com/android/uiautomator/common/helpers/DatePickerHelper.java
https://android.googlesource.com/platform/frameworks/testing/+/idea133/uiautomator_test_libraries/src/com/android/uiautomator/common/helpers/TimePickerHelper.java