Commit Graph

29510 Commits

Author SHA1 Message Date
Julia Reynolds
7d5dfe8f44 Merge "Address api feedback" into rvc-dev 2020-02-24 16:39:40 +00:00
lesl
7a0c18c884 wifi: correct API name
The API:isFeatureSupported accept one or combination
of required features, update the jave doc & rename to areFeaturesSupporte

Bug: 149871866
Test: make docs frameworks/base/wifi/
Test: atest frameworks/base/wifi/tests/
Merged-In: I3bcbcfd04dced36b63436b5a96835fb0d8f35f3b
Change-Id: I3bcbcfd04dced36b63436b5a96835fb0d8f35f3b
(cherry picked from commit dd8f942e81)
2020-02-24 06:28:58 +00:00
Julia Reynolds
229684b01a Address api feedback
Test: make
Fixes: 150008110
Change-Id: I5163cd49b11444e856cd9bd8ae2fd634da5f6a39
2020-02-23 20:44:26 -05:00
Evan Severson
2aa3230ca0 Merge "Add method to give a permission revoke a reason" 2020-02-21 23:16:09 +00:00
Winson Chung
c4d8bcad86 Merge "Ensure task description icon resources are loaded from the right package" 2020-02-21 22:59:44 +00:00
Sudheer Shanka
77f2a2c3dd Merge "Update BlobStoreMS to augment storage stats with blobs data." 2020-02-21 19:28:09 +00:00
Les Lee
427a30c8f7 Merge "wifi: Use long to replace int for softap feature set" 2020-02-21 06:07:13 +00:00
Julius D'souza
e32f290e3e Merge "KeyguardManager set + validate lock API refinement" 2020-02-21 03:19:43 +00:00
Hyundo Moon
d882109319 Merge "Add MediaRoute2ProviderService#notifyRequestFailed" 2020-02-21 00:21:46 +00:00
Julius D'souza
ab5461c0da KeyguardManager set + validate lock API refinement
KeyguardManager#validateLockPasswordComplexity
-> KeyguardManager#isValidLockPasswordComplexity

parameter changes: boolean isPin -> int locktype

Bug: 149298492
Test: TreeHugger
Change-Id: Icc1ab6c3a0eb4637d7e6fb34f95b8a72ced50f98
Signed-off-by: Julius D'souza <jdsouza@google.com>
2020-02-20 15:52:11 -08:00
Iavor-Valentin Iftime
4eb7c72945 Merge "Address API council suggestions for UserManager APIs" 2020-02-20 20:35:44 +00:00
PETER LIANG
cd94c1871e Merge "Revise the parameter of public API for allow rich content." 2020-02-20 20:30:45 +00:00
Santiago Seifert
141cb3bdb4 Merge "Add behavioral parameters to MediaParser" 2020-02-20 19:08:09 +00:00
TreeHugger Robot
5f43ae305d Merge "MediaCodec: address API review" 2020-02-20 17:44:41 +00:00
Soonil Nagarkar
a6149521d3 Merge "Revert requestSetProviderEnabled API" 2020-02-20 16:34:37 +00:00
Santiago Seifert
561ffc3008 Add behavioral parameters to MediaParser
Test: CTS.
Bug: 132153067
Change-Id: Ic1c3fe32382e298fa14d81c7a3b5d1f9271f30ee
2020-02-20 15:17:31 +00:00
Fabian Kozynski
d3b621aa56 Merge "Add API for requesting add controls from Provider" 2020-02-20 14:00:48 +00:00
Valentin Iftime
4bf82c8206 Address API council suggestions for UserManager APIs
Test: atest UserManagerTest
Bug: 149742406
Change-Id: I8b408a17de0282b91fcb5c0b66e9d0404fda54b1
2020-02-20 14:29:43 +01:00
Automerger Merge Worker
b96b334d43 Merge "Stop exposing constructor of TetheringConstants" am: 5dd58dac7e am: f2472fa7aa am: 051bd7f721
Change-Id: If4cf11820b0d712584e7ee393c26c7c359d7952f
2020-02-20 13:27:19 +00:00
Automerger Merge Worker
f2472fa7aa Merge "Stop exposing constructor of TetheringConstants" am: 5dd58dac7e
Change-Id: Iac2677ca21a0dfcbb3afa40a32d824977e3aaa7e
2020-02-20 12:56:32 +00:00
Charles Chen
c56ce6fd08 Merge "Exempt-From-Owner-Approval: Report non-visual Context misuse" 2020-02-20 12:30:06 +00:00
Santiago Seifert
42c3d4bcfa Deprecate DrmInitData.get(UUID)
And point users to use getSchemeInitDataCount and
getSchemeInitDataAt instead.

