summaryrefslogtreecommitdiffstats
path: root/libs/utils
Commit message (Collapse)AuthorAgeFilesLines
* minor SharedBuffer clean-upMathias Agopian2012-08-311-7/+7
| | | | Change-Id: If38b7ce85806ae628c00f2c938de4e3f75142543
* Revert "put back the unused virtuals in Vector<>"Mathias Agopian2012-08-241-19/+0
| | | | | | | | This reverts commit 1648d4c13ba2eff3ea14cd87ee94028458a39f97. Bug: 6977192 Change-Id: Idbb6b239aaed4fb1c054ce943f6ba06ede3492bb
* put back the unused virtuals in Vector<>Mathias Agopian2012-08-201-0/+19
| | | | | | | | | some binaries are using these private APIs and broke (as they should!) with this change. Temporarily restore the virtuals to work around this. Bug: 6977550 Change-Id: I7c37f24b16e4d586b89205c493db5169cf87e024
* Add a very simple helper function to log slow functions.Jeff Brown2012-08-102-0/+38
| | | | Change-Id: I2e2e072206d02b572a330dd25857c161b5b563bf
* improve Vector<> safety checksMathias Agopian2012-08-101-31/+22
| | | | | | | | | | - make errors that will always cause a memory corruption always fatal (for eg: KeyedVector<>::editValue{For|At}() failure) - make other errors fatal in debug mode, those that can be caught by the caller. - fix typos Change-Id: I65cc7d81035c37ce2906fc4500c50e5d5b5c49eb
* libutils cleanup: remove unused or seldom used code from misc.{cpp|h}Mathias Agopian2012-08-052-102/+19
| | | | Change-Id: I72206f16619d81887e3b85603494563faab3b445
* Add elapsedRealtimeNano(), and use CLOCK_BOOTTIME where possible.Nick Pelly2012-07-192-15/+26
| | | | Change-Id: I4231c8ca32663e6e2cb5b7c126d091f837373807
* Utils: Fix a bug in the linear transformation code.John Grossman2012-06-271-3/+6
| | | | | | | | | | | | | | | | Hand merge from ics-aah > Utils: Fix a bug in the linear transformation code. > > Fix a bug where an incorrect result would be computed if you used the > linear transformation code to do a reverse transformation (from B's > domain into A's domain) when the scaler fraction was negative. > > Change-Id: I8e5f109314d235a177ab41f65d3c4cd08cff78be > Signed-off-by: John Grossman <johngro@google.com> Change-Id: Id90e18f685c61c1a89fd91c32adcf01363b3e8f3 Signed-off-by: John Grossman <johngro@google.com>
* am d5085da3: am 4467bba7: Merge "Support looper callbacks based on smart ↵Jeff Brown2012-05-311-12/+36
|\ | | | | | | | | | | | | pointers." into jb-dev * commit 'd5085da3c0c103bba0c2c927382f7d414275b661': Support looper callbacks based on smart pointers.
| * Support looper callbacks based on smart pointers.Jeff Brown2012-05-311-12/+36
| | | | | | | | | | Bug: 6559630 Change-Id: I5a667f219f431838638acefbc9fa6afa610971bd
* | am 80586761: am dad23789: Merge "Delete unused poll() code." into jb-devJeff Brown2012-05-311-139/+0
|\ \ | |/ | | | | | | * commit '805867612c0c11d3bb494cbf454cbb2de21a1b75': Delete unused poll() code.
| * Delete unused poll() code.Jeff Brown2012-05-301-139/+0
| | | | | | | | | | | | | | We don't need this code anymore and it is just in the way. Bug: 6559630 Change-Id: I1dc9decf85d5ea1feab159c2985da6c20baffdd5
* | am dce1547d: am 9e2e781a: Merge "Remove unused statistics code." into jb-devJeff Brown2012-05-311-68/+0
|\ \ | |/ | | | | | | * commit 'dce1547d65877b89cec4e52ee8e5b39830911d00': Remove unused statistics code.
| * Remove unused statistics code.Jeff Brown2012-05-301-68/+0
| | | | | | | | | | Bug: 6559630 Change-Id: Iacdf4bb4c1c125c09305cbd8cb443c7c80cfc010
* | am e0607f05: am 5aed6843: Merge "fix a corruption in Vector<> when adding ↵Mathias Agopian2012-05-213-1/+77
|\ \ | |/ | | | | | | | | | | new items" into jb-dev * commit 'e0607f0507fe647bd9262facfaf75146c074e933': fix a corruption in Vector<> when adding new items
| * fix a corruption in Vector<> when adding new itemsMathias Agopian2012-05-173-1/+77
| | | | | | | | | | | | | | | | | | would happen when vectors are copied and new items is added in both vectors. we didn't duplicate the underlying storage when adding items in vectors. Bug: 6515797 Change-Id: If544c07d96c05821e088d7f2c9b5736f7e306c31
* | am f30fd014: Merge "Workaround for add_tid_to_cgroup failed to write" into ↵Glenn Kasten2012-05-101-1/+3
|\ \ | |/ | | | | | | | | | | jb-dev * commit 'f30fd01497a53cbff8692721026c3f7b6830158e': Workaround for add_tid_to_cgroup failed to write
| * Workaround for add_tid_to_cgroup failed to writeGlenn Kasten2012-05-101-1/+3
| | | | | | | | | | Bug: 6467109 Change-Id: I6dff8e608d83c7a7c453c25c94ad100f113769b9
* | am 555f89d8: Add callback hack to find out when to reload system properties.Dianne Hackborn2012-05-102-5/+77
|\ \ | |/ | | | | | | * commit '555f89d8df316cdc5a25dbedb8614c2ac7a5e0a9': Add callback hack to find out when to reload system properties.
| * Add callback hack to find out when to reload system properties.Dianne Hackborn2012-05-092-5/+77
| | | | | | | | | | | | | | | | | | | | | | | | Every IBinder object can accept a new transaction to tell it that it might want to reload system properties, and in the process anyone can register a callback to be executed when this happens. Use this to reload the trace property. This is very much ONLY for debugging. Change-Id: I55c67c46f8f3fa9073bef0dfaab4577ed1d47eb4
* | am 34c65888: Change name of system property for traces.Dianne Hackborn2012-05-091-1/+1
|\ \ | |/ | | | | | | * commit '34c65888d1842315e987045594e2999442c78f1d': Change name of system property for traces.
| * Change name of system property for traces.Dianne Hackborn2012-05-081-1/+1
| | | | | | | | | | | | This allows the property to be changed from the settings UI. Change-Id: Ife7424b3549e5bbe51b6ad2fb8e5edde3a9fd608
* | Fixed 64-bit porting issuesAndrew Hsieh2012-05-021-2/+2
|/ | | | | | | Fixed two issues about casting between int and pointer which cause compilation error in 64-bit mode (eg. for 64-bit emulator) Change-Id: I5ca9a933a239db73e56d6f27de05aa42bd06a650
* Scheduling group cleanupGlenn Kasten2012-04-191-57/+0
| | | | | | | | | | | | | Remove C++ APIs androidSetThreadSchedulingGroup and androidGetThreadSchedulingGroup, and the ANDROID_TGROUP_* constants. Former callers of these should now use the C APIs set_sched_policy and get_sched_policy, and the SP_* constants. Note: debug.sys.noschedgroups is not supported by the C APIs, this needs to be discussed. Change-Id: I32bbfc539ef4090faf9ef0320380e8cca9eae07c
* Support tokenizing arbitrary content.Jeff Brown2012-04-171-4/+16
| | | | | Bug: 6110399 Change-Id: I37be63b68934fd451e6dffbf7d6079553619c0a3
* Add a log tagGlenn Kasten2012-04-051-0/+2
| | | | Change-Id: If30aa8536130cf6ff9918ce97c5e4e8651ae2fef
* add Looper.cpp to build for linux host to use in CTS audioKeun young Park2012-03-261-0/+6
| | | | Change-Id: I59cfe30fd48fcba0bb949033f4d2aef5ce9916e4
* frameworks/native: link host libutils against external/zlibColin Cross2012-03-231-0/+6
| | | | | | | Fix the SDK build by statically linking host libutils against libz from external/zlib. Change-Id: Id6805d3c9071e6fa0559024336642b5386cf3c52
* frameworks/native: move Zip* from libandroidfw to libutilsColin Cross2012-03-226-2/+1400
| | | | | | | ZipUtils is needed by build/tools, move it from libandroidfw (frameworks/base) to libutils (frameworks/native). Change-Id: Ib8c41134ccdec6d6aa8d49860f8dddef49a24783
* Add a simple work queue abstraction.Jeff Brown2012-03-173-0/+174
| | | | | | Makes it easy to schedule a bunch of work to happen in parallel. Change-Id: Id9c0e52fc8b6d78d2b9ed4c2ee47abce0a01775c
* Added rules to build f/n/libs/utils in 64-bit: lib64utils.aAndrew Hsieh2012-03-131-13/+23
| | | | | | | | | | | It's needed to build four shared libraries in 64-bit for 64-bit emulator with "-gpu on" lib64OpenglRender.so lib64EGL_translator.so lib64GLES_CM_translator.so lib64GLES_V2_translator.so Change-Id: Ia6c05b23df1e9cd9e7f2e94e4cd5bde4be5d336b
* Expose the set of enabled tags.Jeff Brown2012-03-091-1/+3
| | | | | | | | | This is used by the Java trace wrappers to avoid JNI overhead when trace tags are disabled. Also added a new tag for the input subsystem and view hierarchy. Change-Id: Ia04a507e42a37b1d3bbb19859e6c07a92f4fe9aa
* Merge "Fixed several 64-bit porting issues"Andrew Hsieh2012-02-294-7/+11
|\
| * Fixed several 64-bit porting issuesAndrew Hsieh2012-02-274-7/+11
| | | | | | | | | | | | | | | | | | 1. Use "%zu" instead of "%d" for size_t in printf 2. Variable precision specifier (eg. "%.*s") in printf should be of type int. (iov_len is size_t which is 64-bit when compiled with -m64) 3. Use PRId64 instead of "%lld" to print variables of type int64_t Change-Id: I2be40a6514b5dffa0038d62b9bccc3401b8756e6
* | libutils: add a system-wide tracing utilityJamie Gennis2012-02-262-1/+49
|/ | | | | | | This change adds some utility functionality for doing userland tracing into the kernel trace log. Change-Id: Id0a8cee9ea515b1d8765afd1cecf472a88b4b9e8
* frameworks/base refactoringMathias Agopian2012-02-2015-12610/+0
| | | | | | create the new libandroidfw from parts of libui and libutils Change-Id: I1584995616fff5d527a2aba63921b682a6194d58
* frameworks/base refactoring.Mathias Agopian2012-02-1713-32/+32
| | | | | | step 2: move libutils headers to their new home: androidfw Change-Id: I14624ba23db92a81f2cb929f104386e1fab293ef
* libs/utils: replace malloc() + memset() to zero with calloc()Iliyan Malchev2012-02-172-10/+4
| | | | | Change-Id: I8bdf4360147e51e35c162856c9a859aed6acac34 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Merge "Thread::getTid returns pid_t gettid() after run"Glenn Kasten2012-02-022-5/+41
|\
| * Thread::getTid returns pid_t gettid() after runGlenn Kasten2012-01-172-5/+41
| | | | | | | | | | | | | | This is needed when the parent or any other thread besides the child needs access to the child's kernel tid. Change-Id: Ib148505913eb78314cfd76657c30d7b20663dffd
* | aapt now sorts the strings in the resource string pool.Dianne Hackborn2012-01-311-242/+903
|/ | | | | | | | | | | In our current environment with very many translations, this can save a lot of RAM -- for example over 200K in Gmail just by sorting the strings in the Gmail .apk (not the framework). Also add a new aapt command to print the contents of the resource table string pool. Change-Id: I1da037b3e2c377b890833ff57ab158965314ac48
* Rename LOG_ASSERT to ALOG_ASSERT DO NOT MERGESteve Block2012-01-094-20/+20
| | | | | | | See https://android-git.corp.google.com/g/157519 Bug: 5449033 Change-Id: I8ceb2dba1b031a0fd68d15d146960d9ced62bbf3
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-0814-65/+65
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-0613-191/+191
| | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
* Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-048-34/+34
| | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-0316-69/+69
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
* Add a basic hashtable data structure, with tests!Jeff Brown2011-11-225-1/+965
| | | | | | | | | | | | | | | | | | The basic hashtable is intended to be used to support a variety of different datastructures such as map, set, multimap, multiset, linkedmap, generationcache, etc. Consequently its interface is fairly primitive. The basic hashtable supports copy-on-write style functionality using SharedBuffer. The change introduces a simple generic function in TypeHelpers for specifying hash functions. The idea is to add template specializations of hash_type<T> next to the relevant data structures such as String8, String16, sp<T>, etc. Change-Id: I2c479229e9d4527b4fbfe3b8b04776a2fd32c973
* Use libcorkscrew to format the stack trace.Jeff Brown2011-11-211-22/+10
| | | | Change-Id: I3a5439ada76bc77c2dd491eaed2272e16a811cc7
* Merge "Slight change to the unwinder API."Jeff Brown2011-11-041-2/+2
|\
| * Slight change to the unwinder API.Jeff Brown2011-11-031-2/+2
| | | | | | | | Change-Id: I5424de76a21b74842e004e0281936b3f492d3c7a