237802 Commits

Author SHA1 Message Date
Chris Wren
5717bd6ddb add an onListenerDisconnected() callback to NLS
Also block all callbacks if the listener is not connected.

Also update the documentation to make lifecycle restictions
more clear.

Bug: 27582839
Change-Id: I029304e1fb87bd8d754cfb4641ba8cc095fc2b2e
2016-04-07 13:12:21 -04:00
Gustav Sennton
e1ccdd13dc Merge "Split WebViewUpdateService logic into fallback logic and update-logic." into nyc-dev 2016-04-07 13:42:25 +00:00
Rubin Xu
fccb14ed8a Merge "Only cancel syncs for non-existent accounts" into nyc-dev 2016-04-07 13:40:30 +00:00
Clara Bayarri
22e2769c9d Merge "Make Keyboard Shortcuts special names Context dependent" into nyc-dev 2016-04-07 12:58:49 +00:00
Rubin Xu
2c548e0e11 Only cancel syncs for non-existent accounts
updateRunningAccountsH() should check syncs against all accounts
on the device, not only running accounts.

Also add code to restore wrongly-canceled periodic syncs, saving
users from a bad state where the only alternative is to remove and
readd affected accounts.

Bug: 27733283
Change-Id: I96bce87571c3b7c6cd1934cc967f11257f891f55
2016-04-07 13:42:33 +01:00
Gustav Sennton
3a6e6b24fb Split WebViewUpdateService logic into fallback logic and update-logic.
Add an inner class for the updating-logic to differentiate that logic
from the rest of the service (logic such as keeping track of
relro-creation and the current WebView implementation).
The fallback logic doesn't hold any state but instead just checks the
state of the system to determine whether to enable/disable the fallback
package and therefore that logic doesn't really need its own class.

Since the minimumVersionCode check stores state we here move that into
the inner class containing the updating-logic.

Bug: 27635535

Change-Id: I0afdb74c12139439ca66bfbd1c173ad98662ed31
2016-04-07 13:37:56 +01:00
Clara Bayarri
b999af5bab Make Keyboard Shortcuts special names Context dependent
These were static, but since we load Strings from a given context
we should load them each time (e.g. Locale might have changed).

Bug: 28035606
Change-Id: I3dd654c29a2632bfd93ea791457fac5d9d0f6aa8
2016-04-07 13:35:23 +01:00
Gustav Sennton
0a786cff45 Merge "Disable fallback webview package before downgrading it." into nyc-dev 2016-04-07 12:30:03 +00:00
David Brazdil
70f08d9eb1 Merge "Do not update idle apps on OTA" into nyc-dev 2016-04-07 10:59:48 +00:00
Andrei Stingaceanu
d15191076d Keyboard shortcuts: icons for shortcut items
Introduces the ability to display a shortcut item as
an image (if it has a resource attached). Also added
vector drawables for: up, down, left, right, enter, meta
and backspace.
Note that accessibilty wise the drawables dynamically scale
to the height of the text items (which have the text size
set in sp).

Bug: 27455410
Change-Id: I49739313d83cf661bea9378108a1fa3d6c51bd2e
2016-04-07 10:36:59 +00:00
Seigo Nonaka
8c83a85e26 Merge "Paint.hasGlyph should return false on unsupported flags." into nyc-dev 2016-04-07 09:27:57 +00:00
Gustav Sennton
5c153c5172 Disable fallback webview package before downgrading it.
Now that we support disabling packages before downgrading them we can
do this for the webview fallback mechanism to avoid disabling a fallback
asynchronously (downgrading a package is an asynchronous operation).

We also check that the package is an upgraded app before downgrading it,
to not try to downgrade it unnecessarily.

Bug: 27894939

Change-Id: I541c2fcfe8016e4bcc2d5afff6e393c81e2749a2
2016-04-07 10:25:31 +01:00
Seigo Nonaka
64d1515076 Merge "Fix suggestion popup for RTL text on LTR layout." into nyc-dev 2016-04-07 09:20:27 +00:00
Andrii Kulian
3ed501c12a Merge "Set correct bounds when docked stack is removed v2" into nyc-dev 2016-04-07 08:08:27 +00:00
Seigo Nonaka
1d3efb6f64 Fix suggestion popup for RTL text on LTR layout.
By setting width to the ListView, the width of the containing text view
won't match with parent.

