472371 Commits

Author SHA1 Message Date
Artur Satayev
ee6e043a0f Merge "Remove unsupportedappusage_index.csv from droidcore target." into rvc-dev 2020-03-24 22:33:49 +00:00
Jean-Michel Trivi
6abd17edc8 MediaCodec: LinearBlock API for optional crypto
Split setter for LinearBlock in QueueRequest between:
- setLinearBlock for unencrypted streams
- setEncryptedLinearBlock with non-null crypto info

Bug: 149487982
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Change-Id: I7d147b3963febeb431b268262343c782f2c1e3e9
2020-03-24 15:22:01 -07:00
TreeHugger Robot
d3a0b89571 Merge "Defer updating InsetsSource.mFrame while animating" into rvc-dev 2020-03-24 22:16:09 +00:00
Robert Snoeberger
5ff882e407 Unregister user listener when observers are inactive
Bug: 152340536
Test: atest KeyguardClockSwitchTest
Change-Id: I9a0cde64d5b9e94acd8c1b2bb0ac773fe82080b7
2020-03-24 18:13:35 -04:00
TreeHugger Robot
ae0bc25dbd Merge "Wrap around text so that it isn't cut off" into rvc-dev 2020-03-24 22:09:26 +00:00
TreeHugger Robot
c01b818bae Merge "Update documentation" into rvc-dev 2020-03-24 22:06:18 +00:00
Winson
ffba329f64 Assign missing stateful fields in PackageInfoUtils
These are fields that were moved from AndroidPackage into
PackageSetting and thus have to be assigned from that PackageSetting
whenever an ApplicationInfo object is generated.

Affected fields are seInfo, primaryCpuAbi, and secondaryCpuAbi.

Bug: 152339899

Test: manual adb shell am compat disable 143539591 com.example.app
    for test app and verify enable/disable

Change-Id: I0b135554de4420066dc74d0571416547f0557eef
2020-03-24 15:02:01 -07:00
TreeHugger Robot
7058816828 Merge "Set default rotation in StatusBarWindowView to -1" into rvc-dev 2020-03-24 22:00:33 +00:00
TreeHugger Robot
8e89087b95 Merge "Revert "Revert "package-manager: Add an observer to package manager on package change.""" into rvc-dev 2020-03-24 21:56:05 +00:00
Yan Wang
3f8e4fa5fd Revert "Revert "package-manager: Add an observer to package manager on package change.""
This reverts commit cd9997f3027dbee6f04c4322af1d0d376029e72e.

Reason for revert: This first reverting is because the CL has to be
submitted with ag/10523008, but they didn't even they had the same topic.
Revert the first reverting together with submitting ag/10523008.

Bug: 150742983

Change-Id: I6c8fb640d1334f2114d6d7b01a44be1a202f0bda
2020-03-24 21:55:43 +00:00
TreeHugger Robot
16732b1f18 Merge "Implement getParserNames" into rvc-dev 2020-03-24 21:51:24 +00:00
Ytai Ben-tsvi
bff8230a12 Merge "Fix bug in registering death listener" into rvc-dev 2020-03-24 21:49:37 +00:00
Robert Snoeberger
d71a77f2bb Don't crash if media metadata isn't available
Bug: 150454272
Test: manual - play music and look at lock screen
Change-Id: I5e776d8fc37c1f8894621be23a1ec99afa77bd11
2020-03-24 17:49:36 -04:00
Alex Buynytskyy
6b7efbc4b9 V4 uses V2 digest if V3 is not available.
Test: atest PackageManagerShellCommandIncrementalTest
Bug: b/151240006
Change-Id: I242b599e434880ce218537574e879e9436e5d3da
2020-03-24 14:34:52 -07:00
Igor Murashkin
d988f55a0a tests: Save contents of dumpsys iorapd to launch_logs directory.
Bug: 152322429
Test: am instrument
Change-Id: I15817b02c2180984f63eccfb0e27ac96860a979e
2020-03-24 14:34:07 -07:00
Ben Lin
13be2bc430 Merge changes I02f057bb,Ia640ead2 into rvc-dev
* changes:
  PIP resize: Set starting orientation correctly.
  Reset the scaling when finalizing resize.
2020-03-24 21:26:14 +00:00
Ned Burns
8b5493967f Fix overlogging of filter and section changes
The addition of a second round of filtering introduced a bug that would
cause the system to log false filter and section changes for all notifs
on every run of the pipeline.

Previously, we had logic like the following:
(assume that, in the previous run, entryA was filtered out by filter1
during the pre-finalized stage)

1. preGroupFilters run, nothing returns true. Set
entryA.mExcludingFilter to null. It changed! Log it.
2. preFinalizeFilters run, filter1 returns true. Set
entryA.mExcludingFilter to it. It changed! Log it.

NotifSections had a similar bug that would null out their assigned
section every time they were filtered out.

