Merge "Change the method to get foreground time." into oc-dr1-dev