Commit Graph

309172 Commits

Author SHA1 Message Date
Sooraj Sasindran
0fc0a7edf7 Expose api to retrieve wakelock information per client
Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

BUG=31041780
Merged-In: Ie39fe59055eb7931bd179dd9e2537a7552c38af8
Change-Id: Ie39fe59055eb7931bd179dd9e2537a7552c38af8
2017-02-09 16:44:02 -08:00
TreeHugger Robot
d8502d0513 Merge "Zygote: Restore GL preload" 2017-02-10 00:36:45 +00:00
Selim Cinek
0fe3d064a3 Merge "Fixed an issue where the emergency affordance didn't show" into nyc-mr2-dev
am: fbf2e0fb2c

Change-Id: Ib1c45af5ffea1d09e14ac5daac61a1046d2594a2
2017-02-10 00:12:48 +00:00
Selim Cinek
fbf2e0fb2c Merge "Fixed an issue where the emergency affordance didn't show" into nyc-mr2-dev 2017-02-10 00:06:43 +00:00
Jeremy Joslin
f95c865411 Adding a new internal method to get all valid scorers.
New NetworkScoreManager method to get all valid scorers from the
NetworkScoreService. The implementation is stubbed out for the time
being.

Test: make
Bug: 35095406
Change-Id: Iece2cc10a0a9377f2d82385d172b06660bb9b130
2017-02-09 15:32:04 -08:00
Andreas Gampe
a5b0ca3f89 Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit" 2017-02-09 23:17:17 +00:00
Evan Rosky
f038cb454b Don't notify parents of views made focusable off UI thread
Clickable now implies focusable by default. While views are
only supposed to be modified on the UI thread, before O
this wasn't enforced when setting a view as clickable. Now,
it is enforced by virtue of clickable setting focusable for
auto-focusable views.

In order to prevent crashes, detect this situation for pre-O
target-sdks and skip notifying parents of a view made
focusable if:
- it was made focusable by the new auto-focusable mechanic.
- and this is occuring off the UI thread.

The net result in these cases will be a newly-focusable view
that won't immediately receive focus if it was supposed to
(though this will be exceedingly rare).

Bug: 34815147
Test: Verified that the crashing app in the bug (JWLibrary)
      doesn't crash after this change.
Change-Id: I90e9a082cb1e1a3fec75ae5159f2f2c8540ffdc2
2017-02-09 15:13:32 -08:00
Shreyas Basarge
bf2ec2c5d7 Fix for bmgr whitelist
The bmgr whitelist command was broken
after the selectTransport api cl. This
cl fixes it.

Bug: 34953486
Test: Verify that adb shell bmgr whitelist prints all whitelisted
transports
Change-Id: I3c3275258a45a035a0ca9404d1016ca5663cceaf
2017-02-09 23:11:43 +00:00
Mathias Agopian
7a1e28de4a fallout from view::Surface / Surface split
Test: built and booted device
Bug: treble
Change-Id: I8ec554f5726d597d944967a3924cc997a75453a2
2017-02-09 23:07:44 +00:00
Brad Ebinger
ade9937437 Add UI prompt for MMI code failure on 3gpp
Some carriers do not support call forwarding MMI codes while roaming
on 3gpp networks. A new message has been added that clarifies this
to the user.

Test: Manual
Bug: 30106345
Merged-In: Id8d3434b02346eaad4f52d514a3269b5750ca1c3
Change-Id: Id8d3434b02346eaad4f52d514a3269b5750ca1c3
2017-02-09 15:00:49 -08:00
Jesse Hall
ba0370eef3 Zygote: Restore GL preload
Preloading GLES drivers in Zygote was removed previously since it is
incompatible with updatable drivers. That caused some app startup
latency and system memory use regressions. This change re-adds GLES
driver preloading, but only on devices that don't support driver
updates.

