Commit Graph

32049 Commits

Author SHA1 Message Date
Anna Malova
83aefc5e2e Merge "Update methods of PacProcessor." 2020-10-01 00:07:42 +00:00
Hall Liu
7413862e9c Merge "Move some of the call-forwarding related constants" 2020-09-30 22:42:27 +00:00
Hall Liu
303060c932 Move some of the call-forwarding related constants
Move the call forwarding result constants into
CallForwardingInfoCallback and rename them to RESULT_*

Fixes: 169153246
Test: atest TelephonyManagerTest
Change-Id: I14b4d527807e92fe977b8304f8dd95e7cd93e819
2020-09-30 11:22:46 -07:00
Evan Severson
3b7af77649 Merge changes from topic "BackgroundMicCamera"
* changes:
  Do not show rationale when permission is restricted
  Add role allowlist for restricted permissions
  Add documentation to APIs using non-inclusive lanuage
  Treat background mic/camera normally
  Introduce new permissionFlag
  Split camera and microphone for background modes
  Add background microphone and camera permission
2020-09-30 16:46:57 +00:00
Anton Hansson
77ab884db2 Merge "Revert "Add genrules for merged removed.txt files"" am: 27b40fc234 am: de51075d79 am: 1691d6d02a am: 4c42b5ee98 am: e453ae2d45
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1442896

Change-Id: Ie33e6632618ca6a7af0efa95b36c3a2cc13a8bf3
2020-09-30 16:01:53 +00:00
Anton Hansson
e453ae2d45 Merge "Revert "Add genrules for merged removed.txt files"" am: 27b40fc234 am: de51075d79 am: 1691d6d02a am: 4c42b5ee98
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1442896

Change-Id: I28a8008b6228d95f906499acab64c20f80120459
2020-09-30 15:19:34 +00:00
Roshan Pius
d025d3b472 Merge changes from topics "oem_paid_suggestions", "sta_sta_feature"
* changes:
  WifiNetworkSuggestion: Add setOemPaid flag
  WifiManager: Add public API for STA + STA concurrency support
2020-09-30 14:17:37 +00:00
Anton Hansson
27b40fc234 Merge "Revert "Add genrules for merged removed.txt files"" 2020-09-30 13:51:21 +00:00
Anton Hansson
ca5b8b5c6f Revert "Add genrules for merged removed.txt files"
This reverts commit cfb26e3b4c.

Reason for revert: b/169747069

Change-Id: I9290708aea6a66bbecc098b75403f6e5d7e77ec7
2020-09-30 13:50:48 +00:00
Anton Hansson
140a18a403 Merge "Add genrules for merged removed.txt files" am: 19189d886b am: 554cdd7792 am: b16f6fed44 am: 41c5dbb0dd am: ccc36d6a46
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438691

Change-Id: I99c9e633a872715c3136f2c9293ca1b1ac06bdbe
2020-09-30 11:50:30 +00:00
Anna Malova
351256d16a Update methods of PacProcessor.
See discussion in b/149000014 for more information.

Bug: 168455630
Test: n/a

Change-Id: I3b63a0120b151a41ed219dcec818c6a400d03daa
2020-09-30 12:50:04 +01:00
Anton Hansson
ccc36d6a46 Merge "Add genrules for merged removed.txt files" am: 19189d886b am: 554cdd7792 am: b16f6fed44 am: 41c5dbb0dd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438691

Change-Id: Id35b4219ec4e944c80105e6008c12210036d40a7
2020-09-30 11:32:38 +00:00
Anton Hansson
19189d886b Merge "Add genrules for merged removed.txt files" 2020-09-30 09:51:17 +00:00
Roshan Pius
102e083d69 WifiNetworkSuggestion: Add setOemPaid flag
Also, plumb the flag to WifiInfo.

Bug: 169413079
Test: atest android.net.wifi
Change-Id: Ic38dae4e2436937db0fb682bf204785cd181d159
2020-09-29 21:00:42 -07:00
Nathan Harold
3022e62c20 Merge "Deprecate CellLocation Classes" am: 27b3384102 am: b92bb8e643 am: 5d8e5249d6 am: febf87fde1 am: 32f7c492fc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1429088

Change-Id: Iae323ada9dde37a7b23b390b3b55aca6b9d2980a
2020-09-30 01:17:09 +00:00
Nathan Harold
32f7c492fc Merge "Deprecate CellLocation Classes" am: 27b3384102 am: b92bb8e643 am: 5d8e5249d6 am: febf87fde1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1429088

