OSDN Git Service

android-x86/frameworks-base.git
7 years agoAdding an api for apps to check whether they can install apps
Suprabh Shukla [Tue, 24 Jan 2017 02:09:03 +0000 (18:09 -0800)]
Adding an api for apps to check whether they can install apps

Some apps may want to check whether they are trusted to install apps on
the device, so they can prompt the user to go to settings and mark them
as trusted before they do an intensive operation like downloading an
apk.

Test: cts-tradefed run cts -m CtsExternalSourcesTestCases

Bug: 31002700
Change-Id: Icd9d04daa157e6733decba245ec251ce4acd4122

7 years agoMerge "Allow shared lib and package name to match"
Svetoslav Ganov [Mon, 23 Jan 2017 22:25:44 +0000 (22:25 +0000)]
Merge "Allow shared lib and package name to match"

7 years agoMerge "Do not allow ephemeral apps to access ShortcutManager"
TreeHugger Robot [Mon, 23 Jan 2017 22:24:44 +0000 (22:24 +0000)]
Merge "Do not allow ephemeral apps to access ShortcutManager"

7 years agoAllow shared lib and package name to match
Svetoslav Ganov [Mon, 23 Jan 2017 22:13:30 +0000 (14:13 -0800)]
Allow shared lib and package name to match

The old package manager implementation was guarding for
shared libs to not match any package name but due to a
bug this was not enfroced and as a result we have apps
where the package and lib match, e.g. GCore. The new
static shared lib support properly enforced the rule
breaking apps. So, this CL relexes the constraint.

Test: CTS test in the topic passes

bug:34598313

Change-Id: I15d22fd1c3a44a27c4b9b8379de3992ae553dd05

7 years agoMerge "KeyguardManager: Fix user resolution of isDeviceSecure/Locked"
Adrian Roos [Mon, 23 Jan 2017 22:21:03 +0000 (22:21 +0000)]
Merge "KeyguardManager: Fix user resolution of isDeviceSecure/Locked"

7 years agoMerge "Expose isMultiProcessEnabled via WebViewDelegate."
Richard Coles [Mon, 23 Jan 2017 21:23:41 +0000 (21:23 +0000)]
Merge "Expose isMultiProcessEnabled via WebViewDelegate."

7 years agoMerge "Workaround libmemunreachable lockup"
TreeHugger Robot [Mon, 23 Jan 2017 21:16:50 +0000 (21:16 +0000)]
Merge "Workaround libmemunreachable lockup"

7 years agoMerge "Remove AR packages from preloaded classes."
Ashutosh Joshi [Mon, 23 Jan 2017 21:02:57 +0000 (21:02 +0000)]
Merge "Remove AR packages from preloaded classes."

7 years agoMerge "Restore foreground service notifications"
TreeHugger Robot [Mon, 23 Jan 2017 20:58:49 +0000 (20:58 +0000)]
Merge "Restore foreground service notifications"

7 years agoMerge "Better error message for privapp-permissions test"
TreeHugger Robot [Mon, 23 Jan 2017 20:53:20 +0000 (20:53 +0000)]
Merge "Better error message for privapp-permissions test"

7 years agoMerge "Add background location throttling to LocationManagerService"
Soonil Nagarkar [Mon, 23 Jan 2017 20:42:45 +0000 (20:42 +0000)]
Merge "Add background location throttling to LocationManagerService"

7 years agoKeyguardManager: Fix user resolution of isDeviceSecure/Locked
Adrian Roos [Mon, 23 Jan 2017 20:38:13 +0000 (12:38 -0800)]
KeyguardManager: Fix user resolution of isDeviceSecure/Locked

Fixes isDeviceSecure and isDeviceLocked APIs to use
the user id of the app that executes the code rather
than that of any incoming binder call.

Change-Id: Ib7772b60c35a3ebf96830f9b013c539021e1f063
Fixes: 34592592
Test: manual

7 years agoMerge "Port RecyclerView to com.android.internal.widget.RecyclerView"
Aurimas Liutikas [Mon, 23 Jan 2017 20:38:38 +0000 (20:38 +0000)]
Merge "Port RecyclerView to com.android.internal.widget.RecyclerView"

7 years agoMerge "Remove all calls to SkCanvas::getClipStack from HWUI unit tests"
TreeHugger Robot [Mon, 23 Jan 2017 20:37:11 +0000 (20:37 +0000)]
Merge "Remove all calls to SkCanvas::getClipStack from HWUI unit tests"

7 years agoMerge "Add ResolverActivity testing"
TreeHugger Robot [Mon, 23 Jan 2017 20:32:47 +0000 (20:32 +0000)]
Merge "Add ResolverActivity testing"

