Readd AOKPStats

Squashed commit that includes the following:

----------------------------------------------------

AOKPStats - anonymous user statistics. credit: CM

Patch set 4: rebased, modified regexp to match jellybean releases

ro.aokp.version should be aokp_device_jb-build-x or aokp_device_jb-milestone-y from now on

Signed-off-by: sethyx <sethyx@gmail.com>

Change-Id: I5fbee961dd9485c894f0b0eef83bbacf3979e2b8

----------------------------------------------------

Stats - amend regexp to match nightlies

Change-Id: Ib0ef700b4b7f7aaeda13a8df6e00127336d9e5a2
Signed-off-by: sethyx <sethyx@gmail.com>

----------------------------------------------------

Stats: report jb-nightly instead of reporting date

PS2: report english locale only, stay with date

Change-Id: Id82128aca865ba954f8c8856cbc318598f6554d5
Signed-off-by: sethyx <sethyx@gmail.com>

----------------------------------------------------

Settings: adjust stats regexp to match new unofficial version

Change-Id: I5680d41e4619dbbcd131a1933c13aba7bf24e27d
Signed-off-by: sethyx <sethyx@gmail.com>

----------------------------------------------------

report jb version

Change-Id: I071ebbce8198025efbb36901bbd1b9fe535a2c31
Signed-off-by: Gergely Szell <sethyx@gmail.com>

----------------------------------------------------

Stats: fix regex for jb-mr1 builds

Change-Id: Iff8175b4e229bbe0a7746a00f66d4484340e6064
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

----------------------------------------------------

Use a hashed MAC address instead of IMEI for stats collection.

PS2: always use hashed Wifi MAC address to avoid zombies when wiping

Change-Id: I7379c5b380273e35b5aab582f5268d6946e0a255

----------------------------------------------------

Adjust aokpstats

Change-Id: I7f40da5313b0754862aab40db06555d752a719d8
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>

----------------------------------------------------

AOKPStats: update regex to reflect recent changes

Change-Id: I039bbf64487861cf0e8a820f3a64b5947a40564b
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

----------------------------------------------------

Add Google Analytics support

PS2: add custom dimensions and override app-name & app-version
PS3: report unified version name (branch + milestone-X|nightly|unofficial)
PS4-6: further reporting changes
PS7: add back own stats reporting

Change-Id: Ieb69944ba0e67cbaddb0e94c1b87fc99510bdd36

----------------------------------------------------

Squashed Stats commits from CM

Remove the notification on boot. Users are thinking they need to opt out to get rid of the notification.
The setting to opt-out still exists in the Settings app.
If the user does not opt out within 'tFrame' time (1 day), the checkin service will now run; prior
to this, the checkin service would not run until the next reboot. That next reboot could occur within a
few minutes (startup crash, which then automatically checks in before the user has a chance to opt out)
or even the possibility of never. This is unpredictable and buggy.
Change the checkin frequency from 7 days to 1 day.

CMStats: fix up the logic and potential sync failures

Clean up CMStats code.

Besides the cleanup, make sure to wait a bit between retries if upload fails for whatever reason.

Change-Id: Ib83e35bab2dc3d643751f032f810569dc71cafcc

----------------------------------------------------

Statistics: update for client id and current view

use hashed Mac address as client id and store device name
as current view

Change-Id: Ia2b26cd674035fc97ca415ba0ca1f78e1628745f
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

----------------------------------------------------

fix statistics after changing version naming

Due to changing the version name in http://gerrit.aokp.co/12081
the returned version for Google Analytics needs to be updated.

----------------------------------------------------

Change-Id: Ifc9cfa5970de2c5d860923677f260a2066ed2885
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Added build date (ro.build.date from build.prop) to device info.

Change-Id: I5e19ee04de5c26822e171d4af8f4bfc052be9b74
Apn settings fixes / code maintainence

Depends on : http://gerrit.aokp.co/#/c/13665/

Cleanup unecessary resources and use global ones
  - This fixes the duplicate id issue currently causing apn's to be un-editable

Bring the ui aspect of the preference up to speed with ics
 - Use ics highlight / layout...etc
 - Use fragments

Patchset 5 : Remove theme for ApnEditor
             Use static access for variables
