5cf0dcd5b2d023247953c874d5c64d5ba02c6df9 |
|
04-Feb-2016 |
Elliott Hughes <enh@google.com> |
Fix libbase's logging dependency. Get liblog directly, rather than transitively through libcutils. Change-Id: Ia08ac6f04ac68c39807989d869709bae0a051578
/system/core/base/Android.mk
|
5f787ed2b3b9f6cc02aa5923b95d77e2a5865438 |
|
27-Jan-2016 |
David Pursell <dpursell@google.com> |
base: add SystemErrorCodeToString() function. Pulls the Windows error string generation out of adb into libbase so that it can be used by fastboot as well. Also makes a Unix equivalent that just wraps strerror() so that upcoming fastboot error reporting code can be platform-independent. The intent here is just to provide a portable way to report an error to the user. More general cross-platform error handling is out of scope. Bug: http://b/26236380 Change-Id: I5a784a844775949562d069bb41dcb0ebd13a32bc
/system/core/base/Android.mk
|
706955ff0d159d28bb6eb06dc10178624c505f4e |
|
21-Jan-2016 |
David Pursell <dpursell@google.com> |
base: add network address parsing function from adb. This CL moves the network address parsing function from adb to libbase so that it can be used by fastboot as well as adb. libbase seemed like the right choice because: 1. It already has some parsing functions (parseint) 2. The net address parsing function uses the libbase string functions so we have a libbase dependency anyway. The parsing function has been modified slightly to make the canonical address optional, and debug logging on success has been removed. For adb the only functional difference is that parsing a network address will no longer print the result to the debug log, which seemed unnecessary. Bug: http://b/26236380 Change-Id: Ife6df02937225fc66de87884d3572d79c092c522
/system/core/base/Android.mk
|
26f2e1fd4ff02cb8a3927c86a90656269ebcb412 |
|
12-Nov-2015 |
Josh Gao <jmgao@google.com> |
Merge changes Ic124ecb9,I94de55d2 * changes: libbase: remove exit-time destructors. adb: remove exit-time destructors.
|
7df6b5fc79a0f4521d171280cd431640ac567d27 |
|
12-Nov-2015 |
Josh Gao <jmgao@google.com> |
libbase: remove exit-time destructors. Removed for the same reason as the adb exit-time destructors. Bug: http://b/23384853 Change-Id: Ic124ecb9df132b850a3855e207baffec926dde29
/system/core/base/Android.mk
|
c1fd492ac5c14a42acfbbd9b47ed178fbf1378d3 |
|
11-Nov-2015 |
Elliott Hughes <enh@google.com> |
Revert "Revert "adb/base: fix adb push of Unicode filenames on Win32"" This reverts commit cc8cd59456ca485a51cd6fd388c8bcb1af4a8f9b. With the dependency on libcutils (for gettid for non-bionic) removed, this no longer breaks the build. Change-Id: I645bd6876e2502ddc1535b69af1e645c0df9d178
/system/core/base/Android.mk
|
cc8cd59456ca485a51cd6fd388c8bcb1af4a8f9b |
|
11-Nov-2015 |
Elliott Hughes <enh@google.com> |
Revert "adb/base: fix adb push of Unicode filenames on Win32" This reverts commit ac9514a4524f98b2029dbcda9326a763d25492b1. The new gettid dependency caused other breakage. Change-Id: I74a75e40c30a45beb275f9dd38eb5c7beac15fbd
/system/core/base/Android.mk
|
ac9514a4524f98b2029dbcda9326a763d25492b1 |
|
22-Oct-2015 |
Spencer Low <CompareAndSwap@gmail.com> |
adb/base: fix adb push of Unicode filenames on Win32 ae5a6c06cdd9ae1a0a7cdc42711f0a5594e54dcd made adb push use android::base::ReadFileToString() for small files, but that API did not support UTF-8 filenames on Windows, until this fix which does the following: - Add android::base::{WideToUTF8,UTF8ToWide}() which are only available on Windows. The signatures are based on Chromium's APIs of the same name. - Add the namespace android::base::utf8 which has versions of APIs that take UTF-8 strings. To use this, make sure your code is in a namespace and then do "using namespace android::base::utf8;". On Windows, this will make calls to open() call android::base::utf8::open(), and on other platforms, it will just call the regular ::open(). - Make ReadFileToString() and WriteStringToFile() use utf8::open() and utf8::unlink(). - Adapt unittests from Chromium. - fastboot needs to link with libcutils because it links with libbase which depends on libcutils for gettid() for logging. Change-Id: I1aeac40ff358331d7a1ff457ce894bfb17863904 Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
/system/core/base/Android.mk
|
b2d4949cee3739d101d5dc38598a6cae1795b4c8 |
|
12-Sep-2015 |
Spencer Low <CompareAndSwap@gmail.com> |
libbase_test: get it building for Windows Add to whitelist. For some reason, when compiling, parseint_test.cpp would encounter errors like the following: host cross C++: host_cross_libbase_test <= system/core/base/parseint_test.cpp In file included from external/gtest/include/gtest/gtest.h:1929:0, from system/core/base/parseint_test.cpp:19: system/core/base/parseint_test.cpp: In member function ‘virtual void parseint_signed_smoke_Test::TestBody()’: external/gtest/include/gtest/internal/gtest-internal.h:133:55: error: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)’ [-Werror=conversion-null] (sizeof(::testing::internal::IsNullLiteralHelper(x)) == 1) ^ external/gtest/include/gtest/gtest_pred_impl.h:77:52: note: in definition of macro ‘GTEST_ASSERT_’ if (const ::testing::AssertionResult gtest_ar = (expression)) \ ^ external/gtest/include/gtest/gtest_pred_impl.h:166:3: note: in expansion of macro ‘GTEST_PRED_FORMAT2_’ GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_) ^ external/gtest/include/gtest/gtest.h:1993:3: note: in expansion of macro ‘ASSERT_PRED_FORMAT2’ ASSERT_PRED_FORMAT2(::testing::internal:: \ ^ external/gtest/include/gtest/gtest.h:1994:32: note: in expansion of macro ‘GTEST_IS_NULL_LITERAL_’ EqHelper<GTEST_IS_NULL_LITERAL_(expected)>::Compare, \ ^ external/gtest/include/gtest/gtest.h:2011:32: note: in expansion of macro ‘GTEST_ASSERT_EQ’ # define ASSERT_EQ(val1, val2) GTEST_ASSERT_EQ(val1, val2) ^ system/core/base/parseint_test.cpp:23:3: note: in expansion of macro ‘ASSERT_EQ’ ASSERT_EQ(false, android::base::ParseInt("x", &i)); ^ For whatever reason, the gcc for Windows isn't handling the template metaprogramming correctly, so to work-around the issue, I search-and-replaced "ASSERT_EQ(false, " to "ASSERT_FALSE(" and "ASSERT_EQ(true, " to "ASSERT_TRUE(" and that seems to compile just fine for Linux and Windows (and the tests pass on both platforms). Change-Id: I05132909d1f4b18afff23139652a218649689f2d Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
/system/core/base/Android.mk
|
933f4fd413f5a6c0e32c7963f1d0da580085df38 |
|
11-Sep-2015 |
Dan Albert <danalbert@google.com> |
Merge "Ensure that libbase and liblog can be built for Windows."
|
b0e4f0822638742fdfe8d92b2d8b59d4cda9a91e |
|
11-Sep-2015 |
Stephen Hines <srhines@google.com> |
Ensure that libbase and liblog can be built for Windows. Change-Id: If4adf1e2bd7ec36a7f02ae2e263d2db5187c6e7b
/system/core/base/Android.mk
|
afe151fb025bada5314cffd1bf7077d2860bf362 |
|
05-Sep-2015 |
Elliott Hughes <enh@google.com> |
Add ParseInt (and ParseUint). strtol and family are hard to use correctly, and most callers don't even try. Change-Id: I2833622a92cccd4662c0c5bdbbef5eeb4e496914
/system/core/base/Android.mk
|
87a419c8b1343c9025fe2593206a6e95b0aa9700 |
|
13-Aug-2015 |
Dan Willemsen <dwillemsen@google.com> |
Remove USE_MINGW/CYGWIN; Whitelist windows modules CYGWIN is not supported, USE_MINGW and HOST_OS==windows are being replaced with LOCAL_..._windows variables. Bug: 23566667 Change-Id: I3e4a1e4097dc994cf5abdce6939e83a91758fd75
/system/core/base/Android.mk
|
47d67c96ec991ef1690b4c07188335cbc4bfa2aa |
|
06-May-2015 |
Alex Vallée <avallee@chromium.org> |
Write mkdirs in more idiomatic C++ style. ~ Rewrote mkdirs to be in C++ style. ~ Replaced adb_dir{start,stop} with std::string params and (r)find. + Added test for mkdirs. Also make base/test_utils.h public and support temporary directories as well as files. Change-Id: I6fcbdc5e0099f3359d3aac6b00c436f250ca1329
/system/core/base/Android.mk
|
5c19040b06b5bb61731e24ea6777c237dc23145d |
|
29-Apr-2015 |
Dan Albert <danalbert@google.com> |
Support base::logging on Windows. libc++ doesn't support std::mutex and friends for Windows yet, so we just use a compatibility wrapper for now. Change-Id: I2413d4c089e7d0fb232444043c6b772153035dab
/system/core/base/Android.mk
|
b2326bd56c7449298acf28318f1692f90e4bfa58 |
|
30-Mar-2015 |
Dan Albert <danalbert@google.com> |
Enable building libbase on Windows. We have to exclude the logging facilities for now (since we don't have a std::mutex on Windows), but there's plenty else in here that is worth having. Change-Id: I6d1369e34e08ea2e88a0b1130c4462e5d35d99e2
/system/core/base/Android.mk
|
7dfb61dcdca8ee597f23b9acc365fb140b353fff |
|
20-Mar-2015 |
Dan Albert <danalbert@google.com> |
Move gettid() into libcutils. Change-Id: Ic8a15036833e6d129b7998d954b804be391de399
/system/core/base/Android.mk
|
58310b49fc8a7a713b922319a849a419858db79e |
|
14-Mar-2015 |
Dan Albert <danalbert@google.com> |
Add google3 style logging to libbase. ART already had a flavor of this, but it was specialized for their use case a bit. Note that the logging.* tests are currently disabled for the device because there is no good way to capture the output of liblog. We can make something that will execute logcat and then then scan the output, but that's messy. Since we know it at least works on the host, we can add better device tests later. Change-Id: I47acd87a3312c0a5285b03f9c8dadef0c669f06a
/system/core/base/Android.mk
|
9c5c08be379a0fd267c5edf0c15852475ab123f3 |
|
20-Mar-2015 |
Dan Albert <danalbert@google.com> |
Use mingw on Windows. LOCAL_CLANG := true is a no-op on Linux/Darwin host builds, but apparently moves Windows binaries from mingw to clang, which is completely untested. Change-Id: Ibbc468d4a19a9e36bbcb93aa030fcc771af020ba
/system/core/base/Android.mk
|
0f1e54491ceace259d156313e583aeffbcd9b444 |
|
14-Mar-2015 |
Dan Albert <danalbert@google.com> |
Add common string utilities to libbase. These are useful outside of ART. Nothing changed (aside from fixing Trim to not segfault on empty strings), so ART should be able to move to using these. Change-Id: Id026ebffe8d31f784a91834786ab189680b13a0f
/system/core/base/Android.mk
|
c007bc3856a4cf86b8f610eb045f26a9dedc2894 |
|
16-Mar-2015 |
Dan Albert <danalbert@google.com> |
Revert "Revert "Create libbase."" This reverts commit a7870d88167f619e758b5bcd15b410d16da7c16b.
/system/core/base/Android.mk
|
a7870d88167f619e758b5bcd15b410d16da7c16b |
|
16-Mar-2015 |
Nicolas Geoffray <ngeoffray@google.com> |
Revert "Create libbase." Breaks internal master. This reverts commit 98ff77204cef9bb8f0f27420833233622060a09e. Change-Id: I18dc6021cb43efff8aa88486c2d980dc2b8eedba
/system/core/base/Android.mk
|
98ff77204cef9bb8f0f27420833233622060a09e |
|
14-Mar-2015 |
Dan Albert <danalbert@google.com> |
Create libbase. Move StringPrintf and the string based file I/O from libutils to libbase. Change-Id: I0297a6063874b9d92100e0dd5123fddfbda932fe
/system/core/base/Android.mk
|