Use long for times and timestamps throught Java cast code
This prevents overflows that could occur if a phone was left on for
more than 2^31ms (roughly 23 days). The overflows caused various
strange behaviour with pausing and seeking.
BUG=
574433
Committed:
https://crrev.com/a73c6eafbb1d11c382edef8c5c8cadc7a7dd04c2
Cr-Commit-Position: refs/heads/master@{#367815}