235486 Commits

Author SHA1 Message Date
Doris Liu
5a705d0bbb Merge "Set end value immediately when start a 0-duration animation" into nyc-dev 2016-03-11 20:25:21 +00:00
Alan Viverette
f4c3d9f4c2 Merge "Invalidate DrawableContainer's cached canConstantState on child add" into nyc-dev 2016-03-11 20:19:11 +00:00
Wale Ogunwale
207139291a Merge "Display home activity behind pinned activity that should return home" into nyc-dev 2016-03-11 20:18:56 +00:00
Alan Viverette
ac85f90466 Ensure all Java-side usages of config flags are using Java flags
Previously we were using native config flags in some places that expected
Java flags, and vice-versa. All usages of config flags are now annotated
to ensure we're using the right type.

Cleans up annotations on most methods that were touched.

Bug: 21161798
Change-Id: Ifd87dfb12199fc8258915d8a510e03ddb681ca89
2016-03-11 15:15:51 -05:00
Todd Kennedy
215d8b571c Merge "fix build" into nyc-dev 2016-03-11 20:04:19 +00:00
Wale Ogunwale
ef21335da7 Merge "Notify task changed listeners when a pinned activity is removed" into nyc-dev 2016-03-11 20:03:47 +00:00
Todd Kennedy
93a21993c3 fix build
Change-Id: Icd05c30eabaa526d85ef328d781380781b44d371
2016-03-11 12:03:44 -08:00
Yohei Yukawa
fc1713dfad Merge "Use LocaleUtils#filterByLanguage for non-keyboard subtypes." into nyc-dev 2016-03-11 19:56:03 +00:00
Felipe Leme
52ca701cd4 Don't log metrics for initial screenshot.
BUG: 26759986
Change-Id: Ie1ff6626bb3174efa12c7cefe14782f4c18fb6d2
2016-03-11 11:47:50 -08:00
Todd Kennedy
b0f6e311ce Merge "Allow app downgrades" into nyc-dev 2016-03-11 19:38:35 +00:00
Todd Kennedy
c84d1ab11a Allow app downgrades
only system apps can do this

Change-Id: If0947f13f5c447f9396690bfda3ad40b07fbbb6b
2016-03-11 11:37:17 -08:00
Alan Viverette
48653d225b Merge "Ensure Outline consistently sets the radius to be undefined" into nyc-dev 2016-03-11 19:34:05 +00:00
Todd Kennedy
1374af2c7b Merge "Add minSdk to dumpsys" into nyc-dev 2016-03-11 19:26:37 +00:00
Todd Kennedy
89d60189cd Add minSdk to dumpsys
Bug: 27526333
Change-Id: I0148275013ebab899bcb63c07d71a840539c1863
2016-03-11 11:18:32 -08:00
Alan Viverette
79936ddda4 Merge "Add consistent @NonNull annotations for drawable callbacks" into nyc-dev 2016-03-11 18:42:43 +00:00
Yohei Yukawa
238faad984 Use LocaleUtils#filterByLanguage for non-keyboard subtypes.
With this CL, we expand the target of Bug 27129703 and Bug 27348943 to
non-keyboard subtypes.

Suppose there is a handwriting IME (mode == "handwriting") that supports
the following 5 subtypes.
  - en-US
  - en-GB
  - fr
  - sr-Cyrl
  - sr-Latn

Also suppose the system languages are configured as follows.
  1. sr-Latn-RS
  2. ja-JP
  3. fr-FR
  4. en-GB
  5. en-US

In this case we want to enable [sr-Latn, fr, en-GB] by default when
"use system language" is checked in the subtype enabler.

See previous commits [1][2] about how we addressed those issues for
keyboard subtypes.

  [1]: Iaf179d60c12b9a98b4f097e2449471c4184e049b
       e985c240e3feb62ea38d5b4e386be083ca0f215b
  [2]: I8fc774154f5175abff2f16e8f12a4847bf5f5b7c
       072a95a3094af2ced4f009ad62c4553c28e3f830

Bug: 27560993
Change-Id: I416b5671602c550805ed6267dd210968aa1de83c
2016-03-11 10:39:51 -08:00
Winson
44dbe294fb Fixing issue where screenshot notification remains non-dismissible.
- Ensure that we start the screenshot as a foreground service to reduce
  likelihood that it is killed while taking a screenshot.
- If the screenshot process times out or gets killed for any reason, 
  ensure that we update the notification with an appropriate error 
  message.