Bug: 34611670
Bug: 35052548
Test: boot angler, systrace of Calculator app startup
Change-Id: Ibdc6b3c0ba4473574722641d4bfad4b375f908a3
2017-02-09 14:47:59 -08:00
TreeHugger Robot
c6ba07d3b6 Merge "Remove downloads backup related Settings." 2017-02-09 22:33:52 +00:00
Adrian Roos
3b172ba054 Merge "Dependency: Make non-class dependencies type-safe" 2017-02-09 22:29:02 +00:00
Sudheer Shanka
fe4d1e87ab Fix NPE in ClipboarService.
Check if primaryClip is null or not before trying to set the timestamp.

Fixes: 35144954
Test: cts-tradefed run singleCommand cts-dev --module -t \
      com.android.cts.devicepolicy.ManagedProfileTest#testCrossProfileCopyPaste

Change-Id: If322626553f42dda56a42adc2c6e4d206715a673
2017-02-09 14:25:48 -08:00
Stan Iliev
d217237045 Implement "dump displaylist" button for skia pipelines
Implement "dump displaylist" button in hierarchyviewer for skia
pipelines.

Test: ran hierarchyviewer for all pipelines.
bug: 34819877
Change-Id: Ifeb578260f636cb67268f9f9259e7318bf7de453
2017-02-09 17:09:03 -05:00
TreeHugger Robot
b44818b10b Merge "Disable touch slop for generated gesture events" 2017-02-09 22:06:36 +00:00
Selim Cinek
e0358de1e4 Fixed an issue where the emergency affordance didn't show
The state wheather the sim affordance was needed before was
loaded but not saved locally if it didn't change, so any
further requests would have the default values if it stayed
true.

Test: add india sim, go into airplane mode, reboot, see emergency
button
Fixes: 34370542
Change-Id: I9da1f5ca8025df6c2618ab467e937cf5cf9aa132
2017-02-09 13:59:15 -08:00
Sooraj Sasindran
335c89c22e Expose api to retrieve wakelock information per client
Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

BUG=31041780
Merged-In: Ie39fe59055eb7931bd179dd9e2537a7552c38af8
Change-Id: Ie39fe59055eb7931bd179dd9e2537a7552c38af8
2017-02-09 21:51:04 +00:00
Chad Brubaker
b09ac24c3c Merge "Add permission for instant apps creating foreground services" 2017-02-09 21:33:19 +00:00
Andreas Gampe
76d4fc8451 Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit
Move methods where they belong.

(cherry picked from commit 4e66db8d0c)

Test: m
Test: Device boots
Change-Id: I805c6493078e960ff5b70d84dd93d2da6c7aa797
2017-02-09 13:16:34 -08:00
Andreas Gampe
4e66db8d0c Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit
Move methods where they belong.

Test: m
Test: Device boots
Merged-In: I805c6493078e960ff5b70d84dd93d2da6c7aa797
Change-Id: I805c6493078e960ff5b70d84dd93d2da6c7aa797
2017-02-09 13:16:17 -08:00
Shuzhen Wang
476bea8495 Revert "Camera2: Temporarily remove surface size 0 check"
This reverts commit bdabb0f582.
Bug: 35027811
Test: Use camera from hangouts
2017-02-09 13:13:04 -08:00
Chris Tate
bc1d0ff042 Merge "Check bg persistent-app policy against base uid, not nominal" 2017-02-09 20:47:33 +00:00
Robert Carr
186d9dee1b Fix WindowFrameTest error.
It appears somehow we are using real display sizes and it varies from
device to device. This itself is somewhat concerning, but easy enough
to handle. If you look at the line before the modified lines
it seems like this is what I meant to do initially but somehow it didn't happen.

Test: bit FrameworksServicesTests:com.android.server.wm.WindowFrameTests
Fixes: 35197592
Change-Id: I05880ba95a8ee3b790fb14daf00c878b4f85095c
2017-02-09 12:42:29 -08:00
Dianne Hackborn
3641585f07 Merge "Fix issue #34592078: Mobile broadcast crash observed randomly..." 2017-02-09 20:42:10 +00:00
Adrian Roos
09c43c8743 Dependency: Make non-class dependencies type-safe
Introduces a new DependencyKey<V> type which allows
referring to non-class dependencies in a type-safe
way. This also improves performance because we no
longer need to perform string comparisons.

