Commit Graph

468813 Commits

Author SHA1 Message Date
Tyler Gunn
c2ea5a5bcb Merge "Clarify getSmsCapacityOnIcc docs." 2020-02-19 18:52:38 +00:00
Treehugger Robot
5bb8151a47 Merge "Made the comment more clear" 2020-02-19 18:47:34 +00:00
Alex Mang
ac2e48e553 Adding important people avatars to AoD
Icons will show up on aod, status bar and expanded view. Icons are
currently updated on notification redaction.

We attempt to retreive people icons across a number of sources (in order
of priority):
1. ShortcutManager
2. Notification.getLargeIcon
3. Person.getIcon() from MESSAGE_EXTRAS
4. Notification.getSmallIcon (fallback if everythign fails fails)

Icons are cached when they the notification is an important conversation
and is sensitive

Bug: 144874876
Test: manually on device
Change-Id: I3292d2fbd90e39c4d2fe9eaa5b2855b7b65d89f9
2020-02-19 10:47:12 -08:00
Evan Rosky
2d88183bde Merge "SystemUI Split via TaskOrganizer" 2020-02-19 18:43:36 +00:00
TreeHugger Robot
520fa831ce Merge "Move override logic from SysUI to Telephony" 2020-02-19 18:41:37 +00:00
Rob Carr
0dc3f99580 Merge "SurfaceView: Fix BLAST Sync initialization." 2020-02-19 18:40:42 +00:00
Anton Hansson
86508bf6d9 Merge "Build statsd framework jar against module_current" 2020-02-19 18:38:47 +00:00
Jayant Chowdhary
cf36cd1ecc camera2: Update documentation for getConcurrentStreamingCameraIds to account for availability callbacks.
Bug: 148995918

Test: builds
Test: make doc-comment-check-docs

Change-Id: Ib6f09034c470a7439912fb4aa569b6e1f69db5ab
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-02-19 10:38:14 -08:00
Julia Reynolds
8f5dabdb7d Be more strict about what sounds can play in DND
- Mute all notification usages when DND is on
- Allow packages android and systemui to break through DND so they can
continue to vibrate and play sound (respectively) for exceptions

Test: atest
Fixes: 139961234
Change-Id: Id3c7223311ca8f797a054068f7aed82991975a12
2020-02-19 13:38:12 -05:00
Sudheer Shanka
06061416fd Merge "Allow lease expiry to be +ve when the corresponding blobs expiry is 0." 2020-02-19 18:31:26 +00:00
Anton Hansson
f74130f525 Allow com.android.* classes in system_service stubs
The android.* rule is meant to be for the public SDK.

Bug: 147559833
Test: m checkapi
Change-Id: I8b36cf7a4ff569d0b960455de09ed40592dd5a9e
2020-02-19 18:29:12 +00:00
Sudheer Shanka
51a6c6ee50 Allow lease expiry to be +ve when the corresponding blobs expiry is 0.
It is fine for an app to aquire a lease until a certain time
even if the corresponding the blob doesn't have a expiry date associated
with it.

Fixes: 149789374
Test: atest --test-mapping apex/blobstore
Change-Id: I76f7bdb616d78a5d83a8489a898f1e6015589f38
2020-02-19 10:28:23 -08:00
TreeHugger Robot
4090e95ba6 Merge "Allow unbuffered MotionEvent dispatch for View (1/2)" 2020-02-19 18:24:52 +00:00
Aran Ink
54a0c1201a Merge "Resize images in NotificationInlineImageResolver if too big." 2020-02-19 18:21:07 +00:00
Dan Stoza
a6781c835d Merge "Add PowerManager#getThermalHeadroom" 2020-02-19 18:18:31 +00:00
Eric Berglund
cbfe702556 DO NOT MERGE Hold onto NotificationListener when reconnecting notifications UI.
Bug: 149342387
Test: manual
Change-Id: I1bc4046ce1e6792699eaa87b9d50cfaa231e806f
2020-02-19 10:11:02 -08:00
Vadim Caen
91619830a5 Merge changes I244b3cb8,I194673d6
* changes:
  Fixed rotation: rotate wallpaper
  Fixed rotation: home and recents animation
2020-02-19 18:04:31 +00:00
Vadim Caen
2a9ccc9d2a Fixed rotation: rotate wallpaper
The wallpaper should be rotated if its target WindowState is rotated.

The fixed rotation is applied to the WallpaperWindowToken and
the offsets are computed using the overriden DisplayInfo contained in
the WindowToken.ForcedRotationState.

Test: atest WmTests:RecentsAnimationControllerTest#testWallpaperHasFixedRotationApplied
Bug: 143053092, 148000485, 147999946
Change-Id: I244b3cb81dd29995a1a9181949e4f3f973816825
2020-02-19 19:02:03 +01:00
Fabian Kozynski
6ed0e8c2ef Merge "Add support for cutout in QSDetail" 2020-02-19 17:56:57 +00:00
Fabian Kozynski
6e51a705c8 Fix Kotlin warnings
MediaArtworkProcessor change to use new WindowContext.

Still suppressing deprecation in DetailDialog.

