Bluetooth: Ignore the second button if one already pressed

Ignore the second buton if already one button is pressed,
this case comes when user is trying to press the both
cancel and ok for the pairing dialog.

Change-Id: I77516ec59a972b4451bb8cff69645f7b9089497f
CRs-Fixed: 624285
Fixes error message during pairing of HOGP devices

When incorrect pin key is entered by user in
the pairing pop up while pairing with a HOGP
device, no error message regarding the failure
is displayed to the user.

CRs-fixed: 618905
Change-Id: I1a5a8baf9ef6c71bf285a28b3e1839fe5ddbca95
Bluetooth: Increase allowed duration to connect to a profile

This patch increases the duration allowed between the first device
connection attempt (immidiately after bonding) and profile connection
after service discovery from 5 seconds to 30 seconds to allow
HOGP connections for slow connection conditions.

Change-Id: I5b17bd0bd2b560709e6e67e2d83f9bca7ea2509d
CRs-Fixed: 612105
P2PSetting:Avoid p2p_find on group removal event

Immediately after group termination p2p_find is being issued
from settings and this causing issue whenever user sends
connection request immediately after group_removal_event.

Change-Id: I6ae90a1d710e0e977a1dbc171398fd270dc30183
CRs-Fixed: 622597
Packages : Fix for Softap turn ON/OFF fail issue.

If Softap is enabled using third party applications which make use
of WifiManager APIs, Softap enable fails. This is due to improper
handling of Softap State change event.

To resolve this issue, handle the Softap state change intent with
proper initialization of variable "mWaitForWifiStateChange".

CRs-Fixed: 634896
Change-Id: I63f8845ec3e8ebfa8ec09a7b1a1bc4ee175336cf
Fix NullPointerException issue when user change

When info is null, we have risk to have access null point.

Change-Id: Ie6acee5c99d6297e31d46585435a735a38b19e82
Revert "Fix MSIM Network Settings (1/2)"

A public intent shouldn't need additional parameters to trigger.

This reverts commit 6cf32469f14a2c0efad9da34a5f12a9d341fc762.

Requires http://review.cyanogenmod.org/63912

Change-Id: I72ea28d8760caf1965c8df0835f438a22331450e
Add missing mdpi, hdpi, xhdpi drawables for new theme engine

Change-Id: I70dd75257f0e3a0a20b844a1ea3cc36506de177b
Telephony(MSIM): Disable DDS Switch in Airplane Mode.

Do not allow user to change the DDS in Airplane Mode
as modem will be in LPM state.

Change-Id: I21ceaa53df6f0acd7be5fb8f23a120f92023a152
CRs-Fixed: 594616
Settings: move 'Take bug report' from Dev to About

Change-Id: I52b9b2bc13998cec6f85a1b85458f36c9f461490
Signed-off-by: Roman Birg <roman@cyngn.com>

Conflicts:

	res/xml/development_prefs.xml
Settings: remove lockscreen wallpaper picker from Lockscreen Interface

It should be accessed through the Themes interface.

Change-Id: Ibd893c82d4f1caf1c696474a17b5fceecc4ea1ab
Signed-off-by: Roman Birg <roman@cyngn.com>
Settings: correct y-axis brightness in preview

To answer the comment in the code, no, the min brightness should not
correspond 0, but rather to the device min supported level. The values
on the preview graph should correspond exactly to the percent values
entered in the brightness configuration dialog.

Change-Id: I4a6d19b261f33f53d24437cde99e63e03ba3fc28
[3/3]Settings: add "Accept all files" option for incoming files via Bluetooth

  Vanilla Android requires the incoming file from Bluetooth to be certain mime-types.
  The mime-types allowed are defined in
packages/apps/Bluetooth/src/com/android/bluetooth/opp/Constants.java
  But sometimes we need to accept files that is not in the list,such as RAR archives
or APK packages.
  This patch makes "Accept all files" an option in Settings -> Bluetooth -> (Menu),
and then saves users' choice to Settings Provider database.
  This will meet users' demand as well as keep the phone from unsafe files
when users don't need to accept the files out of the mime-type whitelist.

Change-Id: I5f04d3ccb45bd5c6525b746855bd19ccc8501d32
settings: Cleanup and add auto power profiles option

 * Add categories for all items
 * Add helper class for Settings.Secure

Change-Id: I9d8fd6720516e7fa321c05744ada81415cbf8aaa

Conflicts:

	res/xml/performance_settings.xml
development: Add setting for overwriting recovery

Change-Id: I1ffa1735cd29bcdd5f7be419e4b46cf04a3f9973

Conflicts:

	src/com/android/settings/DevelopmentSettings.java
Settings: create cm string for wallpapers

Change-Id: I21af266bb0aeff7598082d998b2c2e8d6bbbe187

Conflicts:

	res/values-af/cm_strings.xml
	res/values-ca/cm_strings.xml
	res/values-cs/cm_strings.xml
	res/values-da/cm_strings.xml
	res/values-de/cm_strings.xml
	res/values-el/cm_strings.xml
	res/values-es-rXA/cm_strings.xml
	res/values-es/cm_strings.xml
	res/values-fr/cm_strings.xml
	res/values-hu/cm_strings.xml
	res/values-in/cm_strings.xml
	res/values-it/cm_strings.xml
	res/values-iw/cm_strings.xml
	res/values-lt/cm_strings.xml
	res/values-nb/cm_strings.xml
	res/values-nl/cm_strings.xml
	res/values-pl/cm_strings.xml
	res/values-pt-rBR/cm_strings.xml
	res/values-pt-rPT/cm_strings.xml
	res/values-ru/cm_strings.xml
	res/values-sr/cm_strings.xml
	res/values-sv/cm_strings.xml
	res/values-th/cm_strings.xml
	res/values-tr/cm_strings.xml
	res/values-uk/cm_strings.xml
	res/values-zh-rCN/cm_strings.xml
	res/values-zh-rHK/cm_strings.xml
	res/values-zh-rTW/cm_strings.xml
Missing back button on MultiSimSettings ActionBar

Fixed missing back button on ActionBar (default Settings behavior on
submenus) by adding "parentActivityName" property to MultiSimSettings
activity.

Change-Id: I60a1123be29d81c8232e0acee1ac9544bf9b32e6
Settings: add equalizer tile toggle

Change-Id: I51b34e34a7e6305bc5ced0672eb2aa7e8db45057
Signed-off-by: Roman Birg <roman@cyngn.com>
Correct string for left-handed mode

Change-Id: Iee951db7642a487b9ca94f1264b9cd2e2a4390be

Conflicts:

	res/values/cm_strings.xml
Settings: Remove "Make pattern visible" regardless.

  - Previous logic depended on all pattern lock elements to be
    null prior to removing the preferences. Remove them one by
    one if they exist now.

  - PS #3: Add braces.

Change-Id: If34bc305eddda2985b37bd55349e4bb5d9b63154