Fix exception on rotation.

Change-Id: I6cc653db3397074fb1cd9aa12b06511ce2cc3c9d
JIRA:CYAN-731
Merge "Fix exception on rotation." into cm-10.1
Afrikaans translations: Added missing items

Change-Id: Iead34944ce5296b440ebb79c9693761533b27eb0
SECURITY FIX: Fix package uids being reused between uninstall and reinstall of different packages.
Policies for older packages were being granted to the newly installed package that got the recyled uid.

Change-Id: I6c74cf6762e8da10e09d5cf5d94e9f826e47f24d
Settings: fix incorrect value in autobrightness adjustment

If the user drag the progress bar below the min value, the incorrect
setting will be saved since seekBar.setProgress code path does not
return to the "getItem(pos).backlight = ..." line.

Change-Id: I4796e22ba9c44315be92de4040f6cd8451bdf153
Merge "Settings: fix incorrect value in autobrightness adjustment" into cm-10.1
Settings : Fix accessibility shortcut

Shortcuts like accessibility, have preferences with titleText rather than
titleRes as their title. Settings only had a override for titleText, which caused
preference screens inside accessibility to not work. This commit addresses that.

Reproducable via :

1. Create a settings accessibility shortcut.
2. Launch shortcut and try to open an of the services

Expected behaviour : Appropriate ToggleAccessibilityServicePreferenceFragment should open
Observed behaviour : Same Settings instead gets relaunched instead

Change-Id: I89b7539672cd7278d51f9e88bac1948669940e59
cmstats: Remove preferences and always enable stats

 * Not having an accurate count of how many people are using CM is
   painful. I am making an executive decision to remove the opt-out and
   always turn stats on. The data is anonymized and there is nothing
   evil that can be done with it. The only purpose here is to tell us if
   we are a successful project or not.

Change-Id: I915c5e824d4e15c05feb37a3d8ed911464b5d61b
Add Google Analytics support.

Change-Id: I81f816f2a358a36247c05a97053e948f4ea62753
Update Russian Translation-Settings-CM10.1

Update Russian Translation-Pie controls-CM10.1

Update Russian Translation-CM10.1

Update Russian Translation-CM10.1

Update Russian Translation-Revert to AOSP translation+some fixes-CM10.1
FIx up analytics results by normalizing the version by stripping the device info, which is redundant.

Change-Id: If4fc97c28fff6a82206a5491c256b05444da1a34
Merge Navigation Bar and Pie Controls button config (2/2)

Based on the commit series for pie controls, this commit
makes the Navigation Bar and Pie Controls share the same
button layout.
This commit applies the changes made in part 1 to the
Settings app. For the real commit see framework/base.

This commit introduces here:
* Some setting constants changes to avoid clashes with PA.
* Removal of the pie search key setting.

Change-Id: I5b4abd6d32a3fc835466ac4cb1f0b9c851641061
Enable Ethernet tab in data usage

mStateSession is not initialized at the time hasEthernet is called to
set mShowEthernet, so Ethernet tab is not shown at the startup.
In this case, if the device doesn't support mobile network, user cannot
even select it from the context menu.

Bug: 8365419
Change-Id: I441971f18346c34a3adf3f18d9355075d9dce3f0
Signed-off-by: Jaewan Kim<jaewan@google.com>
Removing now unused translations of pie_control_search_title

The commit "Merge Navigation Bar and Pie Controls button
config (2/2)" did remove the above mentioned i18n string.
This patch removes it for all other languages.

Change-Id: I613cf92c1e41e5b830984af33828da2d0f85561b
Settings : Toggle expanded desktop for navbar

If entering the navbar screen with expanded desktop enabled, the navbar
is not shown hence hindering the ability to use the panel

This patchset addresses that by disabling expanded desktop upon entering,
and re-enabling upon exiting if it was previously enabled.

Patchset 2 : Fix state issues

Change-Id: I2776cf971f8899d30a25c0bf6b418793153555fc
Correctly remember MAP access selection.

Previously, the MAP access notification used to pop up on every BT
connection. 'Don't ask this again' didn't work. Fix that by correctly
remembering not only the PBAP access selection, but also the MAP access
selection.

Change-Id: I8fb9bedc02f696c9247861eb57ad64c4a8f5f6fa
Settings: Update German translation

Patch Set 1:    * add translations for swap volume keys

Patch Set 2:    * add translations for
                  - Ad-Hoc network
                  - Pie controls

Patch Set 3:    * rename some strings
                * remove unneeded strings
                * fix whitespace error

Patch Set 4:    * rebase

Change-Id: I9816af50b17d728bb5578c98f80465a78ed8e711
Settings: Separate Expanded desktop from Power menu settings

This commit separates the ability to configure the Expanded desktop
mode from the ability to enable the switch in the Power menu.  This
will allow for the ED Tile to be hidden if the feature is disabled
and the power menu entry to be removed if the user chooses to use the
Tile instead.

Change-Id: I3d2eabde8087d25940cbb1e5262086b9c6e291f1
Profile: respect DPM when overriding screen lock (2/2)

Change-Id: Ia0c2b51cfa35e47328a68366964f231e2bb7ebfa
Restore the opt-out for stats.

 * Apparently this is a bigger issue for a small number of extremely
   vocal users. We should respect their wishes, no matter how off-base
   their claims are in this context.

Change-Id: I9eef9a65260ec4e360d398f80d610a198c09c915