Bug: 27389179
Change-Id: I5007bda95538044bc753e4ceffd2f59a069c857b
2016-03-11 10:39:41 -08:00
Winson
c7aa65b8d5 Prevent crash with invalid cancelled params.
Bug: 27368990
Change-Id: I3eaa9e0391a4149da29bb5dc638ef152f5125bc6
2016-03-11 10:39:41 -08:00
Wale Ogunwale
89182d5b47 Notify task changed listeners when a pinned activity is removed
Bug: 27558494
Change-Id: I68573e5654f476e0b3027ad80d0e86496867f128
2016-03-11 10:38:36 -08:00
Yorke Lee
0394b2127f Fix for drag start event being incorrectly cached
Since DRAG_END is now being delivered only to views that
returned true from DRAG_STARTED, make sure to clear
mCurrentDragStartEvent when returning false from DRAG_STARTED,
to avoid incorrectly sending DRAG_STARTED events to children
views on visibility changes.

Bug: 27595763

Change-Id: Ic18628b48b474351e2433e871bf545657a6ebf52
2016-03-11 18:20:10 +00:00
Eino-Ville Talvala
95171050e9 Merge "Camera2: Add buffer drop error callback" into nyc-dev 2016-03-11 18:13:01 +00:00
Makoto Onuki
d51b363c0d Merge "Fix caller validation on secondary user." into nyc-dev 2016-03-11 18:00:40 +00:00
Makoto Onuki
04efe9e5ff Merge "Test for ShortcutManager.updateShortcuts(), also" into nyc-dev 2016-03-11 18:00:18 +00:00
Sanket Padawe
69e24384a7 Fix build failure.
am: 44729c613f

* commit '44729c613fe65fd9b2f14b1844c1f02ba94ad498':
  Fix build failure.
2016-03-11 17:59:34 +00:00
Sanket Padawe
44729c613f Fix build failure.
+ Fix build failure caused by
https://partner-android-review.googlesource.com/#/c/538910/

Change-Id: I83b579f3db4c5a167b206318edcc627c6d2f4b0a
2016-03-11 09:50:56 -08:00
Wale Ogunwale
da4ba96ee4 Display home activity behind pinned activity that should return home
If we are pinning an activity whose task should return home, then move
the home stack forward so that the home activity is visible behind it
instead of the next task in the fullscreen stack.

Bug: 26697763
Change-Id: Iadb7f5453d4351bc4200bcc2feed0ab9fe41e530
2016-03-11 09:37:34 -08:00
twen.chang
839b547cdc Merge "Add RIL Error code list" into mm-wireless-dev
am: 49916d39e9

* commit '49916d39e9d27acbc6fb28b38abc78ad5dada5a4':
  Add RIL Error code list
2016-03-11 17:37:06 +00:00
Tenghui Zhu
335875bb48 Merge "Add the missing overriden API" into nyc-dev 2016-03-11 17:36:00 +00:00
Sanket Padawe
49916d39e9 Merge "Add RIL Error code list" into mm-wireless-dev 2016-03-11 17:31:56 +00:00
Mady Mellor
e11936725e Merge "Improve interaction around showing / hiding the gear behind notifications" into nyc-dev 2016-03-11 17:03:58 +00:00
Jason Monk
18fafa4be7 Merge "Set QS edit overflow bg" into nyc-dev 2016-03-11 16:00:48 +00:00
Jason Monk
a8321e6ab7 Set QS edit overflow bg
Bug: 27396825
Change-Id: I656e49f66518f23bd05d59392f43fc1227207666
2016-03-11 11:00:20 -05:00
Steve McKay
a45612b777 Merge "More snazzy animation for UX happiness." into nyc-dev 2016-03-11 15:42:02 +00:00
Alan Viverette
5291a95715 Invalidate DrawableContainer's cached canConstantState on child add
Bug: 27553319
Change-Id: I625234baea8a992900935f562f9b767c85e527fd
2016-03-11 10:09:44 -05:00
Alan Viverette
f6d87ec193 Add consistent @NonNull annotations for drawable callbacks
Bug: 27599515
Change-Id: I33fdc5392302403bfff9cc74a8226173ec962af6
2016-03-11 10:09:14 -05:00
Alan Viverette
d969cc6856 Merge "Add temporary logging to SimpleMonthView" into nyc-dev 2016-03-11 15:08:25 +00:00
Jorim Jaggi
95b69f8231 Merge "Add ability to swap docked/fullscreen stack" into nyc-dev 2016-03-11 12:02:38 +00:00
Keisuke Kuroyanagi
13d66d8456 Merge "Fix: Context menu can contain obsolete suggestions." into nyc-dev 2016-03-11 11:17:37 +00:00
Yohei Yukawa
0f3647f444 Merge "Make sure to compare subtype language with system language." into nyc-dev 2016-03-11 10:25:59 +00:00
Keisuke Kuroyanagi
182f5fec53 Fix: Context menu can contain obsolete suggestions.
When there are not enough number of suggestions, previously used
suggestions was continue to be used. This fixes it and simplifies code
by always allocating SuggestionInfo array.

