Commit Graph

466498 Commits

Author SHA1 Message Date
Ricky Wai
88b369a487 Mount private volume hook after prepareUserData
As CE and DE data directory may not be ready when volume is mounted
(like a new volume). We try to mount data mirror after user data is
prepared. It will skip mounting data mirror if it's already mounted.

Bug: 149027213
Test: After reverting ag/10156695 and aosp/1218838, can see virtual disk
is mounted correctly in adb shell mount, and test app works and mounted
correctly after pm move-package.

Change-Id: If433914a93f7e6154f31715869f52b387157b2dd
2020-02-13 12:00:13 +00:00
Automerger Merge Worker
e5bbdcfcf5 Merge "Include NetworkCapabilities and LinkProperties in DataStallReport." am: 3939d29c0b am: b3a0f10a8e am: 8a175acf37
Change-Id: Iae8c37ceeae1616b2b0edc43248e72f3de082f20
2020-02-12 17:50:39 +00:00
TreeHugger Robot
36256cb11f Merge "idmap2: support Lookup for arrays" 2020-02-12 17:49:56 +00:00
TreeHugger Robot
98a201dcd9 Merge "Finalize @SystemApi annotation for StatsFrameworkInitializer (retry)" 2020-02-12 17:36:49 +00:00
Automerger Merge Worker
8a175acf37 Merge "Include NetworkCapabilities and LinkProperties in DataStallReport." am: 3939d29c0b am: b3a0f10a8e
Change-Id: Ifc6f6a919986305002d2e2c60aa3cda8f0b8b5ac
2020-02-12 17:32:19 +00:00
Florian Mayer
fab4628666 Merge "Do not disable tracing in zygote." 2020-02-12 17:28:07 +00:00
Cody Kesting
b3a0f10a8e Merge "Include NetworkCapabilities and LinkProperties in DataStallReport."
am: 3939d29c0b

Change-Id: If2157b0dd7d62560c77318b76e0d7d2a66c09644
2020-02-12 09:16:41 -08:00
Anton Hansson
96d61bff33 Merge "Build permission against the module SDK" 2020-02-12 16:56:46 +00:00
Anton Hansson
85231d53b4 Merge "Build updatable media against the module SDK" 2020-02-12 16:56:23 +00:00
Alex Johnston
12a4461733 Merge "Modify Screen Capture Disabled APIs" 2020-02-12 16:55:36 +00:00
Anton Hansson
c6e0e28391 Merge "Add @Nullable and @NonNull to module API" 2020-02-12 16:55:31 +00:00
Heemin Seog
be601fbd30 Merge "Delay registering of callbacks until bouncer is created" 2020-02-12 16:53:33 +00:00
TreeHugger Robot
0d8e795922 Merge "Add some missing MediaFormat fields in MediaParser" 2020-02-12 16:46:36 +00:00
Cody Kesting
3939d29c0b Merge "Include NetworkCapabilities and LinkProperties in DataStallReport." 2020-02-12 16:38:38 +00:00
TreeHugger Robot
b05882a049 Merge "Add null check for voiceInteractorComponentName." 2020-02-12 16:24:29 +00:00
Songchun Fan
9d90cfaba0 Merge "Fix mounting existing images on reboot" 2020-02-12 16:10:12 +00:00
Florian Mayer
e38797be84 Do not disable tracing in zygote.
We now use the sequence number of the atrace tag rather than a Binder
transaction, so zygote can observe changes to the tags.

Test: m; flash; adb shell atrace dalvik | grep hprof
Bug: 137366208
Bug: 147667830

Change-Id: I50e32a19c538dd255097c035836504b4746b172b
2020-02-12 16:01:16 +00:00
Automerger Merge Worker
fcc48dea8f Merge changes from topic "NS-A44_lingerstate" am: ea8483c0f5 am: 8f13cef9e5 am: 840b3d73ae
Change-Id: Ic9ea1c879cfcf145f569a388b52c6b7de0e8bb87
2020-02-12 16:00:34 +00:00
TreeHugger Robot
92e6a9f5d1 Merge "Controls UI - ActivityView WIP" 2020-02-12 15:58:44 +00:00
Automerger Merge Worker
840b3d73ae Merge changes from topic "NS-A44_lingerstate" am: ea8483c0f5 am: 8f13cef9e5
Change-Id: If045bc0da9babaf9d5a67031986c1fe4d75f2dc3
2020-02-12 15:48:31 +00:00
Leon Scroggins
69b9dcf528 Merge "AImageDecoder: Make create enforce int32_t dimensions" 2020-02-12 15:41:51 +00:00
Automerger Merge Worker
8f13cef9e5 Merge changes from topic "NS-A44_lingerstate" am: ea8483c0f5
Change-Id: Ibec8f280ad0b256d3d9b065a541063fc63d5a356
2020-02-12 15:29:30 +00:00
Evan Severson
9ab79433f7 Merge "Add debug logging for one-time permissions" 2020-02-12 15:23:06 +00:00
Chalard Jean
ea8483c0f5 Merge changes from topic "NS-A44_lingerstate"
* changes:
  [NS B10] Cleanup : remove mRematchedNetworks
  [NS B09] Create NetworkRanker
  [NS B08] More simplification
  [NS B07] More simplification
  [NS B06] Simplification
  [NS B05] Remove old dead code
  [NS B04] Make the network selection request-major.
  [NS B03] Add debug log showing the reassignment
  [NS B02] Split out a function to apply a NetworkReassignment
  [NS B01] Move the computation loop to a separate function
  [NS A44 2/2] Apply requests after all networks rematching is computed
  [NS A44 1/2] Update linger state before processing listens
