History log of /frameworks/base/core/java/com/android/internal/util/IndentingPrintWriter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
67be7184762d17d243a9396dd9989369f7f7e0d1 10-Jan-2016 Jeff Sharkey <jsharkey@android.com> Fix IndentingPrintWriter after JDK switch.

We needed to overload more methods. Verified that tests pass.

Bug: 26191999
Change-Id: I2b75890239d3febf3411c4b7bb4df92a6d61f056
/frameworks/base/core/java/com/android/internal/util/IndentingPrintWriter.java
1b8ef7e3165ff9aa52a4905dafc8d0f83e7403f9 04-Apr-2015 Jeff Sharkey <jsharkey@android.com> Parcelable objects for Disk/Volume.

Will eventually be used by SystemUI and/or Settings.

Also fix SettingsProvider NPE.

Bug: 19993667, 19909433
Change-Id: Ie326849ac5f43ee35f728d9cc0e332b72292db70
/frameworks/base/core/java/com/android/internal/util/IndentingPrintWriter.java
328ebf222167ee1d25a54fd34c8293e183303752 22-Mar-2013 Jeff Sharkey <jsharkey@android.com> Support persistable Uri permission grants.

When granting a Uri permission with new PERSIST_GRANT_URI_PERMISSION
flag, persist that grant across device reboots until explicitly
revoked. Adds new persistedModeFlags dimension to UriPermission,
and moves all flag mutation into UriPermission for clarity. Adds
flag documentation. Only inflate HashSet as needed.

Write persisted grants into XML file, saving based on source and
target package name and user handle. Sanity check grants when
parsing.

Wipe all grants from/to a package when uninstalled, and wipe any
transient grants when a package or user is force stopped.

Persistable grants are always considered "needed."

Change-Id: I3f001571b498fd607456a1257a6383f904d19497
/frameworks/base/core/java/com/android/internal/util/IndentingPrintWriter.java
71cb446f010e791ca77a27c416a79b5ccb3f075b 31-Jan-2013 Jeff Sharkey <jsharkey@android.com> Add wrapping support to IndentingPrintWriter.

When created with a wrapping width, any content longer than the
requested width will be wrapped onto additional lines. This supports
use-cases like dumping lots of data with printPair().

Improve documentation and add tests to verify behavior.

Change-Id: Ibdfce198f0e69f4df7725544fd1cd02fa029c647
/frameworks/base/core/java/com/android/internal/util/IndentingPrintWriter.java
cbad976b2a36a0895ca94510d5208a86f66cf596 05-Sep-2012 Jeff Brown <jeffbrown@google.com> Add support for Wifi display.

Change-Id: I99693786cf9d07d07d3400046c55eb4933730b80
/frameworks/base/core/java/com/android/internal/util/IndentingPrintWriter.java
2f036c55c0b72ac350e378c12b0571b22bc64dc1 13-Apr-2012 Jeff Sharkey <jsharkey@android.com> Add simple method to dump key/value pairs.

Change-Id: I26ebf7e1a1667298c6deca742c104685c52955f7
/frameworks/base/core/java/com/android/internal/util/IndentingPrintWriter.java
63abc37356728c0575d6a62a203102ae6d97953b 12-Jan-2012 Jeff Sharkey <jsharkey@android.com> Move network stats to FileRotator pattern.

Split existing network stats into two separate classes: a recorder
which generates historical data based on periodic counter snapshots,
and a collection of historical data with persistance logic.

Recorder keeps a pending history in memory until outstanding data
crosses a specific threshold. Persisting is handled through a given
FileRotator. This pattern significantly reduces disk churn and
memory overhead. Separate UID data from UID tag data, enabling a
shorter rotation cycle. Migrate existing stats into new structure.

Remove "xt" stats until iptables hooks are ready. Avoid consuming
Entry values when recording into NetworkStatsHistory. Assign
operation counts to default route interface.

Introduce "Rewriter" interface in FileRotator with methods to enable
rewriteAll(). Introduce IndentingPrintWriter to handle indenting in
dump() methods.

Bug: 5386531
Change-Id: Ibe086230a17999a197206ca62d45f266225fdff1
/frameworks/base/core/java/com/android/internal/util/IndentingPrintWriter.java