frameworks/base: IT translations

Change-Id: I0ddeb31a240c53adf81c361102b033abe5759fd6
(cherry picked from commit 10e5a5d85f5a9147412a02a637c475a4abf1b860)
Clear the scan list when an empty list is received

When the framework receives an empty scan list from supplicant, it does
not clear the local list. So the UI will continue to show the previous
scan list even when there are no APs around. So clear the local list,
when an empty list is received.

CRs-Fixed: 552212
Change-Id: I8715bc31ce0df7bd54c96fcf7d7b73592429f12a
(cherry picked from commit 6e00504ad94a74ea0a73ef1d5b34b91b6edded7f)
wlan: Error handling on PNO failure due to active P2P session.

If set PNO fails due to concurrent active p2p sessions,
handle the error condition in framework and issue a
regular scan for every framework background scan interval
until set PNO is either success or disabled.

Change-Id: Ia4e8d9aef9ed24e534cb57cea7c8ba7a7ffc509e
CRs-Fixed: 568458
(cherry picked from commit dadecbba2e5d8b68168775ff134fa36ebf0e1f2f)
Close sockets on wpa_supplicant termination.

Framework does not close the sockets on supplicant
termination, leading to leakage of file descriptors.

Thus close the socket on supplicant termination.

Change-Id: I50aefc6d60b3794288564f403a42258442e224df
CRs-Fixed: 576276
(cherry picked from commit b488b5a1b45de2c2161bc61b31e573cf6138bcee)
frameworks/base: add app launch timeline instrumentation

Displayed Activity is often being used to measure application
launch times. However Displayed Activity only accounts for a
subset of the app launch. This additional instrumentation will
allow for more accurate measurements of applications launch
times.

Change-Id: Ic0bc6f0110c3ecbbce9eccd9357818a8a898475e
(cherry picked from commit 2cc3e04c36e585d87ec7bca79363beb7a984af4b)
wlan: Fix for delay in PNO scan trigger after p2p disconnect.

If PNO is disabled due to concurrent active p2p session,
on P2P disconnect PNO scan is not triggered until the next
framework scan is scheduled.
To mitigate this issue trigger the PNO scan on receiving
P2P_CONNECTION_CHANGED intent in disconnect state of the
wifi state machine.

Change-Id: I9de116f4c82ce103a5787f91b7c7129748fee517
CRs-Fixed: 584058
(cherry picked from commit a104a15da44f94122aa3b2a2c58fd0da2a4b1d8a)
framework/base: get proper obb mountpoint based on user handle

Due to invalid obb mount point, CTS test case was failing to mount
obb file at /mnt/shell/emulated/0. Added new API to support user
based mount point for obb.

Change-Id: I9f113bd98ab3a4af00dd7f788b2dc3bc45627d6c
CRs-Fixed: 587497
(cherry picked from commit 327cc97a0917bedd177c53d379912f63227629ee)
Keyguard: disable statusbar clock for dashclock, lockclock and desclock

afaik this was an original commit from Danesh and we extended it later.
Whatever thanks to him in this case :)

Change-Id: I67a370b0a76f938fa3e022e8c467f2d6ebca87c0
(cherry picked from commit 50a5254dff0424b53458660ecc08e1f3c9c25285)
Keyguard: fix not shown overlay widgets from system

google derp....due that if widgets are disabled current AOSP
code just add the default widget. Then checkAppWidgetConsistency()
detects a widget which was added and the complete method is non op.
Whatever lets handle the whole process over checkAppWidgetConsistency()
on widget disabled it tries to bind the default widget over overlay if
this is without sucess it falls back to the system one.
Safemode falls always to the system one

This fixes as well an issue that the saved default id in LockPatternUtils
is not reseted back to default if all widgets were deleted from the user.
Based on an old patch from danesh. Thanks for the
suggestion

Change-Id: Ic8543e0b5e83114e57942225935870f45deda97e
(cherry picked from commit 99406fe298115016075f643002e9be7cc547bd6f)
SystemUI: Add double tap to sleep gesture

Change-Id: I4c54718e8ec8774677d13917b3a7ffa3b4b18cb5
(cherry picked from commit 291565a963f19ecda2e28b44f6a947d163f15ab9)
Revert "Statusbar: Time and Date actions"

This reverts commit 360df343625a7491a6d994e795d67fbd6b3d4286.

(cherry picked from commit 4f1255f5bce5e29ab1af395e62b9090a9ebc256c)
Framework: Change stock Clock-Click Actions

Separate into two views and add:
	Date: View Today Calendar
	DateLong: New Event Today
	Clock: View Alarms
	ClockLong: New Alarm

PS2: Catch Missing Intent

Change-Id: I578df64691c0d957cc3923958abae9a0f9d02b88
(cherry picked from commit 6011567754c066bb344668eda6528c31009c925f)
systemUI: fix date and clock layout

in notification drawer after clickable actions change

Change-Id: I5979d5537e5fe3347fe7cd2bdf68786c63dc812d
(cherry picked from commit 622d66442b7e8cf2a7ab11a43f277520e924a5e3)
Keyguard: let the user drag the challenge down if widgets are disabled

for the system clock widget this does not make much sense but due
that our system default is DashClock it makes a lot sense to
allow it to see more content of DashClock extensions

So allow it for overlay added app widgets if the binding was
sucessfull.

Change-Id: I0365573c6fa88117a47b01ced81eb36f75324342
(cherry picked from commit 419acbc2d43d9f032a81425ce02516a48e53795b)
spelling error "status bra"

Change-Id: I0914af77cbd957024300f4ad621a1dd380edb13d
(cherry picked from commit 69054693e3e87e9d4d89bf55d02cddae744dbb35)
Fix Immersive confirmation in expanded mode.

The confirmation should come only once.

Change-Id: I5914d655bd5f9315ac4cc6fc7d70cc4ee45bb7b2
(cherry picked from commit 6d4c2da20ed8245087ef65baf828f11ce3c14759)
Allow disabling the privacy guard notification

Change-Id: I060139f75edb63572f9c3922e56ee871e765c02a

Patchset: 1
http://review.cyanogenmod.org/#/c/55909/
(cherry picked from commit aae60f63b81fa39f66d8c3271c2c18f3bbbe6b00)