7 years agoMerge "Fix recent checkPermission() bug."
TreeHugger Robot [Mon, 23 Jan 2017 20:27:27 +0000 (20:27 +0000)]
Merge "Fix recent checkPermission() bug."

7 years agoDo not allow ephemeral apps to access ShortcutManager
Makoto Onuki [Mon, 23 Jan 2017 19:37:45 +0000 (11:37 -0800)]
Do not allow ephemeral apps to access ShortcutManager

Bug: 34178279
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

Change-Id: I5672f15705a1bf6568a8df58b66e48c802c11852

7 years agoMerge "Change WebView fallback mechanism to consider all users' package states."
TreeHugger Robot [Mon, 23 Jan 2017 20:20:10 +0000 (20:20 +0000)]
Merge "Change WebView fallback mechanism to consider all users' package states."

7 years agoMerge "Expose fonts.xml via public API with a service"
TreeHugger Robot [Mon, 23 Jan 2017 19:57:16 +0000 (19:57 +0000)]
Merge "Expose fonts.xml via public API with a service"

7 years agoMerge "Add missing nothingToDraw() check"
TreeHugger Robot [Mon, 23 Jan 2017 19:51:34 +0000 (19:51 +0000)]
Merge "Add missing nothingToDraw() check"

7 years agoMerge "Deprecate old TelecomManager actions" am: d1ab15a1af am: ee9a9babb1 am: 50315f010c
Brad Ebinger [Mon, 23 Jan 2017 19:49:34 +0000 (19:49 +0000)]
Merge "Deprecate old TelecomManager actions" am: d1ab15a1af am: ee9a9babb1 am: 50315f010c
am: aaad10d729

Change-Id: I35639813b1d356df1fea82c9470bd18fda1c5267

7 years agoMerge "Deprecate old TelecomManager actions" am: d1ab15a1af am: ee9a9babb1
Brad Ebinger [Mon, 23 Jan 2017 19:38:42 +0000 (19:38 +0000)]
Merge "Deprecate old TelecomManager actions" am: d1ab15a1af am: ee9a9babb1
am: 50315f010c

Change-Id: I89621d6f584ee743b67838a11fde212d2030900c

7 years agoMerge "Deprecate old TelecomManager actions" am: d1ab15a1af
Brad Ebinger [Mon, 23 Jan 2017 19:31:18 +0000 (19:31 +0000)]
Merge "Deprecate old TelecomManager actions" am: d1ab15a1af
am: ee9a9babb1

Change-Id: Ib24d46d70b10cd8bb6ac39fd4dc915ac9a19a3ba

7 years agoMerge "Work on sysui dependencies"
TreeHugger Robot [Mon, 23 Jan 2017 19:31:11 +0000 (19:31 +0000)]
Merge "Work on sysui dependencies"

7 years agoMerge changes from topic 'anb'
TreeHugger Robot [Mon, 23 Jan 2017 19:29:01 +0000 (19:29 +0000)]
Merge changes from topic 'anb'

* changes:
  Adding HardwareBuffer, a Java wrapper around AHardwareBuffer.
  AHardwareBuffer implementation.

7 years agoMerge "Deprecate old TelecomManager actions"
Brad Ebinger [Mon, 23 Jan 2017 19:23:35 +0000 (19:23 +0000)]
Merge "Deprecate old TelecomManager actions"
am: d1ab15a1af

Change-Id: Id76db43d6cc4477a328698e049558ef936a4fe1d

7 years agoMerge "Do not log boot times for secondary users and upgrades"
TreeHugger Robot [Mon, 23 Jan 2017 19:18:44 +0000 (19:18 +0000)]
Merge "Do not log boot times for secondary users and upgrades"

7 years agoMerge "Fix cancel notification race condition bug."
TreeHugger Robot [Mon, 23 Jan 2017 19:16:30 +0000 (19:16 +0000)]
Merge "Fix cancel notification race condition bug."

7 years agoMerge "Deprecate old TelecomManager actions"
Brad Ebinger [Mon, 23 Jan 2017 19:09:11 +0000 (19:09 +0000)]
Merge "Deprecate old TelecomManager actions"

7 years agoBetter error message for privapp-permissions test
Fyodor Kupolov [Mon, 23 Jan 2017 19:07:26 +0000 (11:07 -0800)]
Better error message for privapp-permissions test

Bug: 31008485
Test: manual
Change-Id: Ia1acaa83c6d64ff5a7010f222e4e879fee20414e

7 years agoWorkaround libmemunreachable lockup
John Reck [Mon, 23 Jan 2017 18:46:50 +0000 (10:46 -0800)]
Workaround libmemunreachable lockup

