base: Add a key combo to start/stop video recording

Press volume up and power to start recording a video of your screen.
Press this key combo again to stop it.

PS2: rebased

Change-Id: Id0b13ba1092a1d6e0bf7bff5f14d89764cdf370c
Signed-off-by: Dan Trifan <jimsth@gmail.com>

Conflicts:
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/cm_strings.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Conflicts:
	packages/SystemUI/res/values/euc_strings.xml
Screenrecord: Create the Screenshots directory if it doesn't exist

Change-Id: I2b0458eed024dbda97e9e1ea3426c12d29add781
Power Menu: Add Screen record Option

Adding Screen Record menu entry and Functionality to Power Menu

Change-Id: I715cd91f2db7688ed2ebea18d219090aab4aebcd
Note: Screenrecord is broken on exynos based devices. Trying to record screen will result in device freeze

PS1: Adding Drawable resources for displaying in power menu. Courtesy: ChameleonOS
Change-Id: Ia34f68827576c5bc982f0377929376fa0d9b404d

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/strings.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java

Conflicts:
	policy/src/com/android/internal/policy/impl/GlobalActions.java
SystemUI: Add RECORD_AUDIO permission

Change-Id: I5af3cbe31f182c8b5cf1633aaf8a16db2856a425
SystemUI: Add missing sound permissions for screen recording

Change-Id: If948aabfd5c2e09f192f12aa02830d39346d2c6c
Power menu: standarize capitalization for Screen record

Change "Screen Record" to "Screen record" to match the standard menu
styling.

Change-Id: I61c7adfe06c1d5ebc53c1c0b15b76e6d28a749f4
base: screenrecord: update notification

Update show/hide pointer button for actual state

Change-Id: I02090f05b06896248483f3f9ff2eb22924a22476

Conflicts:
	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/simpleaosp/screenrecord/TakeScreenrecordService.java
screenrecord: Fix SystemUI loop-crash

Change-Id: I25045820465d21b7d1f0e933e5e4f3324cb044b6
Signed-off-by: Dan Trifan <jimsth@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/simpleaosp/screenrecord/TakeScreenrecordService.java
Media process is crashing with NullPointer exception

Sometime, while creating thumnails list of media files in
compose MMS->attach file,  filepath may be null due to
synchronization issue.
Adding NULL check to avoid NUllPointer exception.

Change-Id: Id6cf5612a959b3ae15b44bc60dbbcbe40c624f09
CRs-Fixed: 636494
[Asset Manager] Fix memory leakage bug

Symptom: memory leakage
Root Cause: new SortedVector but not free it in native cpp
Solution: free the SortedVector
Project: AOSP
Note:

Change-Id: Iab5a7f2e8d8509631301e7231427927d4797c856