Test: runtest systemui
Change-Id: Idc948855a85a1899be41e7f0170c40e73e525024
2017-02-09 21:23:04 +01:00
Fyodor Kupolov
c6ea7fc45e Log.wtf all privapp-permissions in a single message
Test: manual
Bug: 34872687
Change-Id: Ib67604db73dada235f16e91a41e52a8c8ea625bf
2017-02-09 12:17:00 -08:00
Greg Plesur
0e39f18e26 Merge "Merge "Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked()." into cw-f-dev am: 5659b15a94 am: 0265687aef" into nyc-mr2-dev-plus-aosp
am: 1f26fadba7

Change-Id: Ia2ff41983c4b04f11e22c95fd4659bdd0521a1f6
2017-02-09 20:10:04 +00:00
Greg Plesur
d8ede890bb Merge "Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked()." into cw-f-dev am: 5659b15a94 am: 0265687aef
am: d5c031c75b

Change-Id: Ie80bb180876c59bf28bde509feb97b2c7ae280cc
2017-02-09 20:09:52 +00:00
Bryce Lee
d71317c9a0 Revert "Set correct focus activity when using FLAG_ACTIVITY_REORDER_TO_FRONT"
This reverts commit 6d42df6d17.

The original commit addressed b/25487874 by changing the root
activity to match the top activity. This however affects the
backstack behavior as we return to home if our current activity is
the root activity
(see ActivityStack::adjustFocusedActivityStackLocked). Upon
removing this change, the original issue no longer reproduces.

Fixes: 25784754
Bug: 25487874
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerActivityVisibilityTests#testReorderToFrontBackstack
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerActivityVisibilityTests#testReorderToFrontChangingStack

Change-Id: I291fab0b14c69ec8c4c8ce3100cd391260a4c77e
2017-02-09 12:08:32 -08:00
Greg Plesur
e9459cfc8d Merge "Merge "Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked()." into cw-f-dev am: 5659b15a94 am: 89085b1593" into nyc-mr2-dev-plus-aosp
am: a55677651f

Change-Id: I5f26af7cedfeab861acae935af965392ef3ac810
2017-02-09 20:08:26 +00:00
Greg Plesur
92ab94849f Merge "Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked()." into cw-f-dev am: 5659b15a94 am: 89085b1593
am: 7d297e7761

Change-Id: I73677c19bda940dc352daba699ed68b8d3a3d575
2017-02-09 20:08:20 +00:00
Greg Plesur
d74e7c3530 Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked(). am: 735b4dc0af am: 968477129c
am: e25194b067

Change-Id: Icce21145f9e86060a96c44064e63ac5416b934e7
2017-02-09 20:07:18 +00:00
Greg Plesur
150a584aee Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked(). am: 735b4dc0af am: d78a0d21cb
am: 82a3793269

Change-Id: I3f7fe9ba2c572eb0dda23386a62c50f58a6a08f9
2017-02-09 20:06:10 +00:00
Jeff Sharkey
a51ae12b37 Merge "DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 78f2e38a12 -s ours am: b30169299b -s ours am: 31c7fa003d -s ours am: 966e600365 -s ours" into nyc-mr2-dev-plus-aosp
am: 3b7ee3598f  -s ours

Change-Id: Iab23629aac79aa226a1d21508b4db9648537954b
2017-02-09 20:04:47 +00:00
Jeff Sharkey
c48fc566b5 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 78f2e38a12 -s ours am: b30169299b -s ours am: 31c7fa003d -s ours am: 966e600365 -s ours
am: 91aac0db54  -s ours

Change-Id: I67a75bf0e4fa073579420abc02d58735c606ad91
2017-02-09 20:04:42 +00:00
Jeff Sharkey
4c90b31ac6 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 78f2e38a12 -s ours am: b30169299b -s ours am: 31c7fa003d -s ours am: 6d4af9c7f8 -s ours
am: bbdec11843  -s ours

