Commit Graph

31607 Commits

Author SHA1 Message Date
TreeHugger Robot
92cb1b7124 Merge "Add test for permission APEX." into rvc-dev am: e40b321ee6 am: 7a4f041cc0 am: fc5d27390c am: a82376011e
Change-Id: Iac0ef2d1dc0bb8067585c216ea9b315a8a18e60b
2020-05-29 22:37:51 +00:00
TreeHugger Robot
a82376011e Merge "Add test for permission APEX." into rvc-dev am: e40b321ee6 am: 7a4f041cc0 am: fc5d27390c
Change-Id: I1249e22635c92f2cf762c2f73ba20e286cb45f03
2020-05-29 22:13:05 +00:00
TreeHugger Robot
e40b321ee6 Merge "Add test for permission APEX." into rvc-dev 2020-05-29 21:40:19 +00:00
TreeHugger Robot
214e6f6c88 Merge "Remove @hide from Matrix" 2020-05-29 19:49:31 +00:00
Automerger Merge Worker
6ce0f51c2c Merge "Merge "add SoundTrigger TestApis" into rvc-dev am: 779a8966f5 am: 4a3d876730 am: 22064c93c0" into rvc-qpr-dev-plus-aosp am: 96bd7eaf86
Change-Id: I1de6c67456a96b86e2784e1080ebe6c5e336df7b
2020-05-29 04:02:33 +00:00
Nicholas Ambur
affe5232e7 Merge "add SoundTrigger TestApis" into rvc-dev am: 779a8966f5 am: 4a3d876730 am: 22064c93c0
Change-Id: I546a8849eedab63b712e5e39764bd1f93e40b078
2020-05-29 03:49:55 +00:00
Nicholas Ambur
779a8966f5 Merge "add SoundTrigger TestApis" into rvc-dev 2020-05-29 03:17:09 +00:00
Hai Zhang
3562068af9 Add test for permission APEX.
Bug: 152055112
Test: atest PermissionApexTests
Change-Id: I4201501d586fe62df7a04d0e2da955d6d873d3df
2020-05-28 16:19:07 -07:00
Makoto Onuki
a664a9017f Update api-lint baseline for NO_SETTINGS_PROVIDER
Bug: 151454839
Test: See the other CL in the topic

Merged-in: I4e1d6c419c79663a47341cf26d5229ec17b9ca01
Change-Id: I4e1d6c419c79663a47341cf26d5229ec17b9ca01
(cherry picked from commit 451da1ce77)
2020-05-27 21:49:29 +00:00
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
629cac54f6 Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea
Change-Id: I5a4cbbb4bda0e975129108ee32dd3c1965bed24f
2020-05-27 04:48: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
Leon Scroggins III
3b8b654519 Remove @hide from Matrix
Bug: 152983829
Test: make
Test: I77ec845b5503df6f90deb6a2176836d9aacb74d1

Make IDENTITY_MATRIX a public API. It had @UnsupportedAppUsage, and it
is a useful thing to have.

Replace printShortString with dump, to match Point#dump (added in
I5e25dbbe47b3c690d7d763a0082beb8d8a9c86d3) and others. Make this public
as well.

Remove @UnsupportedAppUsage from native_instance, which appears to be a
false positive (no usage found on the dashboard). Also make it private,
forcing other classes to call ni().

Document why ni() needs to be @hide (usage by classes outside the
package but inside the module). Also add a FIXME that PdfRenderer should
*not* be calling it, since we plan for it to be outside the module.

Make toShortString(StringBuilder) private. Switch its only external
client to the public version. (While I see a few public
"toShortString()" methods in the public API, I do not see any that take
a StringBuilder parameter.)

Fix a typo.

Change-Id: I356fb6729764f1777830fc3a91216e869bf6de16
2020-05-18 13:56:09 -04:00
Nicholas Ambur
add0956c25 add SoundTrigger TestApis
Test APIs are added to CTS to use for SoundTrigger system API test
coverage.

Bug: 152354427
Test: cts-tradefed run cts -m CtsSoundTriggerTestCases
Change-Id: Iea8d5f3095481a54520873b5c5e6976dc272b09c
2020-05-18 10:11:02 -07: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