summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix handle_opendir() in the sdcard daemonKen Sumrall2013-08-141-0/+2
| | | | | | | | | | The fuse_open_out structure returned to the kernel by handle_opendir() was not properly initializing all the fields. The symptom was recursive ls (ls -R) failing on the emulated sdcard filesystem, because rewinddir(3) was failing with ESPIPE. Bug: 7168594 Change-Id: I56ddfd3453e6aac34fe6e001e88c4c46fb2eb271
* healthd: create healthd_board_init()Todd Poynor2013-08-083-25/+33
| | | | | | | Subsume healthd_board_poll_intervals, make clear the call is for init-time actions. Change-Id: I9267e4ce7c62b78d2997a43822f20bfa13b54cd8
* healthd: add health HAL supportTodd Poynor2013-08-075-25/+137
| | | | | | | | | | Adds board-specific battery monitoring capabilities: * processing of battery property values and additional charging logic. * adjusted (or removed) polling intervals. * replaced (or removed) battery status heartbeat in kernel log. Change-Id: Ia77bca8dc92c6c2a51afa65d516cacca08da73ac
* healthd: add optional current_now and charge_counter to tracked stateTodd Poynor2013-08-072-6/+38
| | | | | | | | uA and uAh units are converted to mA and mAh. If current_now is present, add it to the heartbeat log (c=nnn). Change-Id: I2b5fe7b4505c98ca2d11c3f94564c1c38493c8b9
* Merge "Add basic verity support to fs_mgr."Geremy Condra2013-08-077-7/+465
|\
| * Add basic verity support to fs_mgr.Geremy Condra2013-08-067-7/+465
| | | | | | | | | | | | | | | | | | | | | | This change adds a "verify" fs_mgr flag specifying that the device in question should be verified. Devices marked with this flag are expected to have a footer immediately after their data containing all the information needed to set up a verity instance. Change-Id: I10101f2c3240228ee0932e3767fe35e673d2e720
* | Merge "Add audio_input_flags_t"Glenn Kasten2013-08-051-0/+10
|\ \
| * | Add audio_input_flags_tGlenn Kasten2013-08-021-0/+10
| | | | | | | | | | | | Change-Id: Ie65398cc67218cc63be4baa8a2a61d0ea591a2a3
* | | move libs/utils to libutilsAlex Ray2013-08-0240-0/+0
| | | | | | | | | | | | Change-Id: I6cf4268599460791414882f91eeb88a992fbd29d
* | | libnetutils: Get mtu together with dhcp session resultsDmitry Shmidt2013-08-022-7/+18
|/ / | | | | | | | | Change-Id: I517fd1f62d451b07466a21a2b770d9ce389dac19 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | Merge "Window: Add query for consumer usage bits."Eino-Ville Talvala2013-08-021-1/+7
|\ \
| * | Window: Add query for consumer usage bits.Eino-Ville Talvala2013-07-301-1/+7
| | | | | | | | | | | | | | | Bug: 9592202 Change-Id: Ied2fdb985dc59dd9c0f26c515353abdc37f0eb77
* | | minor tweaks to FlattenableUtilsMathias Agopian2013-08-011-5/+8
| | | | | | | | | | | | Change-Id: Ibfceec36434baac92c8815a18d902375d3fa1a6d
* | | Add a new utf8-to-utf16 conversion function.Dianne Hackborn2013-07-312-0/+37
| | | | | | | | | | | | Change-Id: I957c22fb219596ca4239db7a169473d3894b09eb
* | | Merge remote-tracking branch 'goog/libutils-import' into HEADAlex Ray2013-07-3190-0/+18082
|\ \ \ | |/ / |/| |
| * | Fix BlobCache_testBrian Carlstrom2013-07-311-12/+12
| | | | | | | | | | | | Change-Id: I5b20aeb4dcff80f1e18e1165b8461d20034dc1ac
| * | Make Flattenable not virtual (libutils)Mathias Agopian2013-07-315-82/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Making an object Flattenable doesn't force it to become virtual anymore. For instance, Fence and GraphicBuffer are now non-virtual classes. Also change Flatennable protocol a bit so that it updates its parameters (pointers, sizes) to make it easier to implement a flattenable in terms of other flattenables. Change-Id: Ie81dc7637180b3c2cfcbaf644f8987ca804eb891
| * | libutils: give BasicHashtableImpl a virtual destructorAlex Ray2013-07-302-0/+5
| | | | | | | | | | | | Change-Id: I4ec590b060d732af5fe525670becbe778684247b
| * | add static dependency on liblogColin Cross2013-07-302-0/+53
| | | | | | | | | | | | Change-Id: Ibf8733142d52e4ffac2e3b26932d7196fb79c5a7
| * | utils: move thread enums to system/coreAlex Ray2013-07-301-47/+1
| | | | | | | | | | | | Change-Id: Ia97963cc9acf8661d01355786f5e7e7bf54581c2
| * | Added bitwise-or and bitwise-and to BitSetMichael Wright2013-07-303-0/+102
| | | | | | | | | | | | Change-Id: I9bbf41f9d2d4a2593b0e6d7d8be7e283f985bade
| * | Make trace macros slightly more robustTim Murray2013-07-301-0/+9
| | | | | | | | | | | | Change-Id: I9544eb7b27fc1a971cabadd8d5b4b4b80678febf
| * | Remove unnecessary header file.Nick Kralevich2013-07-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In b2cac4ff37ed2a3521efb307b807b12f649634b8, the last reference to property_get was removed, but the include file remained. Remove it. This is causing me unrelated problems. Change-Id: I87bbfbfa5871f6da4a1b00037a225f67bbd75881
| * | remove unused declarations and reformatMathias Agopian2013-07-301-47/+44
| | | | | | | | | | | | Change-Id: I4e168fb62c275e02621c4b6e0c6000d0f006c327
| * | remove reserved virtual slotsMathias Agopian2013-07-302-39/+0
| | | | | | | | | | | | | | | | | | | | | these consume small amount of space (plt) in every library that links against libutils. Change-Id: I1b6b3dd9098aa5a051243f7a5dbf91cd7dcb8b2c
| * | new String8, String16 ctors to initialize empty static strings with static ↵Mathias Agopian2013-07-304-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | linkage when libutils is statically linked, the ordering of the static initializer is not guaranteed and therefore it's unsafe to use empty static strings: e.g.: static String8 sThisStaticStringIsNotSafe; instead, this new constructor can be used: static String8 sThisStaticStringIsSafe(kEmptyString); Change-Id: Ia3daf1cab1c97d021c0ee9c2b394b5e27e8d6c0d
| * | libutils clean-upMathias Agopian2013-07-3034-3892/+26
| | | | | | | | | | | | Change-Id: I6ff4cfc736751de2912c697f954e45e275f2d386
| * | Add new Looper API to check whether the looper is idle.Dianne Hackborn2013-07-302-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | This is just to support the watchdog to give it a faster way to determine if a thread is deadlocked without having to post a message to it. Change-Id: I068dc8b9387caf94fe5811fb4aeb0f9b57b1a080
| * | String8: ensure static init done prior to empty string referenceTodd Poynor2013-07-301-0/+4
| | | | | | | | | | | | | | | | | | | | | Avoid NULL deref on static initialization of empty String8 objects prior to libutils static init. Change-Id: I3d420041ba62b97ed8c2dfd2532a2dcd72b84ff1
| * | Build a static device libutilsBjorn Bringert2013-07-301-5/+20
| | | | | | | | | | | | | | | | | | | | | This is needed to make tools such as aapt more compatible when built for the device. Change-Id: I1261d47b6e24595f1be547b9202892863f66a1de
| * | improved CallStack a bitMathias Agopian2013-07-303-12/+17
| | | | | | | | | | | | | | | | | | | | | - added a ctor that updates and dumps the stack immediately - added a "logtag" parameter to dump() Change-Id: Ie51c256071d282591752243bdb4f68cf9ff8829d
| * | disable RefBase consistency checks (NDEBUG)Mathias Agopian2013-07-301-1/+1
| | | | | | | | | | | | | | | Bug: 8328715 Change-Id: Ib57646ff909fd8744610f37f3b50d90d884dff31
| * | Fix a crasher with RefBase debugging and vectors of wp<>Mathias Agopian2013-07-302-48/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | background: we have some code to fix-up the IDs of references when using RefBase's DEBUG_REFS when those refs are managed by arrays wp<> or sp<> (this is because wp<> / sp<> don't have a trivial ctor when DEBUG_REFS is enabled, and Vector treats them as trivial for obvious performance reasons) this is complicated by the fact that we don't want to have to recompile everything when enabling DEBUG_REFs (i.e.: the Vector code cannot know wheter it's enabled or not for its template stuff). problem: there was a bug in the fix-up code for wp<> which was trying to access the weakref_impl from the RefBase* however, this was moronic since RefBase could have been destroyed if there wasn't any more strong refs -- and this happned. Instead we need to get the weakref_impl directly from the wp<> Change-Id: Ie16e334204205fdbff142acb9faff8479a78450b
| * | A few tweaks to RefBase debuggingMathias Agopian2013-07-301-17/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - stacks are now saved in /data/debug which must be created and writable by the user. - removed "always fatal" DEBUG_REFS option, it wasn't really needed. - DEBUG_REFS_ENABLED_BY_DEFAULT is not the default anymore (usually people want to target which refs they're tracking) Change-Id: I37fae72e9dacde6ce1fa8f7dbe2bc01b1a1b95e5
| * | Add Vector::resize()Jesse Hall2013-07-303-1/+18
| | | | | | | | | | | | | | | Bug: 8384764 Change-Id: Icee83d389f3e555eba7d419b64c8d52a9aa21b8b
| * | fix a couple race-conditions in RefBase::promote()Dianne Hackborn2013-07-301-26/+67
| | | | | | | | | | | | | | | Bug: 8390295 Change-Id: I7a48e3bf5b213cc1da2b8e844c6bb37ee24cb047
| * | temporary: enable ASSERTs in RefBaseMathias Agopian2013-07-301-0/+1
| | | | | | | | | | | | | | | | | | | | | this is in an attempt to get more data on bug 8328715. Change-Id: I9333a67c2d7f67f4d9b2fc5eb1ad8a7b2d1c6dcb
| * | Add Thread::isRunning and Condition::signal(WakeUpType)Romain Guy2013-07-303-0/+21
| | | | | | | | | | | | | | | | | | | | | The signal() method is useful to choose whether to wake up one or all threads. Change-Id: I062ab6d3ddd306a9fb735549ea140e2a76eed75a
| * | rename binder services main thread to Binder_*Mathias Agopian2013-07-302-18/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a binder service's main thread joins the thread pool it retains its name (whatever the exec name was), which is very confusing in systrace. we now rename that thread just like its friends in the thread pool. Change-Id: Ibb3b6ff07304b247cfc6fb1694e72350c579513e
| * | Fix RefBase debugging. O_CREAT must specify the mode.Mathias Agopian2013-07-301-1/+1
| | | | | | | | | | | | Change-Id: I51c6df3cfd59b20ca73c3edee86bc2f74dbde1b1
| * | utils: Allow non android namespaces to use ALOGD_IF_SLOWNaseer Ahmed2013-07-301-1/+1
| | | | | | | | | | | | Change-Id: I9207b64954fae2f56cc5f6aa5796a2e737400623
| * | Revert "try to fix win_sdk build."Nick Kralevich2013-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | A better change was checked into system/core. See commit 941daef629bd571032851edf7ae1dce24266640e This reverts commit fa99d30ec773c5f9653d96570fb8961426bfe966.
| * | try to fix win_sdk build.Nick Kralevich2013-07-301-1/+1
| | | | | | | | | | | | Change-Id: I55e78e339874a6d6a3381c2550556b65c7ec1ca0
| * | Add NULL check to CallStack::toStringMarco Nelissen2013-07-301-1/+3
| | | | | | | | | | | | | | | | | | | | | CallStack::toString() has a 0 default argument, which ends up getting passed to strlen(), resulting in a crash. Change-Id: If706aff8c400983670f49cdbb66e11191ac76e0e
| * | Add LinearAllocatorChris Craik2013-07-303-0/+329
| | | | | | | | | | | | | | | | | | Moving from external/webkit/Source/WebCore/platform/graphics/android/utils/ Change-Id: If91830aa9b207dbc8692b2ca7c4a0b76778addd5
| * | utils: fix warnings for unused parametersIgor Murashkin2013-07-303-6/+6
| | | | | | | | | | | | Change-Id: Ibfb755a30ba2923669060fe0aed019beecbe38a1
| * | utils: clarify scoped tracing functionalityAlex Ray2013-07-302-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | ScopedTrace objects were being used in place of ATRACE_NAME because of a misunderstanding of it's function. Cleared up documentation for usage. Also explicitly use global namespace for sysprop callback. Change-Id: I7c248b486b614ccdb841659ca0dcfc644fda670a
| * | Remove copy of atrace imported to wrong locationChad Jones2013-07-304-506/+0
| | |
| * | utils: Use cutils tracing functionality.Alex Ray2013-07-302-186/+14
| | | | | | | | | | | | | | | | | | Tracing functionality has moved to cutils. Change-Id: Ie78ccc1d59dd5178f5058fbc3858a37f9adce552
| * | Add LruCache::IteratorRomain Guy2013-07-301-24/+26
| | | | | | | | | | | | | | | | | | Required by libhwui Change-Id: I164b9a4a82d89d132da01a56535c0df084de86f7