Commit Graph

32647 Commits

Author SHA1 Message Date
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
Soonil Nagarkar
11a0b63bb4 Make FUSED_PROVIDER SystemApi
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-11 11:16:53 -08:00
Janis Danisevskis
c5bdd77f1a Keystore 2.0 SPI: Update KeyInfo and KeyGenParameterSpec
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-11 07:53:54 -08:00
Gwen Lin
6ddf533011 Merge "Add KEY_CARRIER_USSD_METHOD_INT to specify methods for USSD requests" am: 3acec4d14f am: ac3167e3dd am: 08ab8031da
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1372476

Change-Id: I3b32442c56a5dfb79d78b2113a2a872cfeb0c72e
2020-11-11 03:19:55 +00:00
Amy Zhang
1c15cee227 Expose FrontendInfo list of all the existed Frontends in Tuner java
Test: make
Bug: 158818697
Change-Id: Iddea804a2ab9c8609d843c6259763e092b003131
2020-11-10 18:45:27 -08:00
Amy Zhang
e7eee73024 Rename RecordEvent getFirstMbInSlice into getFirstMacroblockInSlice
Test: atest TunerTest
Bug: 172934764
Change-Id: Ie5803509b0ee3e9b3e7279eccf2249dfe29792e5
2020-11-10 18:20:12 -08:00
Gwen Lin
3acec4d14f Merge "Add KEY_CARRIER_USSD_METHOD_INT to specify methods for USSD requests" 2020-11-11 01:45:38 +00:00
Sarah Chin
23057fc3f2 Expose PinResult and ICC PIN/PUK APIs as SystemApi
Test: atest TelephonyManagerTest
Fix: 171884262
Change-Id: I9cdc11c49e4ca602cfa1464e5f424c4a96798cfe
2020-11-10 16:22:35 -08:00
Kurt Dresner
22dc4e8261 Merge "Expand visibility of projection state API so Android Auto can access it." 2020-11-10 23:46:51 +00:00
Soonil Nagarkar
bf126a7af3 Merge "Add batching APIs and Location.equals()" 2020-11-10 23:33:35 +00:00
Yu-Han Yang
5f084f88db Merge "GNSS Satellite Blocklist Renaming" 2020-11-10 23:06:24 +00:00
Julia Reynolds
53766bd74a Merge "Sync internal notif categories with androidx" 2020-11-10 19:51:01 +00:00
Sooraj Sasindran
cfa5d24852 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

Change-Id: I3e8152d22fb9602c7d2ffdee681ac5d69c5dd3fd
2020-11-10 10:40:25 -08:00
Amy Zhang
220e0256c9 Merge "Get the offset of recorded keyframe from MMTP Packet Table in MmtpRecordEvent" 2020-11-10 18:17:04 +00:00
Amy Zhang
5e9578fa73 Merge "Add new Frontend Status Types into Tuner Framework" 2020-11-10 18:15:58 +00:00
Amy Zhang
bc7a75b738 Merge "Deprecate int getFecCapability() and add long getCodeRateCapability() instead" 2020-11-10 18:15:31 +00:00
Soonil Nagarkar
be6ed5aa14 Add batching APIs and Location.equals()
-Moves batching APIs from SystemApi to Public, and makes them
multi-client safe.
-Adds equals/hashcode to Location.

Bug: 171512333
Test: manual + presubmit
Change-Id: I6ee28f8229fdf49386cd370ea785de63b97e7cde
2020-11-10 10:14:34 -08:00
Amy Zhang
c1bae49aff Merge "Add some invalid constants for Tuner" 2020-11-10 18:14:22 +00:00
Chavi Weingarten
d87022d4ab Merge "Initial commit for ImpressionAttestationService" 2020-11-10 17:01:03 +00:00