Test: build
Test: atest MediaArtworkProcessorTest
Bug: 149787017
Change-Id: I9288076ac29077e90a978e8e5ee38080992a15ca
2020-02-19 12:54:31 -05:00
Automerger Merge Worker
905982888c Merge "Enable compat checking & lint for system_services api" am: b14743ce82 am: 34aaecf48c
Change-Id: I173a1cc900f4537a15cad9ab79c7b8ae72a0f258
2020-02-19 17:50:18 +00:00
Keun young Park
b69e341f46 PackageManager: Migrated OTA related metrics to StatsLog
- Only covers items collected as boot perfomance metrics

Bug: 132691841
Test: check statsd dump
Change-Id: Id7447cc4bfdaedf2a43971f22c0f8bc7d9257efc
2020-02-19 09:49:59 -08:00
Automerger Merge Worker
4b8545b3fb Merge "Rename ro.device_owner system property" am: 075c6b9db7 am: 3cf8f19dc4
Change-Id: I9e22996ed4f03dab423953db57c49bb27be7d903
2020-02-19 17:49:37 +00:00
Automerger Merge Worker
606159f661 Merge "Update javadoc of deprecated UICC APIs" am: e73b46c9d9 am: e33a7cb5c3
Change-Id: I91dd2f7973670403c51210c07a6d12f14a63e4e0
2020-02-19 17:49:08 +00:00
Feng Cao
36960ee20e Introduces the Bundle to inline suggestions APIs to encode custom UI styling information.
* The bundle will be generated/consumed by the support library.
* More API documentation and example usage will be added later once we have the support library impl ready.
* The old style resource name approach doesn't work due to the potential mismatch in the support library version across the host IME and the platform renderer service, and the non-static nature of the public attribute int id in the support lib.
* The Bundle added to the onCreateInlineSuggestionsRequest() is intended for the platform/ExtServices to communicate the UI versions it supports.
* The Bundle added to the InlinePresentationSpec is intended for the IME to communicate the custom styles for the chosen UI versions.

Test: manual verification, and also atest CtsInputMethodTestCases:InlineSuggestionInfoTest CtsInputMethodTestCases:InlineSuggestionTest CtsInputMethodTestCases:InlineSuggestionsRequestTest CtsInputMethodTestCases:InlineSuggestionsResponseTest
Bug: 146454892

Change-Id: Id7fea32a7550fb924fec811b376790474a7b92eb
2020-02-19 09:42:22 -08:00
Riddle Hsu
9239d7c678 Fix seamless condition of fixed rotation transform
The top window from display policy relies on layout to
be updated. It is more accurate to check the active
transformed record.

Fix: 149793692
Test: atest DisplayContentTests#testApplyTopFixedRotationTransform

Change-Id: I8694190faab343e6c524a4399fec0a9b16bfa561
2020-02-20 01:38:01 +08:00
Patrick Baumann
a7479cc607 Fixes crash when provider has null authorities
Bug: 143901347
Test: atest AppEnumerationTests
Change-Id: Ib85021b2ae98d27bab3bc96c07de1546aa5e3a45
2020-02-19 09:37:58 -08:00
Nikita Ioffe
9c4b572553 Log UserspaceRebootReported atom from system_server
UserspaceRebootLogger class is introduced to encapsulate (tiny) state
machine for logging of userspace reboot.

So far state is stored in a persistent property, but that can be changed
in the future.

Unit tests will be added in a follow-up CL.

Test: adb shell svc power reboot userspace
Bug: 148767783
Change-Id: Ib9e2c6cef7094ccac7862be249d619212f0013fd
Merged-In: Ib9e2c6cef7094ccac7862be249d619212f0013fd
(cherry picked from commit 779d6bee21)
2020-02-19 17:35:04 +00:00
Danning Chen
19aae7561a Merge "Add getShareTargets() to ShortcutServiceInternal and get caller's user ID from AppPredictionSessionId" 2020-02-19 17:34:40 +00:00
Automerger Merge Worker
34aaecf48c Merge "Enable compat checking & lint for system_services api" am: b14743ce82
Change-Id: Idb23351d3c77400abeae0174b4f09b5b70afd3af
2020-02-19 17:30:50 +00:00
Automerger Merge Worker
3cf8f19dc4 Merge "Rename ro.device_owner system property" am: 075c6b9db7
Change-Id: Ib3c2ab64f7e6abad80eb6814cbd508bff6e76393
2020-02-19 17:30:07 +00:00
Automerger Merge Worker
e33a7cb5c3 Merge "Update javadoc of deprecated UICC APIs" am: e73b46c9d9
Change-Id: Ia4dc03b5a32d56f9df3ee146652a8901db5823c5
2020-02-19 17:29:37 +00:00
Anton Hansson
b14743ce82 Merge "Enable compat checking & lint for system_services api" 2020-02-19 17:23:08 +00:00
Lucas Dupin
d73410a021 Fix NSWC goingAway flag
The flag was not being set after dismissing the keyguard, now it's
updated right after the keyguard is gone.

I also used the opportunity to remove Dependency and fix a new
dump regression.

