Camera2: Improve recording duration measurement accuracy

Measuring recording duration from end of MediaRecorder.start() to
the end of MediaRecorder.stop() is a better estimate of expected
recording duration than recording the duration between the end
of MediaRecorder.start() and start of MediaRecorder.stop().

Bug: 17630379
Change-Id: Ic2f3a2f0bfe2fb839f2fdfff04924c2d20928a0b
1 file changed