- 19 Jan, 2017 2 commits
-
-
Jerry Zhang authored
-
Jerry Zhang authored
This way they don't immediately destruct. Also up the logging for an allocation failure and use posix_madvise to possibly improve memory performance. Test: Transfer files and verify that allocs are scoped properly Bug: 30976142 Change-Id: If8d2c03cefcc98a83bbb57618c35337529437f73
-
- 17 Jan, 2017 2 commits
-
-
Jerry Zhang authored
-
Jerry Zhang authored
The string is used in some hosts like Mac to check for MTP devices. Test: Connect device Bug: 30976142 Change-Id: Iac616997dc8afd0bdf03de0d13dee7baa6483904
-
- 12 Jan, 2017 3 commits
-
-
Mark Salyzyn authored
-
Treehugger Robot authored
-
Mark Salyzyn authored
Test: compile Bug: 34250038 Change-Id: Ie3b92790df631dbacdd51053264dddeba66913c1
-
- 11 Jan, 2017 5 commits
-
-
Treehugger Robot authored
-
qinzhichao authored
when playing multimedia file, GenericSource::getTrackInfo run in the NuPlayerDriver thread, and GenericSource::getFormatMeta run in the Generic thread. they would access the critical resource which is mMetaData in IMediaSource. There is no lock to protect mMetaData. Occasionally, SIGSEGV occurs when mMetaData point to a new object. Instead getting trackInfo in Generic thread. Bug: 34220591 Signed-off-by:
qinzhichao <qinzhichao@xiaomi.com>
-
Pavlin Radoslavov authored
Protect the Audio Policy Manager by adding extra checks for data.readCString() strings when parsing / decoding a Binder transaction. Also: * Moved audio_is_output_device() / audio_is_input_device() checks inside handleDeviceConfigChange() from the AudioPolicyInterface to the AudioPolicyManager * Removed similar redundant checks inside AudioPolicyService::setDeviceConnectionState() Test: code compilation Change-Id: Ib32a28ba2669b73aaf32b31bb18f41c8dd7d2605
-
Jerry Zhang authored
-
Jerry Zhang authored
The ioctl preallocates kernel buffers for the read/write syscalls, reducing memory fragmentation and allowing for larger buffers, as well as removing the kmalloc overhead. Test: Manual Change-Id: I9f5fef1b1625c1a2cda374541d8042f7e0ba78f5
-
- 10 Jan, 2017 5 commits
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Jack He authored
* Since system/bt depends on this library, it needs to be converted to Android.bp before the conversion in system/bt can be continued. * Majority of work is done by androidmk Android.mk > Android.bp * Fixed sanitize arguements * Removed LOCAL_EXPORT_C_INCLUDE_DIRS as Android.bp only supports exporting sub-directories of current Android.bp file * Removed frameworks/av/media/libmedia/aidl include path as it no longer exists and Android.mk failed to check that * Removed include path for audio-utils as it is being automatically included when we link against libaudioutils * Android.mk file must be deleted as a library of the same name can only be defined once in either Android.bp or Android.mk * A library defined in Android.bp can be used by either Android.bp or Android.mk files. However, a library defined in Android.mk cannot be used by Android.bp file. Therefore, for system/bt to link against this library in the Android.bp, this library must be converted first Bug: 32958753 Test: Code compilation, no user visible effect Change-Id: I2ae87a1151ed4235122c7774096c2dbff8b1fc62
-
Mark Salyzyn authored
Test: compile Bug: 30465923 Change-Id: I247151363604714088b6059279702702b4e9f89a
-
Treehugger Robot authored
-
- 07 Jan, 2017 1 commit
-
-
Andy Hung authored
-
- 06 Jan, 2017 2 commits
-
-
Treehugger Robot authored
-
Dan Albert authored
The system versions of these libraries aren't versioned yet. Bug: https://github.com/android-ndk/ndk/issues/278 Test: make ndk Change-Id: I139f34217c8855a366ecb537bfabf2ca0181e4d3
-
- 05 Jan, 2017 3 commits
-
-
Treehugger Robot authored
-
Jerry Zhang authored
-
Jerry Zhang authored
Assuming 64 bit long offsets caused 32 bit tests to fail Test: verified async_io_test passes on 32 and 64 bit Bug: 33846003 Change-Id: I2db126068037f674beeacd5bc30364010c858350
-
- 04 Jan, 2017 2 commits
-
-
Robert Shih authored
-
xiahong.bao authored
MPEG4Write mdhd duration of AV track is larger than INT32_MAX after record over 15 hours, so write mdhd box as version 1 type which enhance duration to 64 bit. Change-Id: I874b0a0ddfb7fb8f5b0a255345d8605b6c8ebf68 Signed-off-by:
xiahong.bao <xiahong.bao@nxp.com>
-
- 03 Jan, 2017 1 commit
-
-
Mark Salyzyn authored
Test: compile, no poc for boundary violation. Bug: 34056274 Change-Id: I23f5ccba8f211e01d9a3a741c8ea537b55aab4e2
-
- 28 Dec, 2016 2 commits
-
-
Treehugger Robot authored
-
Pavlin Radoslavov authored
* Added new call handleDeviceConfigChange() to the Media Framework. That call can be used when there are device configuration changes (e.g., Bluetooth A2DP codec configuration has changed). * Added new method AudioPolicyManager::handleDeviceConfigChange(). That method toggles the UNAVAILABLE/AVAILABLE connection state of the device, so it can be reconfigured as appropriate - e.g., the audio feeding parameters can be updated. * Fix ALOGVV compilation errors when extra logging is enabled. Test: A2DP streaming to headsets Bug: 30958229 Change-Id: I388abbbb3ec4d1a003b441cb0c77e00d80cad668
-
- 22 Dec, 2016 4 commits
-
-
Mark Salyzyn authored
-
Alex Klyubin authored
-
Mark Salyzyn authored
Test: compile Bug: 31289077 Change-Id: I795a76f978d2213737f1fa908da789c543219b75
-
Jinguang Dong authored
From code analysis, we should make sure that M3UParser::initCheck returns OK then perform hash memcpy. This would prevent NuPlayer from overlooking a malformed M3U8 and crashing later on a NULL derefernce. Test: 1 Play http://117.34.15.47/7d.v.iask.com/player/ovs1_idx_chid_1054589_br_400_fn_4_pn_weitv_sig_md5.m3u8 2 mediaserver does not crash Bug: 33763371 Change-Id: I3d8f5450cdf45288110121973c679c8d58210d5c
-
- 21 Dec, 2016 1 commit
-
-
Alex Klyubin authored
This is part of weaning apps off accessing system identifiers via system properties API. Apps should use android.os.Build API instead. Bug: 33700679 Test: Enable MTP mode then check that mtp-detect output same as before this commit Change-Id: Ic21da7b8e976aaa1abc606a3cb4a1f2bd8698408
-
- 20 Dec, 2016 3 commits
-
-
Eric Laurent authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
- 19 Dec, 2016 2 commits
-
-
Marco Nelissen authored
Bug: 32875080 Change-Id: I9d6808812e735e58e8b477635441fd92f94f8d25
-
Marco Nelissen authored
Tracks and descriptions were added to their respective lists in opposite order, so dumpsys could mix up the format and active state for a given track. Also fix potential NULL pointer dereference. Bug: 33179012 Change-Id: I700d535da0e72f5641bf9257a34fdb5d5d068b12
-
- 15 Dec, 2016 2 commits
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-