Commit Graph

109974 Commits

Author SHA1 Message Date
Automerger Merge Worker
e10e90482a Merge "Expose NetworkCapabilities methods to system/public APIs" am: 30b2ac7158 am: 435b410600 am: 6c14dd9c44
Change-Id: I6515df858f4ebc94d234f905a659db45188d72c6
2019-12-27 08:54:24 +00:00
Automerger Merge Worker
6c14dd9c44 Merge "Expose NetworkCapabilities methods to system/public APIs" am: 30b2ac7158 am: 435b410600
Change-Id: Id97144cf1421f5256748a196df37f58ffd006859
2019-12-27 08:45:44 +00:00
Aaron Huang
435b410600 Merge "Expose NetworkCapabilities methods to system/public APIs"
am: 30b2ac7158

Change-Id: Icb3d0559475a14130dea64a5ca49a6259d5a2eb9
2019-12-27 00:38:46 -08:00
Aaron Huang
30b2ac7158 Merge "Expose NetworkCapabilities methods to system/public APIs" 2019-12-27 08:32:50 +00:00
Aaron Huang
e6b62391da Expose NetworkCapabilities methods to system/public APIs
Add methods to system/public APIs for mainline support.

Bug: 139268426
Bug: 135998869
Bug: 138306002
Test: atest FrameworksNetTests
      atest NetworkStackTests
      ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
      atest FrameworksTelephonyTests
      atest android.net.cts
      atest android.net.wifi.cts
      atest android.telephony.cts

Change-Id: I6ec333309172edaf5aa976f83cfbe63512043594
2019-12-27 08:31:06 +00:00
TreeHugger Robot
a9ae085264 Merge "Decoupling InsetsAnimationControlImpl and the client" 2019-12-27 05:38:51 +00:00
Yunfan Chen
02abf55ab0 Decoupling InsetsAnimationControlImpl and the client
Currently InsetsAnimationControlImpl is heavily rely on
InsetsSourceConsumer and InsetsController on the client side, which
caused difficulties to the server to re-use the code. Decoupling it to
make it re-usable.

This patch made the following changes:
1. Introduce a callback interface to let InsetsAnimationControlImpl talk
   to InsetsController.
2. Use InsetsSourceControl instead of InsetsSourceConsumer in the
   InsetsAnimationControlImpl.
3. Remove all the consumers in the InsetsAnimationControlImpl.

Test: atest InsetsAnimationControlImplTest
Test: manual test with the new insets API, it works as expected.
Test: go/wm-smoke
Test: atest FrameworksCoreTests:InsetsControllerTest

Change-Id: I30f5aa73ff31e07c0dd8d61edbb208f16c5a6775
2019-12-27 12:04:54 +08:00
TreeHugger Robot
7512419419 Merge "Reject messages larger than MTU size" 2019-12-27 02:19:14 +00:00
PETER LIANG
abc02e8402 Merge "Multiple shortcut menu for android R (1/n)" 2019-12-27 01:59:05 +00:00
Nathan Harold
801bfb0d80 Merge "Expose PreciseDataConnectionState to Public API"
am: 47fbf0aaa0

Change-Id: I748243b2ebc02c6c750b83b722e5b38cf8fcf26e
2019-12-26 15:10:18 -08:00
Nathan Harold
47fbf0aaa0 Merge "Expose PreciseDataConnectionState to Public API" 2019-12-26 23:05:58 +00:00
Arthur Ishiguro
3009e50fe8 Reject messages larger than MTU size
Bug: 143360045
Test: Compile only
Change-Id: I2b8c226a5b8dffd3b9e9f7d533588592f6a1ec9b
2019-12-26 14:38:13 -08:00
TreeHugger Robot
032c3aa77e Merge "[DPP R2] Update ACTION_PROCESS_WIFI_EASY_CONNECT_URI intent" 2019-12-26 19:19:54 +00:00
Automerger Merge Worker
162fb37428 Merge "Camera: Fix typo when comparing display size height" into qt-qpr1-dev am: 870f67cc63
Change-Id: I74bd4ba4084d10f5e8ea866cc06799c52372e10e
2019-12-26 17:33:22 +00:00
Hai Shalom
7cd8e71494 [DPP R2] Update ACTION_PROCESS_WIFI_EASY_CONNECT_URI intent
Update ACTION_PROCESS_WIFI_EASY_CONNECT_URI intent to include
additional information in case of a failure. The intent will
return an extra field with result code for R1 and R2 devices,
and additional details for R2 devices: SSID, channe list,
and band list.

