472484 Commits

Author SHA1 Message Date
TreeHugger Robot
6414fb0655 Merge "Tracking legacy remote submix active or not in RecordingActivityMonitor." into rvc-dev 2020-03-25 21:49:32 +00:00
TreeHugger Robot
7f7f19e7d3 Merge "Enable PIP Stretch Resize." into rvc-dev 2020-03-25 21:47:52 +00:00
Lyn Han
89274b4905 Auto-expand overflow bubbles on promote
Fixes: 151766943
Test: manual - promoted bubble auto-expands
Test: atest BubbleControllerTest

Change-Id: I1b2dff17f1853ce9a3fa04bb09f2152a9eb4d578
2020-03-25 14:22:16 -07:00
Igor Murashkin
a7176aaad1 tests: AppLaunch - increase sleep duration after resetting iorapd
Makes it less likely we'll launch the next app too quickly after
restarting iorapd.

Bug: 152322429
Test: am instrument
Change-Id: I4fc35665f03ae7d9fe073accfcb1e04842c737dd
2020-03-25 21:17:46 +00:00
TreeHugger Robot
d60a2bd945 Merge "Make OP_LEGACY_STORAGE stickiness configurable" into rvc-dev 2020-03-25 21:16:01 +00:00
Sudheer Shanka
60606304b0 Merge "Restore existing committer info correctly when a new commit fails." into rvc-dev 2020-03-25 21:09:56 +00:00
TreeHugger Robot
368c03efeb Merge "Expand javadoc based on API Council comment." into rvc-dev 2020-03-25 20:54:57 +00:00
Raff Tsai
9a54e23d8e Merge "Add SettingSnapshot atom" into rvc-dev 2020-03-25 20:42:07 +00:00
Tyler Gunn
f0edfb41f3 Merge "Hide adhoc conference APIs." into rvc-dev 2020-03-25 20:36:59 +00:00
Curtis Belmonte
1e6a356911 Fix display of BiometricPrompt wipe warning dialogs
Ensure that both local wipe dialogs are shown by the BiometricPrompt
credential view as appropriate:
- A "last attempt" warning dialog when the user is one failure from a wipe
- The "now wiping" dialog shows before the prompt is dismissed

Test: Manual:
1. Create a work profile via TestDPC (go/testdpc)
2. Set a work profile lock pattern/PIN/password via Settings > Security
3. Launch the work profile instance of TestDPC
4. Scroll down to "Lock screen"
5. Tap "Lock screen restrictions"
6. Select the "Work profile" tab
7. Set "Max password failures for local wipe" to 3
8. Lock & unlock the screen
9. Launch work profile app
10. Enter the wrong pattern/PIN/password three times

Fixes: 152016710
Change-Id: I3771d222aaaacef5fa70c1246432a6fd1afdcd42
2020-03-25 13:32:49 -07:00
Adam He
e2dbbce0dd Fix single field highlighting for autofill.
Bug: 150953184
Test: manual verification
Change-Id: I0519fe7c1d1d08cbee4c1703c1ad263a6eb7ef20
2020-03-25 13:30:24 -07:00
Alex Johnston
103f93a7e6 Make FRP APIs callable by Settings
Background
* If the device is an organization-owned managed
  profile device and a FRP policy is set, the
  factory reset protection data is no longer
  erased from factory reset in Settings.

Changes
* Added isNotEmpty method to FRP policy.
* Allow Settings to call
  getFactoryResetProtectionPolicy
  by checking for the MASTER_CLEAR permission.

Bug: 148847767
Test: manual testing
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I04f178255dd215579087c33b675b40eed7a6eac7
2020-03-25 20:16:28 +00:00
Lucas Dupin
587562b251 Merge "Require a more specific intent" into rvc-dev 2020-03-25 20:15:56 +00:00
Robert Snoeberger
b2f07e8ba4 Registering DeviceCallback too much
Fixes: 149753846
Test: manual - play music and toggle dark mode a few times
Change-Id: I9f5ddefee23d780072fe6c57bad187c3c2ddddbb
2020-03-25 16:02:21 -04:00
Todd Kennedy
66ed8dff37 Define permission for installer API v2
The package installer v2 APIs were marked as @SystemApi merely as
a convenience for development. These APIs may change in the next
version of Android and their usage must be strictly controlled.