Test: atest NotificationShadeWindowControllerTest
Test: atest NewNotifPipelineBubbleControllerTest
Test: atest KeyguardViewMediatorTest
Test: unlock with PIN
test: unlock with fingerprint from LS and AOD
Fixes: 149402864
Change-Id: I279a2a92f19cfef48663fe364765e28ac248a303
2020-02-19 09:22:08 -08:00
Treehugger Robot
075c6b9db7 Merge "Rename ro.device_owner system property" 2020-02-19 17:12:43 +00:00
Rambo Wang
e73b46c9d9 Merge "Update javadoc of deprecated UICC APIs" 2020-02-19 17:10:20 +00:00
Anton Hansson
c4db73c4da Remove wifi aidl-exports from framework-aidl-export-defaults
Nothing should be depending on sources from the wifi module.

Bug: 149821758
Test: m
Change-Id: I4e7a0198003c8de29895b84ebdf07dae2109d472
2020-02-19 17:07:27 +00:00
Dieter Hsu
3ef9003e18 Merge "Refresh new extra data AccessibilityNodeInfo.ExtraRenderingInfo" 2020-02-19 17:05:34 +00:00
TreeHugger Robot
817596d92b Merge "Prevent mock location from leaking fudger offsets" 2020-02-19 16:43:16 +00:00
Automerger Merge Worker
d969d21482 Merge "Enable compat checking & lint for module_lib api" am: 0e9166f15b am: 5116697dce
Change-Id: Ic8849d4f51ef953475e5bbd8e1035248b5e87c86
2020-02-19 16:39:17 +00:00
Automerger Merge Worker
5116697dce Merge "Enable compat checking & lint for module_lib api" am: 0e9166f15b
Change-Id: Iba12d70334a211e03531af8537659c1322b2757e
2020-02-19 16:38:21 +00:00
Automerger Merge Worker
5882228ab8 Merge "Merge "Key revocation check is permissive when device is unlocked" am: a9384cdc9b am: 3f638d9a3f" into qt-qpr1-dev-plus-aosp 2020-02-19 16:38:16 +00:00
Automerger Merge Worker
f2086f7b18 Merge "Key revocation check is permissive when device is unlocked" am: a9384cdc9b am: 3f638d9a3f
Change-Id: If4279a3caa4b07109a5b68cd4e7272aa9dc08e2d
2020-02-19 16:38:11 +00:00
Automerger Merge Worker
27e9268447 Merge "Add vertical type check to prevent non-Automotive Androids from force displaying system bars." into qt-qpr1-dev am: 5a846ed237
Change-Id: Ib251aa6708e958e874a3bf5a5d888f738a5c42bb
2020-02-19 16:37:56 +00:00
Anton Hansson
305fb2fc1a Remove obsolete subdirs and optional_subdirs
I was looking for documentation of what these mean, but discovered
that these attributes have been obsolete for years.

Test: m
Change-Id: Ifcf47e99d22b1546780968d1030f835173612a27
2020-02-19 16:37:42 +00:00
Pavel Grafov
cd38eba7a6 Add COMP->COPE migration test into presubmit.
Bug: 149075700
Test: atest com.android.server.devicepolicy.DevicePolicyManagerServiceMigrationTest
Change-Id: I64473696e8e4c68afe49495aab4bded47f4d61fd
2020-02-19 16:33:41 +00:00
Winson
e075629d08 Remove AndroidPackageWrite
Moves all system state out of AndroidPackage and into
PackageStateUnserialized, which lives inside a PackageSetting.

This makes AndroidPackage effectively immutable after it exits
the scan/install process.

Specifically, moves isUpdatedSystemApp, isHiddenUntilInstalled,
seInfoOverride, cpuAbiOverride, PackageUsage,
and sharedLibraryFiles/Infos.

Bug: 135203078

Test: atest com.android.server.pm.parsing

Change-Id: I44baab113f3b6b138472b15a61e0874173bc694f
2020-02-19 08:33:12 -08:00
Artur Satayev
4ef7a1a594 Use argparse in merge_csv.py.
- Allow passing list of explicit fieldnames, instead of sorting header names.
- Allow passing a single zip file with all CSV files to merge.

Bug: 145132366
Test: diff -w out/soong/hiddenapi/hiddenapi-greylist.csv
Change-Id: I7c6db369069452293c15eec290c635fb3879275d
2020-02-19 16:33:10 +00:00
Martijn Coenen
a3a3c8168d Don't try to set quotas on sdcardfs.
sdcardfs takes care of quotas in a different way.

Bug: 146419093
Test: no attempts to set quota on devices without sdcardfs
Change-Id: I6a81bf008141cde5a53ee5a413993407a7771b45
2020-02-19 17:32:44 +01:00
Winson
f00c755a23 Migrate to new ParsedComponents and ParseResult
Removes the massive old ComponentParseUtils in favor of
the new split classes.

Cleans up the parsing code to be uniform, removing the
String[] outError pattern in favor of ParseInput.

Bug: 135203078

Test: atest com.android.server.pm

Change-Id: I584ed37d4715300453dbe760d45d1eb4759b3dd3
2020-02-19 08:31:48 -08:00