Commit Graph

31595 Commits

Author SHA1 Message Date
Makoto Onuki
b55bfbda2b Merge "Update api-lint baseline for NO_SETTINGS_PROVIDER" 2020-05-27 15:03:09 +00:00
Automerger Merge Worker
432000fef9 Merge "Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea am: b7e62faf05 am: 1c4bcda424" into rvc-qpr-dev-plus-aosp am: cce2d11a1c
Change-Id: I8e145e9a194fad5b6e78f50016af542a0d384ef1
2020-05-27 05:28:15 +00:00
TreeHugger Robot
116baa3ad8 Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea am: b7e62faf05 am: 1c4bcda424
Change-Id: I2543d698154caff16978fb1e1730794975052011
2020-05-27 05:16:53 +00:00
TreeHugger Robot
f49fa1a9ea Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev 2020-05-27 04:39:45 +00:00
Zach Johnson
1eec532a8e Add NAMESPACE_BLUETOOTH for bluetooth feature experiments
Exempt-From-Owner-Approval: exact cherry-pick from already approved master CL.
Test: compile
Bug: 156757711
Merged-In: I330b8cc5aeb14ebcc15fb88c605ac72770497040
Change-Id: I330b8cc5aeb14ebcc15fb88c605ac72770497040
(cherry picked from commit 9b9235981c)
2020-05-27 02:01:21 +00:00
Makoto Onuki
451da1ce77 Update api-lint baseline for NO_SETTINGS_PROVIDER
Bug: 151454839
Test: See the other CL in the topic

Change-Id: I4e1d6c419c79663a47341cf26d5229ec17b9ca01
2020-05-26 17:09:40 -07:00
Zach Johnson
9b9235981c Add NAMESPACE_BLUETOOTH for bluetooth feature experiments
Test: compile
Bug: 156757711
Change-Id: I330b8cc5aeb14ebcc15fb88c605ac72770497040
2020-05-26 13:59:56 -07:00
Ray Essick
43132a9ab8 Replace "allow-frame-drop" with KEY_ALLOW_FRAME_DROP
Also, provide javadoc describing the semantics.

Bug: 153165698
Test: build
Change-Id: I0deebe2ad9ab6857cf525f09f865b562142c1010
2020-05-25 11:46:54 -07:00
Anton Hansson
4e6c713554 Merge "Remove nullablility annotations from module-lib" 2020-05-25 08:52:36 +00:00
Chris Li
188dd133c3 Merge "Migrate DisplayContent.mOverlayContainers to DisplayArea" 2020-05-21 00:21:17 +00:00
Chris Li
27284de40a Migrate DisplayContent.mOverlayContainers to DisplayArea
(1/n DisplayArea Sibling Roots)

Instead of adding magnification window to the overlay containers in
DisplayContent, move it to be part of the policy created display
hierarchy.

DA.Root
   - DA for FEATURE_WINDOWED_MAGNIFICATION
      - BELOW_TASKS
      - TDA
      - ABOVE_TASKS (below TYPE_ACCESSIBILITY_MAGNIFICATION_OVERLAY)
   - DA.Tokens for TYPE_ACCESSIBILITY_MAGNIFICATION_OVERLAY
      - Magnification overlay windows
   - ABOVE_TASKS (DA.Tokens's for layers above
     TYPE_ACCESSIBILITY_MAGNIFICATION_OVERLAY)

Fix: 156424590
Test: manual: magnification and screen rotation
Test: go/wm-smoke (manual)
Change-Id: I959c0a882b0a0e9a9dbb44ad62a3c65c1dfe3c06
2020-05-20 13:44:33 -07:00
TreeHugger Robot
5804ce6725 Merge "Change implementation of VibrationEffect scaling" 2020-05-20 14:50:38 +00:00
Anton Hansson
f330f3ab74 Remove nullablility annotations from module-lib
They were added to workaround the problem of package-private versions
being added to the stubs, which prevented use of the annotations from
mainline modules.

Having them in the API leads to a different problem -- this version of
the nullability annotations have SOURCE retention. However in the stubs
build we want to have CLASS retention, so that kotlin can make use of
their presence.

This is arguably a much cleaner fix, since having a source-retention
annotation doesn't really make much sense.

