276403 Commits

Author SHA1 Message Date
Bill Yi
c36373f2c4 Merge "Import translations. DO NOT MERGE" into cw-f-dev
am: a74148ea54  -s ours

Change-Id: I6925457da9d330406fae0505bac1c3369d354320
2016-10-18 05:45:30 +00:00
Bill Yi
f94ea63942 Import translations. DO NOT MERGE
am: 00afe024b9  -s ours

Change-Id: I96cb6689b67a3d3302d0c62feb7e26961db3b371
2016-10-18 05:45:26 +00:00
Bill Yi
bf6671f401 Merge "Import translations. DO NOT MERGE" into cw-f-dev
am: fb27d02b6b  -s ours

Change-Id: Ia04da67d26029ff1e45aa37acb12065636f0b0d3
2016-10-18 05:44:09 +00:00
Bill Yi
80fb38bdd7 Import translations. DO NOT MERGE
am: 5a05ce6409  -s ours

Change-Id: I786be47acfb67339f78f9be651b61d40f020218d
2016-10-18 05:44:04 +00:00
TreeHugger Robot
a74148ea54 Merge "Import translations. DO NOT MERGE" into cw-f-dev 2016-10-18 05:31:01 +00:00
TreeHugger Robot
fb27d02b6b Merge "Import translations. DO NOT MERGE" into cw-f-dev 2016-10-18 05:30:11 +00:00
George Burgess IV
e76253055c Merge "Fix static analyzer warnings." am: ff5c3ad08b
am: 1db1a86bba

Change-Id: Iafed2ab4df7297ed8e3b0b86cafe15af3e1c8823
2016-10-18 01:49:53 +00:00
George Burgess IV
1db1a86bba Merge "Fix static analyzer warnings."
am: ff5c3ad08b

Change-Id: I655fd765cfeae407c070261cfe07ce8b739b06fa
2016-10-18 01:43:24 +00:00
Treehugger Robot
ff5c3ad08b Merge "Fix static analyzer warnings." 2016-10-18 01:30:55 +00:00
Michael Kwan
63b3085570 Merge "Fix oversized icons and removed title line limit." into cw-f-dev
am: ff2d91fa07

Change-Id: If711cf676853dd470fdd1eec2cadbe8a8033df1d
2016-10-17 23:23:46 +00:00
Michael Kwan
5079a82337 Fix oversized icons and removed title line limit.
am: e6c38677a4

Change-Id: Ic97878c26ec49ee4632becfaffcb23d6d329e41e
2016-10-17 23:23:40 +00:00
Michael Kwan
ff2d91fa07 Merge "Fix oversized icons and removed title line limit." into cw-f-dev 2016-10-17 23:14:06 +00:00
Chris Thornton
5fa6750da2 Merge "Update primary key in VIS sound model database." into nyc-mr1-dev am: c81e1f15d2
am: c6577b1266

Change-Id: I8ce1dfc713ec15be5b2d9814667a5c04ea4d6780
2016-10-17 22:45:35 +00:00
Chris Thornton
059b78c949 Update primary key in VIS sound model database. am: 5bd5cf75e1
am: 2d452d7dab

Change-Id: I53e9f73caee56f715bdeaf93a680598bc13aee01
2016-10-17 22:44:38 +00:00
Chris Thornton
c6577b1266 Merge "Update primary key in VIS sound model database." into nyc-mr1-dev
am: c81e1f15d2

Change-Id: I1a04106f1fc4748b015a18920bfc73ec3aed97fd
2016-10-17 22:32:20 +00:00
Chris Thornton
2d452d7dab Update primary key in VIS sound model database.
am: 5bd5cf75e1

Change-Id: Ie35e4a4f15ece95d3b5458f4c5ee06098062c96f
2016-10-17 22:32:17 +00:00
TreeHugger Robot
c81e1f15d2 Merge "Update primary key in VIS sound model database." into nyc-mr1-dev 2016-10-17 22:20:38 +00:00
Sanket Agarwal
933c625a92 Merge "Remove APIs that are not directly usable." am: 9cff57312d
am: 086be31642

