The next change imported from upstream needs this function. Change-Id: I547efa1f7f46f0558e88047837a26ede32b19275