Patchset 6 : Launch apn editor internally as a fragment
	     Replace deprecated managedQuery with CursorLoader

Apn Settings : Fix panel title

Show appropriate apn editor title

Change-Id: I1f9dbce5dbf464db79d7c2fbedb8f833e4b46468

Settings - add an AlertDialog before to delete APN to avoid fails

patch 1: fix blank space
patch 2: remove FR translation and change NegativeButton string
patch 3: improve the NegativeButton (thank you, David)
patch 4: remove create()

Change-Id: I3361d4160a7e1c4eaee094f08c7d212f71e9e0e7

* Forward port from cm-10.2, adjusted for 4.4

Change-Id: Ie63fa1018ffb7bc419e4d7915419657de30f5b22
Add batch scan data to power stats.

bug:10690989
Change-Id: I5c21b8234eb1dec2da01032a87e2129b5b5cb225
BT keeps on asking me if I want to allow car to do stuff

remember how many time the user choose the "no",
if user choose "no" twice, we will make it persist.
bug:11176511

Change-Id: I7234e7b4ba4586065dea462029e2da5ddaf53316
Accessibility: filter touches to Enable button

To prevent tap-jacking, filter touches to the enable button if there is
another window obscuring the screen.

Bug: 11242907
Change-Id: I0228cd480faf8e7ebf70394d9bb60fa2e4138fb4
Import translations. DO NOT MERGE

Change-Id: I837e1a31e3443781597b7de28f44fc332c6a84fd
Auto-generated-cl: translation import
Import translations. DO NOT MERGE

Change-Id: I2aba430c7c862ee16f7adb93503877a4e79a1117
Auto-generated-cl: translation import
BT keeps on asking me if I want to allow car to do stuff

Persist the "no" count
bug:11176511

Change-Id: I39674334fe8bf09d1f3f2b07c12513a6c46f053b
Modified the strings according to the specs

- Fix b/11290711

Change-Id: I23827ad5bef4cf4bda14bb08f0e502cc4e9d2727
need persist adding bluetooth MAP profile to profile list in case the settings process being killed

bug:11303213
Change-Id: I1f227839931872ba6fdca0b5932a24e0b002ec44
Import translations. DO NOT MERGE

Change-Id: Ic7fb5ee337d953a38cd86957054f550aa4ccc88c
Auto-generated-cl: translation import
Inherit translucent bars in keyguard widget picker.

Bug:11337231
Change-Id: Ie65d5474328cec859637ba7771da5e93509236ae
Remove Manage Mobile Plan when config_show_mobile_plan is set to false

config_show_mobile_plan is set to true by default.
When you don't want to show "Manage mobile plan" set config_show_mobile_plan to false in overlay.

Bug: 10819853
Change-Id: Ic3c69fb4246cc0de38518ef6c9950cee7fa4d987
Display remaining attempts when using or changing SIM PIN

Bug: 9928717
Change-Id: I73718c9e6a8aa7244097e0dd4593a6226ff0ac08
Import translations. DO NOT MERGE

Change-Id: Iea5d9695008ddc258cfead84f2494fb3111eefea
Auto-generated-cl: translation import
Import translations. DO NOT MERGE

Change-Id: If2ea17bb82d79c6a722bfa2360db9dbee83d008d
Auto-generated-cl: translation import
remove primary condition check on storage format.

this change seemed to have been introduced originally
via commit d2a6f28fa7ba8189d2a1987129db27fd840fac0f
as a workaround to fix interoperability problem with MTP,
then commit 8218d3ba180505a52998caa1fd9f6a1647984e7f
seemed to have address this problem.

therefore it looks like removing the original restriction
is in order to allow formating of the sd-card when not
primary storage.

Bug: 11352632
Change-Id: I0419135a607dac08c44a3f30a7ccdcad17c46437
Signed-off-by: Pierre <pierre@broadcom.com>
Import translations. DO NOT MERGE

Change-Id: I9f5f19d06f849f0142b1667c74d3d2456ad6fe27
Auto-generated-cl: translation import
remove lockscreen widget checkbox when there's no lockscreen.

Bug: 11190345
Change-Id: I1b48e7a6a70226b103d8a6a27bd3374ff8349b3f