summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Introduce netd_client, a dynamic library that talks to netd.Sreeram Ramachandran2014-05-141-0/+29
| | | | | | | | | | | | | | | | | | | | This library is dynamically loaded and used by bionic, to replace selected standard socket syscalls with versions that talk to netd. Implement connect() by requesting that the socket be marked with the netId of the default network and then calling through to the actual syscall. There are two escape hatches: + If the fwmark server is unavailable, it isn't an error; we proceed with the syscall. This might help at boot time (when the server isn't ready yet) and if we get rid of the fwmarkd socket entirely in future platform versions. + If the ANDROID_NO_USE_FWMARK_CLIENT environment variable is set, we don't attempt to use the fwmark server (even if it's available). This allows apps to sidestep unforseen issues in production at runtime. Change-Id: Ib6198e19dbc306521a26fcecfdf6e8424d163fc9
* Merge "Add VirtualLightRefBase"John Reck2014-05-091-0/+7
|\
| * Add VirtualLightRefBaseJohn Reck2014-05-091-0/+7
| | | | | | | | Change-Id: I040db87d9e87ba0584e7e5bdd72f0c319a522fa1
* | Fix ucontext_t forward declare for mac.Christopher Ferris2014-05-091-0/+5
| | | | | | | | | | | | (cherry picked from commit afa9c9cd725c081e7286f09937a41ae9c28853d6) Change-Id: I6dacdfacfdff0c3ce5166207cfd60adb347ee347
* | Fix mac build.Christopher Ferris2014-05-091-1/+3
|/ | | | | | | | | Forward declare ucontext_t so that it's not necessary for ucontext.h to be included in the global header. (cherry picked from commit b138037b266487e79c729d9daae94ed31b93e550) Change-Id: I0ffb5bf7c53da8467dd8770880ff412a5158d639
* am 3adbe79d: am 66e31dc5: am 3a088524: Merge "Rewrite unwind thread handling."Christopher Ferris2014-05-091-1/+2
|\ | | | | | | | | * commit '3adbe79d2f14665ff55a9b0db245abebc105658d': Rewrite unwind thread handling.
| * am 66e31dc5: am 3a088524: Merge "Rewrite unwind thread handling."Christopher Ferris2014-05-091-1/+2
| |\ | | | | | | | | | | | | * commit '66e31dc51e0d8db595cc1514527c4db6f5cdeba7': Rewrite unwind thread handling.
| | * Merge "Rewrite unwind thread handling."Christopher Ferris2014-05-091-1/+2
| | |\
| | | * Rewrite unwind thread handling.Christopher Ferris2014-05-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new version doesn't require any specialized thread implementation, it uses the Current implementation to do its job. In addition, it runs much faster when multiple threads are trying to unwind at the same time since the global signal lock is held for only a small amount of time. Even running through the threads one at a time should be faster since it no longer requires two passes through the unwound stacks. The new code now allows multiple simultaneous unwinds of the same thread. Finally, add the ability to unwind from a ucontext_t passed in. This functionality doesn't work for remote unwinds yet. Change-Id: I4d181d7ca5ffd2acfd1686e668e6d21e36b425cb
* | | | am d1c807a8: am 22a289a0: am 7112e4c7: Merge "Remove the dead corkscrew ↵Elliott Hughes2014-05-075-424/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | header files too." * commit 'd1c807a8807dc85ce5efe7997b440b3a5dc2e4d3': Remove the dead corkscrew header files too.
| * | | am 22a289a0: am 7112e4c7: Merge "Remove the dead corkscrew header files too."Elliott Hughes2014-05-075-424/+0
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '22a289a0b6fcb1c0edc372e477c876819749addd': Remove the dead corkscrew header files too.
| | * | Remove the dead corkscrew header files too.Elliott Hughes2014-05-075-424/+0
| | |/ | | | | | | | | | Change-Id: I0dd5cf3966994db19d98f60805211ed39099465a
* | | am 21852477: am 15704b1b: am d9bb6770: Merge "logd: 64-bit compile issue"Mark Salyzyn2014-05-021-0/+3
|\ \ \ | |/ / | | | | | | | | | * commit '218524778a02ef53a74dcdbd17923441c3d90305': logd: 64-bit compile issue
| * | am 15704b1b: am d9bb6770: Merge "logd: 64-bit compile issue"Mark Salyzyn2014-05-021-0/+3
| |\ \ | | |/ | | | | | | | | | * commit '15704b1bdfc7ddf080d50f7a5cf478dfb6608962': logd: 64-bit compile issue
| | * logd: 64-bit compile issueMark Salyzyn2014-05-021-0/+3
| | | | | | | | | | | | | | | | | | | | | - ULONG_MAX is used against an uint32 - Add tv_sec_max and tv_nsec_max constants to log_time Change-Id: Ic86cd7b0680868ad0536198b71a34cb19134fc22
* | | Remove AUDIO_CHANNEL_OUT_SURROUNDGlenn Kasten2014-04-291-4/+0
| | | | | | | | | | | | Change-Id: Id163902dd2c83200201012ffb704d338e81ea471
* | | Add AUDIO_CHANNEL_OUT_5POINT1_SIDE and AUDIO_CHANNEL_OUT_QUAD_SIDEGlenn Kasten2014-04-291-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | for use by downmix effect Also add documentation about platform convention for interleaving. Change-Id: I44f837e876c6e8f5f70a726d797631ffa556cf9f
* | | Rename AUDIO_CHANNEL_OUT_QUAD and AUDIO_CHANNEL_OUT_5POINT1Glenn Kasten2014-04-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | to AUDIO_CHANNEL_OUT_QUAD_BACK and AUDIO_CHANNEL_OUT_5POINT1_BACK respectively, for consistency with terminology used in downmix effect For the time being, preserve the old names to avoid changing existing code. Change-Id: I11131e3f66087090a590c93921092ca4fc78cf1c
* | | am 29941ec8: am f8db4afb: am ab3d49b0: Merge "Use the si_code value bionic ↵Elliott Hughes2014-04-261-0/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | passes us." * commit '29941ec81705bdcad2b43f0059e1288304c523e8': Use the si_code value bionic passes us.
| * | am f8db4afb: am ab3d49b0: Merge "Use the si_code value bionic passes us."Elliott Hughes2014-04-261-0/+1
| |\ \ | | |/ | | | | | | | | | * commit 'f8db4afb703e0005eca7207bfdcc989c6cf66f1a': Use the si_code value bionic passes us.
| | * Use the si_code value bionic passes us.Elliott Hughes2014-04-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bionic needs to re-raise various signals, which means the si_code debuggerd sees has been clobbered. If bionic sends us the original si_code value, we can use that instead of the one we see when the ptrace the crashed process' siginfo. Change-Id: If116a6bc667d55a6fb39b74f96673292af4e4c8c
* | | am d2674cba: am 0a04c556: am 19759a08: Merge "audio: fix ↵Rom Lemarchand2014-04-241-6/+10
|\ \ \ | |/ / | | | | | | | | | | | | | | | audio_is_bluetooth_sco_device()" * commit 'd2674cbad9dac54ae23d1bbcdf137d75d582258f': audio: fix audio_is_bluetooth_sco_device()
| * | am 0a04c556: am 19759a08: Merge "audio: fix audio_is_bluetooth_sco_device()"Rom Lemarchand2014-04-241-6/+10
| |\ \ | | |/ | | | | | | | | | * commit '0a04c556947e4fb8e12cd73b9aded27318002336': audio: fix audio_is_bluetooth_sco_device()
| | * audio: fix audio_is_bluetooth_sco_device()Eric Laurent2014-04-241-6/+10
| | | | | | | | | | | | | | | Bug: 14268964 Change-Id: Ia2a185c5e0939930c5114209651a1e0db6c36ef3
* | | am 6d7a2ee4: am b1bcd9c3: am 6798914b: Merge "Improve liblog\'s fatal logging."Elliott Hughes2014-04-241-3/+3
|\ \ \ | |/ / | | | | | | | | | * commit '6d7a2ee4e8b590071042ae424a3e8c951f198a8f': Improve liblog's fatal logging.
| * | am b1bcd9c3: am 6798914b: Merge "Improve liblog\'s fatal logging."Elliott Hughes2014-04-241-3/+3
| |\ \ | | |/ | | | | | | | | | * commit 'b1bcd9c3ae89f9060fcd8468d5a04f3710e2b1a6': Improve liblog's fatal logging.
| | * Improve liblog's fatal logging.Elliott Hughes2014-04-241-3/+3
| | | | | | | | | | | | | | | | | | | | | This makes LOG_ALWAYS_FATAL and LOG_ALWAYS_FATAL_IF as good as regular assert(3). Change-Id: I0666684d30cae7baf23c64b33d35c1e43f81acf0
* | | Usb Capture ImplementationPaul McLean2014-04-231-4/+19
| | | | | | | | | | | | Change-Id: I0b5166cc380419455373d590b9a6c4b21bf6634c
* | | am f7770d59: am 19697f3e: am 3ad0af6d: Merge "logd: liblog: logcat: ↵Mark Salyzyn2014-04-171-0/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | debuggerd: Add LOG_ID_CRASH" * commit 'f7770d59dfdc5b3b6fe94f167636b75c1c5d4a81': logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH
| * | am 19697f3e: am 3ad0af6d: Merge "logd: liblog: logcat: debuggerd: Add ↵Mark Salyzyn2014-04-171-0/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | LOG_ID_CRASH" * commit '19697f3e1eaf9c54b612e42f93619658194707cd': logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH
| | * Merge "logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH"Mark Salyzyn2014-04-171-0/+1
| | |\
| | | * logd: liblog: logcat: debuggerd: Add LOG_ID_CRASHMark Salyzyn2014-04-161-0/+1
| | | | | | | | | | | | | | | | Change-Id: Iea453764a1a4fc1661f461f10c641c30150e4d20
* | | | am 4f7e54f3: am fe545b9c: am 0516aded: Merge "logd: libsysutils: logd ↵Mark Salyzyn2014-04-171-0/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | startup outside init environment" * commit '4f7e54f32d256e285c400a0f8cfa56bff9d5a8fa': logd: libsysutils: logd startup outside init environment
| * | | am fe545b9c: am 0516aded: Merge "logd: libsysutils: logd startup outside ↵Mark Salyzyn2014-04-171-0/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | init environment" * commit 'fe545b9cb7188036d5fe8c433c7c87dd1b364c2b': logd: libsysutils: logd startup outside init environment
| | * | logd: libsysutils: logd startup outside init environmentMark Salyzyn2014-04-171-0/+1
| | |/ | | | | | | | | | Change-Id: I3426b6c3eebdd0c8258e966dcaaaa2825d7a23d1
* | | Merge "libutils: Clarify Condition::signal wakes up exactly one thread"Igor Murashkin2014-04-151-1/+12
|\ \ \
| * | | libutils: Clarify Condition::signal wakes up exactly one threadIgor Murashkin2014-04-151-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Contrary to POSIX pthread_cond_signal guarantees, bionic will wake up either zero or one threads. Change-Id: I628fcd4d5bd8d5290104506f86caa82c54142230
* | | | Merge "cutils: Add property_get_bool, _get_int32, _get_int64"Igor Murashkin2014-04-141-0/+59
|\ \ \ \
| * | | | cutils: Add property_get_bool, _get_int32, _get_int64Igor Murashkin2014-04-111-0/+59
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Read out system properties with same syntax as SystemProperties.java * Also adds unit test suite to validate correctness of properties * Also fixes buffer overrun in property_get Change-Id: Ifd42911f93e17da09e6ff1298e8875e02f3b6608
* | | | Merge "Add a peekOldestValue"John Reck2014-04-141-0/+9
|\ \ \ \
| * | | | Add a peekOldestValueJohn Reck2014-04-111-0/+9
| |/ / / | | | | | | | | | | | | Change-Id: I89d8ea14c8ac02653d9c0e1fe24a4b17bb9c87f5
* | | | am c5aff686: am cda31324: am 4706320e: Merge "Include 64bit valgrind in the ↵Narayan Kamath2014-04-141-0/+1
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | android_filesystem_config." * commit 'c5aff68693dee788a28a0d0256782cc8521aa2a5': Include 64bit valgrind in the android_filesystem_config.
| * | | am cda31324: am 4706320e: Merge "Include 64bit valgrind in the ↵Narayan Kamath2014-04-141-0/+1
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | android_filesystem_config." * commit 'cda31324afdc3e9d1bc5d2e9ee45985cf1fb8819': Include 64bit valgrind in the android_filesystem_config.
| | * | Include 64bit valgrind in the android_filesystem_config.Narayan Kamath2014-04-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Required so that we set the exectuable bit correctly. Change-Id: If59bd0ff47d2b4b2b8f92a1c007b4ba414ea1876
* | | | BitSet32 64b compatibility fixAndreas Gampe2014-04-111-3/+22
| |_|/ |/| | | | | | | | | | | | | | | | | | | | Using __builtin_c{l,t}zl fails on 64b systems as unsigned long is 8B there. However, unsigned int is only guaranteed to be 2B. Introduce a check that should be optimized away by the compiler. Change-Id: I854d0817c6bb5ae13c257241240664bf8f1a7c8a
* | | am 63a14ed7: am ae3ba0b3: am 472e04f2: Merge "logd: liblog: logcat: enable ↵Mark Salyzyn2014-04-091-4/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | prune features for user" * commit '63a14ed7fc728f84f9496fc99bc1df01b5bc8b16': logd: liblog: logcat: enable prune features for user
| * | am ae3ba0b3: am 472e04f2: Merge "logd: liblog: logcat: enable prune features ↵Mark Salyzyn2014-04-091-4/+0
| |\ \ | | |/ | | | | | | | | | | | | | | | for user" * commit 'ae3ba0b339e7a768fe58f179fdab55f273419e1e': logd: liblog: logcat: enable prune features for user
| | * Merge "logd: liblog: logcat: enable prune features for user"Mark Salyzyn2014-04-091-4/+0
| | |\
| | | * logd: liblog: logcat: enable prune features for userMark Salyzyn2014-04-021-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | - Enable whitelist, blacklist and logsize tuneables for user Change-Id: Id0c283844c71c5263a8cfbebf2e550f7ac415858
* | | | am 1f87d3ab: am 83fd6375: am 31631861: Merge "Add guards to prevent typedefs ↵Tim Murray2014-04-071-0/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | when C++11 is available." * commit '1f87d3ab8c384d03d1496c63f7faad15bd5eeba9': Add guards to prevent typedefs when C++11 is available.