Commit Graph

32013 Commits

Author SHA1 Message Date
Hyundo Moon
77327d3244 Merge "Add a public method MediaMetadata.Builder#setBitmapDimensionLimit()" 2020-09-28 16:51:49 +00:00
Nikita Dubrovsky
210c931b21 Merge "Update RichContentReceiver API (now OnReceiveContentCallback)" 2020-09-28 14:48:42 +00:00
Hyundo Moon
0732c3ae8e Add a public method MediaMetadata.Builder#setBitmapDimensionLimit()
This CL replaces the copy constructor
MediaMetadata(MediaMetadata source, int maxBitmapSize)
with the new public method Builder#setBitmapDimensionLimit().

Also added a getter getBitmapDimensionLimit().

Bug: 168215839
Test: m update-api -j; Ran MediaMetdataTest
Change-Id: I6844fcf01c4ee98c99bd0dc880b96f73989dbd3c
2020-09-28 16:32:23 +09:00
Hyundo Moon
7cbdbffe2b Merge "Add MediaParceledListSlice as @SystemApi" 2020-09-28 07:15:43 +00:00
Hyundo Moon
52725163a1 Add MediaParceledListSlice as @SystemApi
Bug: 169399279
Test: make update-api -j; make -j;
Change-Id: I92ea0ade7093b86cc3a4253a20b129a0ec582ad9
2020-09-28 02:59:02 +00:00
Jakub Pawlowski
da0e253c5b Merge "Make BluetoothGattCallback.onServiceChanged public" am: 802503736d am: 531993dca1 am: 23c923d197 am: 41e6915dcd am: d69656a0b7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1439193

Change-Id: If481ce4165216b93c0c78ed070c757e9fc632d91
2020-09-27 07:35:49 +00:00
Jakub Pawlowski
d69656a0b7 Merge "Make BluetoothGattCallback.onServiceChanged public" am: 802503736d am: 531993dca1 am: 23c923d197 am: 41e6915dcd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1439193

Change-Id: Id9945a11865c9e4ae0155eccc19cbbdc90dd5d48
2020-09-26 17:10:25 +00:00
Jakub Pawlowski
2c1d2c21cf Make BluetoothGattCallback.onServiceChanged public
Bug: 154056389
Test: proper CTS test will be provided
Change-Id: I2c9264910b65d62124c75c3ee3fd0b5bd18a2006
2020-09-26 15:50:37 +00:00
Hall Liu
b66035bb44 Merge "API tweaks in response to feedback" 2020-09-25 21:40:24 +00:00
Hall Liu
4998ea41b8 Merge "Expose RoleManager#getDefaultSmsPackage" 2020-09-25 21:37:39 +00:00
Nikita Dubrovsky
dd9869aa4c Update RichContentReceiver API (now OnReceiveContentCallback)
Bug: 163718378
Bug: 165632620
Bug: 152068298
Test: Unit tests
  atest CtsWidgetTestCases:TextViewOnReceiveContentCallbackTest
  atest CtsViewTestCases:ViewTest
  atest FrameworksCoreTests:TextViewProcessTextTest
Change-Id: I3fa65b47c920a9d1ddad88a79e60864dc8109753
2020-09-25 13:46:33 -07:00
Jack Yu
95ec81189d Merge "Support handover retry" am: 0c47ab0656 am: 5f6c9d224f am: 24fe634048 am: db47938c2d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436232

Change-Id: Ia7f589101bbdfab0f1c460a04b3b56eb2cf723d3
2020-09-25 18:51:33 +00:00
Jack Yu
0c47ab0656 Merge "Support handover retry" 2020-09-25 15:59:29 +00:00
Anton Hansson
2f44bc9dfe Merge "Baseline existing API lint warnings" am: 5d73cb9cb6 am: fefd21b0fd am: e5b97b11bc am: 838c2e1bc1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1437111

Change-Id: Ia12eb31c8a64e9fa2140f3d422462b25527a7101
2020-09-25 07:47:24 +00:00
Jack Yu
6f70ccb3b4 Added transport type and id in precise data connection state am: b5d6274622 am: dfd397ba5f am: 2ba154c8c9 am: 88aa79bce4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436355

