Commit Graph

475163 Commits

Author SHA1 Message Date
Brad Ebinger
fe6da864da Fix possible deadlock in incoming call
When notifying the framework of an incoming call, a lock is held
in both the MmTelFeature and MmTelFeatureConnection. This can cause
a deadlock if the MmTelFeatureConnection is also processing an
event, such as sending/acknowleging an SMS message.

Remove the lock around the listener methods to the framework, since
it is not needed.

Bug: 155083563
Test: atest CtsTelephonyTestCases:ImsServiceTest FrameworksTelephonyTests
Change-Id: I39f7192c6f79e215ef989797870f5f501197cd08
2020-04-27 15:44:32 -07:00
arangelov
2b15d71b58 Synchronize direct share expansion between work and personal tabs
For example, if share sheet is fully expanded in personal profile,
when we go to the work tab, the direct share targets should
also be expanded there.

Fixes: 154523836
Test: manual
Test: atest ChooserActivityTest
Change-Id: I9346d7485f7498fc038c86bf5f8550c8ea6d0b48
2020-04-22 18:09:00 +00:00
Fabian Kozynski
2688e2237b Merge "Fix controls management activities details" into rvc-dev 2020-04-22 18:02:25 +00:00
Darryl Johnson
3b145e0b19 Merge "Disable activity process config override for certain display-based services." into rvc-dev 2020-04-22 17:30:31 +00:00
Andy Hung
6d5625c5ce Merge changes Ibca1d27b,I8cc6f5ce into rvc-dev
* changes:
  MediaMetrics: Update Audio Java logging
  MediaMetrics instrumentation
2020-04-22 17:04:27 +00:00
Miranda Kephart
59fcab207e Merge "Cleanup (remove ldap, reduce screenshot log level)" into rvc-dev 2020-04-22 17:04:04 +00:00
Alex Buynytskyy
d48ca975b6 Merge "Packages on IncrementalFS can't have oat dir." into rvc-dev 2020-04-22 17:01:00 +00:00
TreeHugger Robot
13fb1df163 Merge "DO NOT MERGE: Move CurrentUserContextTracker to SystemUIModule" into rvc-dev 2020-04-22 16:59:32 +00:00
Miranda Kephart
a0397fc671 Merge "Update screenshot UI for dark theme" into rvc-dev 2020-04-22 16:57:03 +00:00
Jeffrey Huang
8650e9aa11 Merge "Fix atest statsd_test" into rvc-dev 2020-04-22 16:41:45 +00:00
Evan Rosky
e46216285b Merge "Fix some change-transition issues and tests" into rvc-dev 2020-04-22 16:36:00 +00:00
Heemin Seog
7674c6bb09 Merge "Address multi display nav bar crash" into rvc-dev 2020-04-22 16:19:39 +00:00
Heemin Seog
ea0289a1d2 Merge "Lazy load VolumeDialogComponent" into rvc-dev 2020-04-22 16:06:06 +00:00
Evan Laird
f5520d4051 DO NOT MERGE: Move CurrentUserContextTracker to SystemUIModule
Some callers weren't getting the @Provides version of the controller and
thus not initializing it properly

Test: manual
Fixes: 154638737
Change-Id: I8ce4373b563ca307e2892ffa35047d95f04a705d
2020-04-22 16:00:33 +00:00
Fabian Kozynski
6f3caf41a3 Fix controls management activities details
Some minor fixes:
* Remove icon next to structure name in Add controls
* Remove "other apps" when there's no other app to switch.
* Change footer buttons in apps screen.

Test: manual
Fixes: 154672630
Fixes: 154673161
Fixes: 154631120
Change-Id: I45be5c78b97a0301b77fa11125a294c66903dbef
2020-04-22 10:58:31 -04:00
Miranda Kephart
9ddbe1311d Update screenshot UI for dark theme
Updates the colors used when the dark theme is on. When a
screenshot is taken, checks for the current dark theme status and
updates the assets if necessary.