Bug: 34586922
Test: hwui_unit_tests completes
Change-Id: Ia55f7bc49faf8a32624e2f16e2477eb12a261b07

7 years agoMerge "Add ability to dump settings as proto buf"
Eugene Susla [Mon, 23 Jan 2017 19:02:12 +0000 (19:02 +0000)]
Merge "Add ability to dump settings as proto buf"

7 years agoMerge "Make the comments of some of the raw GNSS measurements more clear."
TreeHugger Robot [Mon, 23 Jan 2017 18:58:31 +0000 (18:58 +0000)]
Merge "Make the comments of some of the raw GNSS measurements more clear."

7 years agoRestore foreground service notifications
Julia Reynolds [Mon, 23 Jan 2017 18:49:24 +0000 (13:49 -0500)]
Restore foreground service notifications

Fixes: 34582788
Test: manual; start a foreground service) and verify notification
appears (here, set an alarm in Clock app)

Change-Id: Ib788cc78c461d2da32ea9abdb11ab384d1d09dd2

7 years agoMerge "Opened some App Links APIs to @SystemApi"
Jeff Schumacher [Mon, 23 Jan 2017 18:50:12 +0000 (18:50 +0000)]
Merge "Opened some App Links APIs to @SystemApi"

7 years agoRemove all calls to SkCanvas::getClipStack from HWUI unit tests
Stan Iliev [Mon, 23 Jan 2017 18:47:35 +0000 (13:47 -0500)]
Remove all calls to SkCanvas::getClipStack from HWUI unit tests

Refactor HWUI unit tests to not invoke SkCanvas::getClipStack,
because this Skia API is going to be deprecated.

Test: Build and ran sailfish-eng. Ran HWUI unit tests.
Change-Id: Iac277aa26fbe9e2a0860cde2dd43732ed1c4c4e3

7 years agoAdd ResolverActivity testing
Hakan Seyalioglu [Tue, 17 Jan 2017 20:20:01 +0000 (12:20 -0800)]
Add ResolverActivity testing

Still very basic, but will be adding as we find more issues pop up.

Test: Ran the tests
Change-Id: Ib9863509d140ff425ce446ecc876f53494d4fd0e

7 years agoFix recent checkPermission() bug.
Jeff Sharkey [Mon, 23 Jan 2017 18:37:24 +0000 (11:37 -0700)]
Fix recent checkPermission() bug.

It should be checking if the UID argument passed in has the requested
permission; not the calling UID.

Test: builds, boots
Bug: 34528367
Change-Id: Ie1828f571d9f143ce9f5bdca2eedcf2fa6ccfd79

7 years agoMerge "adapt package manager presubmit test to GlobalPresubmit annotation"
Guang Zhu [Mon, 23 Jan 2017 18:31:31 +0000 (18:31 +0000)]
Merge "adapt package manager presubmit test to GlobalPresubmit annotation"

7 years agoAdd missing nothingToDraw() check
John Reck [Mon, 23 Jan 2017 18:24:27 +0000 (10:24 -0800)]
Add missing nothingToDraw() check

Fixes: 34598346

Prior to 2874daa4d38bddd3a5f0edb3774d5e5884dd9554 we
never freed the resources of root nodes. Now that this is being
done we need to ensure that the backdrop has content before
we try to draw that content. All other nodes passed in
deferRenderNodeScene check that nothingToDraw() returns false
before drawing them, but that check was missed on the backdrop
node.

Test: manual. open calculator then long-press on recents
Change-Id: I495749161b38b57278bdb60d5f872eeeb2b218d0

7 years agoMerge "add a signaled reader to the eventlog"
TreeHugger Robot [Mon, 23 Jan 2017 18:18:26 +0000 (18:18 +0000)]
Merge "add a signaled reader to the eventlog"

7 years agoMerge "LocalDisplayAdapter: don't crash when no color modes available" am: 24218db904...
thecrazyskull [Mon, 23 Jan 2017 17:59:12 +0000 (17:59 +0000)]
Merge "LocalDisplayAdapter: don't crash when no color modes available" am: 24218db904 am: f15075c9f8 am: d0fff5284f
am: c0f87db026

Change-Id: I24f5c280be0107080d66ee793999e5e0e5ffe8ac

7 years agoWork on sysui dependencies
Jason Monk [Wed, 18 Jan 2017 20:21:53 +0000 (15:21 -0500)]
Work on sysui dependencies

One of the many problems with PhoneStatusBar is that it holds
dependencies for many other parts of SysUI. Fix this by creating
a static method of grabbing dependencies that are global to sysui
this cleans up a lot of chains of interdependence.

