Commit Graph

30140 Commits

Author SHA1 Message Date
François Gaffie
d83e946d53 AudioSystem: add annotation on API used by CTS media
Add @TestApi for the class so some methods and
constants can be visible to test API.
  Also @hide for all other members of the class
that are not @TestApi, as they are exposed to the
test API visibility.

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
Signed-off-by: François Gaffie <francois.gaffie@renault.com>

Change-Id: Iff9abda2cf971d9c234dcf7df7c2b9a4ad5294c3
2020-04-06 15:04:22 -07:00
Joanne Chung
62cd75f90d Merge "Made ExplicitHealthCheckService testable." into rvc-dev 2020-04-06 02:33:24 +00:00
Henry Fang
1eef1d2f26 Add test api for CTS to test resource lost event
bug: 152343262
Test: Manual
Change-Id: I5660cea3e57771c8a09f57ed88723064bb592c30
2020-04-03 17:39:13 +00:00
Amith Yamasani
040563da5f Merge "Mark secondary lockscreen API as SystemApi." into rvc-dev 2020-04-03 14:13:43 +00:00
Jack Yu
30be5e5d3d 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
2020-04-02 19:28:41 -07:00
Yvonne Jiang
70a62376d0 Mark secondary lockscreen API as SystemApi.
It is currently not meant for use by general enterprise device admins.

Bug: 152478326

Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest KeyguardUpdateMonitorTest
Test: atest AdminSecondaryLockScreenControllerTest
Change-Id: I6d60bc35a4e8f74b1da55b042582a2f2fa89d57f
2020-04-02 08:41:04 +00:00
Joanne Chung
ea12c719b6 Made ExplicitHealthCheckService testable.
Bug: 149077550
Test: atest CtsPackageWatchdogTestCases
Change-Id: I588052de62bce6cbfa8118d1be56257a1dde422f
2020-04-01 22:54:35 +08:00
Wale Ogunwale
adf116ec95 Add TestApi interfaces for window organizers
Enables testing the API surfaces from CTS.

Bug: 149338177
Test: they pass!
Change-Id: I7e1f2852585a10c20d299bd87e9a87f828d06d6a
2020-04-01 13:25:23 +00:00
Feng Cao
edb332c645 Replace Nullable bundle with NonNull and use Bundle.EMPTY
Test: atest InlineSuggestionsRequestTest
Bug: 152525467

Change-Id: Ie510e08ced8be4cc8df486f1acfa6eb330d194ef
2020-03-31 14:50:51 -07:00
TreeHugger Robot
aa9d95ed9f Merge "Add sample flags to MediaParser" into rvc-dev 2020-03-31 19:42:44 +00:00
Michael Wright
ca87d86d59 Merge "Remove registerSection API with optional Executor" into rvc-dev 2020-03-31 17:54:36 +00:00
Santiago Seifert
c648f4eccb Add sample flags to MediaParser
Bug: 152757624
Test: atest CtsMediaParserTestCases
Change-Id: I080b759656e160aba2c378fe72790b1a9d10ad81
2020-03-31 15:52:59 +01:00
Mike Ma
1b75683d4f Remove registerSection API with optional Executor
This patch addresses an issue from API review:
registerSection cannot have an optional Executor

registerSection is an unreleased API in R, therefore can be hard
removed.

Fixes: 148867197
Test: Build
Change-Id: Icdb8b97f7fa3f1880aa3039dbbe82f8331a45202
2020-03-30 17:13:39 -07:00
TreeHugger Robot
da50240343 Merge "Remove replaced PreciseDataConnectionState methods from SDK." into rvc-dev 2020-03-30 22:24:30 +00:00
Michael Wright
603713009e Merge "Remove replaced BubbleMetadata methods from SDK." into rvc-dev 2020-03-30 20:58:43 +00:00
Michael Wright
eec778ccdd Remove replaced PreciseDataConnectionState methods from SDK.
Prior to finalization, we need to remove all methods which were
replaced but kept around for short-term compatibility purposes.
PreciseDataConnectionState had a couple methods that fell into this
category that had yet to be removed.

Bug: 152787887
Test: builds
Change-Id: Ib175b2530791cec7e31684a1d3f318c95e27f707
2020-03-30 20:39:27 +00:00
Michael Wright
b6ffb2293e Remove replaced BubbleMetadata methods from SDK.
Prior to finalization, we need to remove all methods which were
replaced but kept around for short-term compatibility purposes.
BubbleMetadata had a few methods that fell into this category that had
yet to be removed.