Test: manual
Bug: 146560663
Change-Id: Iccc727924e04febc5be25e2205775b52ef082f6a
2020-04-22 10:37:58 -04:00
Pavel Grafov
89d4da77ea Merge "Warn the user about impending personal app suspension." into rvc-dev 2020-04-22 14:30:19 +00:00
Shafik Nassar
66fe16d41c Merge "Set com.android.gallery3d as the default system gallery" into rvc-dev 2020-04-22 14:12:53 +00:00
Mark Chien
e5d67a7ff8 Merge "Include NetworkStaticLibTestsLib into tethering coverage test" into rvc-dev 2020-04-22 13:54:33 +00:00
Antoan Angelov
3a507cbf8c Merge "Hide "Always" and "Just once" buttons for empty state screens" into rvc-dev 2020-04-22 13:10:20 +00:00
Antoan Angelov
2f5e2df152 Merge "Restore share sheet height when toggling dark mode" into rvc-dev 2020-04-22 13:08:13 +00:00
arangelov
9d8941457d Restore share sheet height when toggling dark mode
This CL does the following changes:
- Save and restore the resolver drawer layout height.
This is necessary because when we toggle darkmode,
we don't go through handleLayoutChange, thus we don't
recalculate the height the standard way.
- Disables saving state for the viewpager.
This is necessary, because the content is
incorrectly restored afterwards. It's better to
reload it instead.
- Saves and restores the last selected tab. This is
necessary because with the viewpager state saving
disabled, it defaults to the first tab.

I considered updating the configChanges attribute in
the manifest to include dark mode toggling, but it
gave unsatisfactory result - the share sheet only
partially became dark.

Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Fixes: 154526324
Change-Id: I99e159ea7ca413f8acbc0429a43ce5aba32a1b28
2020-04-22 13:47:00 +01:00
Pavel Grafov
a85e246ce5 Warn the user about impending personal app suspension.
* updatePersonalAppsSuspension is invoked for all events relevant
  to profile maximum time off: user stopped, user unlocked,
  system boot, deadline alarm goes off,
  setManagedProfileMaximumTimeOff called.
* It takes all relecant bits of state into account: policy,
  current deadline, user state. It calculates the new state
  of the deadline, notification and alarm and makes appropriate
  changes (e.g. schedules the alarm, posts notification, suspens
  apps).
* Updated package manager query flags so that even when personal
  apps are being suspended while the user is locked, it includes
  non direct boot aware apps as well.

Test: manual, with TestDPC
Test: atest OrgOwnedProfileOwnerTest#testWorkProfileMaximumTimeOff
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Test: atest OrgOwnedProfileOwnerTest#testPersonalAppsSuspensionNormalApp
Bug: 149075510
Change-Id: I94d2582c7af91a5d97e67d2baf2e15f0a6d5ffa9
2020-04-22 12:50:08 +01:00
TreeHugger Robot
85df93ed71 Merge "Fix iterator usage" into rvc-dev 2020-04-22 11:50:00 +00:00
PETER LIANG
5805bc16e4 Merge "Uniform the settings enum proto for accessibility tutorial." into rvc-dev 2020-04-22 11:42:27 +00:00
shafik
271709c508 Set com.android.gallery3d as the default system gallery
Recently, a CTS that ensured the existence of a system gallery was
added. However, this test was failing on GSI since the default holder
for the role is com.android.gallery which doesn't exist on GSI.

This change replaces the default holder with a package that exists on
all builds, including GSI and AOSP.

