Merge "A camera sound that sounds like a camera" into kk44
Don't rely on gcc extensions

Variable-length arrays of non-POD data types are a gcc extension
not currently supported by clang.

Change-Id: I9cd1aed742ac70e642771ff455582727fbafaec2
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Add /dev/rtc backend to SystemClock

On devices without /dev/alarm, use the settimeofday() syscall and the
standard RTC_SET_TIME ioctl (which are collectively equivalent to the
ANDROID_ALARM_SET_RTC ioctl).

Change-Id: I3c1d741099e253186e43c9369b62603b214b9c9a
Signed-off-by: Greg Hackmann <ghackmann@google.com>

Conflicts:
	core/jni/android_os_SystemClock.cpp

Change-Id: I3c1d741099e253186e43c9369b62603b214b9c9a
Fix a variety of small publicly-reported bugs.

Possible NULL dereference in cmds/bootanimation/BootAnimation.cpp.
https://code.google.com/p/android/issues/detail?id=61556

Missing fclose in core/jni/android_os_Debug.cpp.
https://code.google.com/p/android/issues/detail?id=61546

Bad loop guards in core/jni/android_util_Process.cpp.
https://code.google.com/p/android/issues/detail?id=61557

Assignment to wrong variable in libs/androidfw/AssetManager.cpp.
https://code.google.com/p/android/issues/detail?id=61560

Missing delete[]s in libs/androidfw/ObbFile.cpp.
https://code.google.com/p/android/issues/detail?id=61549

Leaks on error in tools/aapt/Images.cpp.
https://code.google.com/p/android/issues/detail?id=61552

Two missing fclose calls in tools/aapt/Resource.cpp.
https://code.google.com/p/android/issues/detail?id=61553

Missing fclose in tools/aidl/aidl.cpp.
https://code.google.com/p/android/issues/detail?id=61554

Change-Id: I5820f3824e72d07a9acb776cf0af3e7443f5694a

Conflicts:
	libs/androidfw/AssetManager.cpp

Change-Id: I5820f3824e72d07a9acb776cf0af3e7443f5694a
Remove duplicate code in Editor.java

Eliminate duplicates by calling resumeBlink()/suspendBlink().

Change-Id: Ia19ae1bf1a5c981700aa20be67ed9d557e2bfc56
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
Prevent MediaScanner infinite loop with invalid path

including double slash  "/storage/sdcard0/xx//xxx/xxxx"

Change-Id: I112a70c88b5ec662482b79c3151310b9b9b52e40
Memory leak: parseObbFile.footer

Change-Id: Ia9e005e63fad7ab364f6c2c80cb98ec98f89b470
Signed-off-by: You Kim <you.kim72@gmail.com>
fix possible buffer overrun and memory leak

Use snprintf instead of sprintf and fclose() before return.

Change-Id: I3ed193464cc0dc90e9935ae19162667ad367628b
Fix up /android_os_SystemClock.cpp

Change-Id: Ie039a76235e99c165ec62a349d247c14323ef09b
Revert CM's brightness slider

After force enabling it on tablets and doing a side-by-side comparison..
CM's brightness slider is less effective than the one we had previously
which worked fine as it was and did not need to be changed.

commit b9c0d6027ce8b025484e07e1519607a0ee08c632
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Tue Jan 7 23:55:32 2014 -0500

    Revert "Revert "Update brightness slider code from aokp""

    This reverts commit 279335d84dbc90be6c8f175e3873e27b54d72875.

commit 63dfd34f42ab6a28ff1b9146eddb7508cf2fe4d3
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Tue Jan 7 23:55:19 2014 -0500

    Revert "Revert "systemui: add brightness slider 2/2""

    This reverts commit 234b4689df0b3c3d405dc154c0b7b458dcdc3bea.

commit 492f495708f00ff1f787a44bc47fe3918231e6ab
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Tue Jan 7 23:54:55 2014 -0500

    revert CM's brightness slider

    Change-Id: I071ef58bc4fd707ceefd14ee1ba4e29bbab22ea7

Change-Id: Id4d986e5adc0961fdc3ff880ec00371afa4e5df3