Bug: 139381558
Test: Manual test
Change-Id: Ib25db37279289acbb3841f4b4862d8cbeb4efdd2
2019-12-26 09:18:13 -08:00
TreeHugger Robot
870f67cc63 Merge "Camera: Fix typo when comparing display size height" into qt-qpr1-dev 2019-12-26 17:16:35 +00:00
TreeHugger Robot
1e4c5237df Merge "Add minimal post processing API to framework" 2019-12-25 13:14:51 +00:00
Automerger Merge Worker
3fc99ac92f Merge "Make MatchAllNetworkSpecifier constructor @SystemApi" am: 9dd0968ca1 am: 011eb06659 am: 14d9520d80
Change-Id: Ic2dd94ea3f120b457ade378b87a5c93ee0543155
2019-12-25 09:32:45 +00:00
Automerger Merge Worker
14d9520d80 Merge "Make MatchAllNetworkSpecifier constructor @SystemApi" am: 9dd0968ca1 am: 011eb06659
Change-Id: I8d0be2c9deff0f48842f8a3bb3c4a685ffe2e095
2019-12-25 09:15:35 +00:00
Aaron Huang
011eb06659 Merge "Make MatchAllNetworkSpecifier constructor @SystemApi"
am: 9dd0968ca1

Change-Id: I91420e99ce40526133ba6803ef0087b0316f61b4
2019-12-25 01:04:09 -08:00
Aaron Huang
9dd0968ca1 Merge "Make MatchAllNetworkSpecifier constructor @SystemApi" 2019-12-25 08:07:00 +00:00
Tiger Huang
7a339ca8e2 Merge "Call InputEventReceiver.dispose from the right thread" 2019-12-25 05:26:07 +00:00
Tiger Huang
dbc4e9c468 Merge "Window Manager Flag Migration (8/n)" 2019-12-24 08:41:13 +00:00
Peter_Liang
7ffd17c21d Multiple shortcut menu for android R (1/n)
Update AccessibilityButtonChooserActivity:
  - Remove legacy design codes and strings
  - Change chooser layout

Bug: 142528666
Test: maunal
Change-Id: I427987e71cbfa57ffdccbbd857f1e869c9d21d18
2019-12-24 15:08:08 +08:00
Tiger Huang
82520fcb67 Window Manager Flag Migration (8/n)
Dispatch the copied insets states and controls if the client and the
server are in the same process. Otherwise, changing them at the server
side will affect ones at the client side, and vice versa.

Bug: 118118435
Test: atest InsetsSourceProviderTest InsetsStateControllerTest
            InsetsPolicyTest WindowStateTests CommandQueueTest
            RegisterStatusBarResultTest InsetsFlagsTest
            LightBarControllerTest RegisterStatusBarResultTest
            ViewRootImplTest DisplayPolicyLayoutTests
            DisplayPolicyInsetsTests DisplayPolicyTests
            TaskSnapshotSurfaceTest NavigationBarColorTest
Change-Id: Iabe9fb1f345f576f08b156f32aa9bd3989911149
2019-12-24 14:28:40 +08:00
TreeHugger Robot
4c3a915c36 Merge "Add styling related fields to Inline presentation spec." 2019-12-24 01:54:31 +00:00
Feng Cao
7a0f002f5a Add styling related fields to Inline presentation spec.
Test: manual
Bug: 146454892

Change-Id: Id8f08ad0ee69e5c9c24fe038a06cbae3a3bc2c57
2019-12-23 15:53:58 -08:00
TreeHugger Robot
b722457082 Merge "Fix layer metadata key for a11y ID." 2019-12-23 23:38:49 +00:00
Ben Lin
eefcd54641 Merge "Add #onPictureInPictureRequested to Activity and ATM" 2019-12-23 22:08:59 +00:00
Michael Groover
8142ee3e61 Merge "Make DPM#checkDeviceIdentifierAccess a SystemApi" 2019-12-23 21:26:09 +00:00
Automerger Merge Worker
8a9e2a5ea6 Merge "ServiceManagerProxy: New method implementations" am: b2d8eb58a2 am: b88261b982 am: 3990bf8ba0
Change-Id: I876a25019dc9245671e1ffe53b7e3627877693ff
2019-12-23 20:43:01 +00:00
Automerger Merge Worker
3990bf8ba0 Merge "ServiceManagerProxy: New method implementations" am: b2d8eb58a2 am: b88261b982
Change-Id: Ieef272563ab13c9bad7b7f062f2778bb2a7062d1
2019-12-23 20:22:53 +00:00
TreeHugger Robot
3f7ef32b9f Merge "New API for query trust of a fs-verity certificate" 2019-12-23 20:18:40 +00:00
Jon Spivack
b88261b982 Merge "ServiceManagerProxy: New method implementations"
am: b2d8eb58a2

Change-Id: Ib572a6702fbf4aca5277f2d385a3ce6359d71851
2019-12-23 12:11:22 -08:00
Jon Spivack
b2d8eb58a2 Merge "ServiceManagerProxy: New method implementations" 2019-12-23 20:04:33 +00:00
Victor Hsieh
20fe1f6f22 New API for query trust of a fs-verity certificate
The corresponding service is also added.

The API can be used by a store to know whether their certificate is
trusted on the device. As optimization, they only need to download
.fsv_sig signature file if it will be used.

The API can also be used to gradually switch to stronger key. The store
can query with their certificates in priority order and download the best
signature.

