Commit Graph

98806 Commits

Author SHA1 Message Date
Jakub Gielzak
79bceebe32 Restrict reflection access to mLayoutParams
Users should rely on the getter / setter. The setter additionally
guarantees internal state correctness.

Bug: 123768937
Test: n/a

Change-Id: Ia2dcbe9db3fdeab8aeac9b80dcfaaa0932724dc2
2019-02-05 12:51:52 +00:00
Dario Freni
80ced71afd Merge "Disable package verifier for staged installs." 2019-02-05 10:16:23 +00:00
Orion Hodson
0b2bfbe443 Merge "Move CLIENT_PROTOCOL_VERSION to point of use" am: a75411975a am: 71e1bf58d0
am: c472d5f641

Change-Id: Ie11ec05e3b44ebb1e23f03aab3d65f197041b97d
2019-02-05 01:45:02 -08:00
Orion Hodson
c472d5f641 Merge "Move CLIENT_PROTOCOL_VERSION to point of use" am: a75411975a
am: 71e1bf58d0

Change-Id: Icede435f038840eab78c5c5d3758af680b6ed2ce
2019-02-05 01:34:44 -08:00
Orion Hodson
71e1bf58d0 Merge "Move CLIENT_PROTOCOL_VERSION to point of use"
am: a75411975a

Change-Id: I323304a3b2ef2b38c76c09fbdeee0c8b7f3debdf
2019-02-05 01:25:07 -08:00
Chad Brubaker
7685530067 Merge "Log noteProxyOp and startOp as well" 2019-02-05 06:15:21 +00:00
Sudheer Shanka
609346bfd9 Merge "Translate sandboxed paths correctly for MediaStore.SCAN_FILE_CALL." 2019-02-05 06:00:06 +00:00
Hans Boehm
39c00b22f4 Merge "Improve AsyncTask API documentation" am: 1cbb20b2df am: 8f39deb490
am: 6ff6c4de73

Change-Id: Ib34c98b1ca5bd4c3e17b29c465344f3418cc3376
2019-02-04 21:42:51 -08:00
Hans Boehm
6ff6c4de73 Merge "Improve AsyncTask API documentation" am: 1cbb20b2df
am: 8f39deb490

Change-Id: Idd279158405207d9afac604b8acc6bf49232cb2f
2019-02-04 21:16:57 -08:00
TreeHugger Robot
4e2a95c4d2 Merge "Game Driver: clean up GraphicsEnvironment" 2019-02-05 04:20:36 +00:00
Tarandeep Singh
73f9f9bf8f Merge changes Ib3997487,Ifed8351b
* changes:
  Link InsetsController to IME (IME transitons 4/n)
  Send IME control to client
2019-02-05 03:56:58 +00:00
Sudheer Shanka
cae41c4065 Translate sandboxed paths correctly for MediaStore.SCAN_FILE_CALL.
Bug: 123642484
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore_DownloadsTest.java
Change-Id: Ie19beb12e546b1b78e8e0d056558444a255f394d
2019-02-04 18:16:15 -08:00
Yiwei Zhang
a0ee1f847d Game Driver: clean up GraphicsEnvironment
Bug: 123529932
Test: Build, flash and boot. Verify by installing game driver apk
Change-Id: Id73605125410a2b4054d9179227022e177d20af2
2019-02-04 18:02:21 -08:00
Mathieu Chartier
20a2484e58 Merge "Add runtime_native_boot namespace" 2019-02-05 01:36:32 +00:00
TreeHugger Robot
1a9862c9da Merge "Removed the Content Capture blacklist APIs." 2019-02-04 23:04:48 +00:00
TreeHugger Robot
282e869f42 Merge "Restrict reflection access to INotificationManager from Toast" 2019-02-04 23:02:47 +00:00
Mathieu Chartier
b31138f908 Add runtime_native_boot namespace
For runtime properties that require reboots.

Bug: 120794191
Bug: 123524494
Test: set a property and ensure it can be read in AndroidRuntime.cpp

