Commit Graph

496401 Commits

Author SHA1 Message Date
Bill Yi
9fb898e15b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I19ec607aea18666102620348ac4919dd3b6ae0be
2020-10-30 03:43:40 -07:00
TreeHugger Robot
06c050caf2 Merge "Reland "Distinguish warm/hot launch by whether the activity has attached process"" into rvc-qpr-dev 2020-10-28 05:28:43 +00:00
Agatha Man
1ca2a4b1bb Merge "Remove accidentally added diff file" into rvc-qpr-dev 2020-10-27 20:15:41 +00:00
TreeHugger Robot
4d94bc86f8 Merge "Release ICloseHandle instance after announcement listener is unregistered" into rvc-qpr-dev 2020-10-27 14:24:42 +00:00
Riddle Hsu
e87e763d2f Reland "Distinguish warm/hot launch by whether the activity has attached process"
If the process of an activity was died in background, its activity and
task record will still be in history stack. If the process is started
again in background such as receiving broadcast. Then the launch of the
same activity will have the conditions: process exists and the result
code is START_TASK_TO_FRONT. But the activity still need to create so
it should be warm launch.

This reverts commit 3a1f6225c2.
Reason for revert: remove redundant "notifyWindowsDrawn(mTopActivity)"
in test case that was missed when resolving conflict.

Bug: 171549711
Test: ActivityMetricsLaunchObserverTests#testOnActivityLaunchFinished
Change-Id: I43625184392c22e6769a147beda4817f70afcf9a
Merged-In: I2b8e45ddfd76ce4fb0fdb0c244a8f4170fbabd21
2020-10-27 05:46:10 +00:00
TreeHugger Robot
d410132104 Merge "Revert "Distinguish warm/hot launch by whether the activity has attached process"" into rvc-qpr-dev 2020-10-27 02:03:19 +00:00
Shubang Lu
3a1f6225c2 Revert "Distinguish warm/hot launch by whether the activity has attached process"
This reverts commit 20efc15caa.

Reason for revert: Droidcop: Potential culprit for Bug b/171719665 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Merged-In: I18e2f1a5eaf1e07b96d6135be56f8077d37b7504
Change-Id: I46d622d34a984bf40fe9cbb4a6454e41861d8027
2020-10-26 22:32:54 +00:00
Riddle Hsu
2ef418cd37 Merge "Distinguish warm/hot launch by whether the activity has attached process" into rvc-qpr-dev 2020-10-26 12:57:50 +00:00
Riddle Hsu
20efc15caa Distinguish warm/hot launch by whether the activity has attached process
If the process of an activity was died in background, its activity and
task record will still be in history stack. If the process is started
again in background such as receiving broadcast. Then the launch of the
same activity will have the conditions: process exists and the result
code is START_TASK_TO_FRONT. But the activity still need to create so
it should be warm launch.

Fixes: 171549711
Test: ActivityMetricsLaunchObserverTests#testOnActivityLaunchFinished
Change-Id: Iaf53ab8a35192249c20a73d9cb0de2a5e8effc64
Merged-In: Iaf53ab8a35192249c20a73d9cb0de2a5e8effc64
(cherry picked from commit 2e039cd3bc)
2020-10-26 09:59:59 +00:00
Bill Yi
ef2b59b1df Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id20257275834977c63dfae80c7adabc97d86014b
2020-10-25 11:50:10 -07:00
TreeHugger Robot
f376b8bed7 Merge "initialized carrier_certificate_string_array to an empty array instead of null, so that when a certificate is removed, it is also removed in SubscriptionInfoUpdater#updateSubscriptionByCarrierConfig" into rvc-qpr-dev 2020-10-23 20:39:57 +00:00
Kamaljeet Maini
bfebf1bdac Release ICloseHandle instance after announcement listener is unregistered
Bug: b/170770415
Test: Presubmit
Change-Id: I3974fa2fd38717882758321c8abea98c993f990c
2020-10-23 04:28:10 +00:00
Amit Mahajan
ce7806da32 Merge "Mark deleteMessageFromIcc() as @UnsupportedAppUsage." into rvc-qpr-dev 2020-10-23 01:01:01 +00:00
Nazanin
0c3a6b7ce9 initialized carrier_certificate_string_array to an empty array
instead of null, so that when a certificate is removed, it is also
removed in SubscriptionInfoUpdater#updateSubscriptionByCarrierConfig

