Refactor some codes for unbundle (3/N)

1. Implement DateUtils.formatDuration by MeasureFormat in DocsUIi
   as a util api.
2. Copy ExitInterface.convertRationalLatLonToFloat to DocsUI
   because this function is not used by other apps or components.
   And it seems metadata bundle still cannot be quried by other
   apps, so copy these code for DocsUI used only.

Bug: 118794189
Test: atest DocumentsUITests
Change-Id: I7be622ee37648e00943e1617c419106399d6813e
4 files changed