DO NOT MERGE. Framework/base: Added synchronization block to avoid race condition

Fix for the synchronization issue leading to access of an array
Index out of bounds. Issue occurs due to race condition between
removing the activities of a crashed process from history stack
and resuming a separate activity.

Change-Id: I14bb5834e778c15b674248e46fe93b0ce9f37967
Revert "Revert "Change GATT_FAILURE from 0 to 0x101""

This reverts commit d21f674c150aa26c8094d1418108649f53f810e6
bug 9109238
Change-Id: Ie1fc3d7420e6c401d3db29499d8846e6b70a61bb
Refactor of camera stress test to add camera test helper. Also add
additional functional tests for: flash, exposure, white balance, and
focus mode.  Also add pairwise tests.

Slight refactor to add camera test helper and also additional
tests for: flash, exposure, white balance, and focus mode

Bug: 9174937

Change-Id: I3d26b545dc8ff972c8173066df59a2e572a837ef
resolved conflicts for merge of 7573e594 to stage-aosp-master

Change-Id: Ic19294c82ec023707e23b5848901426433b22e9f
am c8c82009: resolved conflicts for merge of 7573e594 to stage-aosp-master

* commit 'c8c82009dc8c146efadac6b51702922148f6003f':
  Properly rotate full [-pi, +pi] orientation range if available
am 3422ceb6: Merge "Bug fix for building the hover target list"

* commit '3422ceb6ba453c28ac39dfce34534e0346394a3a':
  Bug fix for building the hover target list
am e4c29de9: Merge "Add missing ACTION_MEDIA_UNMOUNTED intent"

* commit 'e4c29de9c69d332d65d2eb490961faffab4467fd':
  Add missing ACTION_MEDIA_UNMOUNTED intent
am dea6e86d: am 3422ceb6: Merge "Bug fix for building the hover target list"

* commit 'dea6e86dce716b67fe92c9b281fe9e79256f3b78':
  Bug fix for building the hover target list
am ab4a0541: am e4c29de9: Merge "Add missing ACTION_MEDIA_UNMOUNTED intent"

* commit 'ab4a0541994d5de9520ad4ba37c3a11c5f540eb5':
  Add missing ACTION_MEDIA_UNMOUNTED intent
Update documentation of NEW_OUTGOING_CALL

Adds call-handling as a use case for NEW_OUTGOING_CALL

Change-Id: Ie511438bd8d9aa245881f050d32221c81e898745
Merge "Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event"
am 09377ddb: Merge "Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event"

* commit '09377ddb93a964b9e0def6d84b8beb3a515f4a18':
  Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event
am 64b5f7cc: am 09377ddb: Merge "Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event"

* commit '64b5f7cc4ca094754d4631ffb801b7bb771081ec':
  Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event
Monitor device rotation

If requested by ro.audio.monitorOrientation property, set orientation
 information as audio system parameter on configuration changes.

Bug 9095903

Change-Id: I669d4084eade3c14feb63f644bdd5b74fddc8857
Doc change: adjust description of NEW_OUTGOING_CALL.

Change-Id: If2bcfa7410759e08958029578a9b3d0a60a1de4e
Ignore outstanding delayed shutdown on restart

This was causing us to go disabled when we shouldn't
so the API being tested in the CTS would fail.  Bug
is timing dependent and hard to repro.

bug:9067887
Change-Id: I70b813bf826988d859cc29201242238f18dcf2e6
Merge "Import translations. DO NOT MERGE" into jb-mr2-dev
am af1e512e: Merge "Import translations. DO NOT MERGE" into jb-mr2-dev

* commit 'af1e512e3f2b52e563e37c1635cbea06e87e0592':
  Import translations. DO NOT MERGE
Merge "Ignore outstanding delayed shutdown on restart" into jb-mr2-dev
am aa4b2ee0: Merge "Ignore outstanding delayed shutdown on restart" into jb-mr2-dev

* commit 'aa4b2ee0d654b345b727cb47afd246d0b769fafd':
  Ignore outstanding delayed shutdown on restart