Commit Graph

480324 Commits

Author SHA1 Message Date
Louis Chang
6e97b1fd8a Merge "Reset Divider#mMinimized when dismiss split" into rvc-dev am: 9e747a5508
Change-Id: I2d453ce0f19edd5a50ab154256e8c0a09d6e94b2
2020-05-05 08:16:11 +00:00
Louis Chang
9e747a5508 Merge "Reset Divider#mMinimized when dismiss split" into rvc-dev 2020-05-05 07:34:47 +00:00
Song Hu
bd9c30505e Merge "Changes in PeopleService to supprot ChooserTarget ranking. 1. Pass app share score from PeopleService to Aosp. 2. Skip storing ChooserTargets sharing event in PeopleService. 3. Adjust frequest used app promo decay." into rvc-dev am: c0128fa07d
Change-Id: Ic34db8b8900b3677dfa85a9e7a96ac9362442f56
2020-05-05 07:21:44 +00:00
TreeHugger Robot
3b546378c9 Merge "Import translations. DO NOT MERGE" into rvc-d1-dev 2020-05-05 07:09:31 +00:00
Song Hu
c0128fa07d Merge "Changes in PeopleService to supprot ChooserTarget ranking. 1. Pass app share score from PeopleService to Aosp. 2. Skip storing ChooserTargets sharing event in PeopleService. 3. Adjust frequest used app promo decay." into rvc-dev 2020-05-05 07:08:26 +00:00
Bill Yi
ce5c7ea41b [automerger skipped] Import translations. DO NOT MERGE am: 30af5fb761 -s ours am: 4650ba0950 -s ours
am skip reason: subject contains skip directive

Change-Id: I0c8df87c1302a759a60ff4057216725914f337a3
2020-05-05 07:00:14 +00:00
Bill Yi
4650ba0950 [automerger skipped] Import translations. DO NOT MERGE am: 30af5fb761 -s ours
am skip reason: subject contains skip directive

