d8e877d27d8e5a87446b9e1030325edad268d9e3 |
|
04-May-2016 |
Dianne Hackborn <hackbod@google.com> |
Maybe fix issue #28457907: Pebble app crash + reboot Fix this long-standing multi-threading issue in Bundle when multiple threads are trying to read from a Bundle and conflict to due unparceling. There are two critical sections this protects: writing the bundle in to a parcel (when it is doing this from the bundle's already parcelled representation), and unparcelling a bundle into its map of entries. Change-Id: I5470002f090e63dd623a573da6c204d3b5b661f4
/frameworks/base/core/java/android/os/BaseBundle.java
|
52764cba5968888180ceedf717d85e08ffd747cc |
|
20-Apr-2016 |
Andreas Gampe <agampe@google.com> |
Frameworks/base: Add holder to BaseBundle Move EMPTY_PARCEL into an inner holder class. Add holder to preloaded-classes. Clean up dependencies. Allows to compile-time initialize: * android.os.BaseBundle * android.os.Bundle * android.os.PersistableBundle * android.telephony.CarrierConfigManager Bug: 27265238 Change-Id: Ib8017aa419c2985963b3c68a8046462a38652ef2
/frameworks/base/core/java/android/os/BaseBundle.java
|
cb45951cad9d403fd9933d723657d6d5838f5e59 |
|
18-Apr-2016 |
Jeff Sharkey <jsharkey@android.com> |
Disable "defusable" logging for now. Bug: 28240784 Change-Id: I2c259867a8169eef220fb9faea6cdcafdde675b8
/frameworks/base/core/java/android/os/BaseBundle.java
|
2387932b74699c4d5baa493271e999e31b09d2b8 |
|
31-Mar-2016 |
Amith Yamasani <yamasani@google.com> |
Fix a deadlock due to wtf in BaseBundle Use Slog.wtf instead of Log.wtf, so that it is asynchronously reported. Mark incoming application restrictions as defusable since they are being unparceled. Bug: 27811728 Change-Id: I166de69a74417e439ec5ef9159fbbfbfe711dde6
/frameworks/base/core/java/android/os/BaseBundle.java
|
d136e51a99df5275eaafdde407e89e78c02b829b |
|
10-Mar-2016 |
Jeff Sharkey <jsharkey@android.com> |
Defuse Bundles parsed by the system process. It's easy for apps to throw custom Parcelables into Bundles, but if the system tries peeking inside one of these Bundles, it triggers a BadParcelableException. If that Bundle was passed away from the Binder thread that delivered it into the system, we end up with a nasty runtime restart. This change mitigates this trouble by "defusing" any Bundles parsed by the system server. That is, if it encounters BadParcelableException while unpacking a Bundle, it logs and delivers an empty Bundle as the result. Simultaneously, to help catch the system process sticking its fingers into Bundles that are destined for other processes, a Bundle now tracks if it's "defusable." For example, any Intents delivered through ActivityThread are marked as being defusable, since they've arrived at their final destination. Any other Bundles are considered to be "in transit" and we log if the system tries unparceling them. Merges several Parcel boolean fields into a flags int. Add better docs to several classes. Bug: 27581063 Change-Id: I28cf3e7439503b5dc9a429bafae5eb48f21f0d93
/frameworks/base/core/java/android/os/BaseBundle.java
|
6f7362d92573e4ae693bc513dca586d6a4eb087b |
|
04-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
Introducing ShortcutManager What's supported: - Most APIs are implemented, except for SM.updateShortcuts(), the icon APIs in LA, and LA.startShortcut(). - Persisting information, except for icons - Throttling In addition, now PersistableBundle has a public copy constructor from a Bundle. (Do we want to @hide it?) TODOs: - Add icon support - Implement missing APIs - Listen to PACKAGE_* broadcasts and do clean-up - Support multi-launcher apps (pinned shortcuts per launcher) - Dev option to reset throttling - Load throttling config from Settings - Backup & restore - Figure out LauncherApps permissions (BIND_APPWIDGETS??) - Other minor TODOs in the code - Better javadoc Note: This requires Idf2f9ae816e1f3d822a6286a4cf738c14e29a45e Bug 27325877 Change-Id: Ia5aa555a4759df5f79a859338f1dc5e624cd0e35
/frameworks/base/core/java/android/os/BaseBundle.java
|
a6d4744e894fe2d580f0a0ec0970f171d29ae40b |
|
17-Dec-2015 |
Samuel Tan <samueltan@google.com> |
Merge "Add comments to keep Java and native binder PersistableBundle in sync" am: 6de926a7d6 am: 4981ae9083 * commit '4981ae908349767fee7976cc82c54a7fb00ee4fd': Add comments to keep Java and native binder PersistableBundle in sync
|
3cefe6a991ba650375e663e7095266e2273d2372 |
|
14-Dec-2015 |
Samuel Tan <samueltan@google.com> |
Add comments to keep Java and native binder PersistableBundle in sync Add comments stating that certain methods of the Java binder framework should be kept in sync with the corresponding methods mirrored in the native PersistableBundle implementation. BUG: 25815410 Change-Id: I475b2e9a527291eea58c8178cd733c444dfcfed5
/frameworks/base/core/java/android/os/BaseBundle.java
|
1619ed4706a0bf906d967ab7987cd4c475ac3462 |
|
22-Sep-2015 |
Adam Lesinski <adamlesinski@google.com> |
Fix security issues when using Parcel.setDataPosition() with untrusted input When seeking forward in the Parcel, adding the extracted size to the Parcel.dataPosition() can result in an overflow. Guard against this. Bug:23909429 Change-Id: If37cdebbf05a92810300363d1a6ecd8b42b6da26
/frameworks/base/core/java/android/os/BaseBundle.java
|
a83ce1dd2ad3a6b71e90ff4845afc1299fe17b9d |
|
11-Mar-2015 |
Dianne Hackborn <hackbod@google.com> |
More work on collecting assist data. Optimize parceling of AssistData (which is now renamed to AssistStructure) by pooling duplicated class name strings. Change text associated with a view node to a CharSequence, so styling information comes along. Include global text attributes -- size, colors, etc. Introduce a new AssistContent structure, which allows us to propagate information about the intent and data the activity is looking at. This further allows us to propagate permission grants, so the assistant can dig in to that data. The default implementation propagates the base intent of an activity, so if for example you bring up the assistant while doing a share the assistant itself has the same information and access that was given to the share activity (so it could for example share it in another way if it wanted to). Did some optimization of loading PersistableBundle from xml, to avoid duplicating hash maps and such. Changed how we dispatch ACTION_ASSIST to no longer include the more detailed AssistStructure (and new AssistContent) data when launching; now the example code that intercepts that needs to be sure to ask for assist data when it starts its session. This is more like it will finally be, and allows us to get to the UI more quickly. Change-Id: I88420a55761bf48d34ce3013e81bd96a0e087637
/frameworks/base/core/java/android/os/BaseBundle.java
|
c6a65dff3d9ed3e75f9f4f5abbf24e3d10bdba8b |
|
02-Mar-2015 |
Scott Kennedy <skennedy@google.com> |
Annotate Bundle with @Nullable Change-Id: Ide572124deea8271ca5c47009acb62603d644363
/frameworks/base/core/java/android/os/BaseBundle.java
|
73bdf9761be2abdd85efc5fce165f3fa80fcfa65 |
|
10-Dec-2014 |
Craig Mautner <cmautner@google.com> |
Add put/getBoolean/Array to PersistableBundle Due to popular demand the methods putBoolean(), getBoolean(), putBooleanArray() and getBooleanArray() have been added to PersistableBundle. Fixes bug 18390436. Change-Id: Id133ba902aca774f98529e36ce560e873b88ad5b
/frameworks/base/core/java/android/os/BaseBundle.java
|
aeaf87fe452353371b36da42e5beccca3150ab08 |
|
26-Jun-2014 |
Narayan Kamath <narayan@google.com> |
Update javadoc for android.os.Bundle. Call out the fact that defaultValue is returned if a null mapping exists for a given key. bug: https://code.google.com/p/android/issues/detail?id=68453 (cherry picked from commit ca2197b0457b1626b95a053d835ceaca43ac0286) Change-Id: Iec70478ae091bb222be6e9ef9726c817395e9e23
/frameworks/base/core/java/android/os/BaseBundle.java
|
0a8e160eb56f3b8f504b37349a79ec4edb7e5039 |
|
29-May-2014 |
Craig Mautner <cmautner@google.com> |
Change PersistableBundle API per council's request Fixes bug 15192573. Change-Id: Ib98ef132c8c12e68e805cb3c0b1f7ae75940f17c
/frameworks/base/core/java/android/os/BaseBundle.java
|