Add tests for ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS.

Add a second part to test that
ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS opens the correct list and
users can exempt and unexempt apps from that list.

Also call PowerManager.isIgnoringBatteryOptimizations() first so that we
always verify that value since that's what apps will rely on. The
standby bucket is secondary to that call.

Bug: 173547576
Test: install on device and manually check activities
Change-Id: Iecb25586746076f1b6b614d5a856615b1b5a3d95
2 files changed