Commit Graph

32615 Commits

Author SHA1 Message Date
Hai Zhang
591e121df6 Add framework-permission-s java_sdk_library.
This will host the moved framework classes for role.

The class RoleFrameworkPlaceholder is added because the build won't
pass if there isn't any java source.

Bug: 158736025
Test: build
Change-Id: Icabab2cc956d6c7c07a6217256d23a8402960307
2021-01-23 00:19:59 -08:00
Anton Hansson
f118549ef7 Merge "Dist more API txt files" am: 45b39d81c4 am: d787b0501a am: 5e4e7ceca9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1555176

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia5b9c0e91e49db2edf2706616667a9e681fed649
2021-01-21 14:02:57 +00:00
Anton Hansson
85785fec8a Dist more API txt files
Add disting of the following for the sdk:
- android-non-updatable.txt
- android-non-updatable-removed.txt
- removed.txt

Bug: 158544979
Test: m sdk dist && inspect out/dist/apistubs
Change-Id: I5f628f4fcfc13f67105ee3b2760274e900fc1e34
2021-01-20 20:23:34 +00:00
Anton Hansson
b5048e482e Merge "Unbundle ART API from android-non-updatable" am: 5a4fc1d6e1 am: a81a5f1bdb am: f31935f2e9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1533282

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibae612368c7cedd9812925f632bfbbf5e7c844d1
2020-12-29 12:27:11 +00:00
Anton Hansson
fc948d8675 Unbundle ART API from android-non-updatable
Stop tracking the ART APIs in the non-updatable current.txt, and
instead add in the txt/srcjar/jar files produced by the art module's
java_sdk_library.

Bug: 173606718
Test: manual last_released check of merged api txt (b/174847574 to
      automate)
Change-Id: I446a381f2b364a114ce391b99a13742d6769f14d
2020-12-23 14:51:17 +00:00
Paul Duffin
24c79cdb88 Merge "Unbundle i18n API from android-non-updatable" am: 17e6d5b6a3 am: 3322b2800a am: f358ccece0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513291

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I576e27b966d5e7b731a3f944bdee353e2cac9106
2020-12-11 10:50:29 +00:00
Paul Duffin
5a4e8f234d Unbundle i18n API from android-non-updatable
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-10 11:23:19 +00:00
Jeff Sharkey
0ab7007631 resolve merge conflicts of 358f0d4fc8 to master
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-08 11:01:05 -07:00
Jeff Sharkey
52b9862f87 Improve OWNERS coverage across frameworks/base/.
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-08 08:36:28 -07:00
Anton Hansson
c9dbe6ed8b Merge "Remove system-*.txt files" 2020-11-18 15:22:15 +00:00
Anton Hansson
90f03fa392 Remove current.txt files
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 b5ec8a9a10)
2020-11-17 00:16:59 +00:00
Anton Hansson
b5ec8a9a10 Remove current.txt files
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-16 18:13:18 +00:00
Sally Yuen
67bf1480cf Merge "Change forceBoldText to fontWeightAdjustment in Configuration" 2020-11-16 16:55:48 +00:00
Nate Jiang
3ce8ab9631 Merge changes from topics "mergedNetwork", "wifiInfoSubId"
* changes:
  Add API to get Subscription Id
  [Suggestion] API to set carrier merged network
2020-11-14 06:55:16 +00:00
Hangyu Kuang
c318d8819a Merge "transcoding: Unhide ApplicationMediaCapabilities" 2020-11-14 06:09:26 +00:00
Janis Danisevskis
ebd964a086 Keystore 2.0: Shim around the basic functionality of Keystore 2.0
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-13 19:55:39 -08:00
hkuang
10acecb23b transcoding: Unhide ApplicationMediaCapabilities
CTS-Coverage-Bug:172074159

Bug: 169849854
Test: Unit test
Change-Id: Ib043bf8e52c6868cd1dfeff5552755d394c4c851
2020-11-13 19:09:34 -08:00
Nate Jiang
115861dac3 Merge "[Suggestion] Add API to help app get user approval status." 2020-11-13 23:02:26 +00:00
Songchun Fan
e2086954e9 [pm/incremental] add @FloatRange in the new LauncherActivityInfo API
Addressing the comment in b/171804873

BUG: 171804873
Test: builds
Change-Id: Ie7980973572443007f9205535ab9da575d3ea97b
2020-11-13 21:25:38 +00:00
Sally
b2ebd0d535 Change forceBoldText to fontWeightAdjustment in Configuration
Convey the weight adjustment instead of a binary on/off

Bug: b/170966021, b/110991537
Test: atest CtsContentTestCases
Change-Id: I4f8de658cb49c2e3d81ce6b25338d6e7c9a5e789
2020-11-13 19:45:18 +00:00
Nikita Dubrovsky
00813be0ed Merge "Update onReceiveContent() logic for app vs platform processing" 2020-11-13 15:54:02 +00:00
Anton Hansson
144ee28238 Remove system-*.txt files
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 d5cba3455f)
2020-11-13 09:57:06 +00:00
Nate Jiang
30b8b6b940 [Suggestion] Add API to help app get user approval status.
Bug: 160648511
Test: atest android.net.wifi

Change-Id: If93db55b1e0bc33dd7b82dad4e297c442b628e44
2020-11-12 16:40:00 -08:00
Nate Jiang
6df0e8bf6c [Suggestion] API to set carrier merged network
Create a new API to set carrier merged network suggestion