Change-Id: I5f95fe50d16b26601405816625f4aa45f2ef6647
2016-10-17 21:32:21 +00:00
Mark Salyzyn
6e60ab12e7 Merge "missing includes" am: 78929f3ee0
am: 6a8f0d70b0

Change-Id: I40ff974f4333aaa714a63d5436b822491b9d78d6
2016-10-17 21:31:35 +00:00
Sanket Agarwal
086be31642 Merge "Remove APIs that are not directly usable."
am: 9cff57312d

Change-Id: I1234db97ed82017ed3bca02e10818a53fdc33d3d
2016-10-17 21:28:05 +00:00
Mark Salyzyn
6a8f0d70b0 Merge "missing includes"
am: 78929f3ee0

Change-Id: I3e7a25ded484d516fab453abe434c2e53cf0f27e
2016-10-17 21:25:59 +00:00
Treehugger Robot
9cff57312d Merge "Remove APIs that are not directly usable." 2016-10-17 21:16:22 +00:00
Bill Yi
5a05ce6409 Import translations. DO NOT MERGE
Change-Id: I7bd27211cd2cb24cae8bb2bc31404f66e2301f26
Auto-generated-cl: translation import
2016-10-17 14:13:52 -07:00
Treehugger Robot
78929f3ee0 Merge "missing includes" 2016-10-17 21:12:08 +00:00
Bill Yi
00afe024b9 Import translations. DO NOT MERGE
Change-Id: Ia35c346101f62955ae7bc9937f02242dad195b9d
Auto-generated-cl: translation import
2016-10-17 14:02:57 -07:00
Matthew Bouyack
2d65e23741 Merge "DO NOT MERGE Improved anti-aliasing for circular display mask" into cw-f-dev
am: 2cfae5a656

Change-Id: I50ece1dc71401855af31e7f4d7e13a469bf31c9f
2016-10-17 20:38:42 +00:00
Matthew Bouyack
2c3c928ad9 DO NOT MERGE Improved anti-aliasing for circular display mask
am: c84731ae3b

Change-Id: I64484d947636fc5b4ed43e13a3dc096ac1bb6fe1
2016-10-17 20:38:34 +00:00
Matthew Bouyack
2cfae5a656 Merge "DO NOT MERGE Improved anti-aliasing for circular display mask" into cw-f-dev 2016-10-17 20:28:55 +00:00
Chris Craik
dfe4a1b6ee Fix complex clipping on mergeable ops DO NOT MERGE am: d183e0b988
am: a6bfd8d12c

Change-Id: I5af8d0fac1e47e7bf831ca2f387fe550acf4165c
2016-10-17 19:59:32 +00:00
Chris Craik
a6bfd8d12c Fix complex clipping on mergeable ops DO NOT MERGE
am: d183e0b988

Change-Id: Icb357a11cb8a4be473aa8b0acdb4d799973ff54a
2016-10-17 19:52:53 +00:00
Sanket Agarwal
fb6322425a Remove APIs that are not directly usable.
The right way to expose this API is done via MediaBrowser.

Bug: b/28791287
Change-Id: I0a8a185934fd7aaa9f2b5eac7398955fa380060f
(cherry picked from commit b5fbb75aa26a6322b26b1289cc5d14a8c31acb34)
2016-10-17 12:47:10 -07:00
Mark Salyzyn
4d6c372eae missing includes
Assumptions are made about header side effects

Test: compile
Bug: 30465923
Change-Id: Icc9415aed5e54b2bc00b70aa0da6df4148f30654
2016-10-17 12:32:54 -07:00
Chris Craik
d183e0b988 Fix complex clipping on mergeable ops DO NOT MERGE
Fixes: 32106003