Change-Id: I6287320465f633447a7ef65af6c29cd9f8cce18d
2019-02-04 14:45:53 -08:00
TreeHugger Robot
b031e8e7cb Merge "SurfaceView: Check correct OPAQUE flag for background visibility." 2019-02-04 22:34:43 +00:00
Ashley Rose
aed477d58a Merge "Add InspectionCompanionProvider" 2019-02-04 22:28:51 +00:00
TreeHugger Robot
2026af216a Merge "Better interpolation and duration for animations" 2019-02-04 22:26:42 +00:00
TreeHugger Robot
729bf1cf17 Merge "Create a default package name for device level events." 2019-02-04 22:20:19 +00:00
Ruslan Tkhakokhov
dd4fd2e23e Merge "[Multi-user] Support permission backup for multi-user" 2019-02-04 22:12:50 +00:00
TreeHugger Robot
98665da93b Merge "Make RoleManager inject DefaultBrowserProvider into PackageManager." 2019-02-04 22:09:28 +00:00
Adam Powell
c7ac9f01f3 Restrict reflection access to INotificationManager from Toast
Bug: 123768917
Change-Id: Ice757d9f10f08f6d50dc34ca5c459e44d1ade10d
2019-02-04 13:33:23 -08:00
TreeHugger Robot
779cd543e2 Merge "Adds mShowCursor to dark-grey list above P" 2019-02-04 21:27:50 +00:00
Jorim Jaggi
7974259907 Better interpolation and duration for animations
Test: Open IME
Bug: 111084606
Change-Id: I3c64fe8b772a8164573c8fe3de94d3573e8cd238
2019-02-04 20:55:01 +00:00
Tarandeep Singh
46d59f0ecb Link InsetsController to IME (IME transitons 4/n)
With this change, InsetsController.show/hide now links to IME. This also
takes care of animating IME along with other types.
Insets API are reactive i.e. they remain in sync with state of IME.

Test: atest InsetsControllerTest
Test: atest ImeInsetsConsumerTest
Bug: 118118435

Change-Id: Ib3997487bd19351d1d23bc70173fc9bdfd23a704
2019-02-04 12:41:24 -08:00
Tarandeep Singh
215929b6f2 Send IME control to client
Sends the IME control to the client by calling
InsetsStateController.onImeTargetChanged.

Furthermore, since the frame we use to calculate the insets isn't
necessarily the surface frame, we also need to pass down the
surface position such that the client can calculate the final
leash position correctly.

Test: Open IME
Bug: 111084606
Change-Id: Ifed8351b12d47f698efde504205bd7b77032d36b
2019-02-04 12:41:24 -08:00
Robert Carr
d76074a44a SurfaceView: Check correct OPAQUE flag for background visibility.
No explanation beyond: Typo.

Bug: 123644326
Test: Manual
Change-Id: I2c2cf9eb441fd92703189e5566d70c07b048373c
2019-02-04 12:24:17 -08:00
Ruslan Tkhakokhov
1583c8b995 [Multi-user] Support permission backup for multi-user
Bug: 123349308
Test: 1) atest RunBackupFrameworksServicesRoboTests
         2) atest CtsBackupTestCases
         3) atest CtsBackupHostTestCases
         4) atest GtsBackupTestCases
         5) atest GtsBackupHostTestCases

Manual testing (for system/secondary users):
  * Install Textra Sms (third-party sms client, requires sms
  permissions) and give permissions
  * adb shell bmgr --user [user-id] backupnow android
  * Uninstall and reinstall the app
  * abd shell bmgr --user [user-id] restore [token] android
  * Launch the app and verify permission dialog doesn't appear

Change-Id: I61ec4eb9c593465363dcf43059584b15f4aa81f5
2019-02-04 20:03:30 +00:00
Ng Zhi An
5a7c4f1c75 Merge "Add closing div tag for ContentResolver javadoc" into pi-dev
am: a3a280e4d8

Change-Id: I12f32a13f8b6ca1c33bee80207c6e1bed6f7cb4b
2019-02-04 11:52:44 -08:00
TreeHugger Robot
a3a280e4d8 Merge "Add closing div tag for ContentResolver javadoc" into pi-dev 2019-02-04 19:38:42 +00:00
Ashley Rose
a4850c4405 Add InspectionCompanionProvider
Bug: 117616612
Test: atest GeneratedInspectionCompanionProviderTest
Change-Id: I7998f4f8d9fdbb042e01b5b0c2fc66933b2035d1
2019-02-04 14:18:27 -05:00
TreeHugger Robot
a3cce241f1 Merge "Migrate default browser to use role." 2019-02-04 18:50:34 +00:00
Shubang Lu
38a701701d Merge "Add sendVolumeKeyEvent API to handle forwarding volume key separately." 2019-02-04 18:47:15 +00:00
Hai Zhang
85fd062239 Make RoleManager inject DefaultBrowserProvider into PackageManager.
This way PackageManager does not depend on RoleManager any more. Also
did some refactoring on RoleManagerService.

