Commit Graph

32099 Commits

Author SHA1 Message Date
Joanne Chung
11f3fdf4e2 Made CacheQuotaHint testable.
Bug: 158762190
Test: atest android.app.usage.cts.CacheQuotaHintTest
Change-Id: I2b0a49e5199354972231c44c6956073bf714e2e4
2020-10-14 09:56:43 +08:00
Nate Jiang
6f883edd8a Merge "[NetworkSuggestion] Allow app to set subId for the suggestion" 2020-10-07 20:20:30 +00:00
Anton Hansson
48acf101c3 Merge "Add genrule for combined-removed-dex" am: b0ba7618c8 am: dd7eb2b019 am: a07b8d4e93 am: c6cb7e9b1d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1446678

Change-Id: I2548dbfdc44faea3da2bc07290ee28fba9882d6f
2020-10-07 11:12:29 +00:00
Anton Hansson
c6cb7e9b1d Merge "Add genrule for combined-removed-dex" am: b0ba7618c8 am: dd7eb2b019 am: a07b8d4e93
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1446678

Change-Id: I0840de9ac273a0d4f8ea006dd7a1ae9b8ffe5ae1
2020-10-07 10:56:42 +00:00
Anton Hansson
b0ba7618c8 Merge "Add genrule for combined-removed-dex" 2020-10-07 09:54:43 +00:00
Jin Seok Park
b1161a0937 Merge "[Media ML] Refactor APIs for dispatching key events" 2020-10-07 09:30:26 +00:00
Rhed Jao
d03db99731 Merge changes from topic "intent_extra_automatic"
* changes:
  Send extra when automatically removing packages (2/2)
  Send extra when automatically removing packages (1/2)
2020-10-07 08:06:24 +00:00
Ivan Chiang
687936786d Merge "Audio.Artists.Albums implements BaseColumns in MediaStore" 2020-10-07 05:19:13 +00:00
Kohsuke Yatoh
95733e3cb5 Merge "Add API to differentiate grammar suggestions." 2020-10-07 03:59:25 +00:00
Nate Jiang
c25eba3756 [NetworkSuggestion] Allow app to set subId for the suggestion
SubId will be used to identify which SIM/subscription to use for this
suggestion. Same network with different SubIds will be consider
different suggestions.
Also add a system API in WifiConfiguration to help data calculation for
different SIM.

Bug: 169275787
Test: atest android.net.wifi

Change-Id: I093c0661e28cc2df5e97391342101e8ecc331a0f
2020-10-06 17:18:18 -07:00
Treehugger Robot
1f9c268bd5 Merge "Expose getSmsCapacityOnIcc()" am: 4d96662b1f am: bb2a513010 am: fb0444e82c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1293900

Change-Id: I8d8a84119ee36cb93be2f18cf2a03c576cf0ecd2
2020-10-06 21:47:07 +00:00
Treehugger Robot
4d96662b1f Merge "Expose getSmsCapacityOnIcc()" 2020-10-06 20:12:05 +00:00
TreeHugger Robot
aade3bc068 Merge "Add Canvas#drawGlyphs" 2020-10-06 18:58:54 +00:00
Taesu Lee
a248f3586f Expose getSmsCapacityOnIcc()
Unhide getSmsCapacityOnIcc() and it requires READ_PHONE_STATE instead.

Bug: 154878196
Test: Manual

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Merged-in: I86ba39d5073227ff55251fabc614fd3b9347285e
Change-Id: I86ba39d5073227ff55251fabc614fd3b9347285e
2020-10-06 18:13:58 +00:00
Amit Mahajan
95e06eec89 Merge "Expose getSmsCapacityOnIcc()" 2020-10-06 18:13:23 +00:00
TreeHugger Robot
0572a76bc1 Merge "Addressing API review comments." 2020-10-06 15:24:53 +00:00
Anton Hansson
a15427af11 Add genrule for combined-removed-dex
This is a module that aims to have the same contents as
out/soong/hiddenapi/combined-dex-api generated by hiddenapi_singleton.go
inside soong, but generated using a different method that does not
depend on the monolithic droidstubs rule in frameworks/base.

This is part of a series of changes to remove all the dependencies on
the monolithic droidstub rules, so that they can eventually be removed.

Bug: 169034951
Bug: 169395887
Test: m combined-dex-api
Change-Id: I2c4a76aa1d85ef44fc467474afacec20901aee13
2020-10-06 12:58:51 +00:00
TreeHugger Robot
58686805ae Merge "Various location fixes" 2020-10-06 09:41:06 +00:00
Bernardo Rufino
0cbce5de93 Merge "Block untrusted touches opt-in" 2020-10-06 08:05:00 +00:00
Soonil Nagarkar
5d47f1e2cd Various location fixes
-Prevent PendingIntents from using LocationRequest SystemApis. We don't
track permission removal, so we don't current reset the request if the
permission is lost.
-Make LocationRequest.getWorkSource() NonNull. Small quality of life
change to reduce null checks all over.
-Don't spend CPU coarsening location until we actually need to. The vast
majority of locations will never need to be coarsened. Don't bother
doing so until we actually need to.

