Commit Graph

12797 Commits

Author SHA1 Message Date
Keun young Park
f07360f874 Migrate BootTime related metrics in BootReceiver
Bug: 132691841
Test: Build
Change-Id: I0e0140257a16337912dc84426eb9dab85665035e
2020-01-13 19:43:06 -08:00
Automerger Merge Worker
80524e4450 Merge "ims:rcs uce update" am: 70e9b70469 am: ada4938c50 am: c40d95c599
Change-Id: I86e22d23d4b8686e65a9dea7622de6bdbbbc1e07
2020-01-14 00:44:50 +00:00
Automerger Merge Worker
c40d95c599 Merge "ims:rcs uce update" am: 70e9b70469 am: ada4938c50
Change-Id: I50c8fb2e2835853c4d033ca45058ba42ff36a26a
2020-01-14 00:28:35 +00:00
Brad Ebinger
70e9b70469 Merge "ims:rcs uce update" 2020-01-14 00:07:24 +00:00
Automerger Merge Worker
8d2f9806c7 Merge "Add Callback for Registration Failure" am: 93db49faec am: 5532d79f90
Change-Id: I5e6e2b3b41b24e6122963644633d63d14e8a7605
2020-01-13 21:24:06 +00:00
Qingxi Li
21c2d78f07 Merge "Create an until function to check location permission" 2020-01-13 21:23:09 +00:00
Treehugger Robot
93db49faec Merge "Add Callback for Registration Failure" 2020-01-13 20:58:00 +00:00
Miranda Kephart
d80563874b Merge "Add flag for scrolling screenshots" 2020-01-13 20:03:55 +00:00
Zhen Zhang
615c9ee4d4 Merge "Don't let RecyclerView consume fling action when there is no further space." 2020-01-13 18:48:10 +00:00
Miranda Kephart
df62ee6e16 Add flag for scrolling screenshots
Adds a flag to control whether scrolling is enabled, separately
from the new UI flow. Currently this just controls whether the
'Extend' chip is shown.

Bug: 147424031
Test: tested with flag on and off to ensure expected behavior
Change-Id: I6fba301b058e783083d40f28366dfb4a6af4495b
2020-01-13 11:46:54 -05:00
Automerger Merge Worker
62dba7a4e6 Merge "Use new UnsupportedAppUsage annotation." am: b2c3eaaf10 am: 904b7f9de2
Change-Id: I62868fbcba5ffd65a441808e2a0cda59c9597654
2020-01-13 14:37:21 +00:00
Treehugger Robot
b2c3eaaf10 Merge "Use new UnsupportedAppUsage annotation." 2020-01-13 14:27:29 +00:00
Automerger Merge Worker
627480d918 Merge "Use new UnsupportedAppUsage annotation." am: 70a89435e7 am: 4220fc33a1
Change-Id: I0960879c5cd2791fa7cc27746474d6ebf2f61c9e
2020-01-13 13:22:33 +00:00
Treehugger Robot
70a89435e7 Merge "Use new UnsupportedAppUsage annotation." 2020-01-13 13:04:48 +00:00
Nathan Harold
c41cb737ed Add Callback for Registration Failure
Add a callback to PhoneStateListener to indicate that
a registration procedure has failed.

Bug: 143187047
Test: make update-api && make
Merged-In: I4a4ba4479dfd465a9d8063135f3b4bf4e1323e99
Change-Id: I4a4ba4479dfd465a9d8063135f3b4bf4e1323e99
(cherry picked from commit 5e6e983cad)
2020-01-12 10:33:03 -08:00
Qingxi Li
97d01e2ff0 Create an until function to check location permission
This util function will check whether the app has location permission
and whether the location mode is enabled for the users. This function
will be used by both connectivity service and wifi networks.

Bug: 142072839
Test: atest ConnectivityUtilTest
Change-Id: I5558ed04e5ef28033a1c649f5491f2f15aa63557
2020-01-10 14:01:55 -08:00
TreeHugger Robot
40a36f90f5 Merge "UiEventLogger option to log uid + package_name." 2020-01-10 21:08:43 +00:00
Daulet Zhanguzin
252fcabe07 Merge "Deprecate checkNotNull in favor of Objects.requireNonNull()." am: 7b511f0dd8 am: 1e62d2dd40
am: 5bb34c7861

