OSDN Git Service
Stephen Chen [Fri, 20 Jan 2017 19:24:08 +0000 (11:24 -0800)]
Enabled backup/restore of Wifi Wakeup and Network Recommendations Settings.
Bug:
34430370
Test: make
Change-Id: I8838eace4cac6a02d580d73a5700ca4e3f368bf6
TreeHugger Robot [Tue, 24 Jan 2017 01:26:39 +0000 (01:26 +0000)]
Merge "Fix NPE in LockPatternUtils"
TreeHugger Robot [Tue, 24 Jan 2017 01:25:09 +0000 (01:25 +0000)]
Merge "Add an 'am crash' shell command"
Hongming Jin [Tue, 24 Jan 2017 00:50:18 +0000 (00:50 +0000)]
Merge "Test: AccountManagerService APCT test."
Chris Tate [Tue, 24 Jan 2017 00:49:27 +0000 (00:49 +0000)]
Merge "Send USB_STATE broadcast to manifest receivers"
Chris Craik [Tue, 24 Jan 2017 00:14:57 +0000 (00:14 +0000)]
Merge "Use @CriticalNative in Canvas"
TreeHugger Robot [Tue, 24 Jan 2017 00:14:29 +0000 (00:14 +0000)]
Merge "light HAL uses "default" service name"
Dmitri Plotnikov [Tue, 24 Jan 2017 00:07:38 +0000 (00:07 +0000)]
Merge "Adding TvExtender channel override"
Dianne Hackborn [Tue, 24 Jan 2017 00:05:34 +0000 (00:05 +0000)]
Merge "Optimize bg check flow."
Chris Phoenix [Mon, 23 Jan 2017 22:18:26 +0000 (14:18 -0800)]
light HAL uses "default" service name
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.
Test: builds
Bug:
33844934
Change-Id: Id22d27d7e401de426b1a236067c1b4c7f6c99a3e
Rubin Xu [Mon, 23 Jan 2017 23:55:28 +0000 (23:55 +0000)]
Fix NPE in LockPatternUtils
mDevicePolicyManager field can be null if getDevicePolicyManager()
is never called. A previous refactor removed an apparent unused call
to getDevicePolicyManager(), leading to NPE when mDevicePolicyManager
is accessed. We should always use getDevicePolicyManager() to access
DevicePolicyManager instance.
Test: manual
Bug:
34612758
Change-Id: Ic964b4ee4e3c56301295b8f0629bd005c732c5c4
TreeHugger Robot [Mon, 23 Jan 2017 23:45:56 +0000 (23:45 +0000)]
Merge "Add tests for b/
34598346"
TreeHugger Robot [Mon, 23 Jan 2017 23:27:53 +0000 (23:27 +0000)]
Merge "PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable"
Ta-wei Yen [Mon, 23 Jan 2017 23:22:29 +0000 (23:22 +0000)]
Merge "Extend carrier configs for visual voicemail"
Hongming Jin [Mon, 23 Jan 2017 19:37:27 +0000 (11:37 -0800)]
Test: AccountManagerService APCT test.
Add tests for startUpdateCredentials, finishSession and isCredentialsUpdateSuggested.
Bug:
31346530
Change-Id: I8c93b6b0db50086a83894eadfcf6a2398be81b6c
TreeHugger Robot [Mon, 23 Jan 2017 23:01:05 +0000 (23:01 +0000)]
Merge "SysUI fragments: Integrate new support for constructing"
Christopher Tate [Mon, 23 Jan 2017 22:35:28 +0000 (14:35 -0800)]
Send USB_STATE broadcast to manifest receivers
Bug
34594920
Change-Id: I5d026f469710960b792dcf1bfebc1c07f90c6182
Svetoslav Ganov [Mon, 23 Jan 2017 22:25:44 +0000 (22:25 +0000)]
Merge "Allow shared lib and package name to match"
Chris Craik [Fri, 20 Jan 2017 03:12:36 +0000 (19:12 -0800)]
Use @CriticalNative in Canvas
Bug:
33460152
Test: ViewShowHidePerfTests
Switches non-drawing @FastNative methods to @CriticalNative, except
where out arguments prevent it.
Performance in ViewShowHidePerfTests not significantly impacted.
Change-Id: I3edc963accb4f87f73d175c7b2534868602a7db3
TreeHugger Robot [Mon, 23 Jan 2017 22:24:44 +0000 (22:24 +0000)]
Merge "Do not allow ephemeral apps to access ShortcutManager"
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
Adrian Roos [Mon, 23 Jan 2017 22:21:03 +0000 (22:21 +0000)]
Merge "KeyguardManager: Fix user resolution of isDeviceSecure/Locked"
Dianne Hackborn [Sat, 21 Jan 2017 01:00:44 +0000 (17:00 -0800)]
Optimize bg check flow.
No longer need to look up the application info, target SDK is
explicitly passed in to the check. For the external method, we
change this to just checked to see if background is completely
disabled, which doesn't need a target SDK check (and is the only
thing any of the current clients care about).
Now allow SystemUI to put targets of notification pending intents
on the temporary whitelist when they fire, so developers can avoid
dealing with background restrictions in this case (if the user
interacts with their notification, they will temporarily be
considered in the foreground).
Remove any thoughts of enforing restrictions on registerReceiver(),
so we don't need to deal with target SDK versions there (which can't
be done all that efficiently).
Also bring back the old "allow starts coming from foreground apps"
only for the MODE_IGNORE app op, since it should provide some
better compatibility.
Test: ran them.
Change-Id: Id4ea7f992d12ce4bd8e54f1dbaeb4a460a3dee59
John Reck [Mon, 23 Jan 2017 19:20:37 +0000 (11:20 -0800)]
Add tests for b/
34598346
Test: unit test passes
Bug:
34598346
Change-Id: I7e5144aa875e42487718059cc06b86e32db28702
Adrian Roos [Thu, 19 Jan 2017 22:48:35 +0000 (14:48 -0800)]
PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable
Adds a regression test for NPEs around executeRunnableDismissingKeyguard when
a null runnable is passed.
The bug was fixed in I89477a8a0067e285e5d0122e918fac45274c57ad.
Fixes:
33489225
Test: runtest systemui
Change-Id: Ia8981bc4c2a1a0f6d8c48e6d66e2af801d6cddac
Jason Monk [Mon, 9 Jan 2017 20:13:23 +0000 (15:13 -0500)]
SysUI fragments: Integrate new support for constructing
Use a new system for constructing fragments so they can be swapped
out in place maintaining state. This will allow easier integration
with plugin lifecycle as parents who have child plugin fragments
can depend on the class existing and won't have to listen to
the lifecycle.
Test: runtest systemui
Change-Id: I517f4ce3d114abd49b1b5baca388d19e929b8f90
Richard Coles [Mon, 23 Jan 2017 21:23:41 +0000 (21:23 +0000)]
Merge "Expose isMultiProcessEnabled via WebViewDelegate."
TreeHugger Robot [Mon, 23 Jan 2017 21:16:50 +0000 (21:16 +0000)]
Merge "Workaround libmemunreachable lockup"
Ashutosh Joshi [Mon, 23 Jan 2017 21:02:57 +0000 (21:02 +0000)]
Merge "Remove AR packages from preloaded classes."
TreeHugger Robot [Mon, 23 Jan 2017 20:58:49 +0000 (20:58 +0000)]
Merge "Restore foreground service notifications"
TreeHugger Robot [Mon, 23 Jan 2017 20:53:20 +0000 (20:53 +0000)]
Merge "Better error message for privapp-permissions test"
Soonil Nagarkar [Mon, 23 Jan 2017 20:42:45 +0000 (20:42 +0000)]
Merge "Add background location throttling to LocationManagerService"
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
Aurimas Liutikas [Mon, 23 Jan 2017 20:38:38 +0000 (20:38 +0000)]
Merge "Port RecyclerView to com.android.internal.widget.RecyclerView"
TreeHugger Robot [Mon, 23 Jan 2017 20:37:11 +0000 (20:37 +0000)]
Merge "Remove all calls to SkCanvas::getClipStack from HWUI unit tests"
TreeHugger Robot [Mon, 23 Jan 2017 20:32:47 +0000 (20:32 +0000)]
Merge "Add ResolverActivity testing"
TreeHugger Robot [Mon, 23 Jan 2017 20:27:27 +0000 (20:27 +0000)]
Merge "Fix recent checkPermission() bug."
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
TreeHugger Robot [Mon, 23 Jan 2017 20:20:10 +0000 (20:20 +0000)]
Merge "Change WebView fallback mechanism to consider all users' package states."
Christopher Tate [Sat, 21 Jan 2017 01:50:32 +0000 (17:50 -0800)]
Add an 'am crash' shell command
Induce a normal VM crash via adb, because it's quite different from the
effects of 'am kill'.
Test: induced crashes via adb shell using both pid & pkg
Change-Id: I79654afa7c4a70364cfd7d3af3e80a7b0e59b882
TreeHugger Robot [Mon, 23 Jan 2017 19:57:16 +0000 (19:57 +0000)]
Merge "Expose fonts.xml via public API with a service"
TreeHugger Robot [Mon, 23 Jan 2017 19:51:34 +0000 (19:51 +0000)]
Merge "Add missing nothingToDraw() check"
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
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
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
TreeHugger Robot [Mon, 23 Jan 2017 19:31:11 +0000 (19:31 +0000)]
Merge "Work on sysui dependencies"
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.
Brad Ebinger [Mon, 23 Jan 2017 19:23:35 +0000 (19:23 +0000)]
Merge "Deprecate old TelecomManager actions"
am:
d1ab15a1af
Change-Id: Id76db43d6cc4477a328698e049558ef936a4fe1d
TreeHugger Robot [Mon, 23 Jan 2017 19:18:44 +0000 (19:18 +0000)]
Merge "Do not log boot times for secondary users and upgrades"
TreeHugger Robot [Mon, 23 Jan 2017 19:16:30 +0000 (19:16 +0000)]
Merge "Fix cancel notification race condition bug."
Brad Ebinger [Mon, 23 Jan 2017 19:09:11 +0000 (19:09 +0000)]
Merge "Deprecate old TelecomManager actions"
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
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
Eugene Susla [Mon, 23 Jan 2017 19:02:12 +0000 (19:02 +0000)]
Merge "Add ability to dump settings as proto buf"
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."
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
Jeff Schumacher [Mon, 23 Jan 2017 18:50:12 +0000 (18:50 +0000)]
Merge "Opened some App Links APIs to @SystemApi"
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
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
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
Guang Zhu [Mon, 23 Jan 2017 18:31:31 +0000 (18:31 +0000)]
Merge "adapt package manager presubmit test to GlobalPresubmit annotation"
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
TreeHugger Robot [Mon, 23 Jan 2017 18:18:26 +0000 (18:18 +0000)]
Merge "add a signaled reader to the eventlog"
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
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
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
TreeHugger Robot [Mon, 23 Jan 2017 17:51:29 +0000 (17:51 +0000)]
Merge "Delete accidentally submitted FontResourcesParser"
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
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
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
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
Treehugger Robot [Mon, 23 Jan 2017 17:25:10 +0000 (17:25 +0000)]
Merge "LocalDisplayAdapter: don't crash when no color modes available"
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
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
Charles He [Mon, 23 Jan 2017 17:11:50 +0000 (17:11 +0000)]
Merge "DPM: Notify DO/PO of security updates."
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
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
TreeHugger Robot [Mon, 23 Jan 2017 17:02:35 +0000 (17:02 +0000)]
Merge "Fix thumbnails in landscape in recents"
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
Treehugger Robot [Mon, 23 Jan 2017 17:01:24 +0000 (17:01 +0000)]
Merge "Make TelephonyManager#get/setAllowedCarriers system api"
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
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
Todd Kennedy [Mon, 23 Jan 2017 16:47:41 +0000 (16:47 +0000)]
Merge "null check"
Todd Kennedy [Mon, 23 Jan 2017 16:44:40 +0000 (08:44 -0800)]
null check
Fixes:
34598376
Test: Manual
Change-Id: Ia2508434f6fada2219c1eea9b05f9101fc4490e3
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
Robin Lee [Mon, 23 Jan 2017 16:40:05 +0000 (16:40 +0000)]
Merge "Disable always-on VPN in factoryReset"
TreeHugger Robot [Mon, 23 Jan 2017 16:36:56 +0000 (16:36 +0000)]
Merge "Strong auth timeout refactor"
Toby Sargeant [Mon, 23 Jan 2017 16:21:15 +0000 (16:21 +0000)]
Merge "WebView: Add the definition of the renderer importance API."
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
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
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
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
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
TreeHugger Robot [Mon, 23 Jan 2017 13:31:30 +0000 (13:31 +0000)]
Merge "Expose Resources.getFont"
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
Jorim Jaggi [Fri, 20 Jan 2017 16:53:01 +0000 (17:53 +0100)]
Fix thumbnails in landscape in recents
Bug:
31339431
Change-Id: If657df7889d43f1f6eafe50ae0581dd70013888e
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
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
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
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