summaryrefslogtreecommitdiff
path: root/api
AgeCommit message (Collapse)Author
2020-12-10Unbundle i18n API from android-non-updatablePaul Duffin
This removes the i18n source from the non-updatable stubs which removes them from the frameworks/base/core/api files too. The API is still protected by both the build and Gerrit review as the API is specified in the external/icu/android_icu4j/api/public/ directory. The i18n stubs source is used instead of the implementation source for generating the JavaDoc. That revealed a minor issue with metalava which is fixed in this topic. The i18n stubs library was statically included alongside the conscrypt stubs library so it will still appear in the monolothic android.jar. Bug: 174344410 Test: m offline-sdk-docs - check that i18n classes are present m android_stubs_current android_system_stubs_current android_test_stubs_current - check that i18n classes are present in each jar m droid Change-Id: I744c8bac54a8a5518ca0eca2a7700abbfa0997f4
2020-12-08resolve merge conflicts of 358f0d4fc8c248498cf113c41e043877a14e89a1 to masterJeff Sharkey
Bug: 174932174 Test: I solemnly swear I tested this conflict resolution. Exempt-From-Owner-Approval: refactoring with team leads buy-in Change-Id: I9262a08ffc1ccede8e519d0eed90ed2bfcf0232c
2020-12-08Improve OWNERS coverage across frameworks/base/.Jeff Sharkey
As general background, OWNERS files expedite code reviews by helping code authors quickly find relevant reviewers, and they also ensure that stakeholders are involved in code changes in their areas. Some teams under frameworks/base/ have been using OWNERS files successfully for many years, and we're ready to expand them to cover more areas. Here's the historical coverage statistics for the last two years of changes before these new OWNERS changes land: -- 56% of changes are fully covered by OWNERS -- 17% of changes are partially covered by OWNERS -- 25% of changes have no OWNERS coverage Working closely with team leads, we've now identified clear OWNERS on a per-package basis, and we're using "include" directives whenever possible to to simplify future maintenance. With this extensive effort, we've now improved our coverage as follows: -- 98% of changes are fully covered by OWNERS -- 1% of changes are partially covered by OWNERS -- 1% of changes have no OWNERS coverage This specific change is automatically generated by a script that identifies relevant "include" directives. Bug: 174932174 Test: manual Exempt-From-Owner-Approval: refactoring with team leads buy-in Merged-In: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813 Change-Id: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
2020-12-02Merge SP1A.201130.001Daniel Norman
Change-Id: Idcf943792aaa73080b26e2294f0569061502c85d
2020-11-18Merge "Remove system-*.txt files"Anton Hansson
2020-11-17Merge SP1A.201116.001Scott Lobdell
Change-Id: I51f7864ca57206ba4034be7db7ae9f36d5c53f59
2020-11-17Remove current.txt filesAnton Hansson
Nothing depends on these anymore. The same data is available through the build artifact framework-base-api-current.txt. Bug: 171029603 Test: m checkbuild Change-Id: I13d9373f7174e2ff2bc54122a1fcfae0b7f7293c Merged-In: I13d9373f7174e2ff2bc54122a1fcfae0b7f7293c (cherry picked from commit b5ec8a9a1052a9d5c860e44fd9159488d356ab1c)
2020-11-16Remove current.txt filesAnton Hansson
Nothing depends on these anymore. The same data is available through the build artifact framework-base-api-current.txt. Bug: 171029603 Test: m checkbuild Change-Id: I13d9373f7174e2ff2bc54122a1fcfae0b7f7293c
2020-11-16Merge "Change forceBoldText to fontWeightAdjustment in Configuration"Sally Yuen
2020-11-14Merge changes from topics "mergedNetwork", "wifiInfoSubId"Nate Jiang
* changes: Add API to get Subscription Id [Suggestion] API to set carrier merged network
2020-11-14Merge "transcoding: Unhide ApplicationMediaCapabilities"Hangyu Kuang
2020-11-13Keystore 2.0: Shim around the basic functionality of Keystore 2.0Janis Danisevskis
This patch adds a shim around the Keystore 2.0 AIDL spec. The new shim is modularized like the AIDL spec into the base Keystore module Keystore2, the security level specific interface KeystoreSecurityLevel, and the operation specific interface KeystoreOperation. Other system maintenance specific interfaces have yet to be added. Bug: 159476414 Bug: 171305684 Test: None Change-Id: I070f73739e4b37ce10568939ac666e40b14a52a8
2020-11-13transcoding: Unhide ApplicationMediaCapabilitieshkuang
CTS-Coverage-Bug:172074159 Bug: 169849854 Test: Unit test Change-Id: Ib043bf8e52c6868cd1dfeff5552755d394c4c851
2020-11-13Merge "[Suggestion] Add API to help app get user approval status."Nate Jiang
2020-11-13[pm/incremental] add @FloatRange in the new LauncherActivityInfo APISongchun Fan
Addressing the comment in b/171804873 BUG: 171804873 Test: builds Change-Id: Ie7980973572443007f9205535ab9da575d3ea97b
2020-11-13Merge SP1A.201105.002Scott Lobdell
Change-Id: Iec83a0c1f6f286a1e51abfc4356633ca9d8aea5f
2020-11-13Change forceBoldText to fontWeightAdjustment in ConfigurationSally
Convey the weight adjustment instead of a binary on/off Bug: b/170966021, b/110991537 Test: atest CtsContentTestCases Change-Id: I4f8de658cb49c2e3d81ce6b25338d6e7c9a5e789
2020-11-13Merge "Update onReceiveContent() logic for app vs platform processing"Nikita Dubrovsky
2020-11-13Remove system-*.txt filesAnton Hansson
Nothing depends on these anymore. The same data is available through the build artifact framework-base-api-system-current.txt. Bug: 171029603 Test: m checkbuild Change-Id: I8d5f0a132aa307d88fbc2bd7521cdd4bdd8c6cee Merged-In: I8d5f0a132aa307d88fbc2bd7521cdd4bdd8c6cee (cherry picked from commit d5cba3455fe7200f298f1608341f5f07d3e11c3c)
2020-11-12[Suggestion] Add API to help app get user approval status.Nate Jiang
Bug: 160648511 Test: atest android.net.wifi Change-Id: If93db55b1e0bc33dd7b82dad4e297c442b628e44
2020-11-12[Suggestion] API to set carrier merged networkNate Jiang
Create a new API to set carrier merged network suggestion Bug: 172867186 Test: atest android.net.wifi Change-Id: I5ddbc8b15e361e44c508e40dac10211cbd39ab10
2020-11-12Update onReceiveContent() logic for app vs platform processingNikita Dubrovsky
Previously onReceiveContent() would only invoke the app-configured callback if the MIME type of the content matched one of the declared MIME types for the callback. This change updates onReceiveContent() to always invoke the listener if one is set (regardless of the MIME type of the content). To delegate processing to the platform, the app's listener can return some or all of the passed-in content. To make this easy for apps to implement, the Payload class and its Builder now provide some convenience methods to conditionally partition the content. Reasons for this change: * Checking the MIME types could be an expensive operation. On SDKs prior to S, ClipData does not keep track of the MIME types of individual items, so for a ClipData that contains multiple items, checking the MIME types requires making at least one RPC call per item. * Allowing the listener to delegate processing to the platform via its return value enables us to limit the API surface (we don't need to expose TextViewOnReceiveContentListener as a public API, nor equivalent classes for other types of views such as WebView). * An app that wants to customize the platform behavior for coercing content to text would previously need to declare "*/*" as the MIME type for the callback (in order to be invoked for all content). But this would make it impossible for features to know whether the app would actually accept a particular type of content or just coerce it to text (e.g. should the soft keyboard show GIF suggestions when the declared MIME type is "*/*"). With the new logic the app's listener is always invoked and can decide which content to process vs delegate to the platform vs reject completely. Bug: 170191676 Bug: 152068298 Test: atest CtsViewTestCases:ViewOnReceiveContentTest Test: atest CtsWidgetTestCases:TextViewOnReceiveContentTest Test: atest FrameworksCoreTests:TextViewOnReceiveContentTest Change-Id: Ie48b6fe0b2ae4b014c371b5dc40248221947c6bf
2020-11-12Merge "Move offered RTP header extension types API."Tyler Gunn
2020-11-12Merge "Introduce hasCompanionInCallServiceAccess API"Shuo Qian
2020-11-12Merge "Provide API to retrive dual connected bandwidth"Sooraj Sasindran
2020-11-12Merge "Implement setRequiredPasswordComplexity"Eran Messeri
2020-11-12Merge "Remove system-*.txt files"Anton Hansson
2020-11-12Merge "Declare audio codec bitrate and bandwidth" am: b04ef45226 am: ↵Allen Su
1bb3473fdf am: 21604689d0 am: 38fb2b571a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1494041 Change-Id: Ib5e5df0edfb0cb448c3c424b24d24f2f4e9ccf42
2020-11-12Merge "Declare audio codec bitrate and bandwidth" am: b04ef45226 am: ↵Allen Su
1bb3473fdf am: 21604689d0 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1494041 Change-Id: Id0ca7eb919c6da094dd5a7be990f4aa38526aa23
2020-11-12Merge "Declare audio codec bitrate and bandwidth"Allen Su
2020-11-12Merge "AudioFormat: Add ENCODING_PCM_32BIT ENCODING_PCM_24BIT_PACKED"Andy Hung
2020-11-12Remove system-*.txt filesAnton Hansson
Nothing depends on these anymore. The same data is available through the build artifact framework-base-api-system-current.txt. Bug: 171029603 Test: m checkbuild Change-Id: I8d5f0a132aa307d88fbc2bd7521cdd4bdd8c6cee
2020-11-12Implement setRequiredPasswordComplexityEran Messeri
Implement setRequiredPasswordComplexity and getRequiredPasswordComplexity, which enforce password requiremets according to one of four, platform-defined complexity levels. Start adjusting the platform to take the complexity into account: * isActivePasswordSufficient would return false if complexity is set but the current password does not meet the complexity criteria. * resetPasswordWithToken would not allow resetting the password to a value that does not meet the complexity criteria. Bug: 165573442 Test: atest FrameworksServicesTests:DevicePolicyManagerTest Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testResetPasswordWithToken Change-Id: I4e66af0b03c521de70bba3192751164736d01c62
2020-11-11Provide API to retrive dual connected bandwidthSooraj Sasindran
Provide API to retrive bandwidth per primary carrier and secondary carrier Bug: 162373679 Test: New CTS test, unit test, build Merged-In: I3e8152d22fb9602c7d2ffdee681ac5d69c5dd3fd Change-Id: I3e8152d22fb9602c7d2ffdee681ac5d69c5dd3fd
2020-11-12Merge "Add API to configure Scambling Status event to monitor specific ↵Amy Zhang
status type"
2020-11-12Merge "Rename RecordEvent getFirstMbInSlice into getFirstMacroblockInSlice"Amy Zhang
2020-11-12Merge "Exposed UnsafeStateException as a public API."Felipe Leme
2020-11-11Move offered RTP header extension types API.Tyler Gunn
Moved from ImsCallProfile to MmtelFeature. Test: Update CTS tests and unit tests. Bug: 163085177 Change-Id: I9b16b6b17beb1032469d19a214ada0476376d383
2020-11-12Merge "Keystore 2.0 SPI: Update KeyInfo and KeyGenParameterSpec" am: ↵Janis Danisevskis
17f24b5799 am: 7d49ae705e am: 7662e81e98 am: b90d33bd18 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1470091 Change-Id: I5728741cdd66f9b6ba6f39310c796cb8b12758e5
2020-11-12Merge "Keystore 2.0 SPI: Update KeyInfo and KeyGenParameterSpec" am: ↵Janis Danisevskis
17f24b5799 am: 7d49ae705e am: 7662e81e98 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1470091 Change-Id: I8a3f19ea8cfe16dd8a6d06007306ccaa9ed7257a
2020-11-11Merge changes from topic "frinfo"Amy Zhang
* changes: Add comparator for FrontendInfo Expose FrontendInfo list of all the existed Frontends in Tuner java
2020-11-11Merge "Keystore 2.0 SPI: Update KeyInfo and KeyGenParameterSpec"Janis Danisevskis
2020-11-11Merge "Provide API to retrive dual connected bandwidth"Sooraj Sasindran
2020-11-11Introduce hasCompanionInCallServiceAccess APIsqian
It retruns whether the caller has InCallService access for the companion apps. A companion app is an app associated with a physical wearable device via the {@link android.companion.CompanionDeviceManager} API. Test: cts Bug: 169595473 Change-Id: Id659bfae8556e965d3c31613848bde808f28a858 Merged-In: Id659bfae8556e965d3c31613848bde808f28a858 (cherry picked from commit 4d0652699a88ad60c2dfdbf7b59065ee684df6d6)
2020-11-11Merge "Expose PinResult and ICC PIN/PUK APIs as SystemApi"Sarah Chin
2020-11-11AudioFormat: Add ENCODING_PCM_32BIT ENCODING_PCM_24BIT_PACKEDAndy Hung
Add extended high definition integer formats to support direct audio data delivery to the HAL. Test: atest AudioRecordTest Test: atest AudioTrackTest Test: Clarity AudioManager Bug: 152481314 Bug: 157671580 Change-Id: I92a099e98dd20ef900765928cbacea5e8a940c3c
2020-11-11Exposed UnsafeStateException as a public API.Felipe Leme
And some related APIs as @TestAPI. Test: m update-api Bug: 172376923 Change-Id: I3fc5806e2d34e161a409f49ada263d430ec9bc02
2020-11-11Make FUSED_PROVIDER SystemApiSoonil Nagarkar
This should always have been SystemApi, as most fused providers are implemented outside system server. There is a strong argument this should actually be public API, but I'm punting on that for now until we can give it more consideration. Bug: 173030969 Test: none Change-Id: If5ba10accbe2f6ce47d749536d053e1bd8e297f8
2020-11-11Keystore 2.0 SPI: Update KeyInfo and KeyGenParameterSpecJanis Danisevskis
This patch adds set/getSecurityLevel to KeyInfo and KeyGenParameterSpec and it deprecates the superseded function isInSecureHardware. It also deprecates the system API set/getUid and replaces it with the more generic set/getNamespace. Test: None Change-Id: Id2f54596510954862b5077a935f3daf07211f29c
2020-11-11Merge "Add KEY_CARRIER_USSD_METHOD_INT to specify methods for USSD requests" ↵Gwen Lin
am: 3acec4d14f am: ac3167e3dd am: 08ab8031da Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1372476 Change-Id: I3b32442c56a5dfb79d78b2113a2a872cfeb0c72e