Camera2: add precapture cancel test

Also fix some minor issues in existing code.

Bug: 19319333
Change-Id: Ie80ee45b963f679b6bf2faee0635d219f5062477
1 file changed