Commit Graph

15739 Commits

Author SHA1 Message Date
Tiger Huang
2ca7a2bd55 Merge "Fix a bug about missing onConfigurationChanged" into qt-dev am: a54b943d59
am: 64f447cd7b

Change-Id: I9e774a45368888e75fc2e71e59166b3006af0e6a
2019-06-03 11:30:37 -07:00
Tiger Huang
64f447cd7b Merge "Fix a bug about missing onConfigurationChanged" into qt-dev
am: a54b943d59

Change-Id: I276e822663cde616a21f49332f6f9161ec69a550
2019-06-03 11:23:29 -07:00
TreeHugger Robot
a54b943d59 Merge "Fix a bug about missing onConfigurationChanged" into qt-dev 2019-06-03 18:09:34 +00:00
Christopher Tate
fea5cc6981 Merge "Prevent double teardown of service connections" into qt-dev am: ae76af46b2
am: 991bcc3d78

Change-Id: I7048f2a8f862601bafd37d30eab437368a7ddea6
2019-05-31 10:51:34 -07:00
Christopher Tate
f9c9ab4540 Merge "Prevent double teardown of service connections" into qt-dev
am: ae76af46b2

Change-Id: If1c2545572c07a72c930fd63b216b8c26bdf2615
2019-05-31 10:36:00 -07:00
Christopher Tate
991bcc3d78 Merge "Prevent double teardown of service connections" into qt-dev
am: ae76af46b2

Change-Id: I47d3b9eb266f19a9f81ef6c1447fb8f112be89dd
2019-05-31 10:34:46 -07:00
TreeHugger Robot
ae76af46b2 Merge "Prevent double teardown of service connections" into qt-dev 2019-05-31 17:27:34 +00:00
arangelov
4ad99fe5ce Merge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev am: 26a28f64c5
am: 31bcbb7edc

Change-Id: I9b9bebd253052a5ff1475831fc2b1a900e8c5ade
2019-05-30 09:40:57 -07:00
arangelov
6fd8108679 Merge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev
am: 26a28f64c5

Change-Id: Idbdde0976e2df6253a22e950837c414d51d92237
2019-05-30 09:24:43 -07:00
arangelov
31bcbb7edc Merge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev
am: 26a28f64c5

Change-Id: I279f5764f1340f6fd7c2a4a71fe84d0e06f43bd1
2019-05-30 09:23:52 -07:00
TreeHugger Robot
26a28f64c5 Merge "Remove @VisibleForTesting from DevicePolicyEventLogger getters." into qt-dev 2019-05-30 15:05:26 +00:00
arangelov
3b37af4c3c Remove @VisibleForTesting from DevicePolicyEventLogger getters.
Also make it extendable for mocking and update atoms.proto comments.

Bug: 131833599
Test: compiled
Change-Id: I6a0e8a6175e7e9e46572ea4aa50ce7669a02588b
2019-05-30 14:40:12 +01:00
Christopher Tate
36c998c6b7 Prevent double teardown of service connections
Asynchronicities in activity teardown -> service connection teardown
introduced a race in which the teardown could race with new service
bindings to "the same" service instance, and then wind up attempting to
shut down a new, valid instance inappropriately.  Fixed by making sure
to clear the "what needs to be torn down" bookkeeping as part of the
act of doing that teardown, removing the possibility for stale state.

Fixes: 131029480
Test: manual
Test: atest CtsAppTestCases
Change-Id: I33a63f524d147ff6ec97dd3efb0127dcace8bf3c
2019-05-29 18:46:09 -07:00
Beverly Tai
d259d9e570 Merge "Add disable methods in StatusBarManager" into qt-r1-dev
am: b6518a0b64

Change-Id: I8a7355f6893fb8ec233be423977cf13e8bc02730
2019-05-29 06:42:30 -07:00
Beverly
54fead82f5 Add disable methods in StatusBarManager
Test: manual
Bug: 132844641
Change-Id: Ibee48629c6ddb523cafa45238668cb00553f2d5b
2019-05-28 12:57:27 -04:00
Tiger Huang
968064bed0 Fix a bug about missing onConfigurationChanged
The original logic sends the new configuration to the non-activity
components only if there is any public field changed. However, it
doesn't use the latest configuration to compare to the current one,
which caused ActivityThread dropping some onConfigurationChanged
callbacks.

This CL uses the latest configuration to compare to the current one.

Fix: 132653657
Test: Steps in the bug
Change-Id: I969ef189c36ba1903503d8b7de5641103aed8cf3
2019-05-28 07:29:56 +00:00
Rubin Xu
f958b001b5 Merge "Fix deadlock in KeyguardDisableHandler" into qt-dev am: 6cf5ea63eb
am: 8643b456b6

Change-Id: I758f67beaa6950a820b0dc426a217580377df2cb
2019-05-27 13:13:04 -07:00
Rubin Xu
8643b456b6 Merge "Fix deadlock in KeyguardDisableHandler" into qt-dev
am: 6cf5ea63eb