Change-Id: I519bc38a1fa8c25c9ae317ffdb7e59e5a0824f59
2016-10-17 10:51:11 -07:00
Yoshinori Hirano
b66feeffac Merge "Avoid automatically mirroring Drawable of CustomTile" am: 9a904d68c7
am: 9531933797

Change-Id: I73b8c40a628dde30e1ec647b24ae21956e33f9cc
2016-10-17 17:12:42 +00:00
Chris Thornton
5bd5cf75e1 Update primary key in VIS sound model database.
The public API for getting at KeyphraseSoundModels is based on the user,
locale, and keyphrase ID. However, the sound model database would allow
multiple models to be registered using the same values, as it has a
primary key on the model UUID. This can potentially lead to a scenario
where multiple models are enrolled for the same user, and the data that
is returned when querying models is arbitrary.

V6 of the sound model database now enforces a primary key over the user
ID, locale and keyphrase ID. When inserting a new model with the same
primary key, the old model will be removed and the new model will be
used instead.

When upgrading from V5 to V6, if there are any models that would violate
the primary key constraint, they are all dropped.

Bug: 32174118
Change-Id: I9597c6a994f01a426625c3be2c53e826f26f5156
2016-10-17 10:12:04 -07:00
Yoshinori Hirano
9531933797 Merge "Avoid automatically mirroring Drawable of CustomTile"
am: 9a904d68c7

Change-Id: I337620f4a2514a00a6b49275cadde6087e11dddf
2016-10-17 17:00:44 +00:00
Christopher Wiley
39c3166710 Merge "Add InterfaceConfiguration.isUp()" am: c7ea99a63c
am: 281d7490bf

Change-Id: I79b84bd9cdde064be19c1110b3c3c08900123bdd
2016-10-17 16:45:35 +00:00
Treehugger Robot
9a904d68c7 Merge "Avoid automatically mirroring Drawable of CustomTile" 2016-10-17 16:42:18 +00:00
Neil Fuller
e9c1678643 Merge "Update time_zones_by_country.xml / delete unused files" am: 143d13ce59
am: 23ff65ed1e

Change-Id: I474e5b59d7e3cb8c370211298c0ba07760f963fb
2016-10-17 16:42:10 +00:00
Christopher Wiley
281d7490bf Merge "Add InterfaceConfiguration.isUp()"
am: c7ea99a63c

Change-Id: Id0bc63c82f8ffd6ad411769ab012efd8bbdfa3ce
2016-10-17 16:41:52 +00:00
Treehugger Robot
c7ea99a63c Merge "Add InterfaceConfiguration.isUp()" 2016-10-17 16:30:44 +00:00
Neil Fuller
23ff65ed1e Merge "Update time_zones_by_country.xml / delete unused files"
am: 143d13ce59

Change-Id: I1a52ac448247c1ebe7dc19f566e87478131a95e0
2016-10-17 16:30:06 +00:00
Treehugger Robot
143d13ce59 Merge "Update time_zones_by_country.xml / delete unused files" 2016-10-17 16:21:59 +00:00
yangzhenyu
6bdc11f95f Merge "[ActivityManager] Fix the inconsistence between ProcessRecord and BroadcastQueues" am: 09dcaf1948
am: 744f0e0997

Change-Id: Ib2d02a9a5a04256120c7982b0e1d6298a5d197dc
2016-10-17 16:14:38 +00:00
yangzhenyu
744f0e0997 Merge "[ActivityManager] Fix the inconsistence between ProcessRecord and BroadcastQueues"
am: 09dcaf1948

Change-Id: I6227536c270cdac730be60edf35f7ff704e59af0
2016-10-17 16:08:41 +00:00
Treehugger Robot
09dcaf1948 Merge "[ActivityManager] Fix the inconsistence between ProcessRecord and BroadcastQueues" 2016-10-17 15:59:17 +00:00
Jakub Adamek
845de5aaad Search for RRO in Java both in SKU subdir and in vendor/overlay
am: 4a6e246671

