wifi: Set the mode at native layer

 * Set normal/AP mode so that the HAL can specify correct module
   arguments when loading the driver.

Change-Id: I6eee2cc53b5f1e70306e252e52c909833f220515
CellInfoLte - Turn off debug

With debug on, it constantly spams the log. Turn it off for now to
keep the log cleaner.

Change-Id: I115a613c7140545d626c4f4fda7a697a00b9cc35
Updated simplified Chinese translations

Change-Id: Ice0307aa873db47a9eccda85e85cc9a397c9db42
PowerManager: Don't wake up device when charger is plugged/unplugged (1/2)

This will add the option to disable waking up the device when a charger
is plugged or unplugged.

Change-Id: I3367041a05931510f367dafe412b173c80b89df1
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
SystemUI: respect global vibrate settings in the statusbar

Change-Id: I6df0fe2c6eb00a625e4c0aff6d0c8743979de966
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Lockscreen: Add timeout and instant lock option to slide lock (2/2)

  This adds AOSP's new timeout and instant lock options to the
  slide (aka chooser) style lockscreen.

Change-Id: I64b5f53a4e6c4098640b2c0cb3af2a56d6df019f
LastApp Toggle [1/2]

Creates an action useable by NavBar & NavRing to toggle
between most recent apps.  Will try to ignore the launcher
when possible.  ie, if you've just rebooted and have not opened any
apps, it will do nothing.  if you open 1 app, it will toggle between
that 1 app and the launcher.  Once two apps have been opened, it will
toggle between those two apps.
It's kind of like opening recents and hitting your #2 slot repeatedly

PS 2:  Add Icons from Hoolm.  {Thanks!}
       Re-wrote the logic for selecting next app.  Rather than
toggling back to launcher if only 1 app open, it does nothing.
toggling only occurs now when there are at least two apps open.
One issue that I still need to work out is that 'Recents' is somehow
showing up as a valid target to toggle to.  It shouldn't.

ps 3:  getRunningTasks() does not filter out 'Excludefromrecents'.
Thus we need checks for 'default launcher' and SystemUI.
as I write this, I realize I might be able to query the
ExcludeFromRecents flag of the package a bit more easily.

ps 4: Whitespace fix.
ps 5: one more whitespace fix.
ps 6: remove unnecessary dependency

Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Change-Id: I0b59121b07b9ba44a2837a8db0266441ed82f9a3
Updated Japanese translations

 Patch-set 2: Rebased
 Patch-set 3: Rebased

Change-Id: I448a88e5294fa4e982a0bb27448ec81819905f56
Signed-off-by: rdgate <rdgate@gmail.com>
QuickSettings: fix missing GPS state

This will show the appropiate image when GPS got a fix.

PS2: use image set in the state object.
PS3: fix derp
PS4: it's too late - sorry
PS5: int ain't null

Change-Id: Id4055a9a811f42d411abaf740c7a6c8e8c240e9c
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Fix HTC headset handling.

HTC's headset driver adds additional bits to the switch state, which
we're unable to deal with. Fix that by masking out those bits and
keeping only the valid ones.

Change-Id: I696a863f7f81dd2827d238468d566f62a203aff6
Signed-off-by: rohan <rohanmathur34@gmail.com>
Merge "PowerManager: Don't wake up device when charger is plugged/unplugged (1/2)" into jb-mr1
QuickSettings: fix GPS graphic state logic

Current logic shows the gps_off icon once the requesting
app has terminated (inUse = false). expected graphic is
gps_on. To reproduce:
1. Start with the GPS off. Tile has gps_off graphic and
   off text.
2. Tap the tile, graphic turns to gps_on, text turns to on
   (this is the idle state where GPS is on and available,
   but does not acquire satellites).
3. Start Google-Maps, once GPS is locked, graphic changes
   to gps_locked.
4. Now stop Google-Maps. Graphic will change to gps_off
   though you would expect it to return to state (2) above.

PS2: always set iconId=0 unless we have a GPS fix

Change-Id: Id044635016a848bb6bc02032b87e977ba0782f06
Framework: Fix GSM signal strength