Also add easy way to inject mocks of these dependencies for the
purpose of testing.

Test: runtest systemui
Change-Id: Ia0e947faea62d15b665facada47ac9916c99f895

7 years agoMerge "LocalDisplayAdapter: don't crash when no color modes available" am: 24218db904...
thecrazyskull [Mon, 23 Jan 2017 17:55:03 +0000 (17:55 +0000)]
Merge "LocalDisplayAdapter: don't crash when no color modes available" am: 24218db904 am: f15075c9f8
am: d0fff5284f

Change-Id: I319f88d1d88ff9e4b8507224ca7209eb7631dc99

7 years agoMerge "Delete accidentally submitted FontResourcesParser"
TreeHugger Robot [Mon, 23 Jan 2017 17:51:29 +0000 (17:51 +0000)]
Merge "Delete accidentally submitted FontResourcesParser"

7 years agoMerge "LocalDisplayAdapter: don't crash when no color modes available" am: 24218db904
thecrazyskull [Mon, 23 Jan 2017 17:42:04 +0000 (17:42 +0000)]
Merge "LocalDisplayAdapter: don't crash when no color modes available" am: 24218db904
am: f15075c9f8

Change-Id: Idcccd811808be32b492d8e2cb753439fc4d9de46

7 years agoFix cancel notification race condition bug.
Geoffrey Pitsch [Tue, 17 Jan 2017 19:00:47 +0000 (14:00 -0500)]
Fix cancel notification race condition bug.

Cancel should always remove notifications, regardless of whether
they've been posted internally.  Primarily accomplished by ensuring
all cancels happen on the same handler, and that they check the
enqueued list as well the main notifications list.

Also fixes snoozing for enqueued notifications, since it is
implemented via cancelling.

Test: runtest systemui-notification
Change-Id: If8295a38102f245013d29831a060fabd80716e4b

7 years agoMerge "LocalDisplayAdapter: don't crash when no color modes available"
thecrazyskull [Mon, 23 Jan 2017 17:35:11 +0000 (17:35 +0000)]
Merge "LocalDisplayAdapter: don't crash when no color modes available"
am: 24218db904

Change-Id: I89d080a00fb87c73c2af1604f617706f0f60f32b

7 years agoMerge "Make TelephonyManager#get/setAllowedCarriers system api" am: 6d064d8780 am...
Polina Bondarenko [Mon, 23 Jan 2017 17:28:09 +0000 (17:28 +0000)]
Merge "Make TelephonyManager#get/setAllowedCarriers system api" am: 6d064d8780 am: cf176500e6 am: b46a93ff04
am: 308bcec713  -s ours

Change-Id: I89faa271ee2c384019d827f7981ae97b03f84e0e

7 years agoMerge "LocalDisplayAdapter: don't crash when no color modes available"
Treehugger Robot [Mon, 23 Jan 2017 17:25:10 +0000 (17:25 +0000)]
Merge "LocalDisplayAdapter: don't crash when no color modes available"

7 years agoMerge "Make TelephonyManager#get/setAllowedCarriers system api" am: 6d064d8780 am...
Polina Bondarenko [Mon, 23 Jan 2017 17:20:58 +0000 (17:20 +0000)]
Merge "Make TelephonyManager#get/setAllowedCarriers system api" am: 6d064d8780 am: cf176500e6
am: b46a93ff04

Change-Id: I8f17bef7ccde5953f5b810bd806fc51a4c69e194

7 years agoMerge "Make TelephonyManager#get/setAllowedCarriers system api" am: 6d064d8780
Polina Bondarenko [Mon, 23 Jan 2017 17:14:35 +0000 (17:14 +0000)]
Merge "Make TelephonyManager#get/setAllowedCarriers system api" am: 6d064d8780
am: cf176500e6

Change-Id: Ic278e3a9bd7c9c99345150228c6e87343737079e

7 years agoMerge "DPM: Notify DO/PO of security updates."
Charles He [Mon, 23 Jan 2017 17:11:50 +0000 (17:11 +0000)]
Merge "DPM: Notify DO/PO of security updates."

7 years agoMerge "Make TelephonyManager#get/setAllowedCarriers system api"
Polina Bondarenko [Mon, 23 Jan 2017 17:10:05 +0000 (17:10 +0000)]
Merge "Make TelephonyManager#get/setAllowedCarriers system api"
am: 6d064d8780

Change-Id: I8f9b1c8e9ce1fda6cd03cd0dd459ead8837bd90d