Bug: 152761169
Test: build
Change-Id: Ic9f8d600721e15119fc28d308ff1bc444d61e399
2020-03-30 19:02:37 +01:00
Jeff Sharkey
071e55a03a Merge "Add ability to execute per-connection SQL." into rvc-dev 2020-03-30 15:58:19 +00:00
Adam He
5a3a3f2239 Merge "Migrate android.view.inline to android.widget.inline" into rvc-dev 2020-03-30 06:53:35 +00:00
Adam He
f27433af0f Migrate android.view.inline to android.widget.inline
Old APIs are kept and marked as @hide + @removed to maintain
compatibility.

Bug: 151262653
Test: manual verification
Change-Id: Ia50a1f87c194211be5256e948d43fb54c1cbf941
2020-03-29 17:29:32 -07:00
Anton Hansson
582cb38829 Merge "Revert "Add new class with APIs of varying visibility"" into rvc-dev 2020-03-28 16:52:49 +00:00
Jeff Sharkey
62dd7c25ac Add ability to execute per-connection SQL.
Developers have been able to register custom collators using syntax
like "SELECT icu_load_collation()", but collators are registered per
database connection.

Since we don't expose any details APIs for interacting with connection
pools directly, developers can end up with flaky behavior as their
queries rotate through the pool of connections, as only a subset of
connections will have their collation registered.

This solve this, we add a new execPerConnectionSQL() method to
ensure that a given statement is executed on all current and future
database connections.

Bug: 152005629
Test: atest CtsDatabaseTestCases:android.database.sqlite.cts.SQLiteDatabaseTest
Change-Id: I459fb7b18660d2a04eec92d1e9cc410d769e361d
2020-03-27 20:47:18 -06:00
TreeHugger Robot
ddcf560b4e Merge "Remove "@Deprecated" from supplyPinReportResult + supplyPukReportResult" into rvc-dev 2020-03-28 00:03:49 +00:00
Chalard Jean
996492f866 Merge changes from topics "api-fix-networkagent", "networkprovider_api", "satisfiedby" into rvc-dev
* changes:
  Rename satisfiedBy into canBeSatisfiedBy
  Address further API council comments.
  Update the NetworkProvider API for council comments
2020-03-27 22:50:42 +00:00
Daniel Bright
ef5836157f Remove "@Deprecated" from supplyPinReportResult + supplyPukReportResult
Fully rolled back comments and signature to original state before change

Test: bootup phone
Bug: 147854704
Change-Id: I5fcd71e1569e6b0e16cff5392239b89259ee1790
2020-03-27 15:01:16 -07:00
Nicholas Ambur
95ee3d7ad5 Merge "remove SoundTrigger public member variables" into rvc-dev 2020-03-27 20:54:22 +00:00
TreeHugger Robot
0bf55d7d28 Merge "Revert "Add actor attr and QueriesOverlayable styleable"" into rvc-dev 2020-03-27 19:43:18 +00:00
Galia Peycheva
66b1dfe6aa Merge "Change TYPE_DREAM logic to use ACTIVITY_TYPE_DREAM" into rvc-dev 2020-03-27 18:34:49 +00:00
Mihir Patel
6f33b10ab5 Moving the NO_SESSION_ID constant from ContentCaptureSession to ContentCaptureManager
Bug: 150599209
Test: manual
Change-Id: I3e7b67cf92ddb6405829ec3c6ed2c491b4e77cab
2020-03-27 15:50:43 +00:00
Anton Hansson
59292377d4 Revert "Add new class with APIs of varying visibility"
This reverts commit 7d6704e4b0.

The experiment has concluded, and we don't want these APIs in
the finalized R api.

Also update the newly-arrived module txt files.

