238037 Commits

Author SHA1 Message Date
Gustav Sennton
79fea48aec Create WebViewUpdateServiceImpl to move implementation there.
To make the WebViewUpdateService testable we create a new implementation
class that contains the implementation for the actual service. This
implementation can then be tested.

Bug: 27635535
Change-Id: I45c25c71375cc86a04c649a845016d2e7b105a7a
2016-04-07 16:03:44 +01:00
Rubin Xu
f5c0a55d1e Fix wrong condition
am: 492ed58

* commit '492ed589df3609a15dd6a33709fc8d855ec1072d':
  Fix wrong condition

Change-Id: I23f23c4b77d19286915e501bea482e4d1fe7e714
2016-04-07 15:00:59 +00:00
Robin Lee
d2baf792f8 Internal API for system apps to determine default network for other apps
Callers with CONNECTIVITY_INTERNAL permission can read off the netId
that an application is assigned to by default.

Necessary for making connections as the default network for a client
app eg. when downloading stuff on its behalf.

Bug: 27074270
Change-Id: I8d35e8e99126875f55f3c545090326f3e9be43fb
2016-04-07 14:55:59 +00:00
Jason Monk
917c06a0fb Merge "Work on QS landscape fitting" into nyc-dev 2016-04-07 14:27:42 +00:00
Ricky Wai
dc283a8976 Keymaster init for work profile
Changes:
(1) When unified work challenge is enabled and screen lock is secure
  - Store work profile secure key in primary profile
  - When primary user keystore unlocked, unlock work profile keystore
  - When primary user change lock to none, remove work secure key
(2) When unified work challenge is enabled but screen lock is not secure
  - When screen lock changes to secure, store work secure key in primary
(3) When user changes work challenge from unified to separated
  - Remove work secure key in primary
(4) When user changes work challenge from separate to unified
  - Do (1) and (2)

Bug: 27460698

Change-Id: I8f77bde5dc6b8e59c90256e75c5990100e93366b
2016-04-07 14:23:37 +00:00
Daniel U
eb33f49232 Merge "Refresh cached user array upon lockscreen settings changed" into nyc-dev 2016-04-07 14:20:15 +00:00
Ashutosh Joshi
7d4a7fa333 Merge "Add dumpsys capabilities for context hub service" into nyc-dev 2016-04-07 14:00:49 +00:00
Alexander Hills
a5ec16e367 Merge "Adds a content-intent-launching-activity flag to WearableExtender" into nyc-dev 2016-04-07 13:52:58 +00: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
Rubin Xu
492ed589df Fix wrong condition
Bug: 28050399
Change-Id: If729ee2bcc5496b5ee381e490f72c751da04dc09
2016-04-07 12:09:27 +01: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
Benjamin Franz
bd7ae782ed Throw security exception for non-parent aware APIs
When the parent instance of DPM is used to call an API that is not
parent-aware, we should throw a security exception.

Bug: 27532279
Change-Id: I90abeb4c8522cb9af798301c1bb2048579596993
2016-04-07 10:15:02 +01: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
5dab713ff0 Delay unlock attempts for managed profiles.
Managed profiles may not have a credential challenge, so we need to
make sure we don't unlock them until their parent user has been
unlocked.  Otherwise the managed profile will get into all sorts of
trouble trying to reach into its still-locked parent.

Bug: 28051109, 27457806
Change-Id: If2ca59834024e5ad039f659d611ef708ed751fad
2016-04-07 01:21:01 -06: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
Daichi Hirono
fe259319e6 Close MTP database when MtpServer's thread is terminated.
Fix: 28030321
Change-Id: I7efe59b651a62ca917ba74312a80b56c0564e060
(cherry picked from commit dd383597c4bd85044bcaf23f1f16489f2c059ae0)
2016-04-07 05:47:41 +00: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
Ashutosh Joshi
6239cc6fe1 Add dumpsys capabilities for context hub service
Add useful debug hook for context hub service.
Fix constants
Use helper functions to address OS

Change-Id: Iba5f24a9a1fd809c3d83752953389d373ff334ca
2016-04-06 21:21:34 -07: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
Selim Cinek
529c5325f0 Fixed a bug with talkback where the panel could be expanded
Some callbacks were still firing even though they shouldn't have

Bug: 27408677
Change-Id: Id70ac43ecd115a47f28bfdfd0aafaa7ded4e6255
2016-04-06 20:03:45 -07: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
Lifu Tang
e8abe8e5ad Addressed API review comments and updated JavaDoc
Bug: 27274532
Bug: 27948390
Change-Id: I0255d2511deab788dcab9815def9c1287a50b7f9
2016-04-06 17:54:35 -07:00
Adam Lesinski
04518f8e9f Remove tests that have been moved to CTS
ag/906284

Change-Id: I9e5da9239a62dbc85a1b22f8fe8876da65675d9a
2016-04-06 17:47:10 -07: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
Adam Lesinski
694d0a7dfd AAPT: Dump uses-feature version in dump badging
Bug:27162500
Change-Id: I4f82cdd8ef1801c92d4ea6b4bb982c6e7d91edb5
2016-04-06 16:40:23 -07:00
Jorim Jaggi
f3df0aaa32 Fix flicker when docking task
Bug: 28051193
Change-Id: I191c01f90c775a26fce6e6f73a0573a0be91a61f
2016-04-06 16:34:27 -07:00
Adam Lesinski
803c7c8079 AAPT2: Enable windows build and make sure it builds
Mingw32 4.8 is kind of picky with macros and some complicated template
stuff. Luckily there was another way to represent the
SFINAE code that works on all platforms. Yay!

Change-Id: Idc2e38f47bfdc57b394550bfa0f53cc0b825df25
2016-04-06 16:24:02 -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