Commit Graph

64475 Commits

Author SHA1 Message Date
TreeHugger Robot
fcc07b53fa Merge "Don't process broadcasts until really ready." into pi-dev 2018-04-13 23:03:17 +00:00
Chavi Weingarten
5e09e0a34b Merge "Don't update crop WSA when drag resizing so screenshots are correct." into pi-dev 2018-04-13 21:14:16 +00:00
Jeff Sharkey
050151e052 Don't process broadcasts until really ready.
Someone started setting mSystemReady too early, when we really want
to know SystemServer's real ready state.  Add a variable to track
that, and don't process broadcasts until that's set.

Bug: 78020762
Test: builds, boots
Change-Id: I65213e46044c95fb0a8a4b09b9aa463bb15c1844
2018-04-13 14:28:32 -06:00
Jason Parks
a668c66301 Merge "Allow Device Owners/Profile Owners to set the interruption filter." into pi-dev 2018-04-13 19:56:20 +00:00
chaviw
9513662194 Don't update crop WSA when drag resizing so screenshots are correct.
When drag resizing, there's no need to recalculate the crop for
the WSA since it will not be affected by the decor frame.
This is needed to prevent incorrect screenshots when drag
resizing. So for example, if the app was in split screen and
then the user dragged the divider to exit split screen, the WSA
would crop the area where the nav bar is and below. This would cause
the screenshot to get cropped, only showing the area that was last
computed by setSurfaceBoundariesLocked. This isn't necessary since
in drag resizing, the WSA hasn't redrawn yet so there's no need to
recalculate the crop for the area under the nav bar.

Bug: 76442549
Test: Enter split screen. Drag divider to exit. Ensure recents
screenshot is correct and not cropped.

Change-Id: If7f2639794a0c3a20353d40fe31ef9bb9a051e41
2018-04-13 09:41:34 -07:00
Winson Chung
9f54f109bb Merge "Initialize the animation leash with the current values" into pi-dev 2018-04-13 16:41:18 +00:00
Lifu Tang
b3ac00ea9c Merge "Mark location-related PendingIntents as restricted" into pi-dev 2018-04-13 16:30:40 +00:00
TreeHugger Robot
249b1a34c3 Merge "Notif manager and captive portal app to read SSID again" into pi-dev 2018-04-13 11:41:32 +00:00
TreeHugger Robot
fdad4c513d Merge "CameraProxy: Clear calling identity before scheduling" into pi-dev 2018-04-13 10:13:43 +00:00
TreeHugger Robot
637422b2bf Merge "PointerLocation: do not letterbox for cutouts" into pi-dev 2018-04-13 09:59:45 +00:00
TreeHugger Robot
878d0e90b5 Merge "Add a new ssid field in NetworkCapabilities." into pi-dev 2018-04-13 08:59:23 +00:00
Benjamin Franz
df88614db2 Merge "Silently ignore force stop API for protected packages" into pi-dev 2018-04-13 07:37:25 +00:00
Bo Zhu
2bc6f2e46a Merge "Use Scrypt to hash all passwords in RecoverableKeyStore" into pi-dev 2018-04-13 07:22:48 +00:00
Chalard Jean
2dcccbcc0b Notif manager and captive portal app to read SSID again
Bug: 77114259
Test: frameworks-net pass
      manual test shows the SSID is now displayed again

Change-Id: I5cb2b4777ad78d972031e8f2ff22e2155f4ab894
2018-04-13 15:38:36 +09:00
Chalard Jean
b03a6229b8 Add a new ssid field in NetworkCapabilities.
Bug: 77891227
Test: frameworks-net
Change-Id: Ifba33ecd48ccecce7e8f8d05ff70bb85653f6163
2018-04-13 15:38:35 +09:00
TreeHugger Robot
b672c1f97c Merge "Fix pinned slices returning different Uris." into pi-dev 2018-04-13 02:48:39 +00:00
TreeHugger Robot
f2b624c140 Merge "Have UserController use a CarUserSwitchingDialog instead of a UserSwitchingDialog if the FEATURE_AUTOMOTIVE flag is present so Android Auto can customize the look of the dialog." into pi-dev 2018-04-13 00:24:50 +00:00
Winson Chung
65a0586b39 Initialize the animation leash with the current values
- We already do this with remote animations, need to do this with the
  recents animation to ensure that layers are set correctly by default.

Bug: 77981669
Test: Open app, open translucent activity, swipe up and ensure that they
      don't reorder during the transition

