1801 Commits

Author SHA1 Message Date
Paul Duffin
ccb0445027 Prepare for removal of legacy-test from default targets
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

(cherry picked from 6387604f9e672ece85e07c4bcbd7be396867f06f)

Bug: 30188076
Test: make checkbuild
Merged-In: I13e88297731253420e4e5f5291d503f13a39a156
Change-Id: I58446eb8c45d8ac2bcdbc9fa40d1321e811bdd4b
2017-01-19 09:43:05 +00:00
Bill Yi
149b6ede65 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32177112
Change-Id: Ia40da4b009f43aa51b2b7d3acdccc7552e2b35d0
2016-11-20 13:52:54 -08:00
Garfield Tan
706530bd88 DO NOT MERGE: Not to crash DocumentsUI if moving cursor fails. am: d91dd17f36
am: cc6a8b5190

Change-Id: Ia361f86f771a5b59ce10d4aefb6a8a53e48b4c92
2016-10-14 00:12:58 +00:00
Garfield Tan
cc6a8b5190 DO NOT MERGE: Not to crash DocumentsUI if moving cursor fails.
am: d91dd17f36

Change-Id: Ia7400ff8e4ecfd903a6ff7f5158786d3fd8c1bff
2016-10-14 00:05:32 +00:00
Ben Lin
54875dd37a Removing a mimeIcon specific for album folders from MediaProvider. am: 6d33357882
am: f3b7acecc7

Change-Id: I227fae0ffb4b97c5caec4cb60120486defdb8a81
2016-10-14 00:01:50 +00:00
Ben Lin
f3b7acecc7 Removing a mimeIcon specific for album folders from MediaProvider.
am: 6d33357882

Change-Id: I07ec7d315c510a5c3bb289a7fa2f6bb8100ebee8
2016-10-13 23:51:33 +00:00
Garfield Tan
d91dd17f36 DO NOT MERGE: Not to crash DocumentsUI if moving cursor fails.
Bug: 31945164
Bug: 30348114
Change-Id: I3ac675c83379dc269ca8e0ff1678dc3979df5252
2016-10-12 12:31:15 -07:00
Ben Lin
6d33357882 Removing a mimeIcon specific for album folders from MediaProvider.
Bug: 32019092
Change-Id: I3e088194023c86adbff4ada3cfd2bb2ba7ee220a
2016-10-11 11:58:55 -07:00
Ben Lin
5e1e779098 DO NOT MERGE ANYWHERE
Remove onBeforePop() logic so back no longer opens/closes drawer.

Bug: 30814333
Change-Id: I4f6fc2a353286f69b88e5340145f7f9b3a97e819
2016-09-19 17:10:20 -07:00
Steve McKay
9cc31224a7 DO NOT MERGE: Accurately emulate historic Downloads ACTION_VIEW behavior. am: 3f5885918b
am: b40d2cd0b3

Change-Id: I0e37fcfaf1868afff04413e7087df9d2e4fe2494
2016-09-08 17:38:07 +00:00
Steve McKay
b40d2cd0b3 DO NOT MERGE: Accurately emulate historic Downloads ACTION_VIEW behavior.
am: 3f5885918b