Bug: 151716357
Test: Manual. Use old Shell and see that incremental installation fails with a SecurityException
Test: Manual. Request INSTALLER_V2 permission for shell and see that incremental installation succeeds
Change-Id: I9612dc145eadda20083bcc43e7a35ef3cd90aa40
2020-03-25 12:57:05 -07:00
Sudheer Shanka
0d34826d06 Restore existing committer info correctly when a new commit fails.
Fixes: 152425652
Test: atest --test-mapping apex/blobstore
Change-Id: Ife0cd417cedce603a907efd5ca261408ef599e9f
2020-03-25 12:50:52 -07:00
Sudheer Shanka
2a973ab626 Add CTS for BlobStoreManager.Session.openRead().
Bug: 152423769
Test: atest --test-mapping apex/blobstore
Change-Id: I517adb501bf6899dadd78c1b28c2135ae0b6f798
2020-03-25 12:49:30 -07:00
Tiger Huang
8d4ffed26d Merge "Fix a potential NullPointerException in InsetsPolicy" into rvc-dev 2020-03-25 19:44:54 +00:00
Rob Carr
f7de7b6811 Merge "SurfaceControlViewHost: Enable HARDWARE_ACCLERATION by default" into rvc-dev 2020-03-25 19:44:16 +00:00
Paul Chang
b8a9f46f06 Merge "Send intent to let calling app know that user checks consent." into rvc-dev 2020-03-25 19:04:11 +00:00
TreeHugger Robot
e174ee831e Merge "Separate updating views from deriving state" into rvc-dev 2020-03-25 18:56:06 +00:00
Sarah Chin
48273a3520 Update READ_PHONE_NUMBER security checks
For SDK R+, READ_PRIVILEGE_PHONE_STATE and carrier privilege should
allow access.

Test: atest TelephonyPermissionsTest
Bug: 151952050
Change-Id: Ie97d0b195937d4729875afd1e74357c1284e101f
2020-03-25 11:50:30 -07:00
Alex Kershaw
ec19b8d075 Add hidden API to clear all cross-profile app-ops
Reset the INTERACT_ACROSS_PROFILES app-op for all apps on the device
when creating a new work profile. This ensures that user grants for
previous work profiles (perhaps with a different admin) are not saved
and also not restored with backup-and-restore.

Also, clear the shared preference storing which oem-whitelisted apps the
user has granted. This ensures that the user sees them all again
during work profile provisioning.

Fixes: 151145623
Test: atest com.android.managedprovisioning.task.CreateManagedProfileTaskRoboTest
Change-Id: I5f5c5aea1c36bd17a74c02e1b6fa9b4047f15003
2020-03-25 18:21:19 +00:00
Nate Jiang
0ccefbe94b Merge "Keep most recently connection network flag" into rvc-dev 2020-03-25 18:10:13 +00:00
Tiger Huang
fedcd296f5 Fix a potential NullPointerException in InsetsPolicy
Fix: 151308746
Test: Presubmit
Change-Id: Ia98f809c08d741a01a75979c03eb6ddfbc86fd89
2020-03-26 01:59:45 +08:00
TreeHugger Robot
b385467d51 Merge "Assign missing stateful fields in PackageInfoUtils" into rvc-dev 2020-03-25 17:52:36 +00:00
Lucas Dupin
a9afc32ddc Require a more specific intent
Fixes: 147606347
Test: run poc, device didn't reboot
Change-Id: I8f721ca659d58271880a7adbf386b270b331e55b
2020-03-25 10:46:44 -07:00
TreeHugger Robot
d0db17a1c2 Merge "Let Home activity restart during first few crashes" into rvc-dev 2020-03-25 17:38:37 +00:00
Muhammad Qureshi
6fe5fd6e2e Merge changes Iad76baea,I3db5f4ff into rvc-dev
* changes:
  Run clang-format in stats_log_api_gen
  Add truncate_timestamp annotation