Bug: 132153067
Test: No behavioral change.
Change-Id: Ie50067ebdc408481fc69167deab4ebfd376b3543
2020-02-20 12:11:32 +00:00
Alex Kershaw
f0f598a711 Merge "Enforce the cross-profile intent check." 2020-02-20 11:40:54 +00:00
TreeHugger Robot
f01c606040 Merge "Add MediaRouter2.RoutingController#getOriginalId() as @TestApi" 2020-02-20 11:13:29 +00:00
Santiago Seifert
946a892a79 Merge "Consolidate API naming to use Parser everywhere" 2020-02-20 10:59:19 +00:00
lesl
d41a299561 wifi: Use long to replace int for softap feature set
Bug: 149871866
Test: atest frameworks/base/wifi/tests/
Change-Id: I58a408150325054af809bdb18c77748ead3a0b17
2020-02-20 17:41:40 +08:00
Hyundo Moon
0fa60e880b Add MediaRoute2ProviderService#notifyRequestFailed
Bug: 146616547
Test: atest mediaroutertest and CTS
Change-Id: I2b2b95bf0fec070ab24f51bba0c58221e5495460
2020-02-20 17:33:22 +09:00
markchien
d8cfb6ecc7 Stop exposing constructor of TetheringConstants
Fully-static utility classes must not have constructor.

Bug: 149430003
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: I18e1129ef8717211d667ccd3b4110169dd7905b4
2020-02-20 16:11:35 +08:00
Hyundo Moon
0ba64fa110 Add MediaRouter2.RoutingController#getOriginalId() as @TestApi
Bug: 149886370
Test: atest mediaroutertest and CTS
Change-Id: I4adc8041763756747e4c725d682533fb5707f183
2020-02-20 16:43:20 +09:00
Yan Yan
bbe083a8f3 Merge "Do not expose module IPsec(IKE) API from frameworks" 2020-02-20 06:42:22 +00:00
Automerger Merge Worker
b183da57f4 Merge "Make get/setCallerNumberVerificationStatus final." am: 4cbb288657 am: 329d286b88 am: 83d8de2f15
Change-Id: I209101a92935f377b3e562f65b9692113a6d9b03
2020-02-20 04:28:13 +00:00
Mehdi Alizadeh
f1bdf99b89 Merge "Adds ShortcutManager#pushDynamicShortcut(ShortcutInfo)" 2020-02-20 03:06:28 +00:00
Peter_Liang
f532a2351b Revise the parameter of public API for allow rich content.
Change "loadAnimatedImage(PackageManager)" to "loadAnimatedImage(Context)"

Bug: 142532186
Test: manual test
Change-Id: I3a6f61fbcd06e73d17cc20ea60effa6e84f0db7b
2020-02-20 02:46:03 +00:00
Andrii Kulian
5877c7d6c0 Exempt-From-Owner-Approval: Report non-visual Context misuse
Make obtaining a visual service from non-visual Context instance
report a strict mode violation and print the stacktrace.

Make calling getDisplay() throw an exception if called on an instance
that is not associated with a display. For existing usages introduce
a new internal method that does not perform the verification until
the usages are properly fixed.

Bug: 128338354
Test: StrictModeTest#testIncorrectContextUse_GetSystemService
Test: StrictModeTest#testIncorrectContextUse_GetDisplay
Change-Id: Id25d590eca6e10066e55d7ed6436d3bc9e433beb
2020-02-20 01:29:25 +00:00
Rambo Wang
258efe669b Merge "Expose DataFailCause as public API" 2020-02-20 00:44:11 +00:00
Sarah Chin
dcc3ba7bba Merge changes from topics "revert-10153355-dev_cap-JUKVIAUYRW", "revert-9919494-device_cap-HJIMIMXSXL"
* changes:
  Revert "Modify PhoneCapabilities for device capabilities"
  Revert "PhoneCapability cleanup"
2020-02-20 00:06:18 +00:00
PETER LIANG
2187f9e855 Merge "Revise the modifier and naming of public APIs for allow rich content." 2020-02-19 23:51:48 +00:00
Winson Chung
d6722037ba Ensure task description icon resources are loaded from the right package
- We previously assumed that icons set in the task description would be
  loaded from the same package as the root activity (which is incorrect),
  instead, they should be fetched from the activity which set them.

  We also deprecate getIcon() because:
  - apps could only get the icons they set previously (not very useful)
  - it didn't return resource icons, only in memory or loaded from disk
  - the name doesn't indicate that it could result in a disk load
  Instead, callers (namely SysUI) should now call loadIcon() to get the
  actual icon directly (or loaded if necessary).

