Merge "Update the method about foreground time." into oc-dr1-dev