summaryrefslogtreecommitdiff
path: root/libs/binder/PersistableBundle.cpp
AgeCommit message (Collapse)Author
2025-01-27Sync implementation with BaseBundle change Nan Wu
Method readFromParcel and writeToParcel needs to be in sync with BaseBundle. a new field mHasIntent is added to BaseBundle. Bug: 377190225 Test: manual Flag: EXEMPT bug fix Change-Id: I83040c9339469b5d8a08446b7fdc7f791eb52978
2024-07-02Binder: enable/fix some warnings Tomasz Wasilczyk
Bug: 341997808 Test: mma Change-Id: Ibd44eda768a714e85399a15f3c8e534d715f87ce
2024-05-24Don't log error on success Abhishek Gadewar
Summary: std::map::erase(Key&) returns 0 on failure (key did not exist), 1 on success (key existed and was deleted). Prior to this change, PersistableBundle would log an error anytime a key was successfully deleted. Test: added PersistableBundle test Change-Id: I9c2f6cabd30f784d5dbde5dee1f3d0eb2461bd06 Signed-off-by: Abhishek Gadewar <abhishekgadewar@meta.com>
2022-02-17libbinder: Remove redundant "using android::.*" Yi Kong
They are already under the same package. Test: presubmit Bug: 219872355 Change-Id: I598c7721d8080fddc334b9b6689d1f05a0a9913f
2021-02-02Fix warnings in libs/binder. Krzysztof KosiƄski
Test: mm Change-Id: Ia1387dcfbc789914c4fba80193f4e36d60fec88e
2020-11-16binder: fix google-build-using-namespace Jiyong Park
Bug: 162909698 Test: m libbinder Change-Id: I821c42c32b38e38dbbca347f6a99bcc24898df7d
2019-07-16libbinder: don't export private ParcelValTypes.h Steven Moreland
Bug: N/A Test: N/A Change-Id: I0f17b3ba7bafb02f969c29d06b70e0aae1d13c16
2018-04-26Fix PersistableBundle C++ -> Java interop Makoto Onuki
PersistableBundle.java expects items to be sorted by the hash codes of the keys, but PersistableBundle.cpp isn't compatible to it. PersistableBundle.java now knowns what was parceled by C++ because it now uses a different magic, and change the unpercel strategy. Change-Id: Ia516f80b6d48dcb9f981767e0e64303434f39fb4 Fixes: 65744965 Test: adb shell sm fstrim and check logcat
2017-01-30libbinder: Add support for Value, Map, and IpPrefix types Robert Quattlebaum
Change-Id: I4cd06c7c65f69e6b787111573b29c4ff22f57981
2017-01-11Replace cutils/log.h and rationalize log/log.h and android/log.h Mark Salyzyn
- cutils/log.h treat as deprecated and lead by example - android/log.h to be used instead of log/log.h if possible - add system includes that are assumed as side effects - define LOG_TAG first Test: compile Bug: 31289077 Bug: 30465923 Change-Id: I8d99b24c333578c9b5aa9f2a01324bd0bba268dd
2016-12-22Replace cutils/log.h and rationalize log/log.h and android/log.h Mark Salyzyn
- cutils/log.h treat as deprecated and lead by example - android/log.h to be used instead of log/log.h if required - add system includes that are assumed as side effects of log.h - modules that use SLOG should use SLOG for all logging (installd) - define LOG_TAG first - remove logging infrastructure if not used Test: build Bug: 31289077 Change-Id: Iea147a0104c7ab7f12451304131d6500f42141e7
2016-07-19libbinder: Tighten compiler warnings/errors Christopher Wiley
Use all of -Wall -Wextra -Werror and fix the minor errors that result. Change-Id: Id56e9c454dd3570f713d161577eed6aa8e8074aa
2016-05-20Fix misc-macro-parentheses warnings in libs/binder. Chih-Hung Hsieh
Bug: 28705665 Change-Id: I98a1dc5cc93e31609d3feedb6dd6a33685be69a6
2016-02-12libbinder: add getters for PersistableBundle keys Samuel Tan
Add getters for the keys in each map stored in PersistableBundle. This will allow users of PersistableBundle to iterate over entries of a specific type in PersistableBundle. Also, add "using" statements to PersistableBundle for std containers to reduce verbosity. BUG: 27171235 Change-Id: Idd4b3bf713071ca8d8d023f1f83bdaf3ccbdd46f TEST: libbinder compiles successfully.
2015-12-16Fix format specifiers for size_t types Samuel Tan
Use %zu instead of %u for logging size_t types, which are of the unsigned long type, not the unsigned int type. BUG: None Change-Id: I5af6c2ea544a5f11b283bc9aebe8b5f0cfc605ec
2015-12-14Add support for PersistableBundle in C++ Samuel Tan
Add support for PersistableBundle, a mapping from String values to various types, in C++. BUG: 25815410 Change-Id: If609b294a1709314bb4220afc4f2269b556babb8