I locally verified this doesn't revive issue 27341560.

Bug: 28034210

Change-Id: I67886a752ef110d3433dddd6aa8447a9027f8e19
2016-04-07 16:40:57 +09:00
Jeff Sharkey
94cac0730a Merge "Automatically trace messages on shared loopers." into nyc-dev 2016-04-07 07:19:03 +00:00
Jeff Sharkey
74cd3de6f4 Automatically trace messages on shared loopers.
There are a handful of looper threads in the system_process that
are shared by dozens of different internal services.  To help track
down what these operations are, tag the processing of each message
with a string that tries describing where it originated from: the
class name of the Handler, and the message number or class name of the
Runnable.

Bug: 28046299
Change-Id: I409ec43fea8daaae4fd70df05d4fed929a7249ae
2016-04-07 00:14:53 -06:00
Keisuke Kuroyanagi
03f1e02699 Merge "Invalidate HandleView when handle position may have to be changed." into nyc-dev 2016-04-07 05:22:36 +00:00
Tomasz Mikolajewski
64f2ffaa7e Merge "Remove unused state in DocumentsUI." into nyc-dev 2016-04-07 04:44:25 +00:00
Keisuke Kuroyanagi
d119ab94c0 Merge "Rewrite SuggestionsPopupWindowTest using espresso." into nyc-dev 2016-04-07 04:33:11 +00:00
Tomasz Mikolajewski
e68cc51614 Merge "Do not crash when selecting a lot of files." into nyc-dev 2016-04-07 03:27:13 +00:00
Tomasz Mikolajewski
1451847bea Remove unused state in DocumentsUI.
Selection in State is very large, but no longer used. Removed.

Bug: 27208679
Change-Id: I2750347f6d06f2d006a0a04865d81110307ff7c5
2016-04-07 11:30:48 +09:00
Tomasz Mikolajewski
90e0ff0884 Do not crash when selecting a lot of files.
Bug: 27208679
Change-Id: I3763e190bf8a014274895a349b9739672f3e2224
2016-04-07 11:12:07 +09:00
Andrii Kulian
48143f7ec5 Merge "Caps Lock toggle with Meta + Alt (2/2)" into nyc-dev 2016-04-07 01:43:03 +00:00
Adam Lesinski
450ae41c54 Merge "AAPT2: Allow <protected-broadcast> and <eat-comment> in AndroidManifest.xml" into nyc-dev 2016-04-07 00:43:18 +00:00
Adam Lesinski
c728c3daba AAPT2: Allow <protected-broadcast> and <eat-comment> in AndroidManifest.xml
Change-Id: I38c49a2a31e560dec963d44d94e067035fd59150
2016-04-06 17:40:25 -07:00
Jorim Jaggi
c4dd32586d Merge "Fix flicker when docking task" into nyc-dev 2016-04-07 00:22:26 +00:00
Kevin Gabayan
b02ffa5f10 Merge "SENSING_TIMEOUT goes to STATE_INACTIVE. Bug: 27821977" into nyc-dev 2016-04-07 00:01:47 +00:00
Kevin Gabayan
35a306cc59 Merge "AnyMotionDetector holds wakelock until conclusive. Bug: 27821976" into nyc-dev 2016-04-07 00:01:38 +00:00
Jorim Jaggi
f3df0aaa32 Fix flicker when docking task
Bug: 28051193
Change-Id: I191c01f90c775a26fce6e6f73a0573a0be91a61f
2016-04-06 16:34:27 -07:00
Mady Mellor
ff2468b73a Merge "Close guts/gear after a timeout and if there's been no interaction" into nyc-dev 2016-04-06 23:23:13 +00:00
Mady Mellor
50e439df28 Merge "Fix dismiss all clipping for tablet / landscape" into nyc-dev 2016-04-06 23:04:38 +00:00
Aga Wronska
11cac9cead Merge changes I010309c5,Iefdf2f2a into nyc-dev
* changes:
  Set status bar color to material_blue_grey_950 as specified by UX.
  Revert 'Make Files drawer appear behind system ui bars' because of action mode bug