Change-Id: I2303ed7326df815eb87a2858ff912a5085e34c03
2020-09-25 07:45:55 +00:00
Nathan Harold
672c48d27c Remove Deprecated-At-Birth APIs from PDCS am: bf5158f9a0 am: 0f1829eef2 am: 809f6a5fa4 am: 46a3f55679
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436352

Change-Id: I6fbd28b3501acf63774268c2cbe7020c91ee8b80
2020-09-25 07:45:39 +00:00
Anton Hansson
5d73cb9cb6 Merge "Baseline existing API lint warnings" 2020-09-25 06:52:57 +00:00
Daniel Bright
3d07970957 Merge "Add Handover Failure Mode to Radio Hal" 2020-09-25 05:32:19 +00:00
Jack Yu
dcb4d39b18 Support handover retry
The data service now can control whether retry
handover or not.

Fix: 160105644
Test: FrameworksTelephonyTests
Merged-In: Ib6fd6a4d7cf242a4c17337607c188a07188df9e5
Change-Id: Ib6fd6a4d7cf242a4c17337607c188a07188df9e5
(cherry picked from commit df75e3082e)
2020-09-24 21:31:38 -07:00
Hall Liu
eb0af2008f Expose RoleManager#getDefaultSmsPackage
Expose this method for module libraries. It's needed to support a public
method in TelephonyProvider that doesn't require any permissions.

Test: atest RoleManagerTest#smsRoleHolderAvailableWithoutObserveRoleHolders
Fixes: 169350676
Change-Id: Ia2725dc5aa0de74b2cf67ecd0666917ae27adda9
2020-09-24 13:56:54 -07:00
Hall Liu
155cb54ec8 Merge "Rename StatusBarManager#setDisabledForSimNetworkLock" 2020-09-24 20:52:29 +00:00
Eugene Susla
c50a911daa Merge "Run shell commands reliably" 2020-09-24 16:46:12 +00:00
Jack Yu
b5d6274622 Added transport type and id in precise data connection state
Added the transport type in precise data connection state. This
would be useful for IWLAN, MAPCON, and 5G development work. Also
added id for listener to keep tracking the same data connection
state.

Bug: 161572838
Test: FrameworksTelephonyTests
Merged-In: I5a14610bf072a64b534227fb715ebec58716bce0
Change-Id: I5a14610bf072a64b534227fb715ebec58716bce0
(cherry picked from commit ec5093d4d7)
2020-09-24 09:36:15 -07:00
Nathan Harold
bf5158f9a0 Remove Deprecated-At-Birth APIs from PDCS
Two APIs were added as @SystemApi and then @Deprecated within
the same API level (RVC). These methods were never exposed
publicly, and instead were replaced with more-appropriate
named methods that were added to the public API. As such they
were not fully deleted in RVC but were never exposed and expected
to be deleted following SDK finalization. This CL does precisely
that - removes all traces of these methods, as per the will of
the API Council.

-Remove #getDataConnectionLinkProperties()
-Remove #getDataConnectionNetworkType()

Bug: 152787887
Test: make update-api && make
Merged-In: I89463b0bd641e9316f90fe4f535d326f6e74a061
Change-Id: I89463b0bd641e9316f90fe4f535d326f6e74a061
(cherry picked from commit 3a47293cb4)
2020-09-24 09:36:15 -07:00
Anton Hansson
73aa2509ef Baseline existing API lint warnings
We are making warnings behave as errors (i.e. break the build).
Rather than fixing all the current warnings, just baseline them.

This CL is the result of
$ m
$ cp \
out/soong/.intermediates/frameworks/base/system-api-stubs-docs/android_common/api_lint_baseline.txt \
frameworks/base/api/system-lint-baseline.txt
$ cp \
out/soong/.intermediates/frameworks/base/test-api-stubs-docs/android_common/api_lint_baseline.txt \
frameworks/base/api/test-lint-baseline.txt"

