Move idmap to frameworks/base [2/2]

idmap depends on libandroidfw, so it should go in frameworks/base.
This follows AOSP which moved idmap to frameworks/base back in
February of 2014.

Change-Id: Ice308a5299a69fd1fbc084a7c76a317c7dec3689
(cherry picked from commit 82b07aa0249642e4ebe57b70f0f7b9e54b55333d)
frameworks: allow LockPatternView to be rotated

When displaying this view and rotating the screen, mLockPatternUtils has
the potential to be null, but the save and restore instance state
methods depend on it to be initialized. Work around this by checking if
it's null.

Change-Id: I351bd63fefbcb92fffe20dca6a0381a20ac796ea
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit 0c5d85279f0a04d6520cdec5b2e4976b68919db5)
frameworks: add ongoing notification while collecting bug report

Change-Id: I644da7046b3cbbd0ec601f0e35dfbad6adf4dcf5
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit 6b4055609af270a7fab581df6c88a6ac6971dabc)
SystemUI: don't show eq tile while casting

Change-Id: I00ae770b572535be9dca61760ad11e5f84fba63d
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit c239a48a932ce7b4db060a3e957ffb1c8595019d)
Use hidden API to validate APK chains

Bug: 13678484
Change-Id: I28dedab74b0e24d47ab9f2190298156c909e9d54
(cherry picked from commit 1fb7b6cd84ce625bd02a19035be44c09f7443933)
tether: tethering chooses wrong upstream when mobile_dun is required

When mobile_dun is required, the default mobile type will
be deleted from upstream list, this makes wifi become
the highest priority upstream even whne wifi is not available.

Change-Id: I2c12f6cd6d52331220dce900609ad072f9ec3fbc
CRs-fixed: 671675
(cherry picked from commit 0016cda6e8fc8fbfe5cc9454a3cc1a67b6bf3f33)
Themes: Avoid NPE when setting text in TickerView

It is possible, with the right timing, to receive an NPE in TextSwitcher
when a notification comes in during recreation of the status bar because
of a theme change.

Change-Id: Ia35ad0346f232df905ecff69158b71f3bf61a163
(cherry picked from commit 6e4c9995d8e303fb514ff668069447d8f11adf48)
SystemUI: enable equalizer for Wifi display

While the EQ doesn't work while using the Chromecast, using Wireless
display (miracast) still allows for control of the EQ since it's
streaming from the device.

Change-Id: I7322429b39438e66c013456b6f8a3242e333d93a
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit 4c269b6d8ec111530121dcc5783dba0da864f73d)
SystemUI: NavbarEditor: Fix saveKeys logic

In landscape, the keys are saved backwards in the for-loop, but it would crash out due from
an IndexOutOfBounds error since it's subtracting i from the array length while i = 0.

Change-Id: I405c5d962d8c575cfee57b09a7e55a8a6efc2d24
(cherry picked from commit dc3af4dfc5e77372b5fd54842f99a8755b5df1b0)
Automatic translation import

Change-Id: I33ed5e253fd73bba266b20fbd15082c5fba96ae2
(cherry picked from commit 7df5fccb777a5b77d9d925a1ebcee4d314b387d0)