Bug: 143363444
Test: atest TaskDescriptionTest
Test: atest ActivityManagerTest
Change-Id: I48aaba17de2edf0b3a61fa049cf897020d4c2ef1
2020-02-19 15:49:00 -08:00
Automerger Merge Worker
e58877eacd Merge "Rename KEY_ALLOW_HOLDING_VIDEO_CALL_BOOL." am: 10f01e3c4c am: 32cdb7dcbb am: 9ca6a4957e
Change-Id: I029ad994232397a64b2f2b32e84adfeb5d12917f
2020-02-19 23:17:28 +00:00
Roshan Pius
b2e49ac48b DO NOT MERGE: RELAND: NetworkRequest: Embed requestor uid & packageName
Add the requestorUid & requestorPackageName fields to
NetworkCapabilities. This is populated by CS when
a new network request is received.
These 2 requestor fields are also optionally used for network
matching. All of the regular app initiated requests will have the
requestor uid and package name set by connectivity service. Network
agents can optionally set the requestorUid and requestorPackageName
to restrict the network created only to the app that requested the network.

This will help removing the necessity for the various specifiers to embed
the uid & package name info in the specifier for network matching.

Note: NetworkSpecifier.assertValidFromUid() is deprecated & removed in
favor of setting the uid/package name on the agent to restrict the
network to a certain app (useful for wifi peer to peer API & wifi aware).

Bug: 144102365
Test: Verified that wifi network request related CTS verifier tests
pass.
Test: Device boots up and connects to wifi networks
Merged-In: I207c446108afdac7ee2c25e6bbcbc37c4e3f6529

Change-Id: I58775e82aa7725aac5aa27ca9d2b5ee8f0be4242
2020-02-19 23:12:32 +00:00
Fabian Kozynski
d6f484027d Add API for requesting add controls from Provider
This API allows ControlsProviderService to request SystemUI to show UI
to the user to add a favorite. This can be called at any time (not just
when bound).

Test: atest
Fixes: 148936288
Change-Id: I8740b6a105ad64994e6df701f2604a4234a49154
2020-02-19 18:11:16 -05:00
Wonsik Kim
e0cc55ec00 MediaCodec: address API review
- New exception for APIs that are incompatible with the new mode
- Better messages with exceptions
- QueueRequest API/documentation rework as per suggestion

Bug: 149487982
Test: atest CtsMediaTestCases:MediaCodecBlockModelTest
Change-Id: I48be448876c200208bb814e91b920c76d09a3b9e
2020-02-19 15:08:12 -08:00
Automerger Merge Worker
e94ac536ec Merge "USB: [API feedback] Add bitmask @IntDef annonation to setCurrentFunctions" am: 2f9800a47d am: 65de31ca5d am: bac02c1de2
Change-Id: I3dd8104d264a423b19ccfe8affc4a2f4de58b101
2020-02-19 23:07:54 +00:00
Khaled Abdelmohsen
a15d8009fb Merge "Create rule atom for source stamp" 2020-02-19 23:00:54 +00:00
Sudheer Shanka
e9232d6d6f Update BlobStoreMS to augment storage stats with blobs data.
- Any pending sessions data is attributed to the apps
  which contributed them.
- Any commited blobs data is attributed to the app which
  has a lease on it. If multiple apps have lease on a blob, don't
  attribute the blob to those apps for now.
- Remove StorageStatsAugmenter.augmentStatsForUser as it
  is not used for anything currently.
- Fix an issue in how we override existing committers and leasees.

Bug: 148694869
Test: atest cts/tests/BlobStore/src/com/android/cts/blob/BlobStoreManagerTest.java
Test: atest tests/tests/os/src/android/os/storage/cts/StorageStatsManagerTest.java
Test: atest hostsidetests/appsecurity/src/android/appsecurity/cts/StorageHostTest.java
Test: manual
Change-Id: Ia4af0a2549c75db66741f2d1979de95d2d150bc8
2020-02-19 14:45:12 -08:00
Khaled Abdelmohsen
41456aa99c Create rule atom for source stamp
Bug: 149200249
Test: atest FrameworksCoreTests:IntegrityFormulaTest
Change-Id: I8a5ca33e8b2b125a8b7bc178557b7689c0eab50d
2020-02-19 22:41:16 +00:00
Soonil Nagarkar
3819f972df Revert requestSetProviderEnabled API
Bug: 144955780
Test: presubmits
Change-Id: Iec8520acfd98b9d9d92a4876ebfa899ac2a0731e
2020-02-19 14:39:58 -08:00
Feng Cao
6c821f6ea1 Merge "Introduces the Bundle to inline suggestions APIs to encode custom UI styling information." 2020-02-19 22:35:42 +00:00
Evan Severson
43b2a199ab Add method to give a permission revoke a reason
Test: Compile
Bug: 149861310
Change-Id: I865a300a9795550a2549f928f4e967b2b695439e
2020-02-19 14:23:56 -08:00
Automerger Merge Worker
329d286b88 Merge "Make get/setCallerNumberVerificationStatus final." am: 4cbb288657
Change-Id: I734a658b5849cc5bca14d1b7fbc7509971774ce0
2020-02-19 22:23:34 +00:00