Camera2: Add testAeModeAndLock test

Also restructure the code a little bit, and added some helper fuctions for
future tests.

Change-Id: I439eec245a208fefb5796cacc07b2f966b7ae0f6
6 files changed