Bug: 154317059
Test: m
Change-Id: Idf8f7dbcaa1c136781175fd5e66eed3525d21722
Merged-In: Idf8f7dbcaa1c136781175fd5e66eed3525d21722
2020-09-24 14:04:51 +01:00
Anton Hansson
0eccccbde4 Add graphics to generated current.txt
We are also lacking appsearch, but it doesn't yet have api txt files.

Bug: 169034951
Bug: 169304493
Test: diff current.txt with generated txts
Change-Id: I0866605f0b4ba450ae824af00d24502fda060a5f
2020-09-24 12:09:25 +01:00
TreeHugger Robot
bad31c3487 Merge "Add necessary APIs for supporting glyph level drawing" 2020-09-24 04:11:15 +00:00
Greg Kaiser
26702432de Merge "Revert "Define FLAG_MUTABLE and add a compat change for explicit..."" 2020-09-24 03:26:06 +00:00
Greg Kaiser
c55f2961ba Revert "Define FLAG_MUTABLE and add a compat change for explicit..."
Revert "Add a check for FLAG_MUTABLE and FLAG_IMMUTABLE being se..."

Revert submission 12627798-define-flag-mutable

Reason for revert: Makes wembley device unusable by killing UI, also kills Bluetooth repeatedly

Bug: 169241864, 169239341
Test: Locally reverted and wembley now has UI and no Bluetooth crashing messages
Reverted Changes:
I2ffbc6859:Add a check for FLAG_MUTABLE and FLAG_IMMUTABLE be...
I1f1f72c6c:Define FLAG_MUTABLE and add a compat change for ex...

Change-Id: I0b1f0eadce97a1f7bbd17768f5ee491b3871b10f
2020-09-24 00:52:45 +00:00
Eugene Susla
8fa2bdb099 Run shell commands reliably
Tests sometimes fail due to a shell command failing, bet we don't get the
appropriate result from the command run itself, which leads to confusing
states and challenging troubleshooting.
E.g. jobscheduler reports its failure only via stderr.

This introduces a utility that fails with the relevant command output,
should something be printed to stderr.

Test: atest AutoRevokeTest
Bug: 168843991
Change-Id: I5e354c1b88ca3ceeeda2d5500b62c421174fd57c
2020-09-23 17:02:55 -07:00
Hall Liu
221f804a00 API tweaks in response to feedback
Update documentation on PhoneAccount#EXTRA_SORT_ORDER to make it more
clear what the sorting order is in edge cases.

Make DisconnectCause#REASON_EMULATING_SINGLE_CALL public, since it might
get propogated up to dialer apps.

Fixes: 169153499
Test: docs only
Change-Id: I7f810f909a8a61b422283c3bafcc97307e4d863b
2020-09-23 16:48:59 -07:00
Seigo Nonaka
1ed4f6441f Add necessary APIs for supporting glyph level drawing
This CL adds following APIs

Font#cloneWithSettings
  This API provides a faster Font instance creation for different
  variation settings.

Font#getBounds
  This API provides glyph advance and bounding box information.

Font#getMetrics
  This API provides font metrics that will be used for deciding line
  height and/or baseline.

Bug: 168136332
Test: atest FontTest
Test: TreeHugger

Change-Id: I335557ce47ea0ca8e012c2a48b804c00bb348392
2020-09-23 13:01:38 -07:00
TreeHugger Robot
56fd85683b Merge "Add MediaFormat key for slow-motion marker info" 2020-09-23 18:41:44 +00:00
Chong Zhang
7f12ed39e8 Add MediaFormat key for slow-motion marker info
bug: 160260201
CTS-Coverage-Bug: 169242631
Change-Id: I68746086d008957776bee8328a5331de3ba65db9
2020-09-23 09:18:27 -07:00
David Su
6c1ccd172e Merge "LINK_CONFIGURATION_CHANGED broadcast: stop including EXTRA_LINK_PROPERTIES" 2020-09-23 15:50:27 +00:00
Anton Hansson
30cca071bf Merge "Add genrules for merged current.txt" am: 591327acd4 am: e21772ed50 am: 5d0b80fb10 am: 00377e4d90 am: 0b05240256
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1432681