2020-03-25 17:38:05 +00:00
Tiger Huang
d10a12cf27 Merge "Make canBeImeTarget be compatible with legacy behavior" into rvc-dev 2020-03-25 17:36:56 +00:00
TreeHugger Robot
8910bf95c6 Merge "Fix ValueMetricProducer_test on hwasan" into rvc-dev 2020-03-25 17:32:55 +00:00
Dmitri Plotnikov
f903ef10e5 Merge "Propagate exception thrown by ContentProvider.getType" into rvc-dev 2020-03-25 17:24:31 +00:00
Robert Snoeberger
d8643f4fca Separate updating views from deriving state
The benefit is that icon colors and icon scaling can be performed on a
background thread and then all of the views updated on the main thread.

Bug: 150454272
Test: atest KeyguardMediaPlayerTest.kt
Test: manual - play music and look at lock screen controls
Change-Id: I2423233f1ddeb081ab420053964c2b1cb2185514
2020-03-25 13:10:00 -04:00
Hui Yu
9b52815e71 Add isUidActiveOrForeground() for camera/audio to use.
Currently CameraService calls isUidActive() before allowing the camera
access.

When start/resume activity, WindowManagerService start/resume the
activity, then post a runnable to DiaplayThread and
ActivityManagerService to update UidRecord's
proc state, because the thread switch, the latency before proc
state update is undetermined.

When CameraService calls ActivityManagerService.isUidActive(), the proc
state may not have been updated and camera access is denied.

isUidActiveOrForeground() check isUidActive() first, if false,
check isUidForeground() which is actually to check with WindowManagerService if
the uid is foreground, which is equivalent to ActivityManagerService's uid
active, just updated earlier.

Bug: 151185692, 151777097, 109950150
Test: manual test.
Change-Id: Iffed63293dbdb466e7955fe765ad2aa23a20b3ed
2020-03-25 10:06:14 -07:00
jiabin
9bad0e947f Tracking legacy remote submix active or not in RecordingActivityMonitor.
When enabling Live Caption, remote submix device will be set as fixed
and full volume device in audio service. In that case, volume control
for remote submix will not be forwarded anymore. However, it is expected
to have volume control when the device is on chromecast mirror mode.
To solve the problem, tracking legacy remote submix device is active or
not in RecordingActivityMonitor. When legacy remote submix device is
active, remote submix will not be treated as fixed/full volume device.
In audio policy manager, the remote submix that is used by dynamic
policy will still be fixed volume device.

Bug: 144063329
Test: repo steps in bug
Change-Id: I1cb83c17f34e636763bb989e37ac8e021217cc39
Merged-In: I1cb83c17f34e636763bb989e37ac8e021217cc39
2020-03-25 17:04:49 +00:00
Eugene Susla
2f54a864d5 Merge "Switch auto-revoke manifest flag to a tri-state" into rvc-dev 2020-03-25 17:03:32 +00:00
TreeHugger Robot
0e503e5ebb Merge "Don't dispatch IME insets if the target is above IME" into rvc-dev 2020-03-25 17:01:33 +00:00
François Gaffie
bb58b4e684 [AudioServer] Fix CTS for volume groups based on non public streams
This CL fixes VolumeGroup CTS by preventing to set the volume per
stream for group associated to a non public stream type.

Bug: 136121584
Test: run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioProductStrategyTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioVolumeGroupTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioVolumeGroupChangeHandlerTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testPermissionsForVolumePerAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testGetAndValidateProductStrategies
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testGetAndValidateVolumeGroups
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testSetGetVolumePerAttributesWithInvalidAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testSetGetVolumePerAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testVolumeGroupCallback

Change-Id: I53d9d2d4d7591300bf364d591412b548356cd118
2020-03-25 09:51:14 -07:00
Christine Tsai
be88f7df21 Merge "Update the cc_benchmark to use the new socket schema" into rvc-dev 2020-03-25 16:41:20 +00:00
Etan Cohen
74b650b992 [WIFI][SYSUI] Display Wi-Fi icon in status bar if it is the default network
Wi-Fi icon was removed from status bar if it doesn't have internet
access. Rationale was that it gives users incorrect impression that
wi-Fi is enabled whereas in reality cellular is used.

However, in cases where there is no cellular Wi-Fi may be the default
network even if it has no internet access. In such cases, Wi-Fi is the
default network, always show it in the status bar.

Bug: 136473125
Test: atest NetworkControllerWifiTest
Test: visual inspection
Change-Id: I0ec189e2340d3280165cafd8747a7456f7e950f5
2020-03-25 09:41:19 -07:00
Ricky Wai
2cd955e79d Do not mount whitelisted package in storage data and obb dirs
We now pass 2 booleans from AM to zygote about:
- If CE and DE data dirs need to be mounted
- If storage data and obb dirs need to be mounted

