228513 Commits

Author SHA1 Message Date
Tomasz Mikolajewski
95149ab6a5 Remove the flag and make openTypedDocument throw FileNotFoundException.
To be compatible with ContentProvider, DocumentsProvider should not
require checking for a flag before calling openTypedAssetFile.

This CL removes the flag, and makes the default implementation throw
FileNotFoundException instead.

Bug: 26222645
Change-Id: I3492f05804e39583ebb8584109c7017b3082846e
2016-01-07 03:49:14 +00:00
Roozbeh Pournader
c800ff99cc Merge "Remove some minimally supported locales from LocalePicker" 2015-12-24 04:54:37 +00:00
Roozbeh Pournader
0a8bf0b36f Remove some minimally supported locales from LocalePicker
For now, these locales are removed:

1. Mundang (mua): the name of the language is all-caps (while the
name of other languages in the locale are either lowercase or
titlecase.

2. Tachelhit (shi): It does not have the name of the Latin or
Tifinagh scripts that it's written in.

3. Vai (vai): It does not have the name of the Latin or Vai scripts
that it's written in.

4. Kashmiri (ks): The spelling of India uses incorrect Unicode
characters, and so do many other pieces of information in the locale.

5. Northen Luri (lrc): It doesn't have the name of the countries it's
spoken in (Iran and Iraq).

(The header of the config file is also fixed.)

Bug: 26279867
Change-Id: I52ad5f9058390f060705e21db62df81513d6ca6e
2015-12-23 20:53:06 -08:00
Daichi Hirono
3a682e8377 Merge "Fix flakiness MtpManagerTest test." 2015-12-24 04:07:27 +00:00
Daichi Hirono
4c4061210e Fix flakiness MtpManagerTest test.
The test for readEvent cancelling was flakiness because it can
successfully receives an event before the test tries to cancel it.

Change-Id: Ie7625dff53e07b8bc9888da03e78155e683a6d46
2015-12-24 12:45:03 +09:00
Tomasz Mikolajewski
7335d43007 Merge "Wire thumbnails in archives in ExternalStorageProvider." 2015-12-24 02:21:48 +00:00
Alex Cheung
39d1f6646a Use "merge -s ours origin/mirror-partner-mm-wireless-dev" as described in b/26154276 2015-12-23 14:48:52 -08:00
Geoff Mendal
784ac6c36b Merge "Import translations. DO NOT MERGE" 2015-12-23 20:07:32 +00:00
Geoff Mendal
cad921315d Import translations. DO NOT MERGE
Change-Id: Ic1ffdb6e18d84091b1abc67a45b8d8b9e8747d59
Auto-generated-cl: translation import
2015-12-23 18:18:28 +01:00
Geoff Mendal
cfb48ec8ba Merge "Import translations. DO NOT MERGE" 2015-12-23 13:54:59 +00:00
Geoff Mendal
de3c184a50 Merge "Import translations. DO NOT MERGE" 2015-12-23 13:54:39 +00:00
Geoff Mendal
bc97f81d7a Import translations. DO NOT MERGE
Change-Id: I3f6a2f37d640e10ad8ed5d0db0e7a81d4a5e8ef3
Auto-generated-cl: translation import
2015-12-23 05:53:57 -08:00
Geoff Mendal
0bf658d631 Import translations. DO NOT MERGE
Change-Id: I0e46010642ad4edb9bd12eb256518627d9d29107
Auto-generated-cl: translation import
2015-12-23 05:52:22 -08:00
Geoff Mendal
527b290674 Merge "Import translations. DO NOT MERGE" 2015-12-23 13:44:37 +00:00
Geoff Mendal
7da42323ca Import translations. DO NOT MERGE
Change-Id: I7cf42c018cfec707dc5fc1e55716de2ed7f1cacf
Auto-generated-cl: translation import
2015-12-23 05:40:31 -08:00
Geoff Mendal
4efe6956b7 Merge "Import translations. DO NOT MERGE" 2015-12-23 13:38:43 +00:00
Geoff Mendal
de557669b2 Import translations. DO NOT MERGE
Change-Id: I26b3d71c972ae0f9757845441999564e504f9183
Auto-generated-cl: translation import
2015-12-23 05:37:14 -08:00
Geoff Mendal
8dd3dbae67 Import translations. DO NOT MERGE
Change-Id: Ib6ebdd5bbdb5d5186533ca875ed0d2f69e31f7c1
Auto-generated-cl: translation import
2015-12-23 05:18:27 -08:00
Martijn Coenen
b325061b19 Merge "Clear calling identify b4 Beam callback." into mnc-dr1.5-dev am: 4bbd3c4819 am: c94df7c685
am: 68521a6825

* commit '68521a682524c53e6bfd883a3f41b4fe514c2d0c':
  Clear calling identify b4 Beam callback.
2015-12-23 00:33:26 -08:00
Martijn Coenen
68521a6825 Merge "Clear calling identify b4 Beam callback." into mnc-dr1.5-dev am: 4bbd3c4819
am: c94df7c685

* commit 'c94df7c685947d8263f3617c3cd352a0bcd9e8c1':
  Clear calling identify b4 Beam callback.
2015-12-23 00:29:19 -08:00
Martijn Coenen
c94df7c685 Merge "Clear calling identify b4 Beam callback." into mnc-dr1.5-dev
am: 4bbd3c4819

* commit '4bbd3c4819fa9766442f6a063a4be2a786be8180':
  Clear calling identify b4 Beam callback.
2015-12-23 00:25:08 -08:00
Martijn Coenen
4bbd3c4819 Merge "Clear calling identify b4 Beam callback." into mnc-dr1.5-dev 2015-12-23 08:22:21 +00:00
Philip P. Moltmann
bb36206f08 Rename variable that hides the contatining classes name.
Change-Id: Iad0a9b341a866d33d10b7a389d243e677a65057c
2015-12-22 20:24:58 -08:00
Philip P. Moltmann
98963260dc Prefer printers that have been used physically close to the current
location of the user.

Commonly the users prints on a printer that this near the user current
location. Hence if possible we want to show the user printers that he
used before and that are close to him.

Hence store the location of the previous uses of a printer and prefer
printer that are close to the user.

Unfortunately getLastLocation might not report a usable location and it
will take at least 5 seconds until the first usable location arrives. At
this time the user might have already opened the destionation spinner.
It would be unexpected for the printers to suddenly change under the
users finger. Hence it might be that we did first show the printer
without any location information and then once the location is known we
cannot update thedestination spinner anymore.

The select printer activity does not have this issue, hence in the worst
case the user has to enter this activity to select a printer and by then
the location is usually determined.

This is not ideal but better than before.

Bug: 24133609
Change-Id: Ie7d20cf3d9dd163e57903f8f6ecc0b3fd4f4374e
2015-12-22 19:00:39 -08:00
Filip Gruszczynski
8cef7db8d6 Merge "Only use DecorContext with main activity windows." 2015-12-23 02:20:49 +00:00
Philip P. Moltmann
4c95567b5f Merge "Clean up print subsystem" 2015-12-23 02:11:01 +00:00
Philip P. Moltmann
30172e2561 Merge "Close closeguard of PageContentRepository." 2015-12-23 01:28:07 +00:00
Philip P. Moltmann
c43639c306 Clean up print subsystem
- Stop using deprecated APIs
- Fix all public and some internal javadoc
- Add @Decorations to public APIs
- Some minor cleanup, e.g. don't use variables with overlapping names in same scope
- remove unnecessary properties from manifest (they are set by the build
  system)

Change-Id: I0ce8849a516414763fe9de76c3a18ce17d896816
2015-12-22 17:27:27 -08:00
Ben Kwa
ff491d6b36 Merge "Adjust grid margins to match mocks." 2015-12-23 01:13:03 +00:00
Ben Kwa
2f6553f0f0 Merge "Fix various band select instabilities." 2015-12-23 01:11:33 +00:00
Ben Kwa
a108e7e426 Merge "Update grid items to look more like the mocks." 2015-12-23 01:11:12 +00:00
Ben Kwa
cd41fb837d Adjust grid margins to match mocks.
BUG=25560424

Change-Id: I11edfd9585299acb22ca14b518274ae2538a7d01
2015-12-22 17:09:24 -08:00
Jun Mukai
09b9576690 Merge "Fix a crash. InputDevice can be null." 2015-12-23 00:00:08 +00:00
Robert Greenwalt
a2590b5e7f Check permissions on getDeviceId. DO NOT MERGE
This needs the package name passed in, so the aidl changes.

bug:25778215
Change-Id: I69ee88f1d2db614bad51e6de908d3f16881a0231
2015-12-22 15:29:42 -08:00
Ben Kwa
20887030e8 Fix various band select instabilities.
- Guard against OutOfBoundsExceptions by checking for
  RecyclerView.NO_POSITION before attempting to retrieve model IDs in
  various places.

- Fix a spot where the default return value of
  SparseIntArray.get (i.e. 0) was causing item 0 to incorrectly get
  selected.

BUGS=26249027,26309874

Change-Id: I08d2e8c90bdd40a4738bdcf357de31e8fe6ddecf
2015-12-22 15:27:14 -08:00
Filip Gruszczynski
796b8c17d6 Only use DecorContext with main activity windows.
Bug: 26251921
Change-Id: Icd41eddd4f39b95a136ee366673fabbef9d4def0
2015-12-22 15:14:01 -08:00
Ben Kwa
f8a51f6fcb Update grid items to look more like the mocks.
- Create a new layout for directory items, which have a different
  layout (no thumbnail, size or mod_date).

- Add drop shadows.

Also refactor a few things in the DocumentHolder and child classes to
make things more efficient and cleaner.

BUG=24326989,26229570

Change-Id: I05df52b071667190d4c4c671f50d25498383cdaa
2015-12-22 14:40:21 -08:00
Vladislav Kaznacheev
b23a757aa2 Bind DropPermissions life cycle to Activity
Move requestDropPermissions from DragEvent to Activity.
Permissions will be granted using UriPermissionOwner
 associated with this activity and revoked when the activity
 is destroyed (if DropPermissions.release is not called before that).

Change-Id: Ic8f8fc3f56f57e83b9bc34ae8c96d82c2c9c4e1d
2015-12-22 14:40:11 -08:00
Jun Mukai
caca1114b2 Fix a crash. InputDevice can be null.
Bug: 26306228
Change-Id: I2ada939cbacb9886bd04da791b185eb49a0a2f55
2015-12-22 14:20:24 -08:00
Aga Wronska
43551a2a2f Merge "Pressing back button clears search" 2015-12-22 22:08:08 +00:00
Dan Willemsen
6ea25250a8 Merge "AAPT2: Fix compiler error in 32-bit host test" 2015-12-22 21:55:36 +00:00
Philip P. Moltmann
4f71bcec22 Merge "Allow a print service to specify per printer icons, description and info-activities" 2015-12-22 21:49:30 +00:00
Dan Willemsen
1b1f1b14ee AAPT2: Fix compiler error in 32-bit host test
We now default host native tests to build both 32-bit and 64-bit
versions.

The 32-bit version of libaapt2_test was broken because it was comparing
an unsigned int to the result from std::count(std::vector), which is a
signed int. The 64-bit version compiled fine, since
std::count(std::vector) returns a long.

Change-Id: I786fcd8a54d9f78b76b19ef82ab8dda6f5c42197
2015-12-22 13:44:56 -08:00
Aga Wronska
43f20493d0 Pressing back button clears search
Bug:26143308
Change-Id: Iaa02d39a6ee1fd1a0c7d4d07453a481af97c7664
2015-12-22 13:24:52 -08:00
Rob Carr
d27cf02d91 Merge "Set SCALING_MODE_NO_SCALE_CROP for SurfaceView." 2015-12-22 21:07:45 +00:00
David Riley
1b3b8b74ae Merge "SystemUI: implement bluetooth scan timeout" 2015-12-22 18:45:06 +00:00
Filip Gruszczynski
9a6fb02f59 Merge "Add a permission to shell for running multi window tests." 2015-12-22 17:29:39 +00:00
Filip Gruszczynski
1ca4e549d9 Add a permission to shell for running multi window tests.
Bug: 19225708
Change-Id: Ia2de679b133acee992ccdab3bfddbdd9d78f5025
2015-12-22 09:22:34 -08:00
Benjamin Franz
b0521256d6 Merge "Allow device and profile owner to modify accounts" 2015-12-22 17:00:19 +00:00
Jason Monk
e06900b769 Merge "QS: Fix header layout when alarm set" 2015-12-22 16:37:24 +00:00