Change-Id: I58831cfec6d8dcb1c84c03c87cedd932e8abe75b
2020-05-05 06:40:49 +00:00
TreeHugger Robot
f64e914b73 [automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-dev am: d8a206fbfa -s ours
am skip reason: subject contains skip directive

Change-Id: I2a76e0e5b1fb2ff8df0c721c6b699aeff9c147f7
2020-05-05 06:07:50 +00:00
TreeHugger Robot
d8a206fbfa Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-05 05:45:51 +00:00
Phil Burk
2920bfa09e Merge "Bluetooth MIDI test: flush packets" into rvc-dev am: 4b2063c9d6
Change-Id: Id0394b5a504d49f3f0e61ccab0bc139a352bf57d
2020-05-05 05:32:23 +00:00
Phil Burk
4b2063c9d6 Merge "Bluetooth MIDI test: flush packets" into rvc-dev 2020-05-05 05:27:19 +00:00
Alex Buynytskyy
f488b8f80d Merge "Additional lock to avoid access to deleted object." into rvc-dev am: 28d1236852
Change-Id: I0e246ee3a2ce4ceaaf04f227977e5ce7fdef8005
2020-05-05 05:24:43 +00:00
Bill Yi
30af5fb761 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I8505927a8f24ac4aa482bf406abd44e70874efc5
2020-05-04 22:18:58 -07:00
Alex Buynytskyy
28d1236852 Merge "Additional lock to avoid access to deleted object." into rvc-dev 2020-05-05 05:12:02 +00:00
Bill Yi
0bbaa6fce4 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I04fd01e6747a68a4aaf937ab7c3ab4f42a3da827
2020-05-04 21:52:20 -07:00
Winson Chung
b839c6c65c Merge "Ensure that we update the next dark intensity when restoring the state" into rvc-dev am: c6025a7fbd
Change-Id: Idedb734782fde3af1a17c88989ae935f3680a57b
2020-05-05 04:52:05 +00:00
Winson Chung
c6025a7fbd Merge "Ensure that we update the next dark intensity when restoring the state" into rvc-dev 2020-05-05 04:37:13 +00:00
Bill Yi
ec80ca682a Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ib782c35d049cbea3ac47deb8ef27e307f8805e40
2020-05-04 21:18:47 -07:00
Junyu Lai
c1b01dbd24 Merge "[SM17] Remove ratType field in MobileBytesTransfer(ByFgBg)" into rvc-dev am: 73d7775f76
Change-Id: I73a991bc0e206b98d46dbb6b4aa4e58c39317317
2020-05-05 03:30:28 +00:00
Junyu Lai
73d7775f76 Merge "[SM17] Remove ratType field in MobileBytesTransfer(ByFgBg)" into rvc-dev 2020-05-05 03:06:49 +00:00
Alex Buynytskyy
b0ea448eeb Additional lock to avoid access to deleted object.
Bug: b/155692497
Fixes: 155692497
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: Ie02012bd5a6c0640d54c5390d3726a5405042408
2020-05-04 18:41:47 -07:00
Jing Ji
e2c14e4354 Merge "Support to pull aggregated procstats associations" into rvc-dev am: e9fbacf6c5
Change-Id: Iff701078f6235afe86da739d68aa3ca49e82eb16
2020-05-05 01:11:18 +00:00
Jing Ji
e9fbacf6c5 Merge "Support to pull aggregated procstats associations" into rvc-dev 2020-05-05 01:05:47 +00:00
Adam Bookatz
2d3310ec59 Merge "Listener to watch op starts" into rvc-dev am: 316bc6ff66
Change-Id: Iccb919632e7537e226f43e42cf5f44e5411b61dc
2020-05-05 01:05:02 +00:00
Adam Bookatz
316bc6ff66 Merge "Listener to watch op starts" into rvc-dev 2020-05-05 00:52:12 +00:00
Yuncheol Heo
8752446dab Merge changes from topic "immersive" into rvc-dev am: 8f4363a226
Change-Id: I1ebd2f8cb9a373931836f2b003baca53f4798a8e
2020-05-05 00:28:31 +00:00
Yuncheol Heo
8f4363a226 Merge changes from topic "immersive" into rvc-dev
* changes:
  Add test api getStatus/NavigationBarBackgroundView.
  Notify the visibility change to update color views without control.
2020-05-05 00:14:09 +00:00
Phil Burk
f765984c69 Bluetooth MIDI test: flush packets
The simulation of the device timing was not very accurate.
That caused two encoder tests to fail:
testTwoNoteOnsTwoChannels and testTwoNoteOnsSameChannel.

This patch simulates a delayed completion
and is more accurate.

Bug: 35669198
Test: atest BluetoothMidiTests

Change-Id: I8d04900a792ffc29928ed0e358536f8d961bcb77
2020-05-04 23:54:25 +00:00
Hai Zhang
3915f82117 Merge "Reset mode for app op permission when app no longer requests it." into rvc-dev am: 9ddbdbf2b5
Change-Id: Iddffd5155b88332ac0d36ba171a5de1ab2043943
2020-05-04 23:39:01 +00:00
Joseph Pirozzo
e3d05e322e Merge "EmbeddedKitchenSinkApp BLUETOOTH_PRIVILEGED" into rvc-dev am: 928d88431a
Change-Id: Ic993b4665d910a921783ae2957cc8e36a2cbaaf6
2020-05-04 23:38:17 +00:00
Hai Zhang
9ddbdbf2b5 Merge "Reset mode for app op permission when app no longer requests it." into rvc-dev 2020-05-04 23:33:48 +00:00
Joseph Pirozzo
928d88431a Merge "EmbeddedKitchenSinkApp BLUETOOTH_PRIVILEGED" into rvc-dev 2020-05-04 23:30:55 +00:00
Jeff Sharkey
a182ebd85f Merge "Add custom Error Prone check for SDK comparisons." into rvc-dev am: 559130df3f
Change-Id: Iee4382de5aa1c27010427b9af68550b0ff8120ca
2020-05-04 23:29:43 +00:00
Jeff Sharkey
559130df3f Merge "Add custom Error Prone check for SDK comparisons." into rvc-dev 2020-05-04 23:10:06 +00:00
Jeff Sharkey
4d1d7b56cd Add custom Error Prone check for SDK comparisons.
Over the years we've had several obscure bugs related to how SDK level
comparisons are performed, specifically during the window of time
where we've started distributing the "frankenbuild" to developers.

Consider the case where a framework developer shipping release "R"
wants to only grant a specific behavior to modern apps; they could
write this in two different ways:

1. if (targetSdkVersion > Build.VERSION_CODES.Q) {
2. if (targetSdkVersion >= Build.VERSION_CODES.R) {

The safer of these two options is (2), which will ensure that
developers only get the behavior when *both* the app and the
platform concur on the specific SDK level having shipped.

Consider the breakage that would happen with option (1) if we
started shipping APKs that are based on the final R SDK, but are
then installed on earlier preview releases which still consider R
to be CUR_DEVELOPMENT; they'd risk crashing due to behaviors that
were never part of the official R SDK.

Bug: 64412239
Test: ./build/soong/soong_ui.bash --make-mode services RUN_ERROR_PRONE=true
Exempt-From-Owner-Approval: trivial blueprint changes
Change-Id: Ia20181f8602451ac9a719ea488d148e160708592
2020-05-04 23:09:48 +00:00
Song Hu
7e134c22eb Changes in PeopleService to supprot ChooserTarget ranking.
1. Pass app share score from PeopleService to Aosp.
2. Skip storing ChooserTargets sharing event in PeopleService.
3. Adjust frequest used app promo decay.

Bug: 151112858
Test: atest com.android.server.people.prediction.ShareTargetPredictorTest
Test: atest com.android.server.people.prediction.SharesheetModelScorerTest
Change-Id: If27d0c914b9f156403950e7ea601b4a7ad35b27f
2020-05-04 15:58:26 -07:00
Siarhei Vishniakou
7c7b26933a Merge "Add layout for xbox 360 wireless controller" into rvc-dev am: 0a19f87982
Change-Id: If60afe7042832a6eb67ac76c838bef5e53bd0169
2020-05-04 22:31:52 +00:00
Siarhei Vishniakou
0a19f87982 Merge "Add layout for xbox 360 wireless controller" into rvc-dev 2020-05-04 22:13:49 +00:00
Winson Chung
2d42824e14 Ensure that we update the next dark intensity when restoring the state
- animateIconTint() will check against mNextDarkIntensity before doing
  any animation

Bug: 155490130
Test: Change dark mode a ensure the nav bar updates

Change-Id: I51d151e7c0bd0b70a3df3cc8fcf4d2820909669e
2020-05-04 15:00:40 -07:00
Adam Bookatz
182862e595 Listener to watch op starts
Currently, there is
onOpNoted - tells listeners that noteOp has occurred
onOpActiveChanged - tells listeners that an op's 'active' state has
changed, i.e. that a successfull startOp or stopOp has happened

There was, however, no way of telling a listener that a startOp has
happened (regardless of whether it was successful). This cl introduces
it, via a OnOpStartedListener.

This is required by the ForegroundServiceAppOpSessionEnded atom,
which counts the number of accepted vs. rejected attempts, and
therefore also needs to know when a rejected start happened.

This cl also contains some cosmetic moving of code so that
startOperation() and noteOperationImpl() are almost
exactly parallel.

* Also *
This cl fixes a bug I discovered in stopWatchingNoted, in which
the callback wasn't fully removed. Consequently, if a callback
was unregistered and then re-registered, the re-registration would
mistakingly be ignored (in direct contradiction to the javadoc).

Test: atest UidAtomTests#testForegroundServiceAccessAppOp
Test: atest AppOpsStartedWatcherTest AppOpsActiveWatcherTest AppOpsNotedWatcherTest
Test: manually monitor: adb shell cmd stats print-logs && adb logcat -v uid -s statsd | grep "statsd  : {" | egrep '\(256\)'
Bug: 152800926
Change-Id: Icdb9edf6b2b7c5807b339c1aabb32e882190b071
2020-05-04 21:59:29 +00:00
Yuncheol Heo
70c4bb9007 Add test api getStatus/NavigationBarBackgroundView.
Introduces new test api to access the background view of status bar and
navigation bar.

Bug: 154720832
Test: atest WindowInsetsPolicyTest

Change-Id: If38d3f57edfbb2631d4c1e47ed5347a332edacfb
2020-05-04 14:36:43 -07:00
Yuncheol Heo
02d3a8ad07 Notify the visibility change to update color views without control.
Previously, we've notified it only when we have the control.
But to update color views, we should notify it even when we have no control.

Bug: 154720832
Test: atest WindowInsetsPolicyTest
Test: make sure no regression on b/150195782, b/151425506
Change-Id: I44b88ddc206f36d8ef11dae9c1477739a185ff21
2020-05-04 14:36:28 -07:00
Jing Ji
060d68630d Support to pull aggregated procstats associations
Bug: 145203981
Test: b/152397079#comment12
Test: atest CtsStatsdHostTestCases
Change-Id: If5b9723a41a9d2eefc2cb132b3a3bf16f57872e9
2020-05-04 14:33:06 -07:00
Jorim Jaggi
b4410c5e01 Merge "Restore force relayout logic for apps targeting < R" into rvc-dev am: 98f012c304
Change-Id: I53617d5f35e00cf69dd4e22cb8f5477cbe448ca1
2020-05-04 20:49:37 +00:00
Joseph Pirozzo
5212738a84 EmbeddedKitchenSinkApp BLUETOOTH_PRIVILEGED
Grant BLUETOOTH_PRIVILEGED permission to test app for Bluetooth testing.

Bug: 155672526
Test: In Kitchen Sink, connect on MAP profile.
Change-Id: I736f5a46e2f198947d7077a5542cf986aea7355c
2020-05-04 13:46:51 -07:00
Jorim Jaggi
98f012c304 Merge "Restore force relayout logic for apps targeting < R" into rvc-dev 2020-05-04 20:44:08 +00:00
Feng Cao
3767c8db8c Merge "Make autofill requested by augmented autofill service non-manual" into rvc-dev am: 98367aef11
Change-Id: I6b08fe0719dd6436f03a3443b8c98c1d9635bfeb
2020-05-04 20:35:00 +00:00
Evan Laird
a096580c95 Merge "Use status_bar_padding_top for status bar elements" into rvc-dev am: cd0281ea95
Change-Id: Ia208ce9381ee7bf3dc2f1f45bdc58498b087e840
2020-05-04 20:34:23 +00:00
Feng Cao
98367aef11 Merge "Make autofill requested by augmented autofill service non-manual" into rvc-dev 2020-05-04 20:30:01 +00:00
Evan Laird
cd0281ea95 Merge "Use status_bar_padding_top for status bar elements" into rvc-dev 2020-05-04 20:23:02 +00:00