History log of /frameworks/base/core/tests/coretests/src/com/android/internal/util/FileRotatorTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f25f14eebab85611b9aa00c8f555074893849c33 29-Apr-2014 Elliott Hughes <enh@google.com> Remove unused import.

Change-Id: I3f6a035cda55859a7a521f3117da72ee962beb63
/frameworks/base/core/tests/coretests/src/com/android/internal/util/FileRotatorTest.java
bbf1861fdd2ba250354c060fe70f0ee7cbe93877 13-Dec-2013 Mikael Gullstrand <mikael.gullstrand@sonymobile.com> Null pointer exception in FileRotator.java

Sometimes a null pointer exception is thrown when examining files
managed by the file rotator.

The logs from the test show that the Wifi state is changed a large
number of times. On every state change, a write operation is
initiated on the file system. This will eventually result in out
of memory and the call to mBasePath.list() in the maybeRotate(...)
method in FileRotator.java will return null so the iteration will
throw a NullPointerException.

Change-Id: I5d5980d9593bc9ec75281169ca27ee591809903f
/frameworks/base/core/tests/coretests/src/com/android/internal/util/FileRotatorTest.java
6de357e4d10fa5977ab9a6c665dc858765e95d34 09-May-2012 Jeff Sharkey <jsharkey@android.com> Recover from Throwable in FileRotator, dump.

In rewriteSingle(), catch Throwable to rollback to backup file,
instead of just IOException. Also add dumpAll() to pack up contents
for later debugging, and use it when encountering bad stats.

Bug: 6467868
Change-Id: Ic8e287cf5a235706811a304a88d71d11d3a79cd4
/frameworks/base/core/tests/coretests/src/com/android/internal/util/FileRotatorTest.java
a27a3e8ad7d20dea63ef2d5cb8b6ec7e56c20a89 09-Jan-2012 Jeff Sharkey <jsharkey@android.com> Introduce FileRotator.

Utility that rotates files over time, similar to logrotate. There is
a single "active" file, which is periodically rotated into historical
files, and eventually deleted entirely. Files are stored under a
specific directory with a well-known prefix.

Bug: 5386531
Change-Id: I29f821a881247e50ce0f6f73b20bbd020db39e43
/frameworks/base/core/tests/coretests/src/com/android/internal/util/FileRotatorTest.java