Revert "Avoid possible memory leaks by ensuring stream closures"

This reverts commit fac0e23d3994438d5647176c7d004fa14a6a617e.
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
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 gallery.

Change-Id: Ic26b50cd531680e0e9277f2e1029f0965248d674
CRs-Fixed: 430954

Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>

- Also fix EC3 and MID having same int

Change-Id: Ic26b50cd531680e0e9277f2e1029f0965248d674
Feat: Allow users to disable safe headset volume warning (1/2)

Change-Id: I5da8e84215a7d6e4c2f9a1f21e7239826e6f9fda
Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>