Bug: 149108482
Test: m checkapi
Change-Id: I965111b9a8ad2d3e5849bd9dfdae9c00cc471ce6
2020-03-27 15:36:06 +00:00
Jean-Michel Trivi
5897ede327 Merge "Address Audio Java API feedback" into rvc-dev 2020-03-27 14:58:53 +00:00
Chalard Jean
2da4f9f9ae Rename satisfiedBy into canBeSatisfiedBy
Test: FrameworksNetTests NetworkStackTests
Bug: 152238712
Change-Id: I076876a6662bde143ef7d315ce3767acafff93c1
2020-03-27 23:46:30 +09:00
Michael Wright
f51b6aa53a Merge "Make vibrator effect queries an @IntDef." into rvc-dev 2020-03-27 13:29:18 +00:00
Santiago Seifert
6cf6809826 Merge "Add special value for unknown current parser name" into rvc-dev 2020-03-27 12:41:37 +00:00
Michael Wright
6d2c6f0255 Merge "Address API Council feedback." into rvc-dev 2020-03-27 12:22:39 +00:00
Galia Peycheva
70b55719db Change TYPE_DREAM logic to use ACTIVITY_TYPE_DREAM
Bug: 151750434

Test: m && flash && check that dream starts normally

Merged-In: Ic4561cd0594d7a3465454221db256499dd06c145
Change-Id: I58a8795f2801b598be5c958b1a854e8f84f31940
2020-03-27 11:26:44 +00:00
Chalard Jean
b0e1e7ec3e Address further API council comments.
Test: FrameworksNetTests NetworkStackTests
Bug: 152238712
Change-Id: I8a785ae0e74e659c317deaaa28c203356c7766ed
2020-03-27 17:57:24 +09:00
Chalard Jean
14caf974db Update the NetworkProvider API for council comments
Bug: 152238712
Test: FrameworksNetTests NetworkStackTests
Change-Id: I6b086572cfc72a0727f4510351cff0e74cbc4302
2020-03-27 17:53:05 +09:00
Chalard Jean
33accffcef Merge changes from topic "networkagent_api" into rvc-dev
* changes:
  Update NetworkAgentConfig API for council comments
  Update the NetworkAgent API for council comments
2020-03-27 06:20:37 +00:00
Kenny Root
f377275542 Merge "Resume-on-Reboot: change SystemApi calls slightly" into rvc-dev 2020-03-27 05:14:10 +00:00
Winson Chiu
a4d2d0008a Revert "Add actor attr and QueriesOverlayable styleable"
This reverts commit 65c308fcb2.

Bug: 152203820

Reason for revert: Not worth merging for R. Can decide how to expose for S.

Change-Id: I1f4ccb393c341a84ed0564c5107eb72f0ea406ea
2020-03-26 21:05:42 -07:00
TreeHugger Robot
eac49dc833 Merge "Re-introduce dummy autoRevok manifest attr as padding" into rvc-dev 2020-03-27 02:00:25 +00:00
Andrii Kulian
363edf449a Merge "Report bounds instead of size in WindowMetrics" into rvc-dev 2020-03-27 01:08:37 +00:00
Sarah Chin
5b2f94a0aa Merge "Update Bands API" into rvc-dev 2020-03-27 00:33:05 +00:00
Andy Hung
120c1c4db7 Address Audio Java API feedback
Test: atest AudioTrackTest#testCodecFormatChangedListener
Test: atest AudioTrackTest#testTunerConfiguration
Test: atest AudioMetadataTest
Test: atest EnumDevicesTest
Bug: 152348569
Change-Id: I1c702781f6d3189b98c6b91a14f084333ce16848
2020-03-26 17:11:47 -07:00
Ricardo Correa
cc25d392fe Merge "Revert "Include an AppOp to allow dialer role app to record and play audio into calls"" into rvc-dev 2020-03-26 22:23:54 +00:00
Eugene Susla
c5a50213f1 Re-introduce dummy autoRevok manifest attr as padding
See attached bug

Fixes: 152433087
Test: ensure current.txt values change reverts that from ag/10814417
Change-Id: I5b9c8d0fa1e794137b354d2a238a3f1171a0f89c
2020-03-26 15:09:54 -07:00
Sarah Chin
854fc2ca64 Update Bands API
Test: build
Bug: 151842542
Change-Id: Ib033758d469b9b485eb7cce6c026b5a649e6a6fa
2020-03-26 15:02:29 -07:00
Sarah Chin
85e3140365 Merge "Un-deprecate SmsManager APIs" into rvc-dev 2020-03-26 21:53:51 +00:00
Todd Kennedy
fb590035e1 Merge "Define permission for installer API v2" into rvc-dev 2020-03-26 21:50:17 +00:00