Test: Passed new GTS working in progress
Bug: 142573505
Change-Id: Ic788cd04aeaed35ad62113fe9e7535b8fa63b5ee
2019-12-23 09:21:19 -08:00
Galia Peycheva
056b3ee745 Add minimal post processing API to framework
This API allows applications to instruct the connected display to do minimal
post processing on the produced image or video frames. This will switch the
display to a low latency mode (ALLM, Game mode or some other custom
implementation thereof), reducing lag in the final images. Thus, minimal post
processing would greatly enhance performance for gaming and video
conferencing applications. It would not, however, suit applications that
prioritise image quality over performance.

This CL adds 2 public method:
 - Window.setPreferMinimalPostProcessing()
(this can also be set in WindowManager.LayoutParams.preferMinimalPostProcessing)
If minimal post processing is preferred, the connected display will be requested
to go into low latency mode, which reduces image processing, resulting in better
performance for gaming applications. If the Display sink is connected via HDMI,
the device will begin to send infoframes with Auto Low Latency Mode enabled and
Game Content Type. This will switch the connected display to a lower latency
mode (if available).
For more information, see HDMI 2.1 specification.

If the Display sink has an internal connection or uses some other protocol than
HDMI, effects may be similar but implementation-defined.

 - Display.isMinimalPostProcessingPreferred()
Returns true if the connected display supports either Low Latency Mode (ALLM or
some other custom low latency implementation) or Game content type.

Bug: 135116095

Test: make -> flash on ATV OTT device -> open an activity which requests minimal
post processing -> check SurfaceControl logs -> verify correct signals are
passed to native

Change-Id: I5508bb9e5c138b0f2b42d8f8fab10e1915ba3cb6
2019-12-23 17:27:55 +01:00
Eran Messeri
6125f5fdc6 Merge "Individual attestation: throw if unsupported" 2019-12-23 15:50:51 +00:00
Song Pan
f4dcdaebba Merge "Implement methods in AppIntegrityManagerServiceImpl." 2019-12-23 15:21:59 +00:00
Song Pan
6e3677c0c3 Implement methods in AppIntegrityManagerServiceImpl.
1. Pushing rules.
2. Getting version/rule provider.
3. Handle integrity verification request

Bug:143689885

Test: atest AppIntegrityManagerServiceImplTest
Change-Id: I0f2d554efbd3ba115eab10238908c9c2a3f2139c
2019-12-23 13:24:08 +00:00
TreeHugger Robot
cd87f72f02 Merge "Send stacked apps through full standard start flow." 2019-12-23 12:50:43 +00:00
Tiger Huang
ced251f389 Call InputEventReceiver.dispose from the right thread
TaskPositioner attaches the InputEventReceiver to the animation thread.
This CL makes it to dispose the receiver in the same thread to avoid
race conditions.

This CL also makes InputEventReceiver.finalize call dispose from the
right thread.

Bug: 122054478
Fix: 122096091
Test: 1. Make a task enter free-form mode.
      2. Drag and drop the task.
      3. Check if InputEventReceiver.dispose and finishInputEvent are
         executed in the same thread.

Change-Id: I2f8831e7fccca4f96562f2abe4962811339d02e9
2019-12-23 13:21:10 +08:00
Jeff Sharkey
bc189e7d11 Merge "Block access to most Android/* directories." 2019-12-23 02:43:47 +00:00
Joanne Chung
3468ae5320 Merge "TextLinks API updates." 2019-12-23 02:11:45 +00:00
Daichi Hirono
638ae6d112 Fix layer metadata key for a11y ID.
Index 4 has already been used for METADATA_MOUSE_CURSOR.
The CL fixes the index for a11y ID from 4 to 5.

Bug: 143734779
Test: None
Change-Id: I295f8d327101c58c0034cf2a39d428d2bb397d0b
2019-12-23 11:07:01 +09:00
Jeff Sharkey
c887908f28 Block access to most Android/* directories.
In a scoped storage world, access to "Android/data" style directories
is blocked for privacy reasons.

Bug: 141521616
Test: manual
Change-Id: I0f435204ce2fcb4514e774239ecb1a1ca26d9dff
2019-12-22 14:16:20 -07:00
Anton Hansson
7252d9933a Merge "Stop building against core_platform where possible" 2019-12-22 09:07:32 +00:00
Automerger Merge Worker
f96069b311 Merge changes I4af73809,Iba6a564a,I3305b71e am: 5640e1d836 am: 91ccb1b309
Change-Id: I9a7b50482d2354710f85141fec0bbf9d980b4711
2019-12-22 08:35:11 +00:00
Jiyong Park
91ccb1b309 Merge changes I4af73809,Iba6a564a,I3305b71e
am: 5640e1d836

Change-Id: Ia0bfa4b3135a12f2e38438f192baa6ebb641bc4b
2019-12-22 00:20:17 -08:00
Jiyong Park
5640e1d836 Merge changes I4af73809,Iba6a564a,I3305b71e
* changes:
  Hide com.android.server package with @hide javadoc tag
  Add more enums for the client and process attributes of SystemApi
  SystemApi is parameterized
2019-12-22 08:15:25 +00:00