474172 Commits

Author SHA1 Message Date
Sergey Volnov
6c74f7cc9a Fix Content Capture Data Share
Fixing a typo in the previous commit: s/remove/put/

Bug: 153013604
Test: ran CTS tests on sdk_gphone_x86
Change-Id: Iabe8ce51f38ac921aa5cc0e78b559e4a512b9273
2020-04-09 21:23:03 +01:00
Fabian Kozynski
b6a20378fd Added RingModeTracker
This removes the dependency on re-delivery of sticky broadcasts by
having a single point in the system that listens to
RINGER_MODE_CHANGED_ACTION and RINGER_MODE_INTERNAL_CHANGED_ACTION.

Also, added some global mocks for Notification tests that were
constructing KeyguardUpdateMonitor (after many injections).

Also, added mock in KeyguardSecurityContainerTest.

Test: manual
Test: atest SystemUITests
Bug: 151641451

Change-Id: Ie81109cf1fe077bc4790f7a4e501df69dbb2323b
2020-04-09 16:20:24 -04:00
Hui Yu
d0139b01dd Merge "Document process capability in AppOps.md." into rvc-dev 2020-04-09 19:42:09 +00:00
Felipe Leme
94fbff18e5 Merge "Remove unlock dialog from sysui" into rvc-dev 2020-04-09 18:53:53 +00:00
Nate Jiang
814a93ddc4 Merge "Change imsi protection exemption intent string" into rvc-dev 2020-04-09 18:34:09 +00:00
lumark
04bceb99f1 Trigger onTaskAppeared when a task started from recents becomes ready.
In quick switch flows, launcher will first swipe task snapshot
through recents animation, and then start new task with custom animation
options through startActivityFromRecents after gesture finish detected,
and then finish recents animation finally.

But that way user may experience flickering before the new task launch
and recents animation finish.

To improve quick switch flickering, we ignore the new task's custom
animation from recents and generate task remote animation target,
and then trigger a callback for launcher to control/animate this
task surface, more like a part of RecentsAnimation,

Also, adding removeTask method for launcher can flexibility remove the
new task animation target once no need to animate, so that launcher
can decide when to finish recents animation.

Bug: 152480470
Test: manual as below steps:
  1) Doing quick switch task.
  2) Make sure launcher can receive onTaskAppeared callback.
  3) Make sure launcher calls removeTask successfully.
  4) Make sure launcher can finish recents animation after 3).
Change-Id: I0692a280a49719229fa8871509bad37a1343a00f
2020-04-10 02:20:03 +08:00
Jordan Liu
daeb3d4b5e Merge "Implement #equals in Geometries subclasses" into rvc-dev 2020-04-09 18:15:39 +00:00
Lucas Dupin
1ffaf8c28e Fix calculation of empty spaces
We should not add spaces when columns are filled successfully.

Bug: 152628601
Test: manual
Change-Id: I2b86e440847e8de9ddabb43fca0d1f7083ffff12
2020-04-09 11:13:07 -07:00
Ben Lin
6f6216d303 Merge "PIP: Disable hover show/hide menu if accessibility service is on." into rvc-dev 2020-04-09 18:05:21 +00:00
Fabian Kozynski
a35a860c36 Merge "Added Settings intents" into rvc-dev 2020-04-09 17:58:44 +00:00
Selim Cinek
279238f3c2 Merge changes I7dc8f5fd,Ia5262ca7 into rvc-dev
* changes:
  Fixed the transformation of min priority notifications
  Always use the largeIcon as avatar replacement
2020-04-09 17:55:27 +00:00
Matt Pietal
6c89d1e310 Controls a11y - Fix title repetition, min height
There is no need for a content description on the associated icon, as
the title is sufficient.

Bug: 153288023
Bug: 153291530
Test: talkback
Change-Id: I8617151cbbbb24f437e93a7c106997ef355206b6
2020-04-09 13:53:41 -04:00
Oscar Shu
c69c66cae7 Merge "Add Strings for enhanced MAC randomization dev option" into rvc-dev 2020-04-09 17:50:58 +00:00
lpeter
7a2b535afc Request the IME to hide current inline suggestion
Request the IME to hide current inline suggestion on committing.