Change-Id: I876e12838c88adb019af73ceff207b6b8bd60c0a
2016-10-17 15:02:38 +00:00
Jakub Adamek
4a6e246671 Search for RRO in Java both in SKU subdir and in vendor/overlay
Currently, if the "ro.boot.vendor.overlay.subdir" property is set, we
only search in the subdir. It seems more powerful to search both in
there and in the standard /vendor/overlay directory.

Also, RRO packages have the "priority" attribute in the <overlay>
attribute in AndroidManifest.xml which serves for disambiguation.

Bug: 32202741
Change-Id: I9ef44b8ca4ac0e92ba02e25b3672c6b274fe4639
2016-10-17 15:52:47 +01:00
Neil Fuller
50e9b8620c Update time_zones_by_country.xml / delete unused files
preferred_time_zones.xml is not referenced in any code and has been
deleted here.

TimeUtilsTest.java is broken / out of date and semi-duplicates code
in android.util.cts.TimeUtilsTest. It has been deleted here.

time_zones_by_country.xml file has not been updated since (at least)
2009.

Ideally this information would be updated as needed when the
timezone rule data is updated on device. This change just brings the
data up to date without addressing that issue. Given the apparent,
non-obvious, ordering requirements it may not be possible to use
zone1970.tab data directly.

---------------

Impact assessment:

At the time of writing time_zones_by_country.xml is used from:

Non-public methods:

android.util.TimeUtils.getTimeZones(String)

Public methods:

android.util.TimeUtils.getTimeZone(int, boolean, long, String)
android.util.TimeUtils.getTimeZonesWithUniqueOffsets(String)

Therefore there is some app / user benefit from updating it.

Within the framework, this affects:

telephony.ServiceStateTracker - in some circumstances when receiving
offset information from cell networks when better information is not
available.

There is some clockwork code affected that uses the calls for similar
purposes.

---------------

Notes on file formats / mapping the IANA source data:

The updated data was sourced from the IANA tzdata 2016g file
called zone1970.tab. The time_zones_by_country.xml file was manually
edited in a text editor using criteria detailed below.

The zone1970.tab file maps country codes (column 1) to a zone ID
(column 3). A country can be mapped to multiple zones. The zone.tab file
that was likely used in the past is similar in content and format. See
the zone.tab file header for details of the differences.

The time_zones_by_country.xml can have multiple entries for each
country, starting with a comment.

Comments exist for each (Country, Offset) pair. The name is
free-text, the offset is a non-DST offset for a zone as of 14th Oct
2016 using the 2016g data.

<!-- {Country name}, {offset from UTC} -->

Countries are listed in ASCII ascending order of the country code.

Within each country offsets are mostly ordered east to
west. An exception appears to be Australia. The data may have a
secondary order of "best match" (e.g. maybe by population). This might
be important for getTimeZone(int, boolean, long, String)) since it
returns the first match for a given offset, dst, country.

The timezone offset, transition information itself (offset, dst) is
pulled from the timezone rules data on the device, not this file.

The data is encoded for each (Country, Offset) pair by a sequence
of:

<timezone code="xx">{Olson ID}</timezone>

xx is the country code from column 1 in the zone1970.tab file, the
element content is the zone ID from column 3.

---------------

Notes on the changes made to time_zones_by_country.xml:

There are various changes in this commit associated with switching from
zone.tab to zone1970.tab as a data source: zone.tab uses different
Olson IDs due to the different criteria used by these files.
The offset in each case will be the same so will have no practical
effect on offsets / zone detection, though will affect the exemplar
location for the zone found.

The remaining changes reflect actual zone / offset changes that
have occurred.

When adding new zones or rearranging existing ones they have been
positioned so as not to modify the first zone for each country or
the first zone per offset because of the uncertainty about the
secondary ordering. This is to avoid the risk of now picking a
different zone for a country or {country + dst + offset}. This
has resulted in a couple of places where the ordering is
non-intuitive.

