Leak in ToneGenerator_native_setup

Failure in ToneGenerator::isInit causes a leak.
lpToneGen should be deleted.

Change-Id: I48df7a328fed01be8412d5449ee0753dad3c101f
Avoid possible memory leaks by ensuring stream closures

Stream close() methods should always be called in finally block
to ensure we don't accidentally leak a stream.

Time to fix some old sloppy code.

Patch Set 2:
 + ensure closure of some other streams
Patch Set 3:
 + missing import java.io.IOException
Patch Set 4:
 + missing import
Patch Set 5:
 + missing ';'
 + whitespace cleanup
Patch Set 6:
 - Reverted changes to MemoryUsage (final requirement
     prevents my implentation)
 + fixed Object allocation in Root.java
Patch Set 7:
 + fixed curly bracket style violations
Patch Set 8:
 x fixed my own sloppy code :/

Change-Id: I3460b558ed5b4489296388c9a52fbb773cefd31f
StringBlock_nativeCreate: Possible Leak

osb can be leaked when osb->getError() != NO_ERROR

Change-Id: Icbeb8eb3fb78849c043fe032cc8f7050da041042
NsdService: Clear client info after resolution request is serviced.

Currently, the client requests tracked in mClientIds for resolution
requests isn't cleared at all and causes failues of additional registration
and discovery requests once the number of requests reaches MAX_LIMIT. In
addition, bubble up unhandled native events to default state of nsd state
machine.

Change-Id: Ief14e0fff644aa2698fcddd71f538820f802be58
Set "isdrm" info in Mediastore

The mediascanner member mIsDrm was never set
according to the drmframework canHandle call.
This subsequently caused that the isdrm column
in mediastore was never set, and was defaulted
to false for all files.
mIsDrm is now set according to drmframework
canHandle result for each files that is scanned.

Change-Id: Id557d921c4e3e3dfc35da56b69471f4bd6b3c8bf
Handle errors from AudioEffect::queryNumberEffects

There may be cases where queryNumberEffects fails leading
to the usage of the uninitialized numEffects.

Change-Id: If6d46987021ff6f0c9a2123d8714ff5fdf9ced45
Update the JNI spec link, and remove a dead link.

Also remove the duplicate copy of this file. There's a redirect in place
from the old location.

Bug: http://code.google.com/p/android/issues/detail?id=41623
Change-Id: I521b640fdef17c98582171d97214486d16e774e4
transparent nav bar

Signed-off-by: Roman Birg <romanbirg@gmail.com>
Change-Id: I71eb46af407ec97084dcf7944f0c4231c98dbe97
transparent statusbar

Currently just uses the same logic/values as the nav bar. We may want to separate those out

Change-Id: I6188ebd98684c8775b0447b4e6a1f09ec1a78887
Signed-off-by: Roman Birg <romanbirg@gmail.com>
framework\base: Fix the JPEG file indexing

- QC proprietary video format had index same as JPEG, so
  JPEG file is recognized as video clip in galley.

Change-Id: Ic26b50cd531680e0e9277f2e1029f0965248d674
CRs-Fixed: 430954
Base: Increasing ring volume

Change-Id: Ie78f4db7c2e9db4a0464158f85374fcdfd1067b3
Signed-off-by: Petr Reznicek <kecinzer@gmail.com>
Add ability to answer call with hardware HOME button (1/2)

(preparation for winter time)
------

<New edits>:
PS2: Fix port forward compatibility issues and fix up double if statement used in 4.1
PS3: Fix brace derp
Change-Id: I88ff168e3bb1accab9a531267812333c0ae68059