Bug: 149945531
Test: atest InlineLoginActivityTest
Test: atest InlineAugmentedLoginActivityTest
Change-Id: Ia19aebb7d84c6d858fa93ee51df1bbbf7d92eafe
2020-04-10 01:47:36 +08:00
TreeHugger Robot
9dc02c4a70 Merge "Fix intermittent PIP crash." into rvc-dev 2020-04-09 17:44:23 +00:00
Jeffrey Huang
0118b5a6a0 Add APEX UIDs to PackageManager query
Because of internal implementation of one way binder calls, in order to
unblock the boot phase, we need to put both the binder call and the
filedescriptor in the background thread.

Original boot time: 17758.6ms
New boot time: 17608.0ms

Bug: 130773130
Test: DeviceBootTest.DeviceBootTest#SuccessiveBootTest
Change-Id: Ib3524418a387c5902af8139e1b2aee82525b8e04
2020-04-09 10:43:13 -07:00
Sarah Chin
5956f3080c Add carrier configs for NR SA unmetered
Test: atest DcTrackerTest
Bug: 153117651
Change-Id: I1543a7943d8bcd536ece5cb673b419e740086111
2020-04-09 10:33:39 -07:00
Pavel Grafov
c4adf5e87b Merge "Copy the remaining policies on migration." into rvc-dev 2020-04-09 17:30:36 +00:00
Michael Groover
f4cd234bcb Merge "Update permission requirements for TelecomManager#getLine1Number" into rvc-dev 2020-04-09 17:21:42 +00:00
TreeHugger Robot
8a9ab84076 Merge "Align power menu items, for portrait and landscape" into rvc-dev 2020-04-09 17:14:54 +00:00
TreeHugger Robot
bcc707d44c Merge "Check if fuse enabled before mounting storage data and obb dirs" into rvc-dev 2020-04-09 17:11:55 +00:00
Abodunrinwa Toki
33e891d1a2 Merge "Introduce an IconsContentProvider." into rvc-dev 2020-04-09 17:06:38 +00:00
Makoto Onuki
dedd760e36 Merge "Fix CtsShortcutHostTestCases#testSecondaryUser" into rvc-dev 2020-04-09 16:44:38 +00:00
Brad Ebinger
aa709348ee Merge "Add new @hide API to pass call direction changes through Telecom" into rvc-dev 2020-04-09 16:43:45 +00:00
Nikita Ioffe
e9ed63aa92 Merge "Introduce static @hide PowerManager.isRebootingUserspaceSupportedImpl()" into rvc-dev 2020-04-09 16:39:54 +00:00
Nathan Harold
ae87a963b8 Merge "Add warning about TelephonyManager Reliability" into rvc-dev 2020-04-09 16:38:41 +00:00
Songchun Fan
c296cf746a [stats] add metrics for package installer v2
// Successful installation:
$ out/host/linux-x86/bin/statsd_testdrive -s 98141FFBA005QD 263
...
event_metrics {
  data {
    elapsed_timestamp_nanos: 147291968369
    atom {
      package_installer_v2_reported {
        is_incremental: true
        package_name: "com.unity.megacity"
        duration_millis: 1379
        return_code: 1
      }
    }
  }
}
...

// Failed installation:
$ out/host/linux-x86/bin/statsd_testdrive -s 98141FFBA005QD 263
...
event_metrics {
  data {
    elapsed_timestamp_nanos: 94418812060
    atom {
      package_installer_v2_reported {
        is_incremental: true
        package_name: ""
        duration_millis: 37
        return_code: -20
      }
    }
  }
}
...

Test: manual
BUG: 152913040
Change-Id: Ibb02122e7007f8e3afd65cbb98236bc37c0d24db
2020-04-09 09:33:34 -07:00
Anton Hansson
87c7d28881 Use sdk_version: none for platform stubs
These stubs contain the libcore sources inside them, so need not
compile against core_current.

