Files app: Initial impl of launchParams.searchQuery
If launchParams.searchQuery is set, 1) Performs a search at Files app start up. 2) Select the first root directory that contains one or more query-matched files. Also did refactoring around DirectoryModel.createDirectoryContents_(...) - Split createDirectoryContents_ into 2 functions isSearchDirectory(...) and createScannerFactory() - Removed all DirectoryContents.createFor*(...) functions. For now we expect that the searchQuery param is used only when Files app is launched as Android file picker. 1) and 2) are required by DocumentsUI CTS (See go/arc-r-documents-ui) Bug: 1126742 Test: atest DocumentsTest#testGetContentWithQuery_matchingFileShowing Change-Id: I1a76a93ee7fbf7ce7ae3fdd2a3dc408311bbd12a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2408502Reviewed-by:Naoki Fukino <fukino@chromium.org> Reviewed-by:
Luciano Pacheco <lucmult@chromium.org> Auto-Submit: Satoshi Niwa <niwa@chromium.org> Commit-Queue: Satoshi Niwa <niwa@chromium.org> Cr-Commit-Position: refs/heads/master@{#811043}
Showing
Please register or sign in to comment