7 years agoMerge "Disable always-on VPN in factoryReset" am: 63c14e0ab6 am: 1135d509c5 am: e2554...
Robin Lee [Mon, 23 Jan 2017 17:05:42 +0000 (17:05 +0000)]
Merge "Disable always-on VPN in factoryReset" am: 63c14e0ab6 am: 1135d509c5 am: e2554d51c4
am: 08d05b2719

Change-Id: Iaccb7394994ccce66df0ab2f713fd890a8b999c8

7 years agoMerge "Fix thumbnails in landscape in recents"
TreeHugger Robot [Mon, 23 Jan 2017 17:02:35 +0000 (17:02 +0000)]
Merge "Fix thumbnails in landscape in recents"

7 years agoMerge "Disable always-on VPN in factoryReset" am: 63c14e0ab6 am: 1135d509c5
Robin Lee [Mon, 23 Jan 2017 17:01:31 +0000 (17:01 +0000)]
Merge "Disable always-on VPN in factoryReset" am: 63c14e0ab6 am: 1135d509c5
am: e2554d51c4

Change-Id: I99207281321861a3e720b5c1e2e316e12b104677

7 years agoMerge "Make TelephonyManager#get/setAllowedCarriers system api"
Treehugger Robot [Mon, 23 Jan 2017 17:01:24 +0000 (17:01 +0000)]
Merge "Make TelephonyManager#get/setAllowedCarriers system api"

7 years agoMerge "Disable always-on VPN in factoryReset" am: 63c14e0ab6
Robin Lee [Mon, 23 Jan 2017 16:54:59 +0000 (16:54 +0000)]
Merge "Disable always-on VPN in factoryReset" am: 63c14e0ab6
am: 1135d509c5

Change-Id: I66b6721932ae8798cbb406cafa04ed0c92fe47f6

7 years agoMerge "Disable always-on VPN in factoryReset"
Robin Lee [Mon, 23 Jan 2017 16:47:58 +0000 (16:47 +0000)]
Merge "Disable always-on VPN in factoryReset"
am: 63c14e0ab6

Change-Id: I021b288e3db17ddefbea3645fd282e3ee123a6e8

7 years agoMerge "null check"
Todd Kennedy [Mon, 23 Jan 2017 16:47:41 +0000 (16:47 +0000)]
Merge "null check"

7 years agonull check
Todd Kennedy [Mon, 23 Jan 2017 16:44:40 +0000 (08:44 -0800)]
null check

Fixes: 34598376
Test: Manual
Change-Id: Ia2508434f6fada2219c1eea9b05f9101fc4490e3

7 years agoadd a signaled reader to the eventlog
Chris Wren [Fri, 2 Dec 2016 22:43:23 +0000 (17:43 -0500)]
add a signaled reader to the eventlog

Test: manual using a logspammer app
Change-Id: I89e3dda82d4d1d3fc6d343b634642687e550f70a

7 years agoMerge "Disable always-on VPN in factoryReset"
Robin Lee [Mon, 23 Jan 2017 16:40:05 +0000 (16:40 +0000)]
Merge "Disable always-on VPN in factoryReset"

7 years agoMerge "Strong auth timeout refactor"
TreeHugger Robot [Mon, 23 Jan 2017 16:36:56 +0000 (16:36 +0000)]
Merge "Strong auth timeout refactor"

7 years agoMerge "WebView: Add the definition of the renderer importance API."
Toby Sargeant [Mon, 23 Jan 2017 16:21:15 +0000 (16:21 +0000)]
Merge "WebView: Add the definition of the renderer importance API."

7 years agoLocalDisplayAdapter: don't crash when no color modes available
thecrazyskull [Sun, 18 Dec 2016 17:48:20 +0000 (12:48 -0500)]
LocalDisplayAdapter: don't crash when no color modes available

Test: none

Change-Id: Ic11b5b66864fdd97b290722cba534b2aa38ac054

7 years agoDelete accidentally submitted FontResourcesParser
Clara Bayarri [Mon, 23 Jan 2017 15:43:54 +0000 (15:43 +0000)]
Delete accidentally submitted FontResourcesParser

This should have not been part of commit
Idc06bfbfd16452a328bfcc6ea9dcfb723b633f0c

Test: none
Change-Id: I0701e5fad0df898ba64ea695ec31d0dd7d3bb333

7 years agoExpose isMultiProcessEnabled via WebViewDelegate.
Torne (Richard Coles) [Mon, 23 Jan 2017 15:09:55 +0000 (15:09 +0000)]
Expose isMultiProcessEnabled via WebViewDelegate.

Allow the WebView implementation to call isMultiProcessEnabled via the
delegate, so that it doesn't have to fetch and interpret the value of
the system setting itself.