Test: build
Fix: 153939224
Change-Id: I4265f1d840f8c440f2e9134206893ed3fd0ea465
2020-04-22 11:37:35 +01:00
Fiona Campbell
0206076822 Merge "Convert AutomaticBrightnessController to float" into rvc-dev 2020-04-22 10:36:46 +00:00
Mill Chen
133cccf013 Merge "Update the battery string" into rvc-dev 2020-04-22 10:21:08 +00:00
Paul Hu
6dd1627a27 Merge "[TNU08] Remove the "tethering is on" notification" into rvc-dev 2020-04-22 09:56:32 +00:00
Mark Chien
abc389c926 Include NetworkStaticLibTestsLib into tethering coverage test
Bug: 148636687
Test: atest NetworkStaticLibTests
Test: atest TetheringCoverageTests
Merged-In: I8cd9dbc9fe163583ff1d016c9262546949105b80
Change-Id: I8cd9dbc9fe163583ff1d016c9262546949105b80
2020-04-22 09:45:39 +00:00
Paul Hu
6be43a347c Merge "[TNU07] Remove unused resources" into rvc-dev 2020-04-22 08:31:41 +00:00
Riddle Hsu
c57159c790 Merge "Remove invocation of closeTransaction while using a11y service" into rvc-dev 2020-04-22 08:18:54 +00:00
Mark Chien
1794d0559d Merge "Retry the call that fetches the tethering offload HAL." into rvc-dev 2020-04-22 08:16:20 +00:00
Mill Chen
d34d96c71b Update the battery string
Considering the tight character restriction in the Battery page, we
updated the following battery descriptions:

Less than 15 min remaining -> Less than 15 min left
More than 2 days remaining -> More than 2 day left

Bug: 143475287
Test: manual and robotest
Change-Id: I2092bdca61585010b9a6e343e647ab33ceabcdda
2020-04-22 15:50:34 +08:00
Wei Sheng Shih
72a0aa0590 Merge "Prevent wallpaper be affected by windowing mode." into rvc-dev 2020-04-22 07:00:44 +00:00
Paul Hu
9fc360d8e8 [TNU08] Remove the "tethering is on" notification
All carriers discarded the requirement to put up a standing
notification when tethering is on. Thus, remove the "tethering
is on" notification.

Bug: 154438388
Test: atest TetheringTests
Change-Id: Ife3915837b6b7b83d3eaaa84b71b6409ff37b71c
Merged-In: Ife3915837b6b7b83d3eaaa84b71b6409ff37b71c
(cherry picked from commit 0171c07d05, aosp/1289107)
2020-04-22 07:00:16 +00:00
Treehugger Robot
d07c007d89 Retry the call that fetches the tethering offload HAL.
The CL that moved the initialization of the tethering offload
config HAL from C++ to Java caused the code not to retry
fetching the service if it is not ready when tethering is
started. This is because the C++ version of getService() retries,
but the Java version only retries if getService(true) is called.

Make the new code retry as well.

b/152430668#comment4 asserts that the fetch will be retried only
if the service is installed on the device, so the retries should
be attempted (and thus should not have any startup time impact)
on devices that do not support tethering offload.

Bug: 152430668
Test: builds, boots, tethering offload works
Merged-In: I093f127d90b2aa1b13eb0748378a24726d419472
Change-Id: I093f127d90b2aa1b13eb0748378a24726d419472
2020-04-22 06:59:12 +00:00
Paul Hu
aae51894eb [TNU07] Remove unused resources
Some strings are not used, so just remove them.

Bug: 154445061
Test: atest TetheringTests
Change-Id: Ie67f7f4d0863d58c4c5206e445c1dbdfe3f65f60
Merged-In: Ie67f7f4d0863d58c4c5206e445c1dbdfe3f65f60
(cherry picked from commit 59eeedc045, aosp/1289100)
2020-04-22 06:58:17 +00:00
Andy Hung
6983695951 MediaMetrics: Update Audio Java logging
Convert to typed keys to ensure consistent spelling / usage.
Track volume state.
Track device state.