2016-04-06 22:56:33 +00:00
Alan Viverette
b2df6af902 Merge "Deprecate methods not supported by Material-style date picker" into nyc-dev 2016-04-06 22:49:44 +00:00
Andreas Gampe
12a722e569 Merge "Frameworks/base: Move Animation.USE_CLOSEGUARD to inner class" into nyc-dev 2016-04-06 22:45:36 +00:00
Kevin Gabayan
92f15e65d9 SENSING_TIMEOUT goes to STATE_INACTIVE.
Bug: 27821977

Change-Id: I920581f57a1467ad13ab32efdf86a8f68960d84c
2016-04-06 15:40:27 -07:00
Randy Pan
ee94486742 Merge "Obsolete a couple of auto-join related APIs." into nyc-dev 2016-04-06 22:36:20 +00:00
Mady Mellor
97c8df4693 Close guts/gear after a timeout and if there's been no interaction
On the lock screen the inline controls and gear behind the
notifications may be activated by accident. This CL alters them
to close after a certain period of time has occurred without
interaction.

Bug: 27335311
Change-Id: Ib3b0575571076a5912e23c7d2da5209e9a523fc8
2016-04-06 15:11:47 -07:00
Jorim Jaggi
347bb9a3cf Merge "Don't lock device when double tapping" into nyc-dev 2016-04-06 21:56:55 +00:00
Jorim Jaggi
f1cdf9558d Don't lock device when double tapping
Bug: 24265204
Change-Id: Ia19e956def454604ed3f3e3e9815fc1872ef649a
2016-04-06 14:53:32 -07:00
Ruben Brunk
50e229f1f4 Merge "Add VrManager AIDL interface for use by system apps." into nyc-dev 2016-04-06 21:36:53 +00:00
Winson Chung
da8ec0d0df Merge changes I0efc513b,Ibe45ba62 into nyc-dev
* changes:
  Adding more logging of the state to the bug report.
  Disable landscape aspect-scaled behavior for TV.
2016-04-06 21:28:14 +00:00
Jeff Sharkey
fd1bb10753 Merge "Remove old FUSE bypass now that we have sdcardfs." into nyc-dev 2016-04-06 21:27:56 +00:00
Jeff Sharkey
feef8b62ee Remove old FUSE bypass now that we have sdcardfs.
This forces everyone to go through sdcardfs, instead of letting them
around the back door.

Bug: 27992761
Change-Id: If1d4d5daa4b32bb3be7de10102bab24d63552b65
2016-04-06 15:27:11 -06:00
Hui Shu
3dc8a9f879 Merge "Disallow WebView provider packages lower version than Chrome Stable" into nyc-dev 2016-04-06 21:26:23 +00:00
Aga Wronska
6af13300d4 Set status bar color to material_blue_grey_950 as specified by UX.
Change-Id: I010309c5c5aaf312e645a75720e710ef83111952
Fixing: b/27561646
2016-04-06 14:21:56 -07:00
Mady Mellor
9c2c49634f Fix dismiss all clipping for tablet / landscape
Shouldn't animate the whole view, use the translatable views so that
they get clipped on tablet / landscape.

Additionally this changes the behavior in the case where the gear
might be showing, previously that would hide prior to the dismiss
all animation, UX prefers this to just have the notification cover
the gear and slide away or the gear fade away depending on the side
it's showing.

Bug: 28006639
Change-Id: I43027cb29410496de5b6e09c4a0c57a69484295c
2016-04-06 14:05:42 -07:00
Aga Wronska
48c846368f Revert 'Make Files drawer appear behind system ui bars' because of action mode bug
Fixing: b/27854892
Bug: 27570567

Change-Id: Iefdf2f2a450d80c551027efb35121554503cca3c
2016-04-06 14:03:16 -07:00
Jim Miller
43cd4b70ce Merge "Track userId independently from callback for fingerprint.remove()." into nyc-dev 2016-04-06 20:58:28 +00:00
Mady Mellor
6de5ce2be0 Merge "Adds security challenge when changing notification settings from lock screen" into nyc-dev 2016-04-06 20:54:44 +00:00