Change-Id: Ib97a5d6c10c47d7213c0a9a17ebcb0144079fdb5
2020-09-30 01:05:12 +00:00
TreeHugger Robot
703427e52c Merge "Add TextShaper API" 2020-09-30 00:21:22 +00:00
Nathan Harold
27b3384102 Merge "Deprecate CellLocation Classes" 2020-09-29 23:23:59 +00:00
TreeHugger Robot
c747e87751 Merge "Expose spell checker settings for testing." 2020-09-29 23:08:01 +00:00
David Su
f579dd52ca Merge "WifiManager: deprecate unused intent extras" 2020-09-29 21:54:59 +00:00
Seigo Nonaka
f3a1915b2e Add TextShaper API
TextShaper API provides a primitive text layout result, e.g. what glyph is used etc.

Here is the new APIs and its description

- PositionedGlyphs
This is a native instance backed object that gives layout information to developers.

- GlyphStyle
The glyph style is an object that holds the parameters that will be used for drawing.
This object is a subset of the Paint object for avoiding creating lots of Paint copy.

- TextShaper#shapeText
This does a text shaping and gives TextShaper.Result. This is a native backed primitive
shaping API.

- StyledTextShaper
This is a text shaper for a styled text. This will be the top-level developer facing
API for shaping text.

Bug: 168048923
Test: atest FontTest TextShaperTest StyledTextShaperTest
Change-Id: I2e91d1ef8503b25b28efc94da7de7cad49c4c1a9
2020-09-29 12:38:28 -07:00
David Su
bdaca1c0c6 WifiManager: deprecate unused intent extras
These extras stopped being populated in R, but it was
too late to make API changes. Officially deprecate
them for S.

Bug: 158874479
Test: compiles
Change-Id: I3b5b898aab04371b8dd5e98f392e983f7809191d
2020-09-29 18:59:38 +00:00
Ashwini Oruganti
3fb439536c Merge "Define FLAG_MUTABLE and add a compat change for explicit definition of PendingIntent mutability flags" 2020-09-29 14:37:41 +00:00
TreeHugger Robot
d20030e604 Merge "Implementing Lock contention API" 2020-09-29 14:04:32 +00:00
Gwen Lin
5861d4e61f Merge "Add KEY_CARRIER_USSD_METHOD_INT to specify methods for USSD requests" 2020-09-29 05:05:27 +00:00
gwenlin
e7145b4eba Add KEY_CARRIER_USSD_METHOD_INT to specify methods for USSD requests
Bug: 161347204
CTS-Coverage-Bug: 169625413
Test: ussd tests, atest

Change-Id: I6a6bfd5e2945ea6aed897896bdbeee244dc0dcc3
2020-09-29 02:28:13 +00:00
Sarah Chin
7916cb0d07 Update NR TAC limit to 3 bytes
TAC was updated to 3 bytes, so the limit is now 0xffffff instead of the
previous 0xffff. Update to meet 3GPP requirements in 24.501 9.11.3.8.

Test: build
Bug: 144433329
Change-Id: Ie007c29671da709f23684ff27d30ef1c377aadc6
Merged-In: Ie007c29671da709f23684ff27d30ef1c377aadc6
2020-09-28 16:00:38 -07:00
Roshan Pius
1a2667f817 WifiManager: Add public API for STA + STA concurrency support
Bug: 158666312
Test: atest android.net.wifi
Change-Id: I56b8b13537c940936cb0e62f4e2d3b926b654a15
2020-09-28 12:43:46 -07:00
Ashwini Oruganti
0dbae32d23 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.e() 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.e 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: I18b21903c7cd0946dce5d7ca7860258612d9f98f
2020-09-28 18:31:02 +00:00
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
cfb26e3b4c Add genrules for merged removed.txt files
No diffs vs monoliths.

Bug: 169034951
Test: for p in "" "system-" "module-lib-"; do
  for t in "current" "removed"; do
      echo "${p}${t}:"
      echo "$(diff -u0 \
          <($CANON frameworks/base/api/${p}${t}.txt | sort) \
          <($CANON out/soong/.intermediates/frameworks/base/api/frameworks-base-api-${p}${t}-merged.txt/gen/${p}${t}.txt | sort))"
  done
done

Change-Id: Id97b88b7d8e4c0b0e372e30658c48436427dbe7c
2020-09-25 09:13:47 +01: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