Bug: 162700101
Test: manual
Change-Id: I921007498f42119581f565fcc6625c1275c59df8
Merged-In: I921007498f42119581f565fcc6625c1275c59df8
2020-10-22 21:37:47 +00:00
Kevin Hufnagle
85cb19429e Merge "docs: Use correct profile for intent" into rvc-dev am: b7eef50878 am: dc4f87a3ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12879988

Change-Id: Iabde9e51dcf46813a817f0be6d7cb1d5eb9a3915
2020-10-22 08:56:38 +00:00
Kevin Hufnagle
dc4f87a3ad Merge "docs: Use correct profile for intent" into rvc-dev am: b7eef50878
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12879988

Change-Id: Ide455cf4bb570511c6f285738747c21b8cf9eca4
2020-10-22 07:26:52 +00:00
Kevin Hufnagle
b7eef50878 Merge "docs: Use correct profile for intent" into rvc-dev 2020-10-22 01:25:23 +00:00
TreeHugger Robot
acbd8af804 Merge "Ignore non test package events for AppStandbyControllerTests" into rvc-dev am: 2ac647d545 am: 0de0eb9a4c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12788106

Change-Id: Ia6b44bf57525678761b3a4496e3931375e44c880
2020-10-22 00:58:22 +00:00
TreeHugger Robot
0de0eb9a4c Merge "Ignore non test package events for AppStandbyControllerTests" into rvc-dev am: 2ac647d545
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12788106

Change-Id: Ibff6f5c2fd338ce6ca2073fe319dbf701b0f7596
2020-10-22 00:29:01 +00:00
TreeHugger Robot
70a9269192 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-10-21 23:03:23 +00:00
TreeHugger Robot
2ac647d545 Merge "Ignore non test package events for AppStandbyControllerTests" into rvc-dev 2020-10-21 22:45:05 +00:00
Bill Yi
7d8efd3e22 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I36af2f3da525e2df15d37dd316b222381e40dfe4
2020-10-21 13:42:55 -07:00
Amit Mahajan
1530a593ea Mark deleteMessageFromIcc() as @UnsupportedAppUsage.
The API was exposed in ag/9766884 but reverted in ag/10665971. However
with the revert the annotation was not added back.

Test: TH
Bug: 159022482
Change-Id: Ia7d200bfd4d4565971701048b1c469a6633edeb4
2020-10-21 12:32:59 -07:00
Joshua Mccloskey
55b11b16c1 Merge "Update require attention in stats pull service" into rvc-qpr-dev 2020-10-21 17:23:21 +00:00
Joshua Mccloskey
9d0d38228c Merge "Change default value for face metrics" into rvc-qpr-dev 2020-10-21 17:23:21 +00:00
Beth Thibodeau
8c85832c91 Handle possible null PlaybackState
Fixes: 170706598
Test: atest SeekBarViewModelTest
Change-Id: I78428dd2d48658878957a7b58948a73d3f6bfaad
(cherry picked from commit f06e4ffffe)
2020-10-21 15:12:31 +00:00
joshmccloskey
3d1ca9464e Update require attention in stats pull service
Bug: 171225367
Test: Verified setting was correctly updated with value from hal.
1. Flash device to QD1A
2. Observe default setting is reported
3. Flash to build including this change
4. Verify that setting gets updated after two pulls to getFeature using
adb shell cmd stats pull-source 10058

