[2/3] Frameworks: Add AOSP Dialer check

Disable QS Network tile if Google dialer is used

Change-Id: I0f49b75429aa4e60794016f9d3d162cf086bba4c
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
Frameworks: Update Google dialer check for QS 3.0

As the network tile is now on the back of the rssi tile instead of it's own tile,
it's no longer feasible to simply hide the network tile if the google dialer is installed.

Quick setting tiles are created BEFORE boot, but we can only confirm the dilaer type AFTER
boot. Instead of recreating the rssi tile as a single tile, simply disable the
on click network mode toggle if google dialer is present and provide an appropriate toast.

Change-Id: Ia74c7d0622446464a2a57395cf3f336eeb172ca3
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
Modify network disabled toast message

Also add spanish translation

Change-Id: If689aceccb0c14e3f5f42011cd4ac2c9c5306cfd
QS: Fix handling of dialer checks

Fixes an issue with network tile. Previously, if SystemUI crashed the network
mode tile would be disabled per the dialer check because constructor initialized
mUsesAospDialer to false.  Now we initialize it to the value of the system setting
and set it to 0 on shutdown.

Corrects display of disabled when the user has google dialer installed. Before,
the rssiTile would default to unknown.  Now it checks if google dialer is being
used and properly sets the disabled string.

PS1: Initial implement
PS2: Fix indents
PS3: Refactor content resolver
PS4: Update commit message
PS5: Style fixes

Signed-off-by: Evan Anderson <evan@thelinuxman.us>
Change-Id: I75cd767667924762fa432c29192674ce9c402c20
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
Add change network mode permission to SystemUI

Change-Id: Ibcdf4e0e62f23bfafb129fdabbb5f86de807647e
Signed-off-by: iceandfire <arhamjamal@gmail.com>
Merge branch 'kitkat' of https://github.com/TeamHorizon/platform_frameworks_base into kitkat