Change-Id: Ibe8c67367649ecc5a229b86592257b976ba2411d
2016-09-08 17:31:12 +00:00
Steve McKay
3f5885918b DO NOT MERGE: Accurately emulate historic Downloads ACTION_VIEW behavior.
Add write permision to VIEW intent (don't regress bahavior).
Add (already known) mimetype when creating intent.

Test: Download a CSV file to Downloads *root*.
    Install Sheets from play store.
    Navigate to Settings > Storage > Explore > (device name) > Download
    Tap CSV file.
    It should open.

NOTE: This is a (manual) cherrypick from master. Manual part necessary
as DocumentsUI has moved to a new repo in master.
a4e765f16e

Bug: 31245151
Change-Id: Ic64c655d33182e559f9645c1e173b2fe4b601d6c
2016-09-07 20:28:51 +00:00
Steve McKay
7c3d2339ba DO NOT MERGE: Don't create DocumentInfo instances in background. am: b818058f4e
am: 89eb830a73

Change-Id: I66d7c1fda5ddc573db4e23902110f1ad59d8cadd
2016-08-24 20:00:50 +00:00
Steve McKay
89eb830a73 DO NOT MERGE: Don't create DocumentInfo instances in background.
am: b818058f4e

Change-Id: Ib43fd7c9cba300821a908f7036415b8b1635bb4a
2016-08-24 19:55:22 +00:00
TreeHugger Robot
850912db88 Merge "DO NOT MERGE: Don't create DocumentInfo instances in background." into nyc-mr1-dev 2016-08-24 19:49:36 +00:00
Steve McKay
b818058f4e DO NOT MERGE: Don't create DocumentInfo instances in background.
Cursor access is not threadsafe resulting in operations on incorrect files.

Bug: 30082168
Change-Id: Ib36d5b7acdee9463b6ebd2553172e5ecb4d70857
2016-08-24 01:34:45 +00:00
Steve McKay
50293dffb1 DO NOT MERGE: Treat unknown tooltype as touch. am: 0c28f3bda3
am: 6c06272a12

Change-Id: Ie67b77b846c2bdc7655970c23beb725ae9adc70d
2016-08-23 14:57:04 +00:00
Steve McKay
6c06272a12 DO NOT MERGE: Treat unknown tooltype as touch.
am: 0c28f3bda3

Change-Id: Idbee59d7450b63735291f5218784c87f762ed19b
2016-08-23 14:38:27 +00:00
TreeHugger Robot
8499c13740 Merge "DO NOT MERGE: Treat unknown tooltype as touch." into nyc-mr1-dev 2016-08-22 20:15:26 +00:00
TreeHugger Robot
1ae521df6a Merge "DO NOT MERGE ANYWHERE" into nyc-mr1-dev 2016-08-20 03:25:36 +00:00
Shunta Sato
0e4cb1740f DO NOT MERGE: Don't delete source file when a move opration is canceled am: 682d370390
am: 4024460305

Change-Id: I27da880eee00de2b9ac7ce0f7f812067beaccb45
2016-08-20 00:29:41 +00:00
Shunta Sato
4024460305 DO NOT MERGE: Don't delete source file when a move opration is canceled
am: 682d370390

Change-Id: I22b980489abe69675fe05d166576dfdbd1bd5c64
2016-08-20 00:25:03 +00:00
TreeHugger Robot
d4f39096dd Merge "DO NOT MERGE: Don't delete source file when a move opration is canceled" into nyc-mr1-dev 2016-08-20 00:19:47 +00:00
TreeHugger Robot
8c0b46c420 Merge "DO NOT MERGE ANYWHERE - Clear preferences when package is removed." into nyc-mr1-dev 2016-08-19 22:41:11 +00:00
Ben Lin
1870a159e5 DO NOT MERGE: Enable switch access api to activate/open files in DocsUI. am: d06893eb10
am: eedf334f75

Change-Id: I37e30c83fe0f08d3b03a0015c8393f4e1fd331c3
2016-08-19 20:38:21 +00:00
Ben Lin
eedf334f75 DO NOT MERGE: Enable switch access api to activate/open files in DocsUI.
am: d06893eb10

Change-Id: Ib4abf6d8222af7ade0a9804de10f3152b2b451a6
2016-08-19 20:30:13 +00:00
Ben Lin
f4c5b344ae Merge "DO NOT MERGE: Enable switch access api to activate/open files in DocsUI." into nyc-mr1-dev 2016-08-19 20:19:40 +00:00
Felipe Leme
a11d02477e DO NOT MERGE ANYWHERE
(cherrpy pick of commit cc8fcf2efd66afdaa900b4d27e1eb784e8d40752).

Don't open drawer when back is pressed after being launched externally.

Change-Id: I3e8afd68c33b519dd5d6b27e3fa94653c2537612
Fixes: 30743235
2016-08-17 13:54:02 -07:00
Felipe Leme
20488d97cd DO NOT MERGE ANYWHERE - Clear preferences when package is removed.
(cherry pick of commits 2154caf2f80fa87df84813b8e344f85094a454fd and
da1fc0a9c23697cc255efdccc47862bd1277da3f).

Change-Id: I5a019d771da6ff52ea36ee683a44405f6ea24853
Fixes: 30900628
Fixes: 28722556
2016-08-17 13:51:01 -07:00
Shunta Sato
682d370390 DO NOT MERGE: Don't delete source file when a move opration is canceled
DNM becuase Code has moved in master.

Symptom:
A source file is deleted even if a move operation is cancled

Root cause:
MoveJob doesn't check whether a move operation is canceled or not
after copying file

Solution:
Add cancel condition check before deleting a source file

Bug: 30240042
Author: Shiotani Kouji <kouji.x.shiotani@sonymobile.com>
Change-Id: Ie68e5d96304a125c07d46a2fd5e4c9d84903d1e7
2016-08-04 14:43:34 -07:00
Steve McKay
0c28f3bda3 DO NOT MERGE: Treat unknown tooltype as touch.
DNM because code has changed in master.

Bug: 30182625
Change-Id: I0f226abd9eb6899d8a3ecd1c24bb1b261b3d3677
2016-08-03 17:34:46 +00:00
Ben Lin
d06893eb10 DO NOT MERGE: Enable switch access api to activate/open files in DocsUI.
Switch Access uses OnClickListener() on individual views to check
whether a view is "clickable" or not. If it is clickable, using
prev/next keys will highlight to these clickable views. Since DocsUI
used to simply trap touch events and did not have any OnClickListeners
on its list/grid child views, switch access was not able to pick up
these views as clickable views. Simply adding an OnClickListener() fixes
this particular bug, but then a regular touch using finger/mouse would
trigger both onClick() and OnSingleTapUp(MotionEvent), which causes
double-firing and lead to unexpected behavior.

This fix overrides two accessibility-related methods in the
recyclerView's layoutManager, which the recyclerView delegates to.
Switch Access should now be routed to the correct behavior (which opens the
file/doc).

Bug: 30077035
Change-Id: I380d7529fa041f7b4905170f43f28a4235dc118d
2016-08-02 16:53:42 -07:00
Bill Yi
c0f585cedd Import translations. DO NOT MERGE
Change-Id: I772ac3a0184965baf38661af7744143b2dde5c29
Auto-generated-cl: translation import
2016-08-01 23:52:36 -07:00
Bill Yi
124e246546 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 30476613
Change-Id: Ib6d5cbd545c40797af32e5561df7164f3001c577
2016-08-01 12:44:56 -07:00
Garfield, Tan
877c28f9ad DO NOT MERGE: Change the order of 2 statements to remove race.
am: ebb8450cd0

Change-Id: Ica31fe1487551db935714f3d89543aff043d40b6
2016-07-26 22:22:42 +00:00
TreeHugger Robot
45ae57eab4 Merge "DO NOT MERGE: Change the order of 2 statements to remove race." into nyc-mr1-dev 2016-07-26 22:01:45 +00:00
Garfield, Tan
ebb8450cd0 DO NOT MERGE: Change the order of 2 statements to remove race.
When we finish action mode we access to the cursor of model in main
thread to remove selection. When we transfer documents we have a
GetDocumentsTask that access the cursor in background. This creates a
race condition that contaminates the final copy result.

Temporary solution is to finish action mode first and then transfer
documents so that when GetDocumentsTask is running action mode is
already finished.

Permanent solution is provided as part of ag/1138398 which removes
GetDocumentsTask.

Bug: 30082168
Change-Id: I5bffe2093a58c856044026913d038f80a3fd7d55
2016-07-25 10:12:22 -07:00
Bill Yi
da6099ec45 Import translations. DO NOT MERGE
Change-Id: I21868a3ae2dabfa27bdd770a55d4d137bdf1811f
Auto-generated-cl: translation import
2016-07-25 04:20:49 -07:00
Bill Yi
7a81bcd670 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 30233028
Change-Id: If78d06c444ccd169c81a1ec4e5d8af86c846ced9
2016-07-21 09:07:41 -07:00
Bill Yi
d955437cec Import translations. DO NOT MERGE
Change-Id: I7726a9e6e3fadac9a4949254a346717adbdc6217
Auto-generated-cl: translation import
2016-07-20 14:35:51 -07:00
Steve McKay
f26d22ddc7 Merge \"Make the app name \"Files\" instead of Documents.\" into nyc-mr1-dev
am: 6aa504077d

Change-Id: Ifd6e962abbcc2fb71bb1cc3239a96d8d9e027dba
2016-07-20 00:32:14 +00:00
Steve McKay
a8387db55e Merge \"Include an app icon.\" into nyc-mr1-dev
am: 3d8c9981b5

Change-Id: I14f2d90fc7c0f21ab0fe6b993c1ef6d8ed665831
2016-07-16 00:06:10 +00:00
Steve McKay
41cbaf2922 Make the app name "Files" instead of Documents.
This reduces the number of user visible names employed by the app by 1/3!

Bug: 29880363
Change-Id: I52bc8ea1b4437d96c32c4afba3a454ae74d06115
2016-07-15 15:45:11 -07:00
Steve McKay
f00c161a22 Include an app icon.
Bug: 29880363
Change-Id: Ia8d9414ce536fb35acec1357d0f69d3ee158d853
2016-07-15 15:37:14 -07:00
Ben Lin
64f4868803 Merge \"Trapping backspace at EditText level to prevent popping Docs.\" into nyc-mr1-dev
am: 2df618f4cd

Change-Id: I2f8a3c1d0c0c6a017e212288458429627f7c7544
2016-07-13 02:08:54 +00:00
Ben Lin
d9ba201f59 Trapping backspace at EditText level to prevent popping Docs.
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-12 23:42:56 +00:00
Daniel Nishi
7145cace64 Merge \"Move the MIME type icon detection into the platform.\" into nyc-mr1-dev
am: 9459f93c97

Change-Id: I151a72b8ee1c16ef94da70e85378dd44b4ac077c
2016-07-06 20:02:45 +00:00
Daniel Nishi
9459f93c97 Merge "Move the MIME type icon detection into the platform." into nyc-mr1-dev 2016-07-06 19:54:27 +00:00
Daniel Nishi
c29d2b0492 Move the MIME type icon detection into the platform.
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-06 10:57:06 -07:00
Andrew Sapperstein
bc2ba56507 Merge \"Update DocumentsUI to use theme colors.\" into nyc-mr1-dev
am: 2573d83fa9

Change-Id: I746721af370141c6adf60e95eaef478f8d77ba3e
2016-07-03 15:34:09 +00:00