Change-Id: I42b5f3730d4ae3da871c8f36ba1630a2d0552af8
2020-01-10 11:23:45 -08:00
Will Brockman
a5f1728ef7 UiEventLogger option to log uid + package_name.
Bug: 147488850
Test: SystemUITests
Change-Id: I25d3faebace5a2803784d62168b6758bfaf8ce0c
2020-01-10 13:51:59 -05:00
Automerger Merge Worker
5bb34c7861 Merge "Deprecate checkNotNull in favor of Objects.requireNonNull()." am: 7b511f0dd8 am: 1e62d2dd40
Change-Id: I9493491cecb3c2308d961e167c276204587a7ce6
2020-01-10 17:17:30 +00:00
Nicholas Ambur
b2a5c29796 Merge "add parameter control to AlwaysOnHotwordDetector" 2020-01-10 17:08:00 +00:00
Daulet Zhanguzin
7b511f0dd8 Merge "Deprecate checkNotNull in favor of Objects.requireNonNull()." 2020-01-10 16:36:15 +00:00
Peter_Liang
8089bc4daa Multiple shortcut menu for android R (4/n).
Implementation for deleting the target.

Fix: b/146967898
Test: manual test
Change-Id: Id5d10fa3cc7e1b3b818787837a4f5cb86b2e777f
2020-01-10 16:53:11 +08:00
Automerger Merge Worker
a6110193f8 Merge "Use Parcelable CellIdentity instead of CellLocation in AIDL." am: 9bda007cb8 am: a881005317
Change-Id: I14834c28abb17cdc0397950470e45f4e73462dff
2020-01-10 04:46:53 +00:00
Nicholas Ambur
f94db1c822 add parameter control to AlwaysOnHotwordDetector
Per-model control to AlwaysOnHotwordDetector interface.
Models are selected by keyphrase and locale associated with the
AlwaysOnHotwordDetector instance.

Bug: 141929369
Test: tested manually with test app
Change-Id: Iffeb0954059fa030d8a4fefb934a3e665323be37
2020-01-09 18:18:47 -08:00
Artur Satayev
ae5bcf23b5 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I41e12e425284e74561c6b61663241df364ae54a1
Merged-In: I41e12e425284e74561c6b61663241df364ae54a1
2020-01-09 15:15:51 +00:00
Artur Satayev
54af4fc42a Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
Merged-In: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
2020-01-09 13:52:18 +00:00
Daulet Zhanguzin
9dd0f80341 Deprecate checkNotNull in favor of Objects.requireNonNull().
Remove one of unused overloads. The same change passed on master:
ag/10013392

Bug: 126528330

Test: Treehugger
Test: made equivalent change in internal branch to verify that removed method is not in use

Change-Id: I37c5b93e2ffbfa38a5b9feb4cae2062ef24acec5
2020-01-09 11:18:25 +00:00
PETER LIANG
98d850609d Merge "Multiple shortcut menu for android R (3/n)." 2020-01-09 10:22:39 +00:00
TreeHugger Robot
c9296a6d9c Merge "Add app data isolation whitelist" 2020-01-09 10:20:09 +00:00
Peter_Liang
f150888157 Multiple shortcut menu for android R (3/n).
Update UI and deleting item behavior to meet UX design.
 - Remove save button, listener and string.
 - Will remove the target from shortcut list at once when user deleting item.

Bug: b/142528666
Bug: b/147027236
Test: maunal test
Change-Id: I01bd745be006311007190deb1ba63fd438a804ff
2020-01-09 16:30:42 +08:00
Martijn Coenen
3fa3890183 Merge "Only allow Download authority/MTP/installers to write in Android/." 2020-01-09 07:38:22 +00:00
Martijn Coenen
496ac000f6 Only allow Download authority/MTP/installers to write in Android/.
Previously when FUSE was enabled, we gave all apps requesting
WRITE_MEDIA_STORAGE or install permissions a direct view
to the lower filesystem. This was way too broad for a few reasons:
1) WRITE_MEDIA_STORAGE will be deprecated; holding that permission by
itself shouldn't grant you any special privileges.
2) Installers should only be able to write OBBs

The only other exceptions that are allowed to bypass scoped storage are
the process hosting the DownloadProvider and the process implementing
the MTP server; both of these have legit reasons for writing in
Android/. The way this is currently implemented is by giving these apps
the SDCARD_RW gid, which has write access in the default Android/
sdcardfs view.

Installers will be further scoped down to be only able to access OBB
in a follow-up CL.

Bug: 134706060
Bug: 146490513
Test: DownloadProvider can download
      Play + OBBs work
      Writing in Android/ through MTP works

Change-Id: Iff8681732d0c1124e24e5347f7dcb64b781c1e8c
2020-01-09 07:37:11 +00:00
TreeHugger Robot
141751afe7 Merge "Propagate exception stacktrace via AndroidFuture IPC" 2020-01-09 06:01:05 +00:00
Meng Wang
8af4d4ad78 Use Parcelable CellIdentity instead of CellLocation in AIDL.
Currently CellLocation is passed over AIDL by manually
marshalling/unmarshalling to/from Bundle, and type info
is not preserved in the process.