The zone names and the offset information contained in the comments was
checked semi-manually using other 2016g data, i.e. the base offset of
each zone was checked against output from a script that created a
TimeZone object from each Olson ID in the file and output the raw
(non-DST) offset.

---------------

Change specifics:

Changes made due to zone1970.tab vs zone.tab:

ANTIGUA AND BARBUDA
ANGUILLA
ANGOLA
ALAND ISLANDS
ARUBA
BOSNIA AND HERZEGOVINA
BURKINA FASO
BAHRAIN
BENIN
BOTSWANA
CONGO
CENTRAL AFRICAN REPUBLIC
CONGO
CAMEROON
DJIBOUTI
DOMINICA
ERITREA
ETHIOPIA
GABON
GRENADA
GUERNSEY
GAMBIA
GUINEA
GUADELOUPE
EQUATORIAL GUINEA
CROATIA
ISLE OF MAN
JERSEY
CAMBODIA
COMOROS
SAINT KITTS AND NEVIS
KUWAIT
CAYMAN ISLANDS
LAO PEOPLE'S DEMOCRATIC REPUBLIC
SAINT LUCIA
LIECHTENSTEIN
LESOTHO
MONTENEGRO
MADAGASCAR
MACEDONIA
MALI
NORTHERN MARIANA ISLANDS
MAURITANIA
MONTSERRAT
MALAWI
NIGER
OMAN
RWANDA
SAINT HELENA
SLOVENIA
SVALBARD AND JAN MAYEN
SLOVAKIA
SIERRA LEONE
SAN MARINO
SENEGAL
SOMALIA
SAO TOME AND PRINCIPE
SWAZILAND
TOGO
TANZANIA
UGANDA
UNITED STATES MINOR OUTLYING ISLANDS
HOLY SEE
SAINT VINCENT AND THE GRENADINES
VIRGIN ISLANDS
YEMEN
MAYOTTE
ZAMBIA
ZIMBABWE

---------

Changes due to new data:

ANTARCTICA
ARGENTINA
AUSTRALIA
BRAZIL
CANADA
CHINA
MICRONESIA
INDIA
MYANMAR
MEXICO
PAPUA NEW GUINEA
PALESTINE
RUSSIAN FEDERATION
UNITED STATES
UKRAINE

---------

Removal of NETHERLANDS ANTILLES (country code "an"):

"an" no longer present in the IANA data.
The country code is no longer in use.
https://en.wikipedia.org/wiki/ISO_3166-2:AN
New country entries for:

Saint Barthélemy
Caribbean Netherlands
Curaçao
Collectivity of Saint Martin
Sint Maarten

---------
Changes due to new data *and* with differences between zone1970.tab
and zone.tab:

GERMANY
South Sudan (entirely new)
VIET NAM
FRENCH SOUTHERN TERRITORIES

---------

Changes to comments or arrangement of existing entries due to non-DST
offset changes since the last update:

Antarctica/Mawson
Europe/Minsk
America/Resolute
Atlantic/Stanley
Asia/Pyongyang
America/Cancun
America/Grand_Turk
Pacific/Fakaofo
Europe/Istanbul
America/Caracas
Pacific/Apia

Bug: 25338903
Test: Build / CtsUtilTestCases
Change-Id: I87e3db795f55ddd92e7402459c5e97aa70b9301e
2016-10-17 12:14:50 +00:00
Yoshinori Hirano
eb09362c72 Avoid automatically mirroring Drawable of CustomTile
Developers of custom tiles should decide whether
the Drawable of their own tiles should be automatically mirrored.
So State#autoMirrorDrawable should be false by default.

Bug: 30930145
Test: manual - change to RTL language and open Quick Settings

Change-Id: Ia3fd8c2aeddb4a27b9ecfaaf52edbcce01fd7f48
2016-10-17 20:04:16 +09:00