Change-Id: I57e2773891641ffa9d418d1cae70f3f234ad12f2
2017-02-09 20:03:29 +00:00
Paul Duffin
6cd440c574 Merge "Partial Revert "Replace com.android.internal.util.Predicate with java.util.function.Predicate"" am: 621ebe692f am: a2c92b0b88 am: c1a93884dc
am: 8faed45024

Change-Id: I9d047f2e7bd8dfb14bf7b1f8c82ce6721e105198
2017-02-09 20:02:25 +00:00
Android Build Merger (Role)
1f26fadba7 Merge "Merge "Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked()." into cw-f-dev am: 5659b15a94 am: 0265687aef" into nyc-mr2-dev-plus-aosp 2017-02-09 19:58:23 +00:00
Android Build Merger (Role)
a55677651f Merge "Merge "Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked()." into cw-f-dev am: 5659b15a94 am: 89085b1593" into nyc-mr2-dev-plus-aosp 2017-02-09 19:58:14 +00:00
Greg Plesur
d5c031c75b Merge "Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked()." into cw-f-dev am: 5659b15a94
am: 0265687aef

Change-Id: I4cd33b9e688d90d8555b91c6547dbffe3099e0ae
2017-02-09 19:57:34 +00:00
Greg Plesur
7d297e7761 Merge "Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked()." into cw-f-dev am: 5659b15a94
am: 89085b1593

Change-Id: I50b457b5c6b5614d8b7c450b3ee6f7e375478194
2017-02-09 19:57:28 +00:00
Greg Plesur
e25194b067 Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked(). am: 735b4dc0af
am: 968477129c

Change-Id: I623dd515c8eae81b4146d67c83007fc5213561a2
2017-02-09 19:56:28 +00:00
Greg Plesur
82a3793269 Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked(). am: 735b4dc0af
am: d78a0d21cb

Change-Id: I2e45ee1174cb287d8ce142ac4176148ceca5b248
2017-02-09 19:53:06 +00:00
Christopher Tate
7408813e3c Check bg persistent-app policy against base uid, not nominal
SysUI, for example, needs to be able to start services in secondary
users, and in those users they run as the user-appropriate decorated
uid.

Bug 35200453
Test: verify user switch behavior via logging

Change-Id: Ia154f140e315fd97aed414c6444ba550632eb610
2017-02-09 11:52:38 -08:00
Android Build Merger (Role)
3b7ee3598f Merge "DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 78f2e38a12 -s ours am: b30169299b -s ours am: 31c7fa003d -s ours am: 966e600365 -s ours" into nyc-mr2-dev-plus-aosp 2017-02-09 19:50:58 +00:00
Jeff Sharkey
91aac0db54 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 78f2e38a12 -s ours am: b30169299b -s ours am: 31c7fa003d -s ours
am: 966e600365  -s ours

Change-Id: Ia3e044a2c4e2c71505d9666fbe0f3a0552f5e14f
2017-02-09 19:50:10 +00:00
Greg Plesur
0265687aef Merge "Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked()." into cw-f-dev
am: 5659b15a94

Change-Id: I9bb30911e82207da68c3c5f088ef9efd1edf75ca
2017-02-09 19:50:03 +00:00
Greg Plesur
89085b1593 Merge "Allow any device with a device_owner to execute setDeviceOwnerSystemPropertyLocked()." into cw-f-dev
am: 5659b15a94

Change-Id: I4bb6bc892ea172b7bda1ccc5dd840de128908223
2017-02-09 19:50:01 +00:00
Jeff Sharkey
bbdec11843 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 78f2e38a12 -s ours am: b30169299b -s ours am: 31c7fa003d -s ours
am: 6d4af9c7f8  -s ours

Change-Id: I5e6c70874400b8239dfc4be958a002d964f3d204
2017-02-09 19:50:01 +00:00