Fix GCC compatibility issues

Replace n with nn for GCC >= 4.7 to avoid collision with variable n in
lexical block within 'for' statement

Change-Id: Id029c246a9560b6af90f0f5e3abf18b879646180
MtpDevice remove dirty file if readObject fails

Summary:
Imported files(0KB) still exsit when plug bus-power hub with
connected MTP device and UMS after deleted the imported files.

Steps to Reproduce:
1.Plug hub with connected MTP device and UMS to DUT via OTG.
2.Unplug hub from OTG when importing pictures from MTP device.
3.Delete imported files.
4.Plug hub to DUT.

Expected Result:
Impotred files do not display in Gallary and only display MTP and UMS's pictures.

Actual Results:
1.Delete imported files still display in Gallary.
2.Files is 0 size.
3.The numbers of pictures is different from the numbers in Delete imported files sometimes.

Additional Info:
1.Reproducibility (Frequency): 3/5

Solution:
Remove dirty file if readObject fails to read all object data. Else
broken files will leave in filesystem.

Change-Id: Ideeca774eecd8254df30edd9fdc660eba3542b8e
Author: Du, Changbin <changbinx.du@intel.com>
Signed-off-by: Bo Huang <bo.b.huang@intel.com>
AudioTrack: Fix tombstone in AudioTrack::processAudioBuffer

This fixes the tombstone in AudioTrack::processAudioBuffer.
We should createTrack_l first and if we succeed, we create
the AudioTrackThread to run.
Otherwise tombstone happens with NULL mAudioTrack and NULL mCblk.

Signed-off-by: Arulselvan M <arulselvan.m@intel.com>
Signed-off-by: Jin Wei <wei.a.jin@intel.com>

Conflicts:
	media/libmedia/AudioTrack.cpp

Change-Id: Ie3f46176ff3bb39a299dca1259406c8cdf898ca6