Also rename the defaults rule to be in line with the new neverallow.

Bug: 144149403
Test: m
Change-Id: I5f1b01875b0073f942c692882db157a8c5788ce0
Merged-In: I5f1b01875b0073f942c692882db157a8c5788ce0
2020-04-09 17:31:28 +01:00
Lucas Dupin
34d2844601 Merge "Calculate spacers properly" into rvc-dev 2020-04-09 16:29:59 +00:00
TreeHugger Robot
7cbba76be9 Merge "Controls UI - Add 'reset' option for seeding" into rvc-dev 2020-04-09 16:27:07 +00:00
TreeHugger Robot
9f990dedb3 Merge "Add an API to set layer trace flags" into rvc-dev 2020-04-09 16:26:21 +00:00
Luke Huang
76fc58e1f1 Use the lastest frozen netd_aidl_interface in framework
Bug: 140541991
Test: build
Merged-In: I984969e09f8d5196945a7412c51bd8880223ad9e
Change-Id: I984969e09f8d5196945a7412c51bd8880223ad9e
2020-04-09 16:20:44 +00:00
Evan Laird
2214685d42 Merge "Track NotificationEntry creation time" into rvc-dev 2020-04-09 16:08:47 +00:00
Yuncheol Heo
8ecd6a377b Merge "Move multi window mode to the caller." into rvc-dev 2020-04-09 16:06:01 +00:00
TreeHugger Robot
1f1b416da9 Merge "ApexManager: Allow blocking Binder calls" into rvc-dev 2020-04-09 15:20:04 +00:00
Joshua Tsuji
06745aadca Fix intermittent PIP crash.
Looks like this is caused by calling removeView right before addView, which happens when we recreate the dismiss target. Sometimes, removeView has not completed by the time we addView again.

I wasn't able to reproduce the crash, but other places in sysui use removeViewImmediate for this purpose.

Bug: 153551432
Test: try rotating the screen a bunch with a PIP visible
Change-Id: Ic96173c1273b8476280a7daf63340bbe9613b21e
2020-04-09 11:17:46 -04:00
Sergii Iegorov
477c433b98 Fix CtsShortcutHostTestCases#testSecondaryUser
This patch uses Instrumentation parameter inside
getDefaultLauncher function to obtain user ID
from it and get default launcher namely for that
user as setDefaultLauncher function sets launcher
for the user from Instrumentation context. This
fixes incorrect launcher settings for the cases
that use two sequential calls to get/set
default launcher.

Bug: 145774461
Test: run cts -m CtsShortcutHostTestCases -t \
android.content.pm.cts.shortcuthost.ShortcutManagerMultiuserTest#testSecondaryUser

Signed-off-by: Sergii Iegorov <sergii.iegorov@globallogic.com>
Change-Id: I8941f5648ad783c7681fdb56677e855756db957d
Merged-in: I8941f5648ad783c7681fdb56677e855756db957d
2020-04-09 08:10:44 -07:00
Pavel Grafov
57c69d1e30 Copy the remaining policies on migration.
* accountTypesWithManagementDisabled
* disableScreenCapture

For security logging nothing has to be done since the state is
stored in a system property, just changed it so that the logging
will be started after the migration and only events for the
right user are logged.

Also removed the todo about hardening for power cut case, the
risk of additional complexity sees to outweight the benefit.

Bug: 149075700
Test: atest DevicePolicyManagerServiceMigrationTest
Change-Id: I3a58325f2d6f415e51998c5096c5fc123d26602d
2020-04-09 15:47:18 +01:00
Matt Pietal
cd757c894c Controls UI - Add 'reset' option for seeding
Enable for testing controls seeding. Make sure subscriptions are
cleaned up properly. Up the seeding limit to 6. If we received our
requested control limit on load, cancel() the subscription and
immediately load.

Bug: 153455870
Test: manual, use 'Reset' button to test seeding process