Change-Id: I492d12b871c602e348ea0623752787b8b0ac3f10
2018-04-12 17:14:50 -07:00
Jason Monk
199286b084 Fix pinned slices returning different Uris.
Test: cts
Bug: 77980070
Change-Id: I3c5ba18e40a58371e2c9ccade9d565b38ad12a54
2018-04-12 20:05:27 -04:00
Lifu Tang
519f0d0792 Mark location-related PendingIntents as restricted
Bug: 77237719
Test: build and flash a device
Change-Id: Id12792aca29fef6adff4943c551c03e6eb6e851c
2018-04-12 17:01:27 -07:00
Bo Zhu
c3aefbd7f8 Use Scrypt to hash all passwords in RecoverableKeyStore
Bug: 77325751
Test: runtest frameworks-services -p
    com.android.server.locksettings.recoverablekeystor

Change-Id: Ifd934593a2161e397eac77b682e3f4bb2d518822
2018-04-12 15:19:57 -07:00
TreeHugger Robot
fd3e190cbf Merge "Use system property to get the package name for media update" into pi-dev 2018-04-12 20:54:46 +00:00
TreeHugger Robot
5d1db91ecb Merge "Add method to get blocked app count" into pi-dev 2018-04-12 20:43:10 +00:00
TreeHugger Robot
c9185b5f3c Merge "Add rate limiting and logging for NetworkStats." into pi-dev 2018-04-12 19:54:12 +00:00
Chris Tate
ec41f74561 Merge "Correct bg service start policy re bg-restricted state" into pi-dev 2018-04-12 19:41:31 +00:00
TreeHugger Robot
c5fb960b01 Merge "Catch exceptions reading calendar events" into pi-dev 2018-04-12 19:33:50 +00:00
Dmitry Dementyev
6ce8408618 Merge "Don't store deprecated trustedHardwarePublicKey field." into pi-dev 2018-04-12 19:14:26 +00:00
Aarthi Balachander
cf6ca0c15e Have UserController use a CarUserSwitchingDialog instead of a
UserSwitchingDialog if the FEATURE_AUTOMOTIVE flag is present
so Android Auto can customize the look of the dialog.

+ minor changes to fix colors and sizes

Test: tested on Mojave
bug: 75023449
Change-Id: Icf8b63acf257505a3e58fa368be0dd57a60960b4
2018-04-12 11:54:15 -07:00
Remi NGUYEN VAN
abc6e18d56 Add rate limiting and logging for NetworkStats.
Bug: 77908520, 77808546, 77853238, 77154412
Test: atest com.android.server.net.NetworkStatsServiceTest
Test: manual: flashed, verified network usage updated
Change-Id: I905dbea85e00f80103916939f6d4bf8cab931d03
2018-04-12 12:43:53 -06:00
Julia Reynolds
9b771676aa Catch exceptions reading calendar events
Test: none
Change-Id: I3be8d3abc5feead1d940ab86d8edcd770187eca9
Fixes: 70568179
2018-04-12 18:21:06 +00:00
Jason Parks
50322ff031 Allow Device Owners/Profile Owners to set the interruption filter.
Bug: 75972410
Test: atest FrameworksUiServicesTests
Test: runtest systemui-notification
Test: atest CtsAdminTestCases:DevicePolicyManagerTest
Change-Id: Ie8d3deadd13de094f4c2a679f8ef0b1aa804dec0
2018-04-12 12:57:24 -05:00
Julia Reynolds
e273f08c0b Add method to get blocked app count
So we can sure it in settings

Test: runtest systemui-notification
Bug: 73018368
Change-Id: Ib0185e97f8e1cec1864ca1e4efb23bf8db097901
2018-04-12 13:48:49 -04:00
TreeHugger Robot
c11cb1b151 Merge "Pre P apps can't change new fields" into pi-dev 2018-04-12 16:40:37 +00:00
TreeHugger Robot
52ae06af4d Merge "Ensure we do not set seInfoTargetSdkVersion to 0." into pi-dev 2018-04-12 15:53:03 +00:00
Julia Reynolds
eac2da20b0 Pre P apps can't change new fields
Screen off means fullscreen intents, lights, and ambient
in P but pre-P mean only lights and full screen intents.