Bug: 157010342
Test: m
Change-Id: Id78f00da5b6af2930224a82faa24cb8235362521
Merged-In: Id78f00da5b6af2930224a82faa24cb8235362521
2020-05-20 12:55:43 +01:00
Anton Hansson
206be52a78 Remove nullablility annotations from module-lib
They were added to workaround the problem of package-private versions
being added to the stubs, which prevented use of the annotations from
mainline modules.

Having them in the API leads to a different problem -- this version of
the nullability annotations have SOURCE retention. However in the stubs
build we want to have CLASS retention, so that kotlin can make use of
their presence.

This is arguably a much cleaner fix, since having a source-retention
annotation doesn't really make much sense.

Bug: 157010342
Test: m
Change-Id: Id78f00da5b6af2930224a82faa24cb8235362521
Merged-In: Id78f00da5b6af2930224a82faa24cb8235362521
2020-05-20 12:55:22 +01:00
Anton Hansson
bf63f941a0 Remove nullablility annotations from module-lib
They were added to workaround the problem of package-private versions
being added to the stubs, which prevented use of the annotations from
mainline modules.

Having them in the API leads to a different problem -- this version of
the nullability annotations have SOURCE retention. However in the stubs
build we want to have CLASS retention, so that kotlin can make use of
their presence.

This is arguably a much cleaner fix, since having a source-retention
annotation doesn't really make much sense.

Bug: 157010342
Test: m
Change-Id: Id78f00da5b6af2930224a82faa24cb8235362521
2020-05-20 12:55:01 +01:00
TreeHugger Robot
fc6d07c7f5 Merge "Mark TelecomManager#isRinging as a TestApi" 2020-05-19 23:07:11 +00:00
Hall Liu
577a00745e Merge "Rename addServiceAnnouncement-related methods" 2020-05-19 22:35:16 +00:00
Hall Liu
88a0994a76 Mark TelecomManager#isRinging as a TestApi
Bug: 150320750
Test: atest BackgroundCallAudioTest
Change-Id: I048960feb97cd6cf081056ee649e7ea8dacdc8e3
2020-05-19 13:36:18 -07:00
Chris Ye
535a128dc1 Change InputWindowInfo::isTrustedOverlay() to be permission and flag based
Add private flag to WindowManager.LayoutParams. If the flag is set,
check if caller has INTERNAL_SYSTEM_WINDOW permission.

Bug: 155781676
Test: atest WindowManagerServiceTests
Change-Id: I70151697cc01e8427129f951f0ebadc4805b2d56
2020-05-19 10:51:56 -07:00
Hall Liu
6158137cf2 Rename addServiceAnnouncement-related methods
Address feedback on the API

Fixes: 155926142
Test: CTS
Change-Id: I69e17faf4d09ab686fdd97975bc7f069597b87b3
2020-05-18 14:52:18 -07:00
TreeHugger Robot
f750b873ae Merge "Formalize DeviceIdle's exitIdle call." 2020-05-18 19:14:49 +00:00
Dorin Drimus
2ebf90de55 Merge "Attest device base properties" am: 547aeb27e8 am: f078d49979 am: c5a547bb2b am: 9acc5b49d5 am: d2c9212ff3
Change-Id: If6f974dae2bfb94e34e1c03833e6eca000f5774e
2020-05-18 10:46:44 +00:00
Dorin Drimus
c5a547bb2b Merge "Attest device base properties" am: 547aeb27e8 am: f078d49979
Change-Id: Icbca4968438f659bf3d636100b5b172e63eaefb2
2020-05-18 10:13:21 +00:00
Kweku Adams
22d444e406 Formalize DeviceIdle's exitIdle call.
In preparation for DeviceIdle mainlining, we have to define stable APIs
for other modules and the rest of the system to use. This introduces a
stable API for the exitIdle call.

Bug: 142281756
Bug: 142393582
Test: atest NotificationManagerTest
Test: atest PhoneWindowManagerTest
Change-Id: I79ea2b34d9abb2bb44575e98cc923d6383419230
2020-05-15 11:58:39 -07:00
Lais Andrade
fcd87daee0 Change implementation of VibrationEffect scaling
Use a scale factor and fixed Stevens' coefficient value for gamma
correction. Scale factors within [0,1) will scale down the effect
intensity/amplitude, and values larger than 1 will scale it up.
The scale up function also makes sure it never scales amplitude
above MAX_AMPLITUDE, or relative intensity value above 1.