Bug: 21643067
Test: manual (requires modifications to chromium to call)
Change-Id: I1ef2b7ea0054c606965040e02034c938d5e6464c

7 years agoExpose fonts.xml via public API with a service
Clara Bayarri [Tue, 10 Jan 2017 17:31:51 +0000 (09:31 -0800)]
Expose fonts.xml via public API with a service

This change creates a new FontManagerService, in charge of providing
font management data. It exposes a public API to retrieve the
information in fonts.xml without accessing it directly. To do this,
it also refactors FontListParser's internal classes into a new public
FontConfig class holding all the font data.

getSystemFonts() returns all the available information in fonts.xml
as well as file descriptors for all the fonts. This allows us to
share the memory consumed by these files between all clients.

Bug: 34190490
Test: See attached CTS change in topic
Change-Id: I0e922f8bcc9a197a1988d04071eb485328d66fb7

7 years agoStrong auth timeout refactor
Michal Karpinski [Fri, 13 Jan 2017 18:18:49 +0000 (18:18 +0000)]
Strong auth timeout refactor

Move timeout scheduling mechanism from KeyguardUpdateMonitor to
LockSettingsStrongAuth.
Move reporting about successful strong auth unlock from
KeyguardUpdateMonitor#reportSuccessfulStrongAuthUnlockAttempt()
to LockSettingsService#doVerifyCredential() - the latter also
covers work challenge strong auth unlocking.

Test: manual with all types of strong and non-strong auth, including work challenge
Bug: 29825955
Change-Id: I38e51b21e3a455b95e3c857e091fe07ee388c7f8

7 years agoMerge "Expose Resources.getFont"
TreeHugger Robot [Mon, 23 Jan 2017 13:31:30 +0000 (13:31 +0000)]
Merge "Expose Resources.getFont"

7 years agoMerge changes I72139780,I8e563654
TreeHugger Robot [Mon, 23 Jan 2017 13:24:32 +0000 (13:24 +0000)]
Merge changes I72139780,I8e563654

* changes:
  Fix screenshotting with includeDecor=true in multi-window
  Implement restoring & correct caching of snapshots

7 years agoFix thumbnails in landscape in recents
Jorim Jaggi [Fri, 20 Jan 2017 16:53:01 +0000 (17:53 +0100)]
Fix thumbnails in landscape in recents

Bug: 31339431
Change-Id: If657df7889d43f1f6eafe50ae0581dd70013888e

7 years agoFix screenshotting with includeDecor=true in multi-window
Jorim Jaggi [Fri, 20 Jan 2017 17:13:01 +0000 (18:13 +0100)]
Fix screenshotting with includeDecor=true in multi-window

The old code wasn't really tested and stackBounds variable was
null in any case.

Test: Go to multi-window, go to recents, make sure screenshot is
correct.
Bug: 31339431

Change-Id: I721397800ba7519dba7f569461c5f339eba0591b

7 years agoMerge "Move TetheringConfiguration out to its own file" am: 5a45170f95 -s ours am...
Erik Kline [Mon, 23 Jan 2017 13:10:12 +0000 (13:10 +0000)]
Merge "Move TetheringConfiguration out to its own file" am: 5a45170f95  -s ours am: fc97509a3e am: 42bd98f1ce
am: 5edf4f1101

Change-Id: Ic459905b4cc18b011ac874e1be926d75f88fa714

7 years agoresolve merge conflicts of 261932b98cb6 to nyc-mr2-dev-plus-aosp
Erik Kline [Mon, 23 Jan 2017 13:09:13 +0000 (13:09 +0000)]
resolve merge conflicts of 261932b98cb6 to nyc-mr2-dev-plus-aosp
am: 0b8e889424

Change-Id: I774d9393c23b32b8a767cffcc62db171563b12af

7 years agoImplement restoring & correct caching of snapshots
Jorim Jaggi [Mon, 16 Jan 2017 16:17:58 +0000 (17:17 +0100)]
Implement restoring & correct caching of snapshots

Introduce a retrieval cache that holds the last accessed
snapshots, in addition to the cache of the activities
that are the top most activtiy of a task that have a
running process.

Change everything to use an integer id instead of a Task object
to work around the issue that some tasks SystemUI might access
might not exist in WM yet (not yet restored from recents).

Don't put anything in the cache on the SystemUI side, but still
retrieve the thumbnails after a task changed event to make sure
the cache on the system_server side is fresh.

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotCacheTest

Bug: 31339431
Change-Id: I8e56365459a677735320adaa169da8fb033ceab0