Test: runtest systemui-notification, cts
Change-Id: I83857b5df2f669751df34d58aa645f4102b8e0e4
Fixes: 77470790
2018-04-12 11:13:46 -04:00
Rohan Shah
8e7f23a74c Merge "[Notif] Allow locking importance on notification" into pi-dev 2018-04-12 14:49:11 +00:00
Emilian Peev
44e19a0ad7 CameraProxy: Clear calling identity before scheduling
Camera statistics job scheduling cannot be triggered by
native camera service UID. Clear the binder calling
identity before trying to schedule any jobs.
In addition to that check also the binder calling UID value
itself and make sure we are being called by camera service.

Bug: 77818243
Test: Camera CTS
Change-Id: I5d94671eaf0eb41b5d06abf10494b9e7dc172db5
2018-04-12 14:21:20 +01:00
Jorim Jaggi
682ca4122d Merge "Fix issue with leaked preserved surface" into pi-dev 2018-04-12 11:14:55 +00:00
TreeHugger Robot
b30a1b0668 Merge "Fix [kv-4] PerformBackupTask possible NPE/Wrong package report." into pi-dev 2018-04-12 10:38:23 +00:00
TreeHugger Robot
4738c7d0ab Merge "Cleaning up frameworks protos." into pi-dev 2018-04-12 09:55:45 +00:00
Adrian Roos
7851ace542 PointerLocation: do not letterbox for cutouts
Change-Id: I8eb662a4e58f6ad6b1382e20d6c59461886df473
Fixes: 77789607
Test: Enable "show pointer location" in developer settings, verify the displayed location is not offset.
2018-04-12 10:20:47 +02:00
TreeHugger Robot
aab3304a22 Merge "Fix broken target SDK checks." into pi-dev 2018-04-12 04:40:06 +00:00
Henry Liu
cfa5a82f82 Fix [kv-4] PerformBackupTask possible NPE/Wrong package report.
mCurrentPackage is null when package doesn't exist, which lead test
failed with NPE
Use request.packageName for case BackupTransport.AGENT_UNKNOWN instead

Bug: 77272500

Test: m -j RunFrameworksServicesRoboTests ROBOTEST_FILTER=PerformBackupTaskTest
Change-Id: I27be85f0c3f95e36edd92d0d552189fbcf6952dd
(cherry picked from commit 87f1209ac6)
2018-04-12 02:44:50 +00:00
Rohan Shah
590e1b2aa5 [Notif] Allow locking importance on notification
Currently locking  only works on channel - this CL allows doing
so on the overarching notification too. Added locking field in
appropriate places in record and surfaced it to other bits via
the RankingHelper.

Test: Visually, reproduced organically (+ deleting /data/ files)
Fixes: 77775657
Change-Id: Ie46093921dd6c1ae3533ded7b87faaa475a631e4
2018-04-11 21:57:49 -04:00
TreeHugger Robot
8b7f7f1aa5 Merge "Fix NPE when calling Session#add" into pi-dev 2018-04-12 01:57:20 +00:00
TreeHugger Robot
ce9fe591ac Merge "Fixing typo in proto field." into pi-dev 2018-04-12 01:33:01 +00:00
TreeHugger Robot
a26e755900 Merge "Add stats logging to ServiceManager and NPMS" into pi-dev 2018-04-12 01:13:07 +00:00
Sudheer Shanka
092031d623 Merge "Update timeout log from Slog.wtf() to Slog.w()." into pi-dev 2018-04-12 00:47:23 +00:00
TreeHugger Robot
3535a0a64c Merge "Fix FingerprintService package comparison" into pi-dev 2018-04-12 00:16:55 +00:00
Kweku Adams
21b8d26084 Cleaning up frameworks protos.
Note: It is currently only safe to renumber the fields because we have
not started using them yet.

* animationadapter: added in http://ag/3709688, but was not following
the indentation policy or the unit naming policy. The durations that
have documentation in
frameworks/base/services/core/java/com/android/server/wm/ state that
they're in milliseconds. These durations didn't have documentation, but
I'm assuming they're in the same units.
* batterystats: was not following the indentation policy
* jobscheduler: AppIdleController was removed in http://ag/3699210 and
the proto was only partially updated
* powermanagerservice: BatterySaverStateMachineProto added in
http://ag/3763026 but was not privacy tagged and the indentation was off
* surfaceanimator: was not following the indentation policy
* remote_animation_target: was not following the indentation policy
* others: weren't following the indentation policy

Bug: 74975371
Test: flash device and run 'test CtsIncidentHostTestCases'
Change-Id: Id012f4690b1d58816fef096523e1a0ea2bccadb0
2018-04-11 16:55:33 -07:00