Change-Id: If53bf36cdbebf588303b24f1965d024e4c0f1c93
2020-09-23 10:35:23 +00:00
Anton Hansson
0b05240256 Merge "Add genrules for merged current.txt" am: 591327acd4 am: e21772ed50 am: 5d0b80fb10 am: 00377e4d90
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1432681

Change-Id: I000e2a945e54e268a64df4a156afb85e6ea6676f
2020-09-23 09:59:40 +00:00
Jin Seok Park
69f8c3108a Merge "Remove UnsupportedAppUsage from ExifInterface" 2020-09-23 09:37:35 +00:00
David Su
c8a57301ea LINK_CONFIGURATION_CHANGED broadcast: stop including EXTRA_LINK_PROPERTIES
This extra is unused, and potentially exposes sensitive information
that can be accessed without any permissions.

Bug: 162246414
Test: atest FrameworksWifiTests
Change-Id: I57c3db765283d8bbb410a0b790e27054c5ab561a
2020-09-22 19:14:08 -07:00
Jackal Guo
1f484774e2 Merge "Prevent arbitrary installers installing apps as instant" 2020-09-23 01:16:54 +00:00
Ashwini Oruganti
73faccb867 Merge "Define FLAG_MUTABLE and add a compat change for explicit definition of PendingIntent mutability flags" 2020-09-23 01:07:11 +00:00
TreeHugger Robot
f03c5aa5f6 Merge "Added support for edge treatment parameters for BlurShader" 2020-09-23 00:37:40 +00:00
Hangyu Kuang
ee743d3238 Merge "transcoding: Add forClientUid in TranscodingRequest." 2020-09-23 00:19:00 +00:00
hkuang
9e0c251319 transcoding: Add forClientUid in TranscodingRequest.
This is used to let MediaProvider could specify the request is
on behalf of which client.

CTS-Coverage-Bug: 168990206

Bug: 154733526
Test: Unit test.
Change-Id: Id1a2c4cccff12dd1d979fa9350120e2ddad9ff5b
2020-09-23 00:04:21 +00:00
Hall Liu
409c9893b4 Rename StatusBarManager#setDisabledForSimNetworkLock
Rename method to setExpansionDisabledForSimNetworkLock

Fix: 169152870
Test: atest StatusBarManagerTest
Change-Id: I7a555e6c501a0a5e98127a49bfbfe2c742806160
2020-09-22 16:39:19 -07:00
Hai Shalom
ea0c53c72a Merge "[Passpoint] Unhide HomeSP APIs used for matching" 2020-09-22 22:44:29 +00:00
Ashwini Oruganti
571ed8dc58 Define FLAG_MUTABLE and add a compat change for explicit definition of PendingIntent mutability flags
For future releases, we will require that either FLAG_IMMUTABLE or
FLAG_MUTABLE is defined when a PendingIntent is created.

The check only results in a log.wtf for now while we notify, identify,
and update major PendingIntents. We will add a stricter
IllegalArgumentException soon.

- Define FLAG_MUTABLE
- Add a check and log.wtf that either FLAG_IMMUTABLE or FLAG_MUTABLE is
  specified on creation for future releases
- Update api/current.txt and non-updatable-api/current.txt to include
  FLAG_MUTABLE

Test: atest PendingIntentTest
Bug: 160794467
Change-Id: I1f1f72c6ce22358e98e9f38be2fb98b27e60898c
2020-09-22 14:59:31 -07:00
Anton Hansson
1cb4d40ea4 Merge "Move api/*current.txt filegroups into api dir" am: 97165aa09e am: 39ce253f05 am: e206b228cd am: 933ad0fb03 am: 1d40ff6373
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1432680

Change-Id: I095efc5d33f5f940bde90d418dd6f82aebce5ddf
2020-09-22 20:06:28 +00:00
Anton Hansson
1d40ff6373 Merge "Move api/*current.txt filegroups into api dir" am: 97165aa09e am: 39ce253f05 am: e206b228cd am: 933ad0fb03
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1432680

Change-Id: Ica94dea77315cf338b06254c453f0a0ed09bb8b7
2020-09-22 19:47:41 +00:00
TreeHugger Robot
4bd5f7407a Merge "Expose ParcelableColorSpace" 2020-09-22 18:38:17 +00:00