Bug: 27602619
Change-Id: I9378315b8c810f126f65fade96ce9f6ff5271957
2016-03-11 10:08:11 +00:00
Adam Lesinski
330c57dbd1 Merge "AAPT2: Add descriptions of Attributes in Styleables for R.java" into nyc-dev 2016-03-11 09:16:44 +00:00
Yohei Yukawa
80861ff1c0 Make sure to compare subtype language with system language.
This CL addresses a regression introduced by a recent CL [1] that
non-keyboard subtypes are no longer implicitly enabled based on the
system language (a.k.a. "use system language" in the subtype enabler)
due to a type mismatch in comparison.

Here is the original logic:
 if (language.equals(systemLanguage) && systemLocale.startsWith(locale))

And here is the logic replaced by [1]:
 if (locale != null && locale.equals(systemLanguage)) {

The new logic is simply broken, because locale is a Locale object while
systemLanguage is a String object.  It never matches.

With this CL we will compare the system language with the locale
language again, with several test cases that should have been included
in [1], as a temporary solution until we start relying on
LocaleUtils#filterByLanguage() for non-keyboard subtypes.

  [1]: Iaf179d60c12b9a98b4f097e2449471c4184e049b
       e985c240e3feb62ea38d5b4e386be083ca0f215b

Bug: 27560993
Change-Id: If2d1710174853180465832e6ecbbb91235b76210
2016-03-11 01:08:52 -08:00
Yohei Yukawa
607c0a0a09 Merge "Persist isAsciiCapable attribute of additional subtypes." into nyc-dev 2016-03-11 09:02:22 +00:00
Martijn Coenen
262a8f2a0f Merge "NFC antenna location asset." into nyc-dev 2016-03-11 08:39:00 +00:00
Adam Lesinski
7656554f91 AAPT2: Add descriptions of Attributes in Styleables for R.java
Change-Id: I69e7b73cbdfe4baf502348397435c501ae29ff5e
2016-03-11 00:22:52 -08:00
twen.chang
a1ce0480c2 Add RIL Error code list
BUG: 27589497

Change-Id: Ib8d7e0ff13f72106b79210ea786020c17b0ba842
2016-03-11 16:11:09 +08:00
Yohei Yukawa
1e1a447000 Persist isAsciiCapable attribute of additional subtypes.
This was somehow missed in the previous commit [1] that added
isAsciiCapable attribute to InputMethodSubtype.

For devices from API level 14 to 23, IME developers might be able to
work around this issue by specifying "AsciiCapable" [2] in
imeSubtypeExtraValue, which is not coverted by CTS though.

  [1]: Ic3ace4b6e0432d56696bcbc0be336aec1dc744a5
       dc8abf6cee0bcf44e2cad8155f0c151105d46471
  [2]: I0bc9954f163a3ec38d08b9ba842a8a31176eb6a6
       8e303cc5dd4860b6050d5725ce60ca7e6fb00c7b

Bug: 27603986
Change-Id: Ifb6bc83e782ac05df180dfe0d689897d07441a0c
2016-03-10 23:46:07 -08:00
Adam Lesinski
f4ab612684 AAPT2: statically link protobuf library
Change-Id: I0bce42dfef2f11181c6407839875c97f88445dbd
2016-03-11 07:20:49 +00:00
Andrii Kulian
2beb8281d5 Update docs for DisplayMetrics pixel size fields
Update docs to reflect that values in fields store sizes available for
application (not full screen size).

Bug: 27449789
Change-Id: I92f7552a92fa1b66c5eba4cf28693528cbff21d3
2016-03-10 22:08:14 -08:00
Keisuke Kuroyanagi
01ef02d785 Merge "Reset mWordIteratorWithText when SpellChecker locale is changed." into nyc-dev 2016-03-11 05:43:19 +00:00