Fix floating window activity result cancellation

Setting Intent.FLAG_ACTIVITY_NEW_TASK on *all* floating window intents
will result in Android dropping activity results for non-new task
activities trying to get results back.

Cheers,
SlimRoms

Change-Id: Ib125bd03733dc73859f7426150110d88319f7625
New Event: ACTION_NEW_OUTGOING_SMS

Change-Id: I8be01ad6251ca25e4d00ebffd876bb6ce7f3c283
Don't enable GPS if the requesting app is blacklisted.

This is transparent to the app, it just sees no location callbacks as
before. It just avoids the additional unneeded battery drain.

Change-Id: Iff98bcc3a4ff724aea8763e08b687441bda9ede0
Add permission that allows cancelling notifications from other apps.

Change-Id: I055b17873e174f71174898a7649b1e221fd8c436

Conflicts:
	core/res/res/values/cm_strings.xml
libdrm: fix bad strncpy / snprintf calls

Fix the following bugs reported by IOActive:
* GOOGLE-AN01 - Android libdrm drm_parseDM.c Boundary-CRLF Buffer Overflow
* GOOGLE-AN02 - Android libdrm 'drm_parseDM.c' contentType-CRLF
		Buffer Overflow
* GOOGLE-AN03 - Android libdrm drm_parseDM.c contentID-CRLF Buffer Overflow
* GOOGLE-AN04 - Android libdrm 'parser_dcf.c' Multiple Headers
		Buffer Overflow
* GOOGLE-AN05 - Android libdrm 'parser_dcf.c' ContentType Buffer Overflow

Bug: 8727221
Change-Id: If386922e907567f54e26897beffaa1cfe4777896
Notification cancellation fixes:
Permission should only allow cancellation of other app notifications, not enqueueing.
Fix checkapi breakage.

Change-Id: Idbcfd4617057984250dc4d4fa32ff55bfbb155e2
Clean up: tabs to spaces

Change-Id: I193bc4b67db0a2290a7a53554e9490a62fc44b42
Merge remote-tracking branch 'github/jellybean' into HEAD

Conflicts:
	core/res/res/values/strings.xml

Change-Id: Icb4d46439ef1653dcf4a1b1fe53eb40623e87131
Fix vertical gesture touch calculations

- Silence HALO touch point was below the Silence HALO marker. (fixed)
- Dismiss (single) notification could be activated while still touching HALO,
  before reaching the dismiss notification marker. (fixed)
Merge pull request #49 from Anu6is/gestureFix

Fix vertical gesture touch calculations
HALO bugfixes

1. some icons were overblown
2. tasking meant having your thumb on the speechbubbles

Change-Id: I04637a5ae96c3d9fa30188a320e13989c48f7f0c
Revert "Fix vertical gesture touch calculations"

i can see the code isn't exactly clear in that regard - it seems like a
miscalculation but it was made to give items enough space to make an
easy flick possible. with a more correct approach it feels a lot harder
to just flick a "hide" because the space is so small, it'll more often
be a "slience" instead.

if you like we can look over the code together and implement a clean
implementation of that UI logic.

my g+ mail is drcmda at gmail.com you can add/contact me there if you
like.

This reverts commit 8cf0d5c62d5fa6c5e8fa51b8273893d32c5b787e.
Halo: Fix icon position in tablet status bar
Fixed xhdpi status icons. ~ Arz Bhatia

Change-Id: Ieefae1fad2e6406d78ec4438e22493e53eb65ccd
Merge pull request #47 from corcoran/jellybean

TEST: Fix floating window activity result cancellation
FLAG_ACTIVITY_NEW_TASK re-added to floating windows

ActivityStack modified to not cancel results if window is floating and "new".

Change-Id: I45f3dcc816092daa4192be91828592a0b2b2ac59
Gesture Fix v2
- Add a buffer between the bubble and the first up marker,
  reduces sensitivity of UP1 gesture preventing accidental notificaion dismissal
PrivacyGuard: New icons close to AOSP style
HALO Size (1/2)

Change-Id: I2780dfee66b0b80b57c62b83c40609104fe3c279
Halo: Icon reorder in Phone/Tablet status bar (fix repositioning after flips)

When tearing down notification panel halo is near quick settings button (no notifications present). When you flip to QS panel and then reflip to notification panel Halo icon change position, moves to third icon layout (as when clear-al button is there) from right instead to stay in the second one.
Icons layouts are reordered and fix this behaviour. From left to right:

Clear-All button // Halo button // QS button.

http://goo.gl/n1GjU

-ToDo: When tearing up the Tablet status bar Clear-All button shows for a moment if no notifications are available, but only the first time. A minor issue, will be fixed as soon as we can.