Bug: 169887240
Test: manual + presubmit
Change-Id: I7ad6fe886eaede3ed9f46cebe4246d29d6b6e187
2020-10-06 00:14:55 -07:00
Kohsuke Yatoh
291a0f9682 Add API to differentiate grammar suggestions.
The following attributes are added for grammar suggestions.
- SuggestionSpan#FLAG_GRAMMAR_ERROR
- SuggestionsInfo#RESULT_ATTR_LOOKS_LIKE_GRAMMAR_ERROR

Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I0e5da3125d28bb881e513d0d69e0a2d336a9f286
2020-10-05 23:29:14 -07:00
Todd Kennedy
acbe943d64 Send extra when automatically removing packages (1/2)
Introduce a new extra field for ACTION_PACKAGE_REMOVED intent to
signal that the application was removed automatically without the
user-initiated action.

If the system automatically prunes a package [eg. an instant app], we
mark the broadcast with that information. Launchers or other applications
can use this information to potentially alter their behaviour.

Bug: 111318529
Test: atest CtsAppSecurityHostTestCases:EphemeralTest
Change-Id: I3a4690d7df6e2dce10b246fe20a627ba2eed5da0
2020-10-06 14:09:36 +08:00
Taesu Lee
d2ed15ebfe Expose getSmsCapacityOnIcc()
Unhide getSmsCapacityOnIcc() and it requires READ_PHONE_STATE instead.

Bug: 154878196
Test: Manual

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I86ba39d5073227ff55251fabc614fd3b9347285e
(cherry picked from commit f5da96c49e9a28f24387c3e79355702f66736c38)
2020-10-05 22:39:43 -07:00
Alex Buynytskyy
c40b4f2851 Addressing API review comments.
Fixes: 169153620
Fixes: 168601298
Test: atest ChecksumsTest
Change-Id: Ibe593ccd388ad56f01ba0e3f58fb5a17c86e5e5c
2020-10-05 20:39:39 -07:00
Louis Chang
d1b79549d2 Renaming Stacks APIs to RootTasks
This CL is aimed to refine the AM/ATM API surface. The other
stack naming internally spread in AM and ATM will be covered
in later CLs.

Also Consolidate #removeStack() with #removeTask().

Bug: 157876448
Test: existing tests

Change-Id: I1254f972dab3bbe66a736a0402eebce9d0fb1496
2020-10-06 08:39:18 +08:00
Philip P. Moltmann
57e722ade1 Merge "Define video-call-app config option" 2020-10-05 19:23:27 +00:00
Anton Hansson
897df7e3ca Merge "Re-submit "Add genrules for merged removed.txt files"" am: c2ee800f20 am: 41d0224165 am: c3edde5946 am: 18cf87b9f3 am: a5885916fd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1446816

Change-Id: I6c2a2d1a2b76d04720ead9f2c78075e2ddf8c65f
2020-10-05 14:24:27 +00:00
Anton Hansson
a5885916fd Merge "Re-submit "Add genrules for merged removed.txt files"" am: c2ee800f20 am: 41d0224165 am: c3edde5946 am: 18cf87b9f3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1446816

Change-Id: Ib32b8ec1ad7c55ddfdba965e8d8426a85d98b3de
2020-10-05 13:50:50 +00:00
Neil Fuller
e7741e18a5 Merge "System API annotation and API .txt changes" 2020-10-05 13:36:17 +00:00
Bernardo Rufino
64bbd4b1d9 Block untrusted touches opt-in
The feature is disabled by default and can be in one of 3 modes:
disabled, permissive and block. In permissive we only log but
don't block the touch. This knob is implemented in a global setting
block_untrusted_touches. It can also be disabled per occluding app using
app-compat infrastructure, so if you disable for a certain app, overlays
of that app won't have the chance of blocking touches. More details
on these on go/try-cross-uid-touches.

Each window has 3 modes related to touch occlusion: ALLOW, USE_OPACITY
or BLOCK_UNTRUSTRED. Check code comments for the meaning of each. If the
feature is turned off for the app, then the mode is ALLOW. Else if it's
a SAW, then it's USE_OPACITY. Else it's BLOCK_UNTRUSTED. These states
are passed to InputDispatcher, who then perform the proper checks and
blocks or not the touch.

If input dispatcher deems the touch unsafe, depending on the feature
mode, we filter out such touches and log a message to logcat.

