474391 Commits

Author SHA1 Message Date
Ryan Mitchell
5900a1d3c5 Fix InstallOverlayTests fail to install overlay
There is a key signing problem in general-tests so move all overlays
to device-tests.

Bug: 141998755
Bug: 153631240
Bug: 153630797
Test: atest InstallOverlayTests
Change-Id: Ic8274031c8bd0aca5a6b7ccfee53b047334ab060
2020-04-09 14:17:17 -07:00
Fabian Kozynski
ad677072d2 Mock views in Keyguard view tests
KeyguardSliceView was being inflated by other tests. This caused real
controllers being created through Dagger. Replace views with mocks.

Bug: 153667872
Test: atest SystemUITests
Change-Id: I41b28bc886f97fab3fa8a0af63e743b07f4ec667
2020-04-09 17:13:29 -04:00
TreeHugger Robot
6813206e6c Merge "Fix calculation of empty spaces" into rvc-dev 2020-04-09 21:04:18 +00:00
TreeHugger Robot
a0caf8fad9 Merge "Controls UI - Icon updates, round 2" into rvc-dev 2020-04-09 20:52:54 +00:00
Winson
36c4470a20 Return actual failure to parse base APK
This exposes errors directly, which mirrors what PackageParser
used to do. Just a leftover TODO from the refactor.

Bug: 153472626

Test: manual install broken APK and check the error is logged

Change-Id: I06804ad7396196e28ce2177a671d4eef3958e1d6
2020-04-09 13:51:37 -07:00
TreeHugger Robot
09c3427e5d Merge "Drop down late RARE prediction into RESTRICTED." into rvc-dev 2020-04-09 20:46:06 +00:00
Jing Ji
a550eec209 Merge "Add Embedded docs for the OomAdjuster" into rvc-dev 2020-04-09 20:38:21 +00:00
Adam He
89afcd6f5d Pass inline suggestions renderer info Bundle to Frameworks and IME
Bug: 146454892
Test: manual verification
Change-Id: I5db6c3795a4a295486e497f2d27eaa561e1a3887
2020-04-09 13:30:33 -07:00
Rob Carr
0a57530be1 Merge "ViewRootImpl: Pass buffer to finishDrawing when requested" into rvc-dev 2020-04-09 20:26:43 +00:00
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
Ryan Mitchell
192400cf33 Fail install when resources.arsc is compressed
If an application targets R+, prevent the application from being
installed if the app has a compressed resources.arsc or if the
resources.arsc is not aligned on a 4-byte boundary. Resources tables
that cannot be memory mapped have to be read into a buffer in RAM
and exert unnecessary memory pressure on the system.

Bug: 132742131
Test: manual (adding CTS tests)
Change-Id: Ieef764c87643863de24531fac12cc520fe6d90d0
2020-04-09 11:01:54 -07: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
Phil Burk
d19e2f6e6c MIDI: check range of port counts
Fuzz testing cause out-of-memory errors
when passing very large port counts.
Now we check to make sure the port count is in a resonable range.

Bug: 135639926
Test: any MIDI test will exercise this code
Test: https://source.android.com/devices/audio/midi_test.html
Change-Id: Ic5dedc1eda86ff86a73a1da66ee6630c9662ceb8
2020-04-09 09:34:12 -07: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
arangelov
c758139095 Start sharesheet in the same profile instead of switching to other profile.
Instead of starting the sharesheet in the other profile when
choosing the "Switch to work"/"Switch to personal" button,
we now start the sharesheet in the same profile with the other tab
selected.

For example, we're in the personal profile and share something
via an app that uses its own sharing logic. That shows the
"Switch to work" button and when we press it, we now start
the sharesheet in the personal profile with the work tab selected.

The reason for this is to avoid user confusion when they go back
to the personal tab and it shows an empty state screen due to
lack of cross-profile intents.

Fixes: 152866292
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Test: atest IntentForwarderActivityTest#launchInSameProfile_chooserIntent
Change-Id: Ic117c9c51c663b6574e7692022bac82f7c899ec2
2020-04-09 15:46:33 +01:00