Bug: 146092124
Test: make
Merged-In: I6225f100953a2ad354acaa261a774989926393ce
Change-Id: I6225f100953a2ad354acaa261a774989926393ce
2020-01-08 20:29:27 -08:00
Automerger Merge Worker
e576ba8f8d Merge "(Backport) Pipe through featureId from caller to permission checks in telephony code" am: 0104ce5293 am: f5a037d685
Change-Id: I09813d60dacabbd98e395816f9d7cb6d965a4f19
2020-01-09 03:45:21 +00:00
Treehugger Robot
0104ce5293 Merge "(Backport) Pipe through featureId from caller to permission checks in telephony code" 2020-01-09 02:48:14 +00:00
Eugene Susla
49b8cdf5d0 Propagate exception stacktrace via AndroidFuture IPC
Re-uses the code from Parcel to make it consistent with binder IPC exception
stacktrace propagation behavior.

Test: atest AndroidFutureTest
Change-Id: I5c73c42544af5bf964c7b6cd646bcb347e3ae146
2020-01-08 17:32:00 -08:00
Meng Wang
1b3499c83c Merge "System API used by telephony to bind to WapPushManager app." 2020-01-09 00:18:53 +00:00
Philip P. Moltmann
06b07e9e25 (Backport) Pipe through featureId from caller to permission checks in telephony
code

Test: atest FrameworksTelephonyTests CtsAppOpsTestCases
Bug: 136595429
Fixes: 146350559
Change-Id: Ie58007cf2a4e4a39cdfd72822150efce71dfbe84
Merged-In: I7ef41e8961e48d40e5685c4a521e83cb20953e48
2020-01-08 14:16:54 -08:00
Meng Wang
e6a40697e1 System API used by telephony to bind to WapPushManager app.
Bug: 145179378
Test: make
Change-Id: Ibfb5ce49d20addcd19775d9e8d762945e71b9843
2020-01-08 13:52:19 -08:00
Dave Mankoff
af8163f77d Revert "Revert "Refactor PanelView and NotificationPanelView into Controllers.""
This reverts commit da13c3fd3d.

This includes a fix for the original issue - an NPE in
NotificationPanelView.

Bug: 147295216
Change-Id: Id1a71b0e30aada460a70d738c5451e21dd412a7a
Test: atest SystemUITests
2020-01-08 14:55:19 -05:00
Automerger Merge Worker
25457a966a Add test for OverrideValidatorImpl am: 1828d218d6 am: 261d85b7ce am: 7311ee7976
Change-Id: I9df678420e589c3b76284047038d5f0d0cf20365
2020-01-08 18:55:23 +00:00
Automerger Merge Worker
f1c5228703 Enforce overriding methods for IPlatformCompat am: 465b214383 am: ed7fc22f27 am: f4115dd50f
Change-Id: I62f976d42d30ac2b4ab5891f6f5b68ccfa33c81f
2020-01-08 18:55:13 +00:00
Automerger Merge Worker
7311ee7976 Add test for OverrideValidatorImpl am: 1828d218d6 am: 261d85b7ce
Change-Id: I85702ddaa1c801e8078a6e25d2457af264e778ed
2020-01-08 18:54:19 +00:00
Automerger Merge Worker
f4115dd50f Enforce overriding methods for IPlatformCompat am: 465b214383 am: ed7fc22f27
Change-Id: Id4eafc4f2700b0c7e4578471059204dbc756fdd9
2020-01-08 18:54:13 +00:00
Zhuoyao Zhang
b2c90b1e3c Merge "Revert "Refactor PanelView and NotificationPanelView into Controllers."" 2020-01-08 18:53:06 +00:00
Andrei Onea
261d85b7ce Add test for OverrideValidatorImpl
am: 1828d218d6

Change-Id: I8a07c6c7542db7b7a2654f45aaaa39d452101605
2020-01-08 10:48:02 -08:00
Andrei Onea
ed7fc22f27 Enforce overriding methods for IPlatformCompat
am: 465b214383

Change-Id: I2f6ff12c492eaf9cc9b8852b0d2b12facb622596
2020-01-08 10:47:55 -08:00
Andrei-Valentin Onea
e7194bfdfc Merge changes from topic "fix-policy"
* changes:
  Refactor CompatConfigTest and PlatformCompatTest
  Add test for OverrideValidatorImpl
  Enforce overriding methods for IPlatformCompat
2020-01-08 18:42:44 +00:00