Change-Id: If7518fe10c48f2328af8dce4162eeaf2c7be7995
2019-05-27 13:08:06 -07:00
Rubin Xu
42c4a92560 Merge "Fix deadlock in KeyguardDisableHandler" into qt-dev
am: 6cf5ea63eb

Change-Id: I0fe67a4ad6e6a2598123662de4f543735b78ceb9
2019-05-27 13:08:05 -07:00
Rubin Xu
6cf5ea63eb Merge "Fix deadlock in KeyguardDisableHandler" into qt-dev 2019-05-27 19:50:06 +00:00
Kweku Adams
562d2d14c4 Merge "Handling race condition when dumping heaps." into qt-dev am: 98876f0727
am: 8502711899

Change-Id: I69548d5f8d47ee106ec5907b735823be7ff80492
2019-05-24 20:44:02 -07:00
Kweku Adams
5bb0972346 Merge "Handling race condition when dumping heaps." into qt-dev
am: 98876f0727

Change-Id: I37ba96de00db0350a37232eab232ba9b896cfb30
2019-05-24 19:41:24 -07:00
Kweku Adams
8502711899 Merge "Handling race condition when dumping heaps." into qt-dev
am: 98876f0727

Change-Id: Ie9f306c7098bde0b32b66548b3e865029e244607
2019-05-24 18:49:56 -07:00
TreeHugger Robot
98876f0727 Merge "Handling race condition when dumping heaps." into qt-dev 2019-05-25 01:24:39 +00:00
Andrei-Valentin Onea
d6d2f8f482 Merge "Move blacklisted methods back to greylist" into qt-dev am: 71a267b66f
am: ffeda699d5

Change-Id: I9c6465b8bbab80e32f2a877c6c92e9df5cd7d1b5
2019-05-24 05:21:03 -07:00
Andrei-Valentin Onea
e4446b3e21 Merge "Move blacklisted methods back to greylist" into qt-dev
am: 71a267b66f

Change-Id: Icfa936777d82e303d42158b38034e6d3e3fe751c
2019-05-24 05:15:31 -07:00
Andrei-Valentin Onea
ffeda699d5 Merge "Move blacklisted methods back to greylist" into qt-dev
am: 71a267b66f

Change-Id: If6ece59a9d19510fecf41cd101644697fa22bdd6
2019-05-24 05:10:36 -07:00
Andrei-Valentin Onea
71a267b66f Merge "Move blacklisted methods back to greylist" into qt-dev 2019-05-24 12:02:31 +00:00
Sudheer Shanka
d557ea7251 Merge "Trigger a mediascan when downloads get renamed." into qt-dev am: 5af9bed265
am: b50bd70426

Change-Id: I59ac57a69c601af63c854c98c2b6900e7f166c9d
2019-05-23 19:36:03 -07:00
Sudheer Shanka
cef6d7d084 Merge "Trigger a mediascan when downloads get renamed." into qt-dev
am: 5af9bed265

Change-Id: Ib17111421f2f9745220b4ba24f49060ee251ef3c
2019-05-23 19:01:46 -07:00
Kweku Adams
4af1b5084b Handling race condition when dumping heaps.
1. The IPC to ActivityThread.dumpHeap() dups the input file descriptor but
closes it when the IPC returns. Since the heap dump is generated
asynchronously, a race condition ensues between the returning close and
the dump being generated. For the intra-system-process call, the race is
with ActivityManagerService closing the created file descriptor. Duping
the file descriptor on the ActivityThread side should deal with this.
2. For some reason, the file descriptor wasn't closed for native heap
dumps. Closing the fd in those cases as well.
3. Catch the RuntimeException from Debug.dumpHprofData in case anything
else was missed.

Bug: 133424499
Test: adb shell am dumpheap com.android.systemui
Test: adb shell am dumpheap system
Test: Use the "Capture System Heap Dump" option in Developer Settings
Change-Id: I44817161533359766250de04e35902587ea9cc40
2019-05-23 16:23:48 -07:00
Sudheer Shanka
b50bd70426 Merge "Trigger a mediascan when downloads get renamed." into qt-dev
am: 5af9bed265

Change-Id: I3a8e60588539b1502686f170f52b31f182ec9869
2019-05-23 16:07:37 -07:00
Sudheer Shanka
c0ff908a40 Trigger a mediascan when downloads get renamed.
Fixes: 132811564
Test: manual
Test: atest --test-mapping packages/providers/MediaProvider
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java
Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java
Change-Id: I319a5b45e703b1eda5846d085c5e1e1e86bbae2b
2019-05-23 10:47:30 -07:00
Rubin Xu
13531ccab8 Fix deadlock in KeyguardDisableHandler
At the moment KeyguardDisableHandler calls into DevicePolicyManager
to retrive the aggregated password quality for the current user
while holding the WindowManager lock. This is a lock inversion
and causes deadlock. To fix this, introduce a per-user password quality
cache in DevicePolicyCache and switch KeyguardDisableHandler
to use that instead.

