OSDN Git Service
Jorim Jaggi [Mon, 23 Jan 2017 15:30:43 +0000 (16:30 +0100)]
Update starting window fade out to spec
Test: Open app, make sure starting window disappears nicely
Bug:
31339431
Change-Id: Ice538d0937f17ed6901ab56ef208f9a327250d51
Jorim Jaggi [Mon, 23 Jan 2017 15:20:53 +0000 (16:20 +0100)]
Fill task snapshot with background color
Make sure to fill the portions that are not covered by the
snapshot are filled with the task background color.
Also fix an issue where the starting window was removed across
configuration changes.
Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotSurfaceTest
Bug:
31339431
Change-Id: I2451be87aff79b337015ab4bba72cfa03c0d3582
Jorim Jaggi [Fri, 20 Jan 2017 15:59:03 +0000 (16:59 +0100)]
Add starting windows while unlocking
- Modify screen capturing logic a bit such that it can also take a
screenshot when the display is off.
- Also take snapshot when app visibility is changing without
proper app transition.
- When unlocking, add strating windows for all visible apps.
Test: Unlock phone.
Test: Have an app that sleeps in onStart, make sure unlocking is
instant.
Bug:
31339431
Change-Id: I953ab6cb30d0d264554fd49a46bdc56e23356d13
Jorim Jaggi [Thu, 19 Jan 2017 16:28:30 +0000 (17:28 +0100)]
Starting window tests, yay!
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowContainerControllerTests
Fixes:
34364463
Fixes:
34361417
Change-Id: Ie1b8debc894e5cad8fe517912a1991a38661dfaa
TreeHugger Robot [Tue, 24 Jan 2017 11:35:14 +0000 (11:35 +0000)]
Merge "Merge commit '
12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d"
TreeHugger Robot [Tue, 24 Jan 2017 05:58:36 +0000 (05:58 +0000)]
Merge "Add an accidentally removed call to update libs"
TreeHugger Robot [Tue, 24 Jan 2017 05:32:56 +0000 (05:32 +0000)]
Merge "More APIs for cache status and behavior."
TreeHugger Robot [Tue, 24 Jan 2017 04:04:34 +0000 (04:04 +0000)]
Merge "Fix crashloop in CarStatusBar."
Jeff Sharkey [Tue, 24 Jan 2017 03:37:05 +0000 (20:37 -0700)]
More APIs for cache status and behavior.
Add APIs for apps to query their cache usage compared to their
currently allocated quota. Since an app's private storage may live
on a different storage volume than the primary shared/external
storage, offer APIs to retrieve those values separately.
Add APIs to control two new cache purging behaviors:
-- setCacheBehaviorAtomic() which causes a marked directory and its
contents to be treated as an atomic unit.
-- setCacheBehaviorTombstone() which causes the OS to truncate
files instead of deleting them.
Test: builds, boots
Bug:
33811826,
33965858,
27948817
Change-Id: I45de165623775c359f78b4ee544c2b5831b8d483
Jeff Sharkey [Tue, 24 Jan 2017 03:19:15 +0000 (03:19 +0000)]
Merge "Introduce RecoverableSecurityException."
Jason Parks [Tue, 24 Jan 2017 02:46:26 +0000 (02:46 +0000)]
Merge "Allow the profile owner to enforce auto time."
Chris Tate [Tue, 24 Jan 2017 02:17:11 +0000 (02:17 +0000)]
Merge "Document dependency between Intent symbols and dumpstate"
TreeHugger Robot [Tue, 24 Jan 2017 02:15:54 +0000 (02:15 +0000)]
Merge "Expose colorimetry capabilities on Display"
Christopher Tate [Mon, 23 Jan 2017 20:21:13 +0000 (12:21 -0800)]
Document dependency between Intent symbols and dumpstate
Bug
34594835
Test: N/A
Change-Id: I4494c224bc6341c7a41b79361ba599befc408341
Rakesh Iyer [Tue, 24 Jan 2017 02:10:21 +0000 (18:10 -0800)]
Fix crashloop in CarStatusBar.
System ui seems to be undergoing a refactor to bring in
dependency injection, in the process, mBatteryController
in CarStatusBar was not being set, causing a NPE.
Since it looks like the work is still ongoing, this is
just a spot fix for the crash, once the dependency injection
migration is complete, we can reexamine the CarStatusBar
implementation.
Bug:
34633087
Test: Verified that system booted correctly.
Change-Id: Idd3e0286fd87196ae572349904d5bef744d54353
Yohei Yukawa [Tue, 24 Jan 2017 01:51:04 +0000 (01:51 +0000)]
Merge "Delay tasks from IMMS constructor to later phase"
TreeHugger Robot [Tue, 24 Jan 2017 01:41:54 +0000 (01:41 +0000)]
Merge "Eliminating sections."
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"
Romain Guy [Sat, 21 Jan 2017 02:41:06 +0000 (18:41 -0800)]
Expose colorimetry capabilities on Display
Test: CtsDisplayTestCases
Bug:
32984164
Change-Id: I11e6a85a27959c578eeac276ac0e2c8ab8db70bf
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"
Svetoslav Ganov [Tue, 24 Jan 2017 00:36:40 +0000 (16:36 -0800)]
Add an accidentally removed call to update libs
Disabled system package may define a lib which its
update does not. When the update is uninstalled we
need to upate the libs so ppl can use the lib in
the now restored sys package.
Change-Id: I22e6aafde86838fa76aa74eda8dfe2c528f998aa
Jeff Sharkey [Mon, 23 Jan 2017 23:58:02 +0000 (16:58 -0700)]
Introduce RecoverableSecurityException.
This takes advantage of the recently added behavior that offers to
send Parcelable exception types across Binder calls.
Certain SecurityException can be resolved if we involve the end user,
such as when a password has expired, or a user challenge is required
to proceed. This new subclass of SecurityException provides
user-visible messaging and convenience methods for quickly rendering
that messaging as a notification or dialog.
Test: builds, boots, throws, shows as notification and dialog
Bug:
33749182
Change-Id: Iba66c7466b8fabca9e3f83c60db5a4ab849a256f
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"
Jason Parks [Tue, 17 Jan 2017 21:25:17 +0000 (15:25 -0600)]
Allow the profile owner to enforce auto time.
Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest frameworks-services
Change-Id: I1cb04cce5d232fba668535dd391459a050d62dd7
TreeHugger Robot [Mon, 23 Jan 2017 23:27:53 +0000 (23:27 +0000)]
Merge "PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable"
Yohei Yukawa [Mon, 23 Jan 2017 23:26:15 +0000 (15:26 -0800)]
Delay tasks from IMMS constructor to later phase
This is a preparation CL for Bug
32343335.
This CL basically addresses the concern raised in a previous CL [1]
that added several synchnonized blocks in the constructor of
InputMethodManagerService (IMMS).
After hours of code reading and investigation, it is concluded to be
safe IMMS to behave as if there was no IME available until
SystemService.PHASE_ACTIVITY_MANAGER_READY phase. This allows IMMS to
register callbacks not in the constructor but in the later phase to
addresses the concern that object references to IMMS could be leaked
into different threads before IMMS object is properly constructed.
As far as performance is concerned, basically the amount of tasks
to be done in the main thread remains same, or could be reduced a bit
if some unnecessary callback events were skipped. To confirm this, we
can check the total number of the following performance metrics.
- StartInputMethodManagerLifecycle
- StartActivityManagerReadyPhase
[1]: I9d4d3d7232c984432185c10c13fb726a6158cac8
8f202f82fd86a3b40bc5e7d62779eddff21096b1
Bug:
32343335
Test: Manual: pre-installed IME on Direct-Boot disabled device
Test: Manual: pre-installed IME on Direct-Boot enabled device
Test: Manual: user-installed IME on Direct-Boot enabled device
Test: Manual: user-installed IME on Direct-Boot disabled device
Test: Manual: user switching scenario on Direct-Boot enabled device
Test: Manual: user switching scenario on Direct-Boot disabled device
Test: Manual: device unlocking scenario on Direct-Boot enabled device
Change-Id: I5b37c450db4b25b3e635b6d634293a34eec8b9d4
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
Nancy Zheng [Mon, 23 Jan 2017 22:04:19 +0000 (14:04 -0800)]
Merge commit '
12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d
Test: manually tested upstream
Change-Id: I8ca2eebcb468f73bf609ed09dc141a2bf40b8697
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
Nancy Zheng [Mon, 23 Jan 2017 21:34:45 +0000 (21:34 +0000)]
Query for the settings package in KeyguardManager instead of hardcoding it. am:
e256a18dcd
am:
ed92230c38
Change-Id: I41ef0f14cbd3f7e19e6fde0cdf636619683704a2
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."
Nancy Zheng [Mon, 23 Jan 2017 21:23:40 +0000 (21:23 +0000)]
Query for the settings package in KeyguardManager instead of hardcoding it.
am:
e256a18dcd
Change-Id: I9e83ca9e1cab882fc0f508ba6c538e08b4fa7499
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