7 years agoMerge "Move TetheringConfiguration out to its own file" am: 5a45170f95 -s ours am...
Erik Kline [Mon, 23 Jan 2017 13:05:15 +0000 (13:05 +0000)]
Merge "Move TetheringConfiguration out to its own file" am: 5a45170f95  -s ours am: fc97509a3e
am: 42bd98f1ce

Change-Id: I3580c86b3d252209dfa84c9beb4c42403609b267

7 years agoresolve merge conflicts of 261932b98cb6 to nyc-mr2-dev-plus-aosp
Erik Kline [Mon, 23 Jan 2017 12:49:40 +0000 (21:49 +0900)]
resolve merge conflicts of 261932b98cb6 to nyc-mr2-dev-plus-aosp

Change-Id: I8476804f77567cf01693a4126d5a41bcdb0016e8

7 years agoMerge "Move TetheringConfiguration out to its own file" am: 5a45170f95 -s ours
Erik Kline [Mon, 23 Jan 2017 12:24:15 +0000 (12:24 +0000)]
Merge "Move TetheringConfiguration out to its own file" am: 5a45170f95  -s ours
am: fc97509a3e

Change-Id: I28eabc6e3f58ac2b3b45fa5d218fcaf41b13de5c

7 years agoMove TetheringConfiguration out to its own file
Erik Kline [Mon, 23 Jan 2017 12:23:16 +0000 (12:23 +0000)]
Move TetheringConfiguration out to its own file
am: a3d5657027

Change-Id: I429649e576fdd0f6c08b2a90c0dfba5de2316c4f

7 years agoMerge "Move TetheringConfiguration out to its own file"
Erik Kline [Mon, 23 Jan 2017 12:20:35 +0000 (12:20 +0000)]
Merge "Move TetheringConfiguration out to its own file"
am: 5a45170f95  -s ours

Change-Id: I6a6bc4b2679432dd539d6b6930d7a32229fab363

7 years agoMerge "AAPT: Add support for 'font' resource type"
TreeHugger Robot [Mon, 23 Jan 2017 11:48:08 +0000 (11:48 +0000)]
Merge "AAPT: Add support for 'font' resource type"

7 years agoMove TetheringConfiguration out to its own file
Erik Kline [Sat, 21 Jan 2017 05:33:56 +0000 (14:33 +0900)]
Move TetheringConfiguration out to its own file

Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net
    - vanilla tethering works
        - changing from no dun requirement to dun shows dun required
Bug: 32163131

Change-Id: I488449570dff057311b37335923ce6a199b363b7

7 years agoMerge "AutoSize TextView (part 7) - APIs for configuring auto-size"
Andrei Stingaceanu [Mon, 23 Jan 2017 11:21:53 +0000 (11:21 +0000)]
Merge "AutoSize TextView (part 7) - APIs for configuring auto-size"

7 years agoExpose Resources.getFont
Clara Bayarri [Mon, 19 Dec 2016 16:20:29 +0000 (16:20 +0000)]
Expose Resources.getFont

Based on the work already done in aapt2, load a Font from a
resource id.

Test: WIP
Change-Id: Idc06bfbfd16452a328bfcc6ea9dcfb723b633f0c

7 years agoMerge changes Idbde7000,Idde3c9d0 into nyc-mr2-dev-plus-aosp
Hugo Benichi [Mon, 23 Jan 2017 11:15:05 +0000 (11:15 +0000)]
Merge changes Idbde7000,Idde3c9d0 into nyc-mr2-dev-plus-aosp
am: 767b7ad7dc

Change-Id: I3d5a6c31629a5756e0ea97c9a66a19cc702bc5c6

7 years agoDO NOT MERGE ApfFilter: use elapsedRealTime for RA lifetime
Hugo Benichi [Mon, 23 Jan 2017 11:14:59 +0000 (11:14 +0000)]
DO NOT MERGE ApfFilter: use elapsedRealTime for RA lifetime
am: 4c0b7cc776  -s ours

Change-Id: I13280034272754234df8d3db21319cdc7a9f7ef0

7 years agoDO NOT MERGE ApfFilter: systematically use u8, u16, u32 getters
Hugo Benichi [Mon, 23 Jan 2017 11:14:05 +0000 (11:14 +0000)]
DO NOT MERGE ApfFilter: systematically use u8, u16, u32 getters
am: c81837495d  -s ours

Change-Id: Idbcd29b95983d31f2e17674e48e24bf699ee392f

7 years agoMerge "Add test for updateMobileRequiresDun()" am: 7f018500dc am: 2a3338084a am:...
Erik Kline [Mon, 23 Jan 2017 11:13:04 +0000 (11:13 +0000)]
Merge "Add test for updateMobileRequiresDun()" am: 7f018500dc am: 2a3338084a am: 503374c0ae
am: 552f5620d1