New implementation can be visualized here:
https://colab.corp.google.com/drive/1rGCBWXyUe7NePaSLnO-qkeFw8h0DkWJA?usp=sharing

This cl also moves the #resolve and #scale methods to superclass
VibrationEffect (using @hide annotation). This will force every new
effect to also define both behaviors (or explicitly ignore them),
and thus avoid cases where the VibratorService skips scaling new
effects by accident.

Fix: 154712843
Test: atest FrameworksCoreTests:VibrationEffectTest
Change-Id: Ib46e609663aec60a49a8827c90df144caaf7c926
2020-05-15 13:37:45 +01:00
Dorin Drimus
9d5b804ea3 Attest device base properties
Add API to allow inclusion of device base properties to the
attestation certificate generated with a Key in Keystore.

Test: atest KeyAttestationTest
Bug: 152945378

Change-Id: Iaf282709f800501aa4c988ebf51cf3238583f9b6
2020-05-15 07:56:05 +00:00
Amy Zhang
5f8498bcf1 Add support for TvInputManager.acquireTvInputHardware CTS
1. Add a test api in TvInputManager to add hardware device for testing
2. Add Shell permission for TV_INPUT_HARDWARE
3. Add TUNER_RESOURCE_ACCESS permission for TvInput Framework.

Test: atest android.media.tv.cts
Bug: 155114656
Change-Id: I227f13cbf14532d8732729412ae9c2518755ef02
2020-05-14 17:37:52 -07:00
Dmitri Plotnikov
81bc3bd90e Add SystemApi(MODULE_LIBRARIES) to AtomicFile API
Cleaning up the API in the process

Test: atest android.jobscheduler.cts
Bug: 142281756

Change-Id: Ia52dc6fda867f3015ecbf068a0a69cc0f17cd92a
2020-05-14 20:29:18 +00:00
Cody Kesting
a611e762ad Merge "Create TestApi for simulating a Data Stall on ConnectivityService." into rvc-dev 2020-05-14 18:56:36 +00:00
Hall Liu
18fd7bd9df Merge "Add READ_PRIVILEGED_PHONE_STATE to TestApi" 2020-05-14 01:30:25 +00:00
TreeHugger Robot
350df5c815 Merge "Controls API - Flag controls support" into rvc-dev am: 897187dcfa am: 166c228af4 am: b8a63260a2 am: edba1d16af
Change-Id: Iabb982f2724ac351a02b08e9b0a9a0deec90a638
2020-05-13 21:51:16 +00:00
TreeHugger Robot
b8a63260a2 Merge "Controls API - Flag controls support" into rvc-dev am: 897187dcfa am: 166c228af4
Change-Id: I71c2e83341b79181340f4e2cf93c33d64b3e97ea
2020-05-13 21:11:40 +00:00
TreeHugger Robot
3c109b83a7 Merge "Controls API - Flag controls support" into rvc-dev am: 897187dcfa
Change-Id: Ic1b671de26b28c7e4624be91ec130142a0c59cb7
2020-05-13 20:57:37 +00:00
Matt Pietal
9788fd4afd Controls API - Flag controls support
Add a package manager flag so that apps can programmatically query
whether the device have system interface to support the Controls API

Bug: 156096063
Test: manual
Change-Id: I2dab2ecb762b59308c51615137f89733ff42caeb
2020-05-13 14:11:34 -04:00
Automerger Merge Worker
914dda4a2d Merge "Merge "Deprecate WebSettings.setAppCacheEnabled and related." into rvc-dev am: 291cf5d293 am: 02027c3a3d" into rvc-d1-dev-plus-aosp am: 2bbfc85b2d am: dd00962dd5
Change-Id: Id526e14c3702ac598234d5d285793e3e92921f76
2020-05-12 20:49:15 +00:00
Automerger Merge Worker
42f8135c6e Create TestApi for simulating a Data Stall on ConnectivityService.
This change adds a TestApi for simulating a Data Stall to
ConnectivityService. This allows for Data Stalls to be triggered without
having to manipulate the signals used by NetworkMonitor . This also
allows NetworkMonitor to update the ways it detects Data Stalls without
affecting CTS tests for ConnectivityDiagnosticsManager.