Bug: 123775970
Test: manual
Change-Id: I56c50d410ef212c960ffaa6212655b2f42870878
2019-02-04 10:37:07 -08:00
Nataniel Borges
5bfb2b7b00 Merge "Allow for different log levels on WM traces" 2019-02-04 17:45:15 +00:00
Louis Pullen-Freilich
d6da1ffb50 Adds mShowCursor to dark-grey list above P
This was being used by developers to work out when to 'blink' their
custom cursors using custom drawables. Now that TextView has a
setTextCursorDrawable method, developers should use that instead to set
a custom cursor, and shouldn't need to reflect on this value. If they
still need more customization than setting a custom drawable, they
should handle the blinking themselves - no need to reflect on an
internal timestamp.

Bug: b/123769485
Test: n/a
Change-Id: I7817b2b83b19a3fdb8922c718720dd9ca5e8b291
2019-02-04 17:17:59 +00:00
Philip P. Moltmann
f2bfd385c9 Merge "Plumming of perm restore via permission controller" 2019-02-04 17:13:37 +00:00
Orion Hodson
e649a56524 Move CLIENT_PROTOCOL_VERSION to point of use
Removes dependency on constant that was in libcore.

Bug: b/119742461
Test: m -j100 checkbuild
Change-Id: I1708652edf65789ef4bdb6e83568696f70f96bdd
2019-02-04 17:09:31 +00:00
TreeHugger Robot
c351042b07 Merge "Add mIsStaged and mCommittedSessionId to RollbackInfo." 2019-02-04 16:01:35 +00:00
Dario Freni
49c3fa7488 Disable package verifier for staged installs.
This is a temporary measure to allow staged installs for APKs to work on
dev-signed devices.

Test: adb install --staged file.apk on taimen-eng target; adb
install-multi-package file1.apex file2.apex file3.apk file4.apk
Bug: 123753157
Change-Id: I537afbb08cb0a5db37bb823f4b084691dcd2f5d1
2019-02-04 14:49:18 +00:00
Richard Uhler
ccf035d6cb Add mIsStaged and mCommittedSessionId to RollbackInfo.
These will be needed for the rollback manager to support rollback of
staged sessions.

Bug: 112431924
Test: atest RollbackTest

Change-Id: I22c02ba2de023af6cf6908207bf69ab36ca9291c
2019-02-04 14:06:29 +00:00
Olivier Gaillard
99ab9530d3 Bug fix: Do not track the looper exception if the session is not sampled
Test: atest LooperStatsTest
Change-Id: I1811ad12bdf9830699c615fff02f5aceea74c175
2019-02-04 13:42:30 +00:00
Jorim Jaggi
0c573ea5c6 Merge "Apply visibility at the beginning of the animation" 2019-02-04 11:54:45 +00:00
Dario Freni
1108886bd2 Merge "Add STAGED_SESSION_ prefix to error codes." 2019-02-04 10:34:09 +00:00
Gavin Corkery
6db967fe33 Merge "Renaming plsCertsNoVerifyOnlyCerts to unsafeGetCertsWithoutVerification." 2019-02-04 10:08:00 +00:00
Olivier Gaillard
fcfdaced63 Merge "Fix a bug with worksource propagation." 2019-02-04 09:54:37 +00:00
Hans Boehm
8f39deb490 Merge "Improve AsyncTask API documentation"
am: 1cbb20b2df

Change-Id: Iabd8dd663c718f9467a9bf19a7feb4be76f01901
2019-02-03 20:27:02 -08:00
junyulai
e413528700 [KA02] internal cleanup and refactor for SocketKeepalive
In previous change, the new SocketKeepalive API was exported.
But internally, old PacketKeepalive names and structures are
still used.

This change rename them properly for code consistency and also
refactor KeepalivePacketData to support different types of
KeepalivePacketData.

(clean cherry-pick from aosp/860394)

Bug: 114151147
Test: 1. atest FrameworksNetTests
      2. atest FrameworksWifiTests
      3. atest FrameworksTelephonyTests

Change-Id: Ia9917d12987e91e87e34ffb3f126e7bc7c9c187e
2019-02-04 04:06:22 +00:00