To solve this, we introduce an mPreviousExcludingFilter field on
NotificationEntry that will allow us to determine whether the filter
actually changed as compared to the previous run. We also move that
logging logic to the end of the pipeline.

To solve the sectioning issue, we just don't null out sections when the
entry is filtered out. Long-term, we should move to a system similar to
the one above, but that's more complicated.

Test: atest
Bug: 112656837
Change-Id: Ib78dbbb0346947210cc1b6b49547595895e9fce5
2020-03-24 17:20:10 -04:00
TreeHugger Robot
c26df535a2 Merge changes Iadd8aa60,I0896307f into rvc-dev
* changes:
  Use isLeafTask() to check whether to save state.
  Send notification when reusing a stack as a task.
2020-03-24 21:11:45 +00:00
Kweku Adams
ce3a57e8b5 Exclude flaky tests from presubmit.
There are two separate FlakyTest annotations. Only one of them was
initially excluded from presubmit runs, so tests annotated with the
second were still being run. Adding the second annotation to the list of
exclusions so that none of the flaky tests run during presubmit.

Bug: 150503078
Test: Navigate to directory and run `atest`
Change-Id: Id85a2181654bb4039e4ae0a13269cf1a160e43c0
2020-03-24 14:02:48 -07:00
TreeHugger Robot
da8101d270 Merge "Deprecate POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev 2020-03-24 20:56:25 +00:00
Christine Tsai
4aa7af0a8f Merge "(Part 3) Use new socket schema with statsd tests" into rvc-dev 2020-03-24 20:55:26 +00:00
Mady Mellor
53af63e0f1 Don't query for the bubble shortcut if it's already on the NotifRecord
Test: atest NotificationManagerTest
Fixes: 150226770
Change-Id: I9d3a4e368155ea7c8b5611e0d6a3d8b95470022f
2020-03-24 13:53:56 -07:00
Mady Mellor
774d5fe0cd Ensure that the shortcuts added to conversations are longlived
This was never being checked previously.

Bug: 149925743
Test: atest NotificationManagerServiceTest
Change-Id: I54151d9018a768b8bbc57771ba315bf5d4be2496
2020-03-24 13:53:44 -07:00
TreeHugger Robot
294823f0cb Merge "Controls Ui - More string adjustments" into rvc-dev 2020-03-24 20:45:29 +00:00
Lyn Han
4dccbc62f8 Overflow bubble labels
Fixes: 148878643
Test: manual - labels show up for test bubbles and chatheads; backup app
names are as expected

Change-Id: Ib53325f81c60b016e544b016b4dfbf9582a60231
2020-03-24 13:45:02 -07:00
Mathieu Chartier
7e85cd6151 Merge "Reboot device after test for cleanup" into rvc-dev 2020-03-24 20:43:18 +00:00
Mike Ma
06b3aaee39 Merge "Optimize memory usage in incidentd" into rvc-dev 2020-03-24 20:27:41 +00:00
Jorim Jaggi
2751c29414 Defer updating InsetsSource.mFrame while animating
...otherwise developer will get onApplyWindowInsets which don't
match end value of animation. Super confusing

Test: InsetsControllerTest
Bug: 152071027
Change-Id: Ic1819512a5ce78843433bf7c231d062e12de0e7b
2020-03-24 21:25:46 +01:00
Bernardo Rufino
c797aac41e Gate toast block and remove warning
Gate background custom toast block on targetSdk for beta 1, after
having gathered dogfood feedback. So, enabling the change for apps with
targetSdk > Q (>= R). Also removed warning toast.

Added tests in topic CL to cover all the cases.

Bug: 144152069
Test: atest android.widget.cts29.ToastTest android.widget.cts.ToastTest
Change-Id: If368a97a2a8ff56770635615f89c79007bb27075
2020-03-24 20:22:18 +00:00
TreeHugger Robot
7af1f72f14 [automerger skipped] Merge "DO NOT MERGE: Add blacklist for camera protection" into qt-qpr1-dev am: d28b13cb43 -s ours
am skip reason: subject contains skip directive

Change-Id: I2acfcb04c4811374584fbbbcdd2366ece921871c
2020-03-24 20:21:52 +00:00
Robert Snoeberger
5430412662 Wrap around text so that it isn't cut off
Fixes: 152329810
Test: manual - font to largest, play media and look at QS media controls
Change-Id: I096bf3a85c39279c5015d78b23b4090a92018d7c
2020-03-24 16:20:22 -04:00
Dave Mankoff
c46982833c Cache icon drawables.
There's only a few of these. They currently get reloaded every time
the view changes states. This loading also happens in an on-predraw
listener. Cache them instead.

Fixes: 145666518
Test: atest SystemUITests
Change-Id: I5727459d395f1e347db42d91b313913c079ff3be
2020-03-24 16:19:43 -04:00
Dave Mankoff
27bb209292 Remove injection from LockIcon.
This moves the final remaining pieces into
LockscreenIconController.