2020-02-12 15:13:10 +00:00
Fabian Kozynski
1e88cfefac Merge "Add QSLogs using new loggers" 2020-02-12 15:10:27 +00:00
TreeHugger Robot
63d4441d3e Merge "Mark nullability in WebViewProviderResponse." 2020-02-12 14:49:44 +00:00
TreeHugger Robot
b773bf856d Merge "Fix voice communication audio playback capture" 2020-02-12 14:35:36 +00:00
Automerger Merge Worker
70c57a4949 Merge "Don't crash system process on empty onTuneFailed" into qt-qpr1-dev am: 7b19135cc5 am: 04d3612990
Change-Id: I335481eff45455d75c63253b28f0d4a83baaa658
2020-02-12 14:31:06 +00:00
Antoan Angelov
d60e103d80 Merge "Add empty state screens." 2020-02-12 14:25:02 +00:00
Nadav Bar
24e0298b57 Fix voice communication audio playback capture
This change fixes the CTS failure in AudioPlaybackCaptureTest caused by
ag/10111312 and ag/10111311.
It contains the following fixes/changes:
  - Capturing of voice communication is only allowed when the caller is
    explicitly asking for an attribute match USAGE_VOICE_COMMUNICATION.
    If an app adds that match rule, then the permission check for
    CAPTURE_VOICE_COMMUNICATION_OUTPUT will take place. For all other
    rules (like UID), the caller will receive silenced audio for voice
    communication.
  - Capture of voice communication will be only allowed for privileged
    capture. Hence other then CAPTURE_VOICE_COMMUNUCATION_OUTPUT, the
    calling app is also assume to have CAPTURE_MEDIA_OUTPUT.
  - Code cleanup, mainly in AudioService.java

This change is accompanied by ag/10242954 on the native side.

Bug: 148559127
Test: Manually
Test: atest PlaybackCaptureTest (with the version prior to ag/10220852)
Test: atest com.google.android.gts.audio.AudioHostTest
Change-Id: I1077db2e0f3c4133fca97d7b461f673bac693676
2020-02-12 16:16:54 +02:00
Automerger Merge Worker
04d3612990 Merge "Don't crash system process on empty onTuneFailed" into qt-qpr1-dev am: 7b19135cc5
Change-Id: I172c5465d4387efb18556b8536072bfb26319165
2020-02-12 14:14:25 +00:00
Santiago Seifert
c95839d66f Add some missing MediaFormat fields in MediaParser
Also avoid populating MediaFormat fiels with
absent ExoPlayer Format fields.

Bug: 132153067
Test: CTS.
Change-Id: I49f897af9b97f834e8a71f77c93beb5848c8fd01
2020-02-12 14:13:42 +00:00
TreeHugger Robot
7b19135cc5 Merge "Don't crash system process on empty onTuneFailed" into qt-qpr1-dev 2020-02-12 14:00:20 +00:00
Torne (Richard Coles)
51c221ab4e Mark nullability in WebViewProviderResponse.
The packageInfo can be null when the system is in a bad state and has no
WebView implementation; mark it @Nullable to make this clear.

Test: m
Change-Id: I9f87adf46809b9f1d4d6e68f35ec0fa18617834d
2020-02-12 13:39:14 +00:00
Matt Pietal
68456a1b31 Controls UI - ActivityView WIP
Beginning elements of using an ActivityView in lieu of detail
panels. The concept works, but more refinement is needed. We would
want to limit to a single activity and properly handle events to close
the dialog. To test, set this flag:

adb shell settings put secure systemui.controls_use_detail_panel 1

Bug: 148207527
Test: manual
Change-Id: Id8a213f949a6a759c9a014c05ffa1135e800b4fc
2020-02-12 08:24:55 -05:00
Shu Chen
80a75bdb68 Merge "FISHEYE_RAMP_WIDTH should be in DP instead of pixels." 2020-02-12 13:21:08 +00:00
Zimuzo Ezeozue
e45b2fd37f Merge changes from topic "fuse_flip"
* changes:
  FUSE flag on by default
  Refactor FUSE flag precedence resolution
2020-02-12 13:15:48 +00:00
Chalard Jean
fbb758f615 [NS B10] Cleanup : remove mRematchedNetworks
This is better computed by the code that applies the change
than by the code that computes the reassignment

Test: FrameworksNetTests
Change-Id: I13e2764fd9b29145499085c3bb56de88a97d6c3c
2020-02-12 21:23:45 +09:00
arangelov
590fba384a Add empty state screens.
The added screens are for the following scenarios:
- No resolved apps on the visible tab
- Sharing not enabled by admin for the visible tab for both
directions, work->personal and personal->work
- Work profile is disabled