Change-Id: Ifa64ea7e08c04b4674b3fd961d2ec11033c0b687
Merged-In: I0187e27b641edf0836fa187530cb2a193082fe5d
2020-10-20 12:36:33 -07:00
TreeHugger Robot
7ce178e6cb Merge "Call DecorView.drawableChanged() in PhoneWindow.setBackgroungDrawable" into rvc-qpr-dev 2020-10-20 17:24:35 +00:00
joshmccloskey
a095aad653 Change default value for face metrics
Test: adb shell cmd stats pull-source 10058
Bug: 163830899
Change-Id: I97cf06969bdfeb45aa3d0d8c0449a3f4b72fc32f
(cherry picked from commit afbf21fda4)
Merged-In: I97cf06969bdfeb45aa3d0d8c0449a3f4b72fc32f
2020-10-20 03:21:26 +00:00
Kevin Hufnagle
fcd519fde9 docs: Use correct profile for intent
The ACTION_AUDIO_STATE_CHANGED intent action uses the HDP profile,
not the A2DP profile.

Bug: 158742305
Test: m ds-docs-java
Exempt-From-Owner-Approval: Docs-only change
Change-Id: I4358aac8c8aa9fc8b36e517e568e5a9db538555e
2020-10-19 21:08:17 -04:00
Jeff DeCew
d4659de45d Merge changes from topic "media_delete_intent_rvc_qpr2" into rvc-qpr-dev
* changes:
  Notifications starting paused shall still be subject to timeout.
  Disable player's "Dismiss" button when notification is not dismissible.
  Media player attempts to dismiss notifications when players removed.
2020-10-19 20:58:00 +00:00
Heemin Seog
f068a1c665 Merge "Allow permission to change application state" into rvc-qpr-dev 2020-10-19 15:21:13 +00:00
Heemin Seog
52537c1ea2 Allow permission to change application state
Needed to give KitchenSink control over enabling/disabling rotary
functionality.

Bug: 170232080
Test: manual
Change-Id: Ic69222642884444597e7411b17b6c6f363076981
2020-10-16 16:16:56 -07:00
TreeHugger Robot
66631d0aa6 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-10-16 20:12:38 +00:00
TreeHugger Robot
0e0b74cf63 Merge "[RESTRICT AUTOMERGE] Revert "[RESTRICT AUTOMERGE] Revert "Require permission to create trusted displays""" into rvc-dev am: 8b1151e4d5 am: 2f7396440e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12816011

Change-Id: I8e88f139b57b36e22ec5c2ce6b7961318dea91cd
2020-10-16 18:56:24 +00:00
Charles Chen
2fb8485fbb [RESTRICT AUTOMERGE] Revert "[RESTRICT AUTOMERGE] Revert "Require permission to create trusted displays"" am: c947b10f99 am: 1e0cf0c900
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12816011

Change-Id: I40987bec1e53324e4036ffe4325c6dc8328c29da
2020-10-16 18:56:16 +00:00
TreeHugger Robot
2f7396440e Merge "[RESTRICT AUTOMERGE] Revert "[RESTRICT AUTOMERGE] Revert "Require permission to create trusted displays""" into rvc-dev am: 8b1151e4d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12816011

Change-Id: I62ab0fec9de1f33a0f53b3dec2e99063bda74151
2020-10-16 18:39:04 +00:00
Charles Chen
1e0cf0c900 [RESTRICT AUTOMERGE] Revert "[RESTRICT AUTOMERGE] Revert "Require permission to create trusted displays"" am: c947b10f99
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12816011

Change-Id: I174d70795eae849ca346fb79528e418a5003f76a
2020-10-16 18:39:01 +00:00
Anton Hansson
df2baa74e1 Make framework-res dep in stubs explicit am: 47994f3743 am: dda67dc7d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12846973

