commit | 7fb952ac237bbb99d5ccc1455225a7ea07992312 | [log] [tgz] |
---|---|---|
author | Bjorn Bringert <bringert@android.com> | Mon Jun 01 21:50:09 2009 +0100 |
committer | The Android Open Source Project <initial-contribution@android.com> | Thu Jun 04 09:57:18 2009 -0700 |
tree | 4a677fd030946679a29277fb3f361763d4fbc71c | |
parent | f6b72523e28555b8ddd5bc799a5e4b1d1259dcae [diff] |
Allow making AssetFileDescriptors from SQLite blobs. This change adds a new class SQLiteContentHelper, which contains a static method for creating an AssetFileDescriptor from an SQLite query that returns a blob. Internally, this uses a file descriptor for a MemoryFile. The implementation is temporary. Ideally, the data should be copied directly from SQLite to the MemoryFile ashmem region, using sqlite3_blob_read(). This is part of the implementation of http://b/issue?id=1871731