I also introduce a global (secure) setting
MAXIMUM_OBSCURING_OPACITY_FOR_TOUCH which represents the maximum
opacity allowed per UID that's obscuring the touch-consuming window
according to some rules, which are discussed in topic CL for
InputDispatcher code. This maximum is initially set to 0.8, but we'll
be conducting local experiments to determine the final value.

Test: atest WindowUntrustedTouchTest
Test: atest inputflinger_tests inputflinger_benchmarks libinput_tests
Test: go/try-cross-uid-touches for manual testing
Bug: 158002302
Change-Id: I462858ad5f0d11b1261748489385e6409e38e4b1
2020-10-05 11:44:37 +00:00
Hyundo Moon
4a681f2c42 Mark MediaParceledListSlice as @Deprecated
Bug: 169660302
Test: make update-api -j;
Change-Id: I047ecbae37a8ec57d80491f9611cd100dc6b7ea6
2020-10-05 10:23:42 +09:00
Seigo Nonaka
39c482f21f Add Canvas#drawGlyphs
Bug: 168048923
Test: atest CanvasDrawGlyphsTest
Change-Id: I013335fa82883146044ea03fbbe67e1e26a35f6d
2020-10-02 23:09:45 -07:00
Anton Hansson
3c1aa119fc Re-submit "Add genrules for merged removed.txt files"
No diffs vs monoliths. The TARGET_BUILD_APPS issue has been fixed.

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
(cherry picked from commit cfb26e3b4c)

Change-Id: I1f637b69d96c0b86f4f30da6b68f06a382e50d28
2020-10-02 17:48:07 +01:00
Neil Fuller
fed6551a2d Merge "Add config for the LocationTimeZoneManagerService" 2020-10-02 15:34:35 +00:00
Treehugger Robot
f4ce73e3df Merge "Parcel interface token methods @NonNull." am: 403f00bfb8 am: f74b2d4192 am: 008ff2619b am: 92bcee154f am: cf682d9c2e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1444678

Change-Id: Id111b38163356f7b8a7dde7db200059a9b1799d7
2020-10-02 01:10:56 +00:00
Treehugger Robot
cf682d9c2e Merge "Parcel interface token methods @NonNull." am: 403f00bfb8 am: f74b2d4192 am: 008ff2619b am: 92bcee154f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1444678

Change-Id: Ie8c367e500572f3cb1cf8817d28141d52b06867e
2020-10-02 01:02:27 +00:00
Treehugger Robot
403f00bfb8 Merge "Parcel interface token methods @NonNull." 2020-10-01 22:29:23 +00:00
TreeHugger Robot
5c9039e137 Merge "Deprecate DownloadableFonts in framework." 2020-10-01 20:38:43 +00:00
Hall Liu
151dd2b445 Merge "Rename RoleManager#getDefaultSmsPackage" 2020-10-01 20:23:57 +00:00
Jack Yu
2383d0748c Merge "Added getEquivalentHomePlmns API" am: 6c541722ff am: ee052afb4f am: ed1d2560ff am: 73d3765e84 am: 6466dd02d9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1441700

Change-Id: I8e3e77b32eadd59a9bdfec14e160bcd497ef9e0c
2020-10-01 20:21:43 +00:00
Jack Yu
6466dd02d9 Merge "Added getEquivalentHomePlmns API" am: 6c541722ff am: ee052afb4f am: ed1d2560ff am: 73d3765e84
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1441700

Change-Id: Ief8a0aa10e5b587692711c2974375dc9b68d72b8
2020-10-01 20:08:40 +00:00
Steven Moreland
414da7912c Parcel interface token methods @NonNull.
These functions have always aborted when there is a null argument
(before, because they used GetStringCritical). Noticed while working
on b/169674485.

Bug: N/A
Test: N/A
Change-Id: Ic24bd26b4c0323fa3ebee78ccf60bbba4627b565
2020-10-01 19:36:14 +00:00
Seigo Nonaka
e554b109df Deprecate DownloadableFonts in framework.
We will keep maintaining the AndroidX downloadable font.

Bug: 169345520
Test: N/A
Change-Id: Iece70653c1416afaf88c7a56d8de5a35f9730997
2020-09-30 22:44:54 -07:00
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
Philip P. Moltmann
05830b8586 Define video-call-app config option
Bug: 168431157
Test: atest DefaultPermissionGrantPolicyTest
Change-Id: Iaa38902287e14b670d788f26adab3027f1091140
2020-09-30 15:27:26 -07:00
Jack Yu
34a50e35f5 Added getEquivalentHomePlmns API
Added a new API to retrieve EF_EHPLMN from the SIM.

Fix: 155843989
Test: CtsTelephonyTestCases

Change-Id: I2797dc466e12f9aa64b830b93446ee1d0532c760
2020-09-30 12:16:19 -07: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