Test: media metrics dumpsys
Bug: 149850236
Merged-In: Ibca1d27baca3bea6c5c363c7ef0dbce04fe5debc
Change-Id: Ibca1d27baca3bea6c5c363c7ef0dbce04fe5debc
2020-04-21 23:51:42 -07:00
Riddle Hsu
6f5a5c481a Remove invocation of closeTransaction while using a11y service
The operation applies to a local transaction, so it should not
touch the global transaction.

Bug: 143734779
Test atest AccessibilityWindowManagerTest#
           setAccessibilityWindowIdToSurfaceMetadata
Test: Enable accessibility service (e.g. TalkBack) and check logcat
      shouldn't have "Call to SurfaceControl.closeTransaction without
      matching openTransaction".

Change-Id: I5a2879656471c85f91931e385e4873b4499ed977
2020-04-22 14:22:12 +08:00
James Wei
f21e3a96d3 Merge changes I7da699ca,I5a09efef into rvc-dev
* changes:
  MTP: Fix MTP SD card issue
  MTP: Add MtpDatabase unit test
2020-04-22 06:21:30 +00:00
Heemin Seog
9848ee32b3 Address multi display nav bar crash
Bug: 154551107
Test: manual
Change-Id: I147a771f46fa10642e560b504f027a91e76ea723
2020-04-21 22:59:33 -07:00
Tej Singh
7df1a94f78 Merge "Fix PullUidProvider unregistering on config update" into rvc-dev 2020-04-22 05:29:49 +00:00
Winson Chung
36eb8c05dc Merge "Fix issue with settings launch animation" into rvc-dev 2020-04-22 04:27:33 +00:00
TreeHugger Robot
5ff2b3ce04 Merge "Avoid reporting unhandled config changes to activity" into rvc-dev 2020-04-22 03:40:26 +00:00
James Wei
82062b99eb MTP: Fix MTP SD card issue
Modify MTP access path for SD card in accordance with Storage Permission change

Bug: 150188237

Test: atest MtpTests
Test: Manual test: MTP file browsing / copy on SD card
Change-Id: I7da699ca04844514827af18b0318c66d2a3fbc6e
2020-04-22 11:34:42 +08:00
Tej Singh
3eb9cede0b Fix PullUidProvider unregistering on config update
Previously, MetricsManagers would unregister themselves as a
PullUidProvider for a given ConfigKey in the destructor. This caused all
pulls to fail after a config update because the new MetricsManager would
register itself before the old MetricsManager was destructed and
unregistered. This resulted in the old MetricsManager removing the new
config since they shared the same config key. The fix is for the
PullerManager to check that the PullUidProviders are equal in the
unregister function before actually erasing it.

Test: bit statsd_test:* (wrote a failing test that now passes).
Test: statsd_localdrive to manually update a config, ensured pulls still
worked.
Bug: 154544328

Change-Id: Id7af3b3b407e24bee74fc34bd1c2b9e0575e9c9e
2020-04-21 20:24:26 -07:00
James Wei
19ded228a3 MTP: Add MtpDatabase unit test
Add Thumbnail feature test cases

Bug: 117863715
Test: atest MtpTests
Change-Id: I5a09efef10df20e382a4c623481e048e7b35ff14
2020-04-22 03:20:02 +00:00
Greg Kaiser
be49efc5f9 Fix iterator usage
We change to reference the end() of the correct iterator.

Test: TreeHugger
Bug: 150764186
Change-Id: I380d41a916184c90c3a38848b0a039ea56006f47
Merged-In: I380d41a916184c90c3a38848b0a039ea56006f47
(cherry picked from commit ef05f714c4)
2020-04-22 02:53:46 +00:00
wilsonshih
5ebc885b6f Prevent wallpaper be affected by windowing mode.
Keep the windowing mode of WallpaperWindowToken as fullscreen.

Bug: 151472924
Test: atest WallpaperControllerTests
Change-Id: Idd9e25fc592b90abf14526ea61396fa46020abf9
2020-04-22 10:36:09 +08:00