Test: manual
Fixes: 150393918
Change-Id: I6ce57905bdfcf832b92d5f2e4ce46054ff067851
2020-03-24 16:18:50 -04:00
Nate Myren
5757effce1 Enable receiver for update user sensitive
Enable the package broadcast receiver which will update on package
change

Test: Install an app with permissions, go to permission manager, ensure
app is not in the "System Apps" section.
Fixes: 141311767

Change-Id: I054557b67b894afdee91d5779c7cc4af9d530a33
2020-03-24 13:10:45 -07:00
TreeHugger Robot
8ac8b257f1 Merge "Clarify Toast.Callback javadoc" into rvc-dev 2020-03-24 20:05:26 +00:00
TreeHugger Robot
d28b13cb43 Merge "DO NOT MERGE: Add blacklist for camera protection" into qt-qpr1-dev 2020-03-24 20:03:26 +00:00
Anton Hansson
2df1bcef6b Make framework-permission stubs use the new defaults
Makes it convenient to change all stubs from a central place.

Bug: 149293194
Test: m framework-permission-stubs{public,system,module_libs_}api
Change-Id: I8c12cf5c30833211eee3191765e635c5a9921a2b
2020-03-24 19:56:43 +00:00
Anton Hansson
c868e77153 Make framework-tethering stubs use the new defaults
Makes it convenient to change all stubs from a central place.

Bug: 149293194
Test: m framework-tethering-stubs{public,system,module_libs_}api
Change-Id: I330133824e78b3a8927e3d3ffbbd729bcdcb8822
2020-03-24 19:52:44 +00:00
Anton Hansson
2cc2287318 Make framework-sdkextensions stubs use the new defaults
Makes it convenient to change all stubs from a central place.

Bug: 149293194
Test: m framework-sdkextensions-stubs{public,system,module_libs_}api
Change-Id: I955ed9b61985f84a7a3a2d18127ddf0e00a73630
2020-03-24 19:51:54 +00:00
Yuhan Zhao
6dc855e10b Merge "Fixing the bug where secondary lockscreen intent is sent to the admin receiver but no the service." into rvc-dev 2020-03-24 19:51:12 +00:00
Anton Hansson
013dc72801 Make framework-wifi stubs use the new defaults
Makes it convenient to change all stubs from a central place.

Bug: 149293194
Test: m framework-wifi-stubs{public,system,module_libs_}api
Change-Id: Ie857558b507c90dd46a7777c82f14d7d45422222
2020-03-24 19:50:06 +00:00
Mady Mellor
ef7b53424b Merge "Bubbles Policy: remove phonecalls" into rvc-dev 2020-03-24 19:49:27 +00:00
Jeffrey Huang
8a617e0024 Add StatsMetadataList proto
Bug: 148280505
Test: m -j
Change-Id: I84da0cd9c79dc1073c40a439fe2acff2e3fbc7ec
2020-03-24 12:46:14 -07:00
Anton Hansson
94e234147b Make framework-media stubs use the new defaults
Makes it convenient to change all stubs from a central place.

Bug: 149293194
Test: m framework-media-stubs{public,system,module_libs_}api
Change-Id: Ic4f7340090e8daf6cc77350f1f711467da5a7502
2020-03-24 19:45:41 +00:00
Julia Reynolds
460292f789 Update documentation
Test: make
Fixes: 152262228
Change-Id: I66eca44b649e209ea7adc39e38c24d21e564fe8d
2020-03-24 15:44:25 -04:00
Anton Hansson
4bb837b058 Make framework-statsd stubs use the new defaults
Makes it convenient to change all stubs from a central place.
Also remove the framework-statsd-defaults that were only used
in a single place.

Bug: 149293194
Test: m framework-statsd-stubs{public,system,module_libs_}api
Change-Id: Ib2e01cddfaceb7f24fd2e60c3a365a79a035bcae
2020-03-24 19:42:36 +00:00
Anton Hansson
b470bf3434 Add defaults for framework stub libs
Useful to be able to change settings for all stub libs at
the same time. For example, disting these libraries will be
done soon.

Bug: 149293194
Test: followup CLs
Change-Id: I4dda5b44b6d4e76018acb50f46d05816cc4c7f0b
2020-03-24 19:40:38 +00:00
Ytai Ben-Tsvi
f0220201e7 Fix bug in registering death listener
Bug: 151190218
Test: Manual verification of AGSA/Now Playing
Change-Id: Icffc91debb3ba692ae455e402b7ee2c4c2568f35
2020-03-24 12:28:01 -07:00
David Su
9c493f4722 Merge "frameworks/base/wifi/tests: Run mts-wifi on AOSP builds" into rvc-dev 2020-03-24 19:14:07 +00:00
TreeHugger Robot
cbe9c27876 Merge "Remove unnecessary +1ms to quota window calculation." into rvc-dev 2020-03-24 18:58:42 +00:00