summaryrefslogtreecommitdiff
path: root/packages/DocumentsUI/src
AgeCommit message (Collapse)Author
2016-07-29Delete orig DocumentsUI.Steve McKay
Bug: 29224737 Change-Id: I6d6327918adba699d2ed3652bc2dbea27f872284
2016-07-25Evict thumbnail caches and delay dismissing spinner on refresh finish.Garfield, Tan
Bug: 28334455 Change-Id: I338f83744d7f8b2fe9a9265dcab7ed4ec81edbfb (cherry picked from commit dce173d1a011c07205b4b90da79d24d08e4cf90a)
2016-07-22Allow drag-n-drop to auto-scroll when near top/bottom of dirlist.Ben Lin
Couple of things this CL did: 1. Refactored ViewScroller to a separate file, renamed to "ViewAutoScroller" 2. New interfaces called UIDelegate and CalculationDelegate such that classes can provide necessary information for smooth scrolling 3. DirectoryDragListener implementation of #2's interface in order to have auto scrolling when user's cursor is near top/bottom of screen Currently since the status bar, action bar, and menu bar don't have a drag listener, we don't get a callback on them, and thus we lose the ability to get positions/scroll if user flings too quickly to those areas. There might be some way to circumvent this since hovering over these areas get a DRAG_EXIT event, but that should be 1) a separate discussion and 2) a separate CL in my opinion. Bug: 28696867 Change-Id: I61eba93aa60efd1638b3c0cd79db3f0d083b5e6d (cherry picked from commit ad3a323585e43d06f632d85759beaf670f541997)
2016-07-21Handle partial clip files by showing a failure notification.Garfield, Tan
Bug: 30221384 Change-Id: Ib32b6b5ca5b8f7be887b8f35b80daeeb33770cbe
2016-07-21Merge "Change the color of loading spinner to the color of selected roots."TreeHugger Robot
2016-07-20Change the color of loading spinner to the color of selected roots.Garfield, Tan
Bug: 28334455 Change-Id: Id80cbfa557eb5e3914c216da2570ae105ec77c20
2016-07-20Remove unused "isTouchEvent" methods.Steve McKay
Update BandController to use InputEvent not contrete MotionInputEvent. Change-Id: I47a7558d8dcebfa6c44dc9a62741487422bf0ff7
2016-07-19Enable pull to refresh.Garfield, Tan
Bug: 28334455 Change-Id: Ie98fbd0abfa4640e00e49d4726e47230276f96c3
2016-07-15Fix a crash happening on a context menu.Ben Lin
When an activity gets a callback for onContextItemSelected, it first gets dibs on handling it, and then it propagates the call to -every- fragment it is tied to. This poses a problem since RootsFragment and DirectoryFragment don't necessarily handle each other's menu items well, which can cause NPEs. This is some temporary fix for it. Bug: 30092676 Change-Id: I3f268c9c9580504b78581ad92a24c9a99c4a0daf (cherry picked from commit 3e1699f3a3f3d0378d758e3b0d430165867eb89e)
2016-07-15Addition UserInputHandler test coverage.Steve McKay
Pull event handling logic out of MultiSelectManager into UserInputHandler. Pull out a couple common test support classes. Change-Id: I8958fec9cda05f52192a07a682c318e049871a8d
2016-07-14Fix a race and some comments in ClipStorage.Garfield, Tan
Change-Id: I6cc2108c677ce6611f5ebef70a88b625491a2e05
2016-07-14Allow root item accepts drag and drop.Garfield, Tan
Bug: 28315281 Change-Id: Ie37536258f04c1b0d3ff5a315f4a5fa33e0ba182
2016-07-13Follow up changes from ag/1190582.Ben Lin
Change-Id: I40121fc3d36e430c402da2835027283eb4b11071 (cherry picked from commit ce83f978d5bff5505a1d5f9bec894fe5f1091a4d)
2016-07-13Merge \\"Trapping backspace at EditText level to prevent popping Docs.\\" ↵Ben Lin
into nyc-mr1-dev am: 2df618f4cd am: 64f4868803 Change-Id: I622f74b03dd3e201f3000b926571352a55ae10e9
2016-07-12Trapping backspace at EditText level to prevent popping Docs.Ben Lin
When the EditText is empty, pressing backspace on soft/hardware keyboard will call on the EditText's OnKeyListener. Since we don't handle backspace, it will then bubble up to Activity-level, which will then pop the document stack due to the feature of using backspace as navigation. This will trap the call correctly if the EditText is empty. Bug: 30066261 Change-Id: I231507b9469bfa52478872491f1d2713a1ac58ba
2016-07-12Pull clipping related classes to a separate package.Garfield, Tan
Change-Id: I125d1c34e475f9465e82014cb869f88c9c7cebc4
2016-07-12Consolidate user input handling in single class.Steve McKay
But separate mouse and touch handling into independent (internal) handlers. Ensure we don't do band select on right click + drag. Bug: 29575607, 29548676 Change-Id: I247e3ba002751f2cda010125e0e7b4bdd745ac23
2016-07-12[multi-part] Eliminate 1k selection limitGarfield, Tan
* Implement ring buffer to cope the challenge of deleting file clips * Fix a bug to allow concurrent read on the same clip file Change-Id: I53450d94ee881966d5631f0dc6edcb0fdd8ff9d5
2016-07-08Add free space precondition check for copy job.Garfield, Tan
Bug: 24948755 Change-Id: I210395bdf339d630604e90e867ffddbbd3cf4bea (cherry picked from commit 2a530ab3be585b366d562ea24940dcdd239af6d0)
2016-07-08Docsui-level work for implementing Eject on Roots list.Ben Lin
1. Added Eject Icon for Roots that support eject 2. Added Context Menu for RootsFragment (Settings and Eject) Bug: 29584653 Change-Id: I97f582de05763e3f0327bc0d2dc6d4e2222e047c (cherry picked from commit d96661f8b0f613b40f2bdfc178bbe06022b5f76c)
2016-07-06Merge "resolve merge conflicts of 7145cac to master"Daniel Nishi
2016-07-06resolve merge conflicts of 7145cac to masterDaniel Nishi
Change-Id: Idd0a8de30697687309953fd37b568207d2fc0be8
2016-07-06Set the first item's left padding to 0 in Horizontal Breadcrumb.Ben Lin
Bug: 29945773 Change-Id: I0493f463b9e82224372e2f21b1fc9062dfd005fb (cherry picked from commit 77afda11780172e67f88c58467bf085c86119c24)
2016-07-06Move the MIME type icon detection into the platform.Daniel Nishi
This allows the MIME type icons to be used in other system apps. In this instance, the StorageManager app needs to show file icons for a given file. By moving the icon mapping into a static library, we can avoid duplicating the mapping and resources. Bug: 29826961 Change-Id: Ic2dc7970cc5a5ca430e33425eb9f1ecbd733fe9a
2016-07-01Move GestureListener to own file.Steve McKay
And: - make MotionInputEvent AutoCloseable (and update obtainers accordingly). - remove unused constructor args and overloading from MultiSelectManager. Change-Id: I335a95c3d05ab10bdcbfebab8dc69f0b2f681e3a
2016-06-30Merge \"Merge \\"Allow quick view package to be set via setprop.\\" into ↵Steve McKay
nyc-mr1-dev am: 24cea93b4a\" into nyc-mr1-dev-plus-aosp am: 35c77908f0 Change-Id: Ib4b46c435e38caf362f91c9674766621146ac770
2016-06-30Merge "Allow quick view package to be set via setprop." into nyc-mr1-devTreeHugger Robot
2016-06-30[multi-part] Eliminate 1k selection limitGarfield, Tan
* Rename class ClipDetails. * Add FileOperation class and merge it with JobFactory. Bug: 28194201 Change-Id: I46639b21c9e424644289a1bf34b85234a9becd2b (cherry picked from commit 7f17819f1320d12f1f35a8f5327e0c7e63dfed54)
2016-06-29Allow quick view package to be set via setprop.Steve McKay
This allows testers to turn it on via adb. Bug: 29875957 Change-Id: If4563a1799a7c1a1adead9ecfdb4c6ef0c07f82b
2016-06-29Load layout specific breadcrumb view.Steve McKay
Because two diffrn't view types can't share an resource id.... else we get ClassCastExceptions bubbling out of Spinner when tryihng to restore from RecyclerView state. Also: Move Bots to own file and make BaseBot inner to that. Extract searchbot from UiBot. Fix broken search icon logic in phone layout. Separate somewhat complicated breadcrumb bot functioanlity in a separate bot. Simplify Search test. Check for drawer vs. fixed layout instead of "tablet" mode...which didn't work when rotating tablets. Update a dialog entry to use Espresso. Update breadcrumb stuff to use Espresso. Move *default state* checking to a different test so we can enjoy the default location support from ActivityTest. Change-Id: I0a60ba93a1cbbb990ec3b36d4f9fd5dc8b86ff00
2016-06-27Enable drag & drop -> Springload for breadcrumb.Ben Lin
Bug: 29519481 Change-Id: I54d98c48c08153c22b2f01c7728187927c4fe1a2 (cherry picked from commit 81d903bc083807c6048ac9ce1d1d3ca18b6643a3)
2016-06-24[multi-part] Eliminate 1k selection limitGarfield, Tan
* Remove clearing clip files at app launch. * Remove clip files when they won't be used. * Stop adding clip items to jumbo clip data. * Repurpose ClipDetails to hold operation type, srcParent and file list. * Use ClipDetails for copyTo/moveTo/delete menu actions. * Make FileOperationService consume ClipDetails. * Add set up state to jobs; show set up notification in set up phase. * Make copy job cancelable at set up phase. Bug: 28194201 Change-Id: I2018ff9bc51515c1f6a029f0ede3f4c7d2beee43 (cherry picked from commit 664881e4b1fdc3416648f000287f52168978364f)
2016-06-23Move event handling code out of DirectoryFragmentSteve McKay
Bug:29575607 Change-Id: Ieae3bcee030973bf83551a74f722236a24832730
2016-06-21Fix context menu for empty directory/root view.Ben Lin
Since it's not always true that there is a doc/directory given the (x, y) of the right click, I've changed the signature of right click to take in a MotionEvent object as a parameter, and make a MotionInputEvent inside the function as a check whether it's on a file/doc or on empty/blank pane. Bug: 29538570 Change-Id: I7ee960c9f556752bf314ab8cc2d94fda28194c0a (cherry picked from commit 332192dee8cb99bd2e6ef638e78d5b62ab7ecfe6)
2016-06-20Moving Menu-related logic from BaseActivity to MenuManager.Ben Lin
Bug: 29423149 Change-Id: I228e1525cb82d310b16ef0aec8acb4534b7b601d (cherry picked from commit d896dc7b487771f7d5329feb01ac7c3355fce9ed)
2016-06-20Merge \\\"Make advanced storage option sticky...\\\" into nyc-dev am: ↵Steve McKay
361ccf5eef am: 92e64a65ee am: 75ea877bc9 Change-Id: I6204de46dd54b2c2a89c9a44edd571179ae1ddab
2016-06-20Make advanced storage option sticky...Steve McKay
...when used from one of the picker modes. Bug: 29454465 Change-Id: I5f7db04a51023b59121289afd300a13ea071146d
2016-06-17Merge "Implementing breadcrumb for tablet devices for navigation in the bar."TreeHugger Robot
2016-06-17Merge \\\"Include cause when reporting errors.\\\" into nyc-dev am: ↵Steve McKay
60585e6c54 am: be8b6e6164 am: 7dfb6fa15e Change-Id: Iade90d4bfb323bcc1bb7a771fcb2b64656c25d57
2016-06-17Implementing breadcrumb for tablet devices for navigation in the bar.Ben Lin
Bug: 29214736 Change-Id: I37de2c39a55c33d7111496e896a0c85e1c7fa553 (cherry picked from commit 6fb1dfcc47b795b7071550a4524667d2f8f4d9a2)
2016-06-17Merge "[multi-part] Eliminate 1k selection limit"TreeHugger Robot
2016-06-17[multi-part] Eliminate 1k selection limitSteve McKay
* Save selection to disk, delete old selections on app startup. * Do clipper work in background for copy/cut. * Pull DragShadowBuilder out of DirFragment. * Reorganize selection handling to avoid creation of large lists of objects. * Eliminate getAll from selection, make it iterable, remove unused method. * Avoid creating DocumentInfo instances for full selection when initiating drag and drop. Next step will be to pass selection tokens to FileOperationService. Change-Id: Ia3e30a88ebf328e5b045d06b0df15dbd26a01a42 (cherry picked from commit 69b63de63ddae8d1a3ad8fa49a0beb1ff6f921e1)
2016-06-16Quick fix for Files crashing on start up.Ben Lin
Change-Id: I98df90b6bdf5caacb7565ead7051e507abfff23d
2016-06-16Merge "Poll jobs' status to update notifications."TreeHugger Robot
2016-06-16Poll jobs' status to update notifications.Garfield, Tan
Bug: 27249491 Change-Id: I8912c781582af1789c8f76dea06879a3dde75d34
2016-06-16Implementation of Right-click context menus for docs/files.Ben Lin
Bug: 24416336 Change-Id: I675baf4abf6308bc1f6c3b4171f7251b0f3fd6e4 (cherry picked from commit be70710de3e1507292381cd14a9e1c1343ff2524)
2016-06-16Include cause when reporting errors.Steve McKay
Bug: 29191892 Change-Id: I5f904da3a8564ec68ca634c28e3eda7f496a5c1c
2016-06-10Remove main looper assertions and attempts to run tests in main thread.Garfield, Tan
It looks like if we pass timeout_msec 300000 main thread is then blocked. If we ever post a runnable to it synchronously in test, we'll get a deadlock. Change-Id: I7bd4ce2aaa1ffad72b83a343ff3331179896bd78
2016-06-10Merge \\\"Fixed check for visible volume.\\\" into nyc-dev am: be0bacda9b ↵Felipe Leme
am: 2ee81a3211 am: 18ee3e53c8 Change-Id: I4ca401686049e969e6f257b76714e7f3289864c5
2016-06-10Merge \\\"Fixed check for volume name.\\\" into nyc-dev am: cbfc6eed32 am: ↵Felipe Leme
e54c409a1f am: a1072465a3 Change-Id: I36b74afea9d609d3fa072985ed8c94b4cf548d3c