Change-Id: Ided9c95c11b20fd2abe2915d1612f41da0408e95
2020-10-16 18:31:34 +00:00
TreeHugger Robot
8b1151e4d5 Merge "[RESTRICT AUTOMERGE] Revert "[RESTRICT AUTOMERGE] Revert "Require permission to create trusted displays""" into rvc-dev 2020-10-16 18:26:02 +00:00
Anton Hansson
dda67dc7d9 Make framework-res dep in stubs explicit am: 47994f3743
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12846973

Change-Id: Iedb63fd425565b3ffd8129ff92f79415b68f7ce6
2020-10-16 17:53:31 +00:00
Bill Yi
158f5dd7f0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I29969d431759d25dded634d41268c3c138759f2e
2020-10-16 15:58:31 +00:00
Beverly
9dc721018f Update ranking for uninflated updated notifs
Also updates notif pipeline filter name:
  IsDozingFilter => DndSuppressVisualEffectsFilter.

Fixes: 170386608
Test: atest NotificationEntryManagerTest
Test: manual
  1. Turn on DND with visual effects not allowed and all messages
  allowed to bypass
  2. In a test app post two notifications after one another (one
  w/o messaging style, another with messaging style)
  Observe: HUN, as expected
Change-Id: Ife8c1b52415cd749fecdbdc59fa5b3773b543acf
Merged-In: Ife8c1b52415cd749fecdbdc59fa5b3773b543acf
2020-10-16 14:07:12 +00:00
Anton Hansson
47994f3743 Make framework-res dep in stubs explicit
The android.jar stubs includes the resource from framework-res. This
dependency was previously added implicitly inside the build system, but
using a java_genrule we can add it directly, which makes it easier to
make changes to this rule.

This change has the side-effect of adding the resources to some stubs
that did not previously include the resources (e.g. module-libs), which
I think is desired.

Bug: 161214753
Test: build sdk, diff out/dist before and after (shows resources added
      to some stubs)
Change-Id: I1829789af207cc45c49c0c68369fc7c0c085bcb0
Merged-In: I1829789af207cc45c49c0c68369fc7c0c085bcb0
2020-10-15 15:18:46 +00:00
Riddle Hsu
11dc178ebd Merge "Ignore orientation from invisible non-activity window" into rvc-qpr-dev 2020-10-15 07:20:42 +00:00
Riddle Hsu
762f34000c Ignore orientation from invisible non-activity window
This restores the orientation condition as in Q. Otherwise the
display orientation may still be controlled by an invisible
overlay window (e.g. its root view has set View.GONE) .

Bug: 169468732
Test: DisplayAreaTest#testGetOrientation
Change-Id: I517be9fb135eeb69722054e6191ef500f2f47da9
Merged-In: I517be9fb135eeb69722054e6191ef500f2f47da9
(cherry picked from commit 4136db2646)
2020-10-15 05:32:35 +00:00
Mark Goldstein
7887b8160b Doc: Fix typo the right way. Supersedes cl/318172931 am: d5726423ca am: 0e59503e96
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12828332

Change-Id: I2cd5851caad56c0922ec0a1c122207ae5baa7409
2020-10-14 22:00:31 +00:00
Mark Goldstein
0e59503e96 Doc: Fix typo the right way. Supersedes cl/318172931 am: d5726423ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12828332

Change-Id: Idfff776666d9175a45cea54996d61919f7df3057
2020-10-14 21:41:47 +00:00
Mark Goldstein
d5726423ca Doc: Fix typo the right way. Supersedes cl/318172931
Bug: 170764224

Change-Id: Iaef1aa4fd3143e6e9019d06834001b3bfa3d887d

Exempt-from-owner-approval: Docs-only typo fix
2020-10-14 20:38:09 +00:00
Pinyao Ting
1d50760050 remove sensitive pii from safetynet logging
Bug: 159145361
Test: manual
Change-Id: I8f1be55971672c7e8f5aa8848f65b1b9d9f40fb5
Merged-In: I8f1be55971672c7e8f5aa8848f65b1b9d9f40fb5
(cherry picked from commit 3b6905bf6a)
2020-10-14 19:24:34 +00:00