And also, separate whitelisted package from same uid packages, as same
uid packages do not need to be mounted in storage data and obb dir case,
it's needed to be mounted for CE and DE data dirs only. Otherwise
whtelisted packages will also be mounted in storage data and obb dirs,
which apps should not have access to it.

Bug: 151218156
Test: atest AdoptableHostTest
Change-Id: If7c20a7ed3b845d8657c937469161cb7ed3da07f
2020-03-25 16:40:46 +00:00
Winson Chung
e5ab0170f8 Skip excluded MW mode tasks from recents and running tasks
- Skip multi-window mode tasks with the exclude-from-recents flag from
  the visible recent tasks list
- Expose a method in LauncherApps to be able to start a shortcut with
  additional intent flags (to add the exclude-from-recents flag)
- Remove unused ActMan path (only ActTaskMan call is used now)
- Refactor the call to get the running tasks, there are currently only
  two usages of getFilteredTasks(), one is to get all the tasks, the
  other is really to get tasks that we will end up using for transitioning
  into the task in recents.

  As such, we can remove the individual ignore flags (it would get more
  complicated if we wanted to filter based on logic like MW mode +
  excluded recents only), and instead have a boolean that filters the
  running tasks based on whether they would ever show in recents at all,
  with the exception of the home and recent tasks.

Bug: 152133859
Test: atest WmTests:RunningTasksTest
Test: atest WmTests:RecentTasksTest
Change-Id: Ia4f5fd37228c72ce449490f948e923afba821bb2
Signed-off-by: Winson Chung <winsonc@google.com>
2020-03-25 09:29:29 -07:00
Ned Burns
dc3919ab66 Merge "Move inactive user filtering to its own filter" into rvc-dev 2020-03-25 16:29:21 +00:00
Winson Chung
aff506bb30 Fix small issue with task org state cleanup
- When the task org binder died, it previously did not remove from
  the mTaskOrganizersForWindowingMode list and handle replacements
  the same way as unregistering.  Likewise when unregistering,
  the code to handle replacements could override the existing
  state since it only checks if the previous state was not disposed
  before setting it.

  Alternatively, we can keep the list of TaskOrganizerStates for a
  windowing mode in a list. The last item in the list is the current
  task org for that windowing mode. When a task org is removed or
  its binder dies, we simply remove from that list.

Bug: 152134222
Test: atest WmTests:TaskOrganizerTests

Change-Id: I1c7fd8907c7f025da25d62b0fa939edbb789e0cb
2020-03-25 09:28:06 -07:00
TreeHugger Robot
aa9b7407da Merge "Don't include the data dir in zygote library paths." into rvc-dev 2020-03-25 16:27:52 +00:00
Winson Chung
97b931681f Merge "Account for stopping activities when determining whether to restart" into rvc-dev 2020-03-25 16:21:00 +00:00
Winson Chung
7da77f4141 Merge "Ensure previous background color is reapplied when showing a SurfaceView" into rvc-dev 2020-03-25 16:20:58 +00:00
Abhijeet Kaur
0b304c36f6 Show predefined title and description in finished notification
shareTitle and shareDescription is passed by the caller of the
bugreport. Show these in the finished bugreport notification.

Pre-set shareTitle takes precedence over user modified title.

shareDescription and description are not related/dependant on each other
in any way.

Bug: 150333444
Test: Manual (by passing EXTRA_TITLE and EXTRA_DESCRIPTION from
ActivityManagerService when trigerring a bugreport)

Change-Id: I2bfd080aeee677cdc8d0af339d7ad4a29451c3e0
2020-03-25 15:55:27 +00:00
Rubin Xu
9747684a07 Merge "Clear no_remove_managed_profile retriction when removing test PO" into rvc-dev 2020-03-25 15:55:23 +00:00
Tyler Gunn
703dd182fd Hide adhoc conference APIs.
Most of this was previously hidden; these last stragglers were missed.

Test: make update-api ; verify hidden
Fixes: 152394802
Change-Id: I41bda5b8ad368e1c88e4dd9e45d978a111a22e53
2020-03-25 08:50:48 -07:00