summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorDaichi Hirono <hirono@google.com>2016-11-02 14:51:26 +0900
committerDaichi Hirono <hirono@google.com>2017-01-11 01:40:28 +0000
commitd909f805a24df1cc0d16755738ba069be232c1e9 (patch)
treee1648aeb8a066f11fc0d0fba2b1d6850cebb5be1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta7c632434069a549f917c64720204f192f693ff0 (diff)
Not create document under the device.
The structure of files in MtpDocumentsProvider looks like /device/storage/files. But MtpDocumentsProvider shows files just under the device if the device has only single storage. It causes a problem that MtpDocumentsProvider tries to create a file under the device. Previously it tries to create a file with storageId = 0, which means MTP device choose a storage to store the file. Because it only happens when the device has a single storage, the file is properly written to the device. But the database in MtpDocumentsProvider goes into the illegal state where the file is placed just under the device. Bug: 32561572 Test: adb shell am instrument -w -e class com.android.mtp.MtpDocumentsProviderTest com.android.mtp.tests/com.android.mtp.TestResultInstrumentation Change-Id: I47a373ceee8a64ba9995934317693e79d2497ee0 (cherry picked from commit 35b2ec551f670562a779925fe152307f20ad67cd)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions