9f9bf95deef27d873d499f3d7197a65c84227031 |
|
01-Nov-2016 |
Fyodor Kupolov <fkupolov@google.com> |
Do not call parseInt if value is empty Filling in stack trace when creating exception is expensive Test: non-functional change, device boot ok Bug: 30792387 Change-Id: Iccca26dec43370971a732068bd4d7053486da7a0
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
651209b597734d34768fbb69ebf982b483167fd5 |
|
31-May-2016 |
Roshan Pius <rpius@google.com> |
XmlUtils: Add missing readThisByteArrayXml method Add the missing XML to byte array conversion method. While there, 1. Fix writeByteArrayXml method to store the hex chars of the value. 2. Cleanup couple of error strings in |readThisIntArrayXml| method. BUG: 29039296 Change-Id: I6386f7df7c5c8b7bc3bc5a268196da617209cea9 TEST: Compiles & manual testing.
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
b0800dce4abdca9aeef1cf72018906c2476c4c6b |
|
21-Apr-2016 |
Tobias Thierer <tobiast@google.com> |
Avoid instantiations of Boolean that are immediately unboxed. Replaced Boolean.valueOf() -> parseBoolean() across frameworks/base (not including Am.java, which I'm leaving for a separate change). Also fixed a couple of other valueOf()s in SyncStorageEngine. Bug: 28289401 (cherry-picked from commit ca0182073530a237babe65b9ec7a9b41e667f8d1) Change-Id: I2c6fb39a465885e7e625ed8894b1b9f8a30da5bc
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
7121e18595d4c559044e26bfe6035406a862f466 |
|
14-Jul-2015 |
Svet Ganov <svetoslavganov@google.com> |
Add APIs for verifier to grant at install and revoke permissions bug:22231699 Change-Id: Ie0c758bf73699f50bf99ff5aa0bf98dcc9004e37
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
9e9e2e73c6ec7bece20268196dc89ad0c8bafad4 |
|
08-May-2015 |
Wojciech Staszkiewicz <staszkiewicz@google.com> |
Pass charset to XmlPullParser.setInput instead of null Passing null to XmlPullParser.setInput forces it to do additional work, which can be easily avoided if we know the charset beforehand. bug: b/20849543 Change-Id: Iaff97be9df2d0f99d7af8f19f65934439c9658e2
/frameworks/base/core/java/com/android/internal/util/XmlUtils.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/com/android/internal/util/XmlUtils.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/com/android/internal/util/XmlUtils.java
|
02bd78490d8594d225ecc70a74b2058cb968a657 |
|
07-Oct-2014 |
Jeff Sharkey <jsharkey@android.com> |
Reduce PackageInstaller I/O pressure. When performing a restore during initial device setup, we could be installing hundreds of packages. Currently, we're writing all metadata (including heavy icons) for every session mutation! Because we're holding the mSessions lock while writing all this heavy data, we end up causing ANRs when apps call other PackageInstaller APIs. This patch mitigates by moving the heavy icon data into separate per-session PNG files, which we only persist when changed. Bug: 17881962, 17567794 Change-Id: I4dee15d4a65a8eb65c381e6bb7477728b6cc30d2
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
77d218e1869e69c8d436b09cd11dcfe45e50b2cf |
|
06-Sep-2014 |
Jeff Sharkey <jsharkey@android.com> |
Delayed ASEC allocation, refine progress handling. For restore use-case, session creation needs to complete quickly, so delay ASEC allocation until session is opened. When preflighting size checks, only consider external when we have a known size for the container. Also relax size checks when using MODE_INHERIT_EXISTING on external, since we don't know how much of existing app will be copied over. Consider session as "active" while commit is ongoing, until we're either finished or pending user interaction. Always publish first client needle movement away from 0. Use 25% of internal progress to reflect ASEC allocation. Avoid CloseGuard messages about leaking PFDs. Bug: 17405741, 17402982 Change-Id: I6247a1d335d26621549c701c4c4575a8d16ef8c2
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
1cb2d0d4bba387665128c62c342e59103ea4be26 |
|
31-Jul-2014 |
Jeff Sharkey <jsharkey@android.com> |
Persist install sessions, more lifecycle. To resume install sessions across device boots, persist session details and read at boot. Drop sessions older than 3 days, since they're probably buggy installers. Add session callback lifecycle around open/close to give home apps details about active installs. Also give them a well-known intent to show session details. Extend Session to list staged APKs and open them read-only, giving installers a mechanism to verify delivered bits, for example using MessageDigest, before committing. Switch to generating random session IDs instead of sequential. Defensively resize app icons if too large. Reject runaway installers when they have too many active sessions. Bug: 16514389 Change-Id: I66c2266cb82fc72b1eb980a615566773f4290498
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
ef73ee1dd98acfc4a19561367cfc3e4d8bbe06ea |
|
23-Apr-2014 |
Craig Mautner <cmautner@google.com> |
Add code for persisting tasks and activities to disk Recent tasks that have the persistable flag set are saved to /data/system/recent_tasks/ on shutdown and in the background. Their thumbnails are saved to /data/system/recent_images/. Change-Id: Ifb820a01c412fe1f8c0f6e41aa655fafd89eaa8d
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
d85fc72fb810858f7502e7e7f1bad53e1bf03edd |
|
16-Apr-2014 |
Nicolas Prevot <nprevot@google.com> |
Resolving resources across users. When an intent is sent to another profile: For content uris contained in this intent: The userId of the source user is added to the userInfo part. The ActivityManagerService has been modified to resolve resources in the user specified by the uri. The user id to which the uri belongs to is stored in the UriPermission. Change-Id: I43dc76895aba692bf148d276253aeaf9c75fce34
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
f748257eee651b974e15274e03fe9843a8393073 |
|
18-Dec-2013 |
Narayan Kamath <narayan@google.com> |
XmlUtils#readThisMapXml should handle null keys. Both readThisValueXml & writeThisValueXml have been implemented to handle values with "null" names. Change readThisMapXml to allow such names as well, and map them to the null key in the resulting HashMap. readThisListXml and readThisSetXml already support null names. bug: https://code.google.com/p/android/issues/detail?id=63463 Change-Id: I1c93976656e45e7733113eb67d29b6bad5d25f1f
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
e66c1778f80f4b18e29e018eca3a338f125f23b9 |
|
20-Sep-2013 |
Jeff Sharkey <jsharkey@android.com> |
Require that persistable Uri permissions be taken. Change our Intent flag to indicate that a Uri permission grant is persistable, but don't actually persist it until explicitly taken by the receiving app. This prevents apps from spamming each other if persisted permissions aren't really required. Remember the last time a persisted grant was taken by an app, and use this to prune away the oldest grants when the number of grants grows too large. Allow apps to query persisted grants they are holding, and allow them to release previously persisted grants. Add public UriPermission class to return grant details and timestamp. Track various permission strengths separately, and combine together after each mutation pass. Persistable grants are currently treated like global grants, but they could be moved to have owners in the future. Require that grant holders trying to extend a persistable permission actually hold a persistable permission themselves. Bug: 10835779 Change-Id: I95b2f797c04ce7fd2612f9a644685dbd44e03759
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
e964387466e380f17e28ab3dd75139509d043ffd |
|
18-Jul-2013 |
Elliott Hughes <enh@google.com> |
am 0bad5370: Merge "Handle missing and invalid numeric values in XmlUtils." * commit '0bad537093ed5b493e4c2af778cf802a2cf2c15f': Handle missing and invalid numeric values in XmlUtils.
|
2ddce3226e2a1f380dfc4ad3f7e962dfdbfc39dd |
|
01-Jul-2013 |
Vladimir Marko <vmarko@google.com> |
Handle missing and invalid numeric values in XmlUtils. Convert these errors to XmlPullParserException. Bug: 8584433 Change-Id: I070ed517682e7f047ec00271db26110da2bebb09
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
ded7b75d1a353856ad8f126d171d598d15b97760 |
|
22-Mar-2013 |
Jeff Sharkey <jsharkey@android.com> |
Move XML utility methods into shared location. Change-Id: I15e8f0e4a6c5546d9be956ca0d46715d3441458c
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
a8f6d5f0720f400b6f59b0809aaefea83c5f51d4 |
|
27-Nov-2012 |
Romain Guy <romainguy@google.com> |
Add support for face attribute to HTML string resources Bug #7480719 This change also adds the alias "color" for the attribute "fgcolor". This change also unifies HTML colors parsing between the Html class and StringBlock for consistency. Change-Id: I696a6e080387901d88e9baf7cb989b892f14b9db
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
a3bc565882dd3984e995363642b1295fe3d24d10 |
|
17-Apr-2012 |
Jeff Brown <jeffbrown@google.com> |
Add persistence for selected keyboard layout. Bug: 6110399 Change-Id: I99544bf05e9755385bee478b5f047ccec2e5cae3
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
212db7d3f8ce5297f4a556234a9c0675c697f1cf |
|
09-Apr-2010 |
Adam Powell <adamp@google.com> |
Added MultiSelectListPreference Added set support to XmlUtils; added Set<String> functions to SharedPreferences. MultiSelectListPreference allows multiple selection and persistence of string preferences. Addresses bug 2575634. Change-Id: Icd56022d444b0ce43cccf819cd7d600fdb00e88a
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
2269d1572e5fcfb725ea55f5764d8c3280d69f6d |
|
25-Feb-2010 |
Dianne Hackborn <hackbod@google.com> |
Re-arrange android-common so framework no longer links with it. This is the framework part, moving classes around so the framework no longer needs to link to android-common. Makes some APIs public, others that didn't need to be public are private in the framework, some small things are copied.
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
d4a4729c0cac582a2dcec7c8cfb316b81885a0f0 |
|
21-Dec-2009 |
Tom Taylor <tomtaylor@google.com> |
Update imports to android-common Several files were moved to android-common. Update all the references to import those files from the new location.
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/core/java/com/android/internal/util/XmlUtils.java
|