Change-Id: I536315de423c49231e77c0b1b24ad20883ddaae7
2020-04-09 09:58:34 -04:00
Ricky Wai
6416747830 Check if fuse enabled before mounting storage data and obb dirs
Also, do not bind mount storage obb and data dirs if mount external is
in pass_through mode.

Fix: 151219235
Fix: 152395018
Fix: 152490627
Test: atest AdoptableHostTest
Change-Id: I77a86be5582ded0915b0a8a49d2b2a8c17fe58b7
2020-04-09 13:33:52 +00:00
Nikita Ioffe
57300d9057 Introduce static @hide PowerManager.isRebootingUserspaceSupportedImpl()
This method consolidates logic of testing whenever rebooting userspace
is supported in a place that can be used both from
PowerMager.isRebootingUserspaceSupported() API and from
PowerManagerService.reboot() implementation.

Consequently, this makes `adb shell svc power reboot userspace` also
benefit from that check, and fail userspace reboot on devices that don't
support it.

Also tweaked logic of ignoring RemoteException to take into account
userspace reboot.

Test: adb root
Test: adb shell setprop init.userspace_reboot.is_supported 0
Test: adb shell svc power reboot userspace & verified error message
Test: adb shell setprop init.userspace_reboot.is_supported 1
Test: adb shell svc power reboot userspace & verified no error message
Test: atest PowerManagerTest
Test: atest CtsUserspaceRebootHostSideTestCases
Bug: 152803929
Change-Id: I2d3a8e0ae1320c408a838c5c5fdf4cd977b167b3
2020-04-09 14:07:22 +01:00
TreeHugger Robot
0131d50188 Merge "Upgrade case for setAutoTimeRequired" into rvc-dev 2020-04-09 13:06:11 +00:00
TreeHugger Robot
bc98d3edb0 Merge "Enhance exception message on SQLiteCantOpenDatabaseException" into rvc-dev 2020-04-09 12:54:52 +00:00
Andrei-Valentin Onea
1775d16adb Merge "Add method to greylist" into rvc-dev 2020-04-09 11:17:11 +00:00
Alex Johnston
9876c4f899 Upgrade case for setAutoTimeRequired
* Modified setAutoTimeRequired to call
  pushUserRestrictions after requireAutoTime
  in the active admin is set.
* Modified addSyntheticRestrictions in the
  active admin to include the auto time
  required case.

Bug: 145604635
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.server.devicepolicy.DevicePolicyManagerServiceMigrationTest
Change-Id: Ida4952eeec8ec12573c4049a9bf8e0ce6a951a86
2020-04-09 11:57:49 +01:00
TreeHugger Robot
767e63f5f5 Merge "Add metric constants for cross profile settings page" into rvc-dev 2020-04-09 10:52:11 +00:00
Anton Hansson
943e973546 Merge "Don't specify sdk_version for stubs" into rvc-dev 2020-04-09 10:46:49 +00:00
Louis Chang
dff902bc7c Compute configuration overrides for tasks created by organizer
The config overrides were only computed for leaf tasks. So, the
config of the organized tasks were inherited from the display,
which was still fullscreen size. This was not right especially
for split-screen organizer tasks because the configuration could
be used by the organizers.

Also remove requesting override windowing mode as fullscreen for
home tasks, the config was updated to fullscreen or
split-screen-secondary while resolving override config instead.

Bug: 152408408
Test: Enter split-screen and show IME
Change-Id: Ie6737cb5e9655c57724fc140c6b6fde3a96be6ab
2020-04-09 18:05:07 +08:00
Jeongik Cha
a45aa57363 Add getInterface(Version|Hash) in ILights stub for test
If it is frozen, interface has to implement getInterface(Version|Hash)

Bug: 153501202
Test: m FrameworksServicesTests
Change-Id: Ia9423a7fe524ff225435344b527728ec2646adfc
Merged-In: Ia9423a7fe524ff225435344b527728ec2646adfc
2020-04-09 17:22:13 +09:00
Adrian Roos
3d670ae046 Merge "Insets: Fix DecorView consuming of insets" into rvc-dev 2020-04-09 08:17:01 +00:00