Bug: 148032944
Test: atest ConnectivityDiagnosticsManagerTest
Change-Id: Icad439efa2ab4c872c21d3ee6ceaae8c5b49f18d
Merged-In: Icad439efa2ab4c872c21d3ee6ceaae8c5b49f18d
(cherry picked from commit b06463a002)
2020-05-12 20:34:50 +00:00
TreeHugger Robot
02027c3a3d Merge "Deprecate WebSettings.setAppCacheEnabled and related." into rvc-dev am: 291cf5d293
Change-Id: I14d91abc884fecfc0c92c7fd4ffac56324de79a6
2020-05-12 19:28:29 +00:00
Automerger Merge Worker
b06463a002 Merge "Merge "Create TestApi for simulating a Data Stall on ConnectivityService." am: 655b811c3d am: 63d8b0ef99" into rvc-dev-plus-aosp am: abd8340a70 am: 7775ebea4a am: f6ea431f94
Change-Id: I287a77da7cfc176a4f159318d8847ba65c093da4
2020-05-12 18:48:04 +00:00
Cody Kesting
89ad5568da Merge "Create TestApi for simulating a Data Stall on ConnectivityService." am: 655b811c3d am: 63d8b0ef99
Change-Id: I17839cd271d984f76c203889293cc51375bb8bcb
2020-05-12 17:27:09 +00:00
Cody Kesting
655b811c3d Merge "Create TestApi for simulating a Data Stall on ConnectivityService." 2020-05-12 16:52:35 +00:00
Torne (Richard Coles)
76752c8f02 Deprecate WebSettings.setAppCacheEnabled and related.
Chrome will be removing the Application Cache API in future; deprecate
the APIs in WebView which allow Android apps to enable it.

Test: make offline-sdk-docs
Fixes: 156266477
Change-Id: I0feff5289706b5f7985013a18d9cf0e3e6b3ba78
2020-05-12 11:57:30 -04:00
Hall Liu
ca12f926c0 Add READ_PRIVILEGED_PHONE_STATE to TestApi
Add READ_PRIVILEGED_PHONE_STATE to TestApi in order to support
SplitPermissionsSystemTest.

Bug: 156297292
Test: atest SplitPermissionsSystemTest
Change-Id: I67520ba9f8bf25b759f6552a332bdebf67f4c7e6
2020-05-11 17:27:35 -07:00
Mocy Sheng
ba61f71ff3 Fix nullable annotation to match overriden method in super class
Bug: 156238511
Test: Treehugger
Change-Id: I349e8628ea77d3051f40f903c3438c3fc0a489ea
2020-05-11 14:44:12 -05:00
Robert Horvath
b22683e830 Merge "Add PackageInstaller#uninstallExistingPackage" 2020-05-11 08:23:44 +00:00
Leon Scroggins
0c24d0a5b3 Merge "Make BitmapDrawable#setBitmap public" 2020-05-07 21:11:42 +00:00
Alex Johnston
451d4a697b Merge "Deprecate organization color" 2020-05-07 13:38:01 +00:00
Leon Scroggins
f0cee43934 Merge "Make Canvas#drawPatch public" 2020-05-06 20:33:55 +00:00
Jack Yu
de8b8c39e2 Added a new capability for temporarily unmetered network.
Added a new network capability TEMOPORARILY_NOT_METERED to support
the case that a network can temporarily become unmetered. This
allows carriers to deploy unmetered 5G network. When devices
camp on 5G network, this capability will be dynamically added
to the network and will be removed once leaving 5G coverage.

Bug: 153081494
Test: Manual
Change-Id: I10e26cb0852e67f614e7b9c4e49f95e078602e21
Merged-In: I10e26cb0852e67f614e7b9c4e49f95e078602e21
2020-05-06 13:13:45 -07:00
Sooraj Sasindran
88823275ee Merge changes from topic "setDataEnabled"
* changes:
  Make sure to handle exceptions for setDataEnabled
  Revert^2 "Support api to control data by thermal service" ag/11382713 fixes exception issue with original change. 94b46ef784
2020-05-06 15:55:40 +00:00
Sooraj Sasindran
b2c6fee602 Revert^2 "Support api to control data by thermal service"
ag/11382713 fixes exception issue with original change.
94b46ef784

Bug: 151342791
Change-Id: I5e38549a3050d582017fe8bbf193adc65eb12860
2020-05-06 15:30:35 +00:00