Other changes in this CL:
- Make the intent resolver height suitable for the empty states
- Handle landscape mode gracefully by hiding the content preview
if the tabs are shown
- Show the content preview view as part of the list view if there
are no tabs present, and above the tabs if tabs are present
- Remove elevation if showing the tabbed view

What's left:
- Finalize strings

Test: manually tested all conditions for the empty state screens
Test: atest com.android.internal.app.ChooserActivityTest
Test: atest com.android.internal.app.ResolverActivityTest
Bug: 142537267
Bug: 142538125

Change-Id: I4e5ab5fa368d2b907e3fa74b00a82d8739e4f229
2020-02-12 12:22:20 +00:00
Chalard Jean
7a5e51f4dc [NS B09] Create NetworkRanker
Bug: 113554781
Test: FrameworksNetTests
Change-Id: Ia534247144f479fe896e1a6e05b906103cd10005
2020-02-12 20:57:45 +09:00
Chalard Jean
26693d466a [NS B08] More simplification
Only computing the reassignment does not actually change the
default network.

Test: FrameworksNetTests
Change-Id: I21ddf5cc1e3d3817055dbda4246e38ceb0732407
2020-02-12 20:57:44 +09:00
Chalard Jean
7738b84729 [NS B07] More simplification
The new reassignment does not contain these useless lines
any more.

Test: FrameworksNetTests
Change-Id: I1583aebe94e529ce2b36e191a6e1f49c976bf29a
2020-02-12 20:57:44 +09:00
Chalard Jean
cdd4c45008 [NS B06] Simplification
This check is now unnecessary, seeing how the code adding these
changes is now guaranteed to only add at most one change for
each request.

Test: FrameworksNetTests
Change-Id: Ia0443602d9c89ee413e956df9c7b79f8f74813f7
2020-02-12 20:57:43 +09:00
Alex Johnston
8e935f7737 Modify Screen Capture Disabled APIs
* Previously, setScreenCapturedDisabled and getScreenCaptureDisabled
  did not support explicitly querying the parent profile.
* This CL allows the COPE profile owner call these APIs on the parent
  profile to disable screen capture device-wide.

Bug: 149006854
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testScreenCaptureDisabled
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testScreenCaptureDisabled
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testScreenCaptureDisabled_assist
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testScreenCaptureDisabled_allowedPrimaryUser
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testCreateAdminSupportIntent

Change-Id: I64469af190577f66f48052c7f0df20067101aac4
2020-02-12 11:52:59 +00:00
Chalard Jean
8a2bf77793 [NS B05] Remove old dead code
Test: FrameworksNetTests
Change-Id: I553721b327b76ede0e76b9fb7a0130fcae012175
2020-02-12 20:52:17 +09:00
Chalard Jean
47d464870f [NS B04] Make the network selection request-major.
This patch marks the most important turning point of this
refactoring. Cleanups removing unused code will follow.

Replace the old network-major reassignment computation with a
much simpler and faster loop that takes each request and assigns
it the highest-scoring network.

All tests pass, of course.

Bug: 113554781
Test: FrameworksNetTests
Change-Id: Ie143802995155151a38a4eb1d2f26c3f29e556bd
2020-02-12 20:52:17 +09:00
Chalard Jean
bf1170cc19 [NS B03] Add debug log showing the reassignment
dumpString for a reassignment looks like :

NetworkReassignment :
  Rematched networks : [100 CELLULAR], [101 WIFI]
  6 : 100 → 101
  8 : null → 101

toString looks like :

NetReassign [4 : 100 → 101, 5 : null → 101]

If no changes, then it looks like
NetworkReassignment : no changes

Bug: 113554781
Test: Manual
Change-Id: If9eeadb7ee317dee2d91ca1feca3091ae39e9bae
2020-02-12 20:52:17 +09:00
Chalard Jean
8bab483c2b [NS B02] Split out a function to apply a NetworkReassignment
This makes the rematchAllNetworksAndRequests function, which
is the nexus of the rematching code, very straightforward and
easy to read.

Bug: 113554781
Test: FrameworksNetTests
Change-Id: I5cea4ed7e06439494700d88ab202b696402fa360
2020-02-12 20:52:17 +09:00
Chalard Jean
14c2d1da86 [NS B01] Move the computation loop to a separate function
Bug: 113554781
Test: FrameworksNetTests
Change-Id: I6c28c7af5c600d35aa1e9328b6c988dadb921f51
2020-02-12 20:52:17 +09:00
Chalard Jean
5f8010bf80 [NS A44 2/2] Apply requests after all networks rematching is computed
This patch finally separates completely computing the rematch
from all the side effects. A collateral effect of this is to
compute correctly the background network state in
rematchNetworkAndRequests, which compensates the breakage
from the previous patch.

Bug: 113554781
Test: ConnectivityServiceTest
Change-Id: I998c729c385940168fcd6ba3f2e01911f1844ce1
2020-02-12 20:52:17 +09:00