6e6d60d4c85ce440d9ef5e5f36e708ed0ced65c6 |
|
21-Jul-2010 |
Dan Egnor <egnor@google.com> |
Avoid leaking file descriptors when returning drop box events. We can't use Parcel.writeValue() to write the ParcelFileDescriptor, otherwise it leaks when returning the value to the caller (the flag gets lost). Change the way DropBoxManager.Entry gets serialized so that it uses a bit of its own flags value to track whether the data is a byte[] or a ParcelFileDescriptor. Modify the dropbox unit test to add extensive checking of Entry serialization and deserialization under various circumstances, and to include a regression test to ensure that FD leaking doesn't happen. Bug: 2847738 Change-Id: I4ccd17dd03ffab234340cd359e6f3510fdf81193
/frameworks/base/services/tests/servicestests/src/com/android/server/DropBoxTest.java
|
3a8b0c18a49c017ecfde8ebf4eb4bb5181ac6fef |
|
25-Mar-2010 |
Dan Egnor <egnor@google.com> |
Limit DropBox storage to 1000 files (by default). Also does trimming asynchronously (not directly in the broadcast receiver). Bug: 2541253 Change-Id: I7daf8bc618e2dce68a98571f5f7fbce4df1d6a76
/frameworks/base/services/tests/servicestests/src/com/android/server/DropBoxTest.java
|
1a44d5dcabc18cd5ef111f732ccff91683a1a093 |
|
13-Jan-2010 |
Neal Nguyen <tommyn@google.com> |
Phase 2 of test cleanup: moving test files from AndroidTests closer to their sources. Most of these are file moves; a couple notable exceptions are the changes due to the move, and fixing up test code: - database/DatabaseCursorTest.java - database/DatabaseStatementTest.java - net/UriTest.java
/frameworks/base/services/tests/servicestests/src/com/android/server/DropBoxTest.java
|