Test: manual
Fix: 129087668
Change-Id: I8c02ca442dde76ed350f22ac04a52adc82d21d00
2019-05-23 11:27:11 +01:00
Sudheer Shanka
b1d710c9e4 Merge "Don't use linked mediastore uris in DownloadProvider operations." into qt-dev am: 4344e7c721
am: d8e1bc5fc3

Change-Id: I269490094c08c2890dc46ee0e3250c6d16120ecf
2019-05-22 05:51:13 -07:00
Felipe Leme
3d558a409d Merge "Minor improvements on voice interaction workflows." into qt-dev am: 7aa28bd502
am: 729b6b43ad

Change-Id: Icb11a14839a4848547d9b4bbbd05612ba2347109
2019-05-22 04:14:46 -07:00
Sudheer Shanka
cb36319306 Merge "Don't use linked mediastore uris in DownloadProvider operations." into qt-dev
am: 4344e7c721

Change-Id: Iaf52026e9d67f97b94cc0426a460f94b5fa358ec
2019-05-22 01:58:24 -07:00
Felipe Leme
395118e622 Merge "Minor improvements on voice interaction workflows." into qt-dev
am: 7aa28bd502

Change-Id: I9095ebe2537bb4b8344fb31d35e544d978082aee
2019-05-22 00:12:48 -07:00
Sudheer Shanka
d8e1bc5fc3 Merge "Don't use linked mediastore uris in DownloadProvider operations." into qt-dev
am: 4344e7c721

Change-Id: I912be1f21f44fe1959a67c76d175b77b055b2700
2019-05-21 22:32:21 -07:00
Sudheer Shanka
4344e7c721 Merge "Don't use linked mediastore uris in DownloadProvider operations." into qt-dev 2019-05-22 02:20:08 +00:00
Felipe Leme
729b6b43ad Merge "Minor improvements on voice interaction workflows." into qt-dev
am: 7aa28bd502

Change-Id: I5a3efbb5f90d576f467b1d9dcbc83d168cc05f24
2019-05-21 17:37:07 -07:00
TreeHugger Robot
7aa28bd502 Merge "Minor improvements on voice interaction workflows." into qt-dev 2019-05-21 21:05:41 +00:00
Issei Suzuki
f79caa5307 Merge "Synchronize bubble activity rendering status and its visibility change." into qt-r1-dev
am: 08b7be8843

Change-Id: Icbe900fab13c5fd717ccae38c812f03bea8ee143
2019-05-21 11:57:00 -07:00
Sudheer Shanka
1b817f65db Don't use linked mediastore uris in DownloadProvider operations.
When MediaProvider db gets recreated, all the media content ids
get renumbered. It's possible that when DownloadProvider is
trying to delete an entry, it is holding onto a invalid mediastore
uri. So, don't use linked mediastore uris in DownloadProvider
operations. Also, revoke any prior uri grants of media content from
DownloadStorageProvider.

Bug: 132087334
Test: manual
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java
Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java
Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/AppSecurityTests.java
Change-Id: I4885f5a0ae0b3ab660426605a8a43b8c1d66a4c7
2019-05-21 10:21:43 -07:00
Andrei Onea
2bbb6542f7 Move blacklisted methods back to greylist
These methods used to be greylisted, but have been either accidentally
or prematurely added to blacklist.

Test: m
Bug: 133207859
Change-Id: I0f73828956d0c5e4b1c147580bb11c8073c3461b
2019-05-21 18:13:26 +01:00
Issei Suzuki
cac2a50465 Synchronize bubble activity rendering status and its visibility change.
- Add an API ITaskStackListener.onSingleTaskDisplayDrawn() to notifity contents
  are drawn for the first time on a display which can only contain one task.
- BubbleController updates contents visibility (actually alpha value) of
  the Surface in a ActivityView.

Bug: 130442248
Test: atest WmTests:TaskStackChangedListenerTest
Change-Id: Ie5aed373996419b059935889b564ca91c2e3cf23
2019-05-21 13:23:41 +08:00
Winson
5639e2cf29 Merge "Force system ApplicationInfo update and notify DisplayManager" into qt-dev am: 70e0438d59
am: ad982e23cc

Change-Id: I8e2d8de5899970353bf90a769ed92bccd188626d
2019-05-20 14:42:05 -07:00
Winson
5e5b408d50 Merge "Force system ApplicationInfo update and notify DisplayManager" into qt-dev
am: 70e0438d59

Change-Id: I61555aa42d6d6778b0a3321d5a449229496d206b
2019-05-20 13:23:25 -07:00
TreeHugger Robot
70e0438d59 Merge "Force system ApplicationInfo update and notify DisplayManager" into qt-dev 2019-05-20 19:12:20 +00:00
Mark Renouf
fb9e35db21 Merge "Adds setCornerRadius to ActivityView & SurfaceView" into qt-dev am: b46293f8f6
am: 8cce984f02

Change-Id: I505f07bca9b1f8bf80c75abe2cf2f10248b8b9b1
2019-05-20 10:44:30 -07:00