Bug: 172867186
Test: atest android.net.wifi
Change-Id: I5ddbc8b15e361e44c508e40dac10211cbd39ab10
2020-11-12 14:47:30 -08:00
Nikita Dubrovsky
a25346bf0c Update onReceiveContent() logic for app vs platform processing
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-12 14:19:57 -08:00
Tyler Gunn
8185680306 Merge "Move offered RTP header extension types API." 2020-11-12 22:12:41 +00:00
Shuo Qian
83cc1b62f0 Merge "Introduce hasCompanionInCallServiceAccess API" 2020-11-12 21:51:29 +00:00
Sooraj Sasindran
eca4612629 Merge "Provide API to retrive dual connected bandwidth" 2020-11-12 21:34:48 +00:00
Eran Messeri
cb1fecb4b4 Merge "Implement setRequiredPasswordComplexity" 2020-11-12 21:17:19 +00:00
Anton Hansson
7bfa3bf333 Merge "Remove system-*.txt files" 2020-11-12 18:55:52 +00:00
Allen Su
2e838fc70e Merge "Declare audio codec bitrate and bandwidth" am: b04ef45226 am: 1bb3473fdf am: 21604689d0 am: 38fb2b571a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1494041

Change-Id: Ib5e5df0edfb0cb448c3c424b24d24f2f4e9ccf42
2020-11-12 18:21:03 +00:00
Allen Su
38fb2b571a Merge "Declare audio codec bitrate and bandwidth" am: b04ef45226 am: 1bb3473fdf am: 21604689d0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1494041

Change-Id: Id0ca7eb919c6da094dd5a7be990f4aa38526aa23
2020-11-12 18:07:10 +00:00
Allen Su
b04ef45226 Merge "Declare audio codec bitrate and bandwidth" 2020-11-12 17:08:42 +00:00
Andy Hung
89c6513542 Merge "AudioFormat: Add ENCODING_PCM_32BIT ENCODING_PCM_24BIT_PACKED" 2020-11-12 16:58:57 +00:00
Anton Hansson
d5cba3455f Remove system-*.txt files
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-12 15:52:40 +00:00
Eran Messeri
1641c5c47e Implement setRequiredPasswordComplexity
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-12 12:47:11 +00:00
Sooraj Sasindran
a63c16f36a Provide API to retrive dual connected bandwidth
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-11 22:17:32 -08:00
Amy Zhang
4ae37befa9 Merge "Add API to configure Scambling Status event to monitor specific status type" 2020-11-12 02:22:35 +00:00
Amy Zhang
99f0c3f36a Merge "Rename RecordEvent getFirstMbInSlice into getFirstMacroblockInSlice" 2020-11-12 02:21:35 +00:00
Felipe Leme
dd0fdcce9f Merge "Exposed UnsafeStateException as a public API." 2020-11-12 01:54:51 +00:00
Tyler Gunn
9da367ace4 Move offered RTP header extension types API.
Moved from ImsCallProfile to MmtelFeature.

Test: Update CTS tests and unit tests.
Bug: 163085177
Change-Id: I9b16b6b17beb1032469d19a214ada0476376d383
2020-11-11 17:26:58 -08:00
Janis Danisevskis
94f9ea72a0 Merge "Keystore 2.0 SPI: Update KeyInfo and KeyGenParameterSpec" am: 17f24b5799 am: 7d49ae705e am: 7662e81e98 am: b90d33bd18
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1470091

Change-Id: I5728741cdd66f9b6ba6f39310c796cb8b12758e5
2020-11-12 00:55:08 +00:00
Janis Danisevskis
b90d33bd18 Merge "Keystore 2.0 SPI: Update KeyInfo and KeyGenParameterSpec" am: 17f24b5799 am: 7d49ae705e am: 7662e81e98
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1470091

Change-Id: I8a3f19ea8cfe16dd8a6d06007306ccaa9ed7257a
2020-11-12 00:48:26 +00:00
Amy Zhang
90068cf627 Merge changes from topic "frinfo"
* changes:
  Add comparator for FrontendInfo
  Expose FrontendInfo list of all the existed Frontends in Tuner java
2020-11-11 23:17:16 +00:00
Janis Danisevskis
17f24b5799 Merge "Keystore 2.0 SPI: Update KeyInfo and KeyGenParameterSpec" 2020-11-11 23:10:13 +00:00
Sooraj Sasindran
e81f13321b Merge "Provide API to retrive dual connected bandwidth" 2020-11-11 23:06:31 +00:00
sqian
dfb7ca01a8 Introduce hasCompanionInCallServiceAccess API
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 4d0652699a)
2020-11-11 22:51:49 +00:00
Sarah Chin
5d472d66bd Merge "Expose PinResult and ICC PIN/PUK APIs as SystemApi" 2020-11-11 22:37:33 +00:00
Andy Hung
cec9647e0f AudioFormat: Add ENCODING_PCM_32BIT ENCODING_PCM_24BIT_PACKED
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-11 12:51:18 -08:00
Felipe Leme
766e6ae8c8 Exposed UnsafeStateException as a public API.
And some related APIs as @TestAPI.

Test: m update-api
Bug: 172376923

Change-Id: I3fc5806e2d34e161a409f49ada263d430ec9bc02
2020-11-11 12:30:15 -08:00