Certain OEM gsm ril libs send back a bogus value for LTE signal
that causes SignalStrength.java to default to LTE and report
incorrect signal values.
Use prop value ro.telephony.ril.v3=signalstrength to get proper
GSM signal reading on certain devices.

Change-Id: Ibb23d7b3a2d21001ccbbc6ebfbdc3c5248f18cfc
Signed-off-by: dhacker29 <davidhackerdvm@gmail.com>
telephony: hide needsOldRilFeature

Change-Id: I741b510fdacc166ad40741bf2e9db5c8a1039384
Squashed commit of GPS changes from CodeAurora

GpsLocationProvider: ipv6 support

AGPS calls to accept ipv6 addresses

Change-Id: If9187b8fd9e0ba22cd01722d5c04aabccebad38b

GPS Provider changes

Added support to delete aiding data test feature.
Added more data catagories, to now at the total of 21

Change-Id: Icb15d21b8204323021c47eac5249cde128e38246

GPS provider - AGPS Dual APN support

To support either SUPL or any WWAN connection - allow connction
type at open request API; FW's support to dual AGPS connections

Change-Id: Iecb07f31a99353f75c1a0c000bb6e39ef007f6bf

Supporting IPv4v6 and IPv6 bearer types for ATL

Change-Id: Ife8c72d9975ac58b9e4091cb95ad5a9763e01c3f

gps: determine ip protocol type from telephony.db

Instead of determining the ip protocol type from the
type of ip address we have, the ip protocol type is
looked up in telephony.db based on the carrier and apn.

Change-Id: Ib0d76354515fb44f570668d5a4a42cccfa6fe78a
CRs-Fixed: 376537

gps: get apn when supl is already active

When supl is already active, get the apn and bearer and
try to connect, instead of reporting failure.
CRs-fixed: 401408

Change-Id: I2eed11e0a34a55d1b62d37f0a6c97b1f3f2fecae

gps: allow xta data over default mobile connection

If the default mobile data connection is up and
connected, use that connection to download xta data.

Change-Id: Ic5ff5422ac9baf83ac923faeb1f8b4fc9186c184
CRs-fixed: 399721

GpsLocationProvider: Support type wifi in i/F request.

Add support in GpsLocationProvider for wifi type for
i/F request.

Change-Id: I44463e72857c06ae24626b8f3cd482ddac7c278b

Conflicts:

	services/java/com/android/server/location/GpsLocationProvider.java

gps: adding net_raw gid for IPC permission

for AFW to have permission to call loc api

Change-Id: Ifc7451659431fa1c1998f5d75bfa5f2018a5d054

gps: fixed singleshot session that doesn't stop

When a single shot location is requested and a
location is returned, the location request is
not stopped and so it continues even when the
requestor has stopped listening. This can cause
gps tracking to continue in the backgroud and eat
up battery.

This is fixed by stoping the provider if there
are no more update record associated with it
when a location is returned.

Change-Id: Ie437732ff06231a46724843af30e21ca3a1694ab

gps: return dummy apn instead of null

This change was missed during merge, which
can cause exception(crash) if apn is returned
as null.

Change-Id: I15160c8f2f512cc75bbe1b7b7ef4695c201112d8
Grant qcom_oncrpc group to system_server

 * Needed for RPC-based QC GPS

Change-Id: Idebc5f6f8e7f8c136d931d7638338d3611895d8a
GPS fixes

 * Add gps user to ZygoteInit so QC drivers can set up their sockets.
 * Fix JNI method signature of reportAGpsStatus

Change-Id: I6686ee715ff2db72edbcf4e4daad2feb1670090a
Merge "Updated simplified Chinese translations" into jb-mr1
Merge "Updated Japanese translations" into jb-mr1
Revert GPS changes for now until issues are resolved.

Will do a refactoring to better isolate this code.

Revert "GPS fixes"

This reverts commit 84c6741f03118168aa61f2e028efae2ea4953a9f.

Revert "Squashed commit of GPS changes from CodeAurora"

This reverts commit 669786140ea7579dcbe05eb2d5199ebf161239a1.

Change-Id: Ib1a55d1be8dbc933c690b2f06af206ab5511903c