Adds null check for proximity wakelock

Bug: 11319677
Change-Id: Ie62144dc5a738bb294a802230dce7847f734f39e
Add back supplementary service notification handling.

Change-Id: Id4cdc4dbae1c262041ab3afcb3264dfe6d3673fa
Remove an extra logging call left over from development.

Change-Id: I41cda7bc38bad1acc3ad3e1270947fe77fab9416

Bug: 11748959
Decrease the timeout for unknown endcall screen from 5 to 2 sec.

bug:11651065
Change-Id: I1ab2b3690a4bb655e94811c8831a6da0d9400edb
[1/2] InCall: Add a non-intrusive dialog for incoming calls

Change-Id: I7c8b5cc5138a5543be30579e99bd9989624e2abe
[3/3] InCallUI: allow disabling non intrusive incall ui

Change-Id: I86bd4b46f031004fa90f1d7936263f9dabcd3860
Merge tag 'android-4.4.2_r1' into HEAD

Android 4.4.2 Release 1
Updated Hungarian Translation

Change-Id: I8f3017277bed7493af1cb1a69b41672bd5db900c
TRDS: Dark InCallUI

PS2:
- moved into right folder

PS3:
- redirect colors of original layout xml

Change-Id: I5bcfeb692bc4653e240df7c47216826452ee7d47
Merge "TRDS: Dark InCallUI" into kk4.4
Missing lines translated to Russian

Change-Id: Iee85d9a8f29caf593aeac2487a0498820686c14d
In-Call UI from blue to white

we changed the default dialpad from blue to white
but forgot this in call dialpad,
make it white ui to be consistent

Change-Id: Ie715340d69adb1514e5f1d5bb159b8c42494015a
trds: cleanup!

drawables not needed anymore after this
https://gerrit.slimroms.net/#/c/1675/

Change-Id: Ic237384fe60f23dd2b953da5d7be36c9a4c1191d
Remove non intrusive incall ui (3/3)

There are several reasons for it

- to call every time a complete new activity is the wrong way. It needs
to be handled like google is doing it which keeps the activity permanent
alive to get it as fast as possible to the front. Especially noticeable on
slower phones

- of course current way freezes the forground app....so question what is
non intrusive on this feature

- Handling what happens when screen if off and the user is not in an
activity needs to be reworked

Whatever currently we have not much time to work that all out. So for
now we remove till this feature is completly redone. All points are solvable
but need work especially point 2 which is the most work. Other points are easy
to solve. Aside that our old feature "call in background"
returns back.

Change-Id: I629b749927d154cd36438b71c4a3552a7d6e3bf6
InCallUI: Incoming Call in Background (1/3)

Patch ported from 4.2 which was done by our lovely HCP. A
very popular one so we bring it back and adapt it to 4.4

Allows user to set that Incoming Call UI will remain in background
if screen is on. Instead, a notification is added to StatusBar, which
can be used to bring up the Incoming Call UI. Ringtone and vibration
still occur as per system settings.

This has the same effect as apps marked as "immersive". It prevents
the incoming call from backgrounding the current activity.

PatchSet:
- show normal inCallUI if keyguard is currently active

PS:
- cleanup

PS
- do not try to get the services if the feature is disabled

PS:
- do not disable notificationshade and navbar if it is a background call

PS:
- derp

Change-Id: I68e432a548c10d07cc9d668782cb544fbb4d421d
InCallActivity: consume back key on incoming call screen

Users will not be able to anything if the physical back key is
pressed on the incoming call screen (return to home screen with
nothing responding.)

Forward porting the key consumption from 4.3

Change-Id: Iea0734852bac7ca5a25e19ec9d9ee7c80dba6741
[3/3] Flip to Mute/Reject Call

Ported over from 4.2 implementation (thanks sasikumardr for that)

Original author of this patch was bugadani

We did just a cleanup

Provide easy mute and dismiss functionality for the phone application.

Available actions:

0: mute ringer
1: dismiss call
2: no action (default)

PS:
- fix NPE

Change-Id: Ia10df0045e9919c6b7efc97857abaeba246c365d
InCallUI: add decline and answer  incoming call action on notifications

Add decline and answer call action on notification if an call is incoming. Especially
usefull for call in background feature to have the ability to directly
decline or answer a incoming call. But as well usefull to decline/answer a second call
during one is incomming.

PS:
- found a better way for the answer button

PS:
- fix keep flip action alive
- fix collapse notification shade when answering call
- answer call before starting the UI to do not have
  shown the incall screen for a brief second

PS:
- fix wrong user on sending close system dialogs

Change-Id: I92d8f5a2de74f9877a61c4da4c3eaf2e25230895
Keep InCallUI in memory (1/3)

In lower end devices, startup of the InCallUI process can take
up to 10 seconds when the device is busy, which prevents the user
from taking the call. Keep the process in memory like previous
versions where they are a part of Phone.apk.

This converts InCallUI into a dummy apk with the persistent
attribute set to true and allows the activity from Dialer.apk,
which uses the com.android.incallui process to be loaded into the
persistent process.

Change-Id: Idfb7fa760eacc8d6e46d50ce682fb06c0acfc8f4
InCallUI: Set Ticker to contact

Display contact/number/confrence
	in notification ticker.

PS2:
Implement Kufikugel's suggestion.
	Incoming call ticker only.

Change-Id: Ie89cceb67aecbf3dd15abd07dc35110f7fddc2f9