Change-Id: Ib90e5f3ede42ae435ce5da1ebf89be5863601eae

7 years agoMerge changes Idbde7000,Idde3c9d0 into nyc-mr2-dev-plus-aosp
Hugo Benichi [Mon, 23 Jan 2017 11:09:15 +0000 (11:09 +0000)]
Merge changes Idbde7000,Idde3c9d0 into nyc-mr2-dev-plus-aosp

* changes:
  DO NOT MERGE ApfFilter: use elapsedRealTime for RA lifetime
  DO NOT MERGE ApfFilter: systematically use u8, u16, u32 getters

7 years agoMerge "Add test for updateMobileRequiresDun()" am: 7f018500dc am: 2a3338084a
Erik Kline [Mon, 23 Jan 2017 11:06:06 +0000 (11:06 +0000)]
Merge "Add test for updateMobileRequiresDun()" am: 7f018500dc am: 2a3338084a
am: 503374c0ae

Change-Id: I25751833ed6623ab156156fc76aa23b158a60fb4

7 years agoMerge "Add test for updateMobileRequiresDun()" am: 7f018500dc
Erik Kline [Mon, 23 Jan 2017 10:59:41 +0000 (10:59 +0000)]
Merge "Add test for updateMobileRequiresDun()" am: 7f018500dc
am: 2a3338084a

Change-Id: I3fe2605bba2a8c8ee3284f3c3278258d37fae46b

7 years agoMerge "Move TetheringConfiguration out to its own file"
Erik Kline [Mon, 23 Jan 2017 10:56:35 +0000 (10:56 +0000)]
Merge "Move TetheringConfiguration out to its own file"

7 years agoMove TetheringConfiguration out to its own file
Erik Kline [Sat, 21 Jan 2017 05:33:56 +0000 (14:33 +0900)]
Move TetheringConfiguration out to its own file

Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net
    - vanilla tethering works
        - changing from no dun requirement to dun shows dun required
Bug: 32163131

Change-Id: I488449570dff057311b37335923ce6a199b363b7

7 years agoMerge "Add test for updateMobileRequiresDun()"
Erik Kline [Mon, 23 Jan 2017 10:53:11 +0000 (10:53 +0000)]
Merge "Add test for updateMobileRequiresDun()"
am: 7f018500dc

Change-Id: Ic7b984105e2c245a992446e15d11dd19e4671a57

7 years agoMerge "Add test for updateMobileRequiresDun()"
Treehugger Robot [Mon, 23 Jan 2017 10:44:19 +0000 (10:44 +0000)]
Merge "Add test for updateMobileRequiresDun()"

7 years agoDPM: Notify DO/PO of security updates.
Charles He [Fri, 13 Jan 2017 10:04:12 +0000 (10:04 +0000)]
DPM: Notify DO/PO of security updates.

We add a variant of notifyPendingSystemUpdate method which takes an
additional isSecurityPatch boolean flag. This information, if available,
will be persisted and available to device and profile owners when they
call getPendingSystemUpdate method.

Test: gts-tradefed run gts -m GtsGmscoreHostTestCases -t com.google.android.gts.devicepolicy.DeviceOwnerTest#testPendingSystemUpdate
Test: gts-tradefed run gts -m GtsGmscoreHostTestCases -t com.google.android.gts.devicepolicy.ManagedProfileTest#testPendingSystemUpdate
Bug: 33102479
Bug: 30961046
Change-Id: If3f1b765bb18a359836ac43ac9a0a9f29e9f8428

7 years agoChange WebView fallback mechanism to consider all users' package states.
Gustav Sennton [Wed, 14 Dec 2016 09:10:50 +0000 (09:10 +0000)]
Change WebView fallback mechanism to consider all users' package states.

MultiProcess WebView will use a Service to start a separate process (the
renderer process). This Service can only be started if the WebView
package is enabled for the current user. To ensure that the current
WebView package is usable by all users on a single device we now only
use a WebView package as WebView implementation if that package is
enabled and installed for all user on the device. This also means that
the WebView-fallback mechanism will trigger when disabling the primary
WebView package for any user (not just the system user).

Also add multi-user unit tests to cover this new change.

Bug: 32894152
Test: run unit tests in WebViewUpdateServiceTest
Test: ensure the standalone WebView package becomes enabled (for all
device users) when disabling Chrome for a secondary user.
Test: load WebView (both using Monochrome, and using the standalone
WebView).

Change-Id: Iad3fc48aa50273062c2f29ae48a343c2dea38116