Commit Graph

6147 Commits

Author SHA1 Message Date
TreeHugger Robot
f1764cc21f Merge "Remove WebView fallback logic migration code." 2020-10-22 00:01:57 +00:00
Anton Hansson
586a3cf229 Remove @TestApi from @SystemApi symbols
I ran these commands:
    cd frameworks/base
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs'
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs'

Bug: 171179806
Test: m checkapi
Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789
2020-10-20 09:04:03 +01:00
TreeHugger Robot
5d8bfdc5e5 Merge "[GraphicsEnvironment] Remove unnecessary prefix." 2020-10-19 21:43:36 +00:00
TreeHugger Robot
1a15f8de00 Merge "Add Tiles for all Recent Conversations via flag" 2020-10-19 12:43:13 +00:00
Ryan Lin
f7cf88f347 Merge "Set default value of A11y magnification capabilities" 2020-10-16 04:34:34 +00:00
ryanlwlin
6917110a17 Set default value of A11y magnification capabilities
We set magnification capabilities all by default, but if the user
is using full-screen magnification before migration, we will set it to
full-screen.If the above situation happens, we show a prompt dialog to
inform theuser the new feature when using full-screen magnification
first time.

Note the default value will be applied if the user erases all datas.

Test: 1. Enable/Disalbe full-screen magnification and observe
         the values after flashing.
      2. Erase all datas and observes the settings values.
      atest SettingsBackupTest
Bug: 162525393
Change-Id: I3dc749c2414f3aa9162c0f2a31b512c5e6a3ae80
2020-10-16 09:36:40 +08:00
Peiyong Lin
706d1ef565 [GraphicsEnvironment] Remove unnecessary prefix.
ANGLE global settings variables have an unnecessary prefix, remove it.

Bug: b/170982184
Test: atest CtsAngleIntegrationHostTestCases
Change-Id: Id98e69820c90ede16cec8e798c0c77200b951966
2020-10-15 13:36:47 -07:00
Roman Kalukiewicz
24403f7ef2 Add @Nullable annotation to the parameter of Object.equals() methods.
Those annotations could be inferred by some tools (like Kotlin), but the
https://checkerframework.org/ doesn't check inherited annotations
complaining about all equals() invocations that get nullable argument.

The change was generated by running

find . -name \*.java | xargs sed -i 's/public boolean equals(Object /public boolean equals(@Nullable Object /'

in the frameworks/base directory and by automatically adding and
formatting required imports if needed. No manual edits.

Bug: 170883422
Test: Annotation change only. Should have not impact.
Exempt-From-Owner-Approval: Mechanical change not specific to any component.
Change-Id: I5eedb571c9d78862115dfdc5dae1cf2a35343580
2020-10-15 10:48:01 -07:00
Anna Zappone
331215b4d8 Add Tiles for all Recent Conversations via flag
Based on the CONVERSATION_TYPE flag, shows only priority conversations
or all conversations. Defaults to showing all conversations.

Test: locally
Bug: 169783793
Change-Id: I4cb62cc9e4f9e5e488247d97b5624be97a94f8b0
2020-10-15 17:38:09 +01:00
Marcin Oczeretko
ad6cc0a7e7 Add a flag to enable/disable/configure LatencyTracker
Test: manual - flashed the phone and verified the logging and statsd sampling with default settings
Bug: 131859447, 162927074
Change-Id: I2637100b4945732f7bd792831749ca2614971c5e
2020-10-15 11:48:51 +01:00
Mathew Inwood
63dab1b8ca Merge "Add HIDDEN_API_POLICY to @TestApi." 2020-10-14 12:23:57 +00:00
Torne (Richard Coles)
725c7b9da4 Remove WebView fallback logic migration code.
The WebView fallback mechanism was removed in Q and replaced with code
to migrate the state of upgraded devices to the new configuration. This
is no longer necessary; remove the logic to simplify the code.

The notion of a WebView provider being designated as the fallback is
kept, as this is still used by the code which checks if there is no
valid provider at all at boot time and tries to fix the situation by
re-enabling the fallback provider for all users - this was added for
b/132815849 and should suffice for any devices which haven't executed
the fallback migration code.

Bug: 129470358
Test: atest WebViewUpdateServiceTest
Change-Id: I4de777b650fb793903f6df74a7ff639190d8b0a9
2020-10-13 15:55:53 -04:00
Minche Li
168d7918b8 Merge "Adds Magnification settings keys as TestApi" 2020-10-13 06:02:10 +00:00
Mathew Inwood
b2f0ce1ccd Add HIDDEN_API_POLICY to @TestApi.
Test: cd cts/tests/signature; atest
Bug: 170428909
Bug: 169987505
Change-Id: I68231850a000243cd01ba066585322cab7608884
2020-10-12 17:03:01 +01:00
Varun Shah
e609b6bcbc Merge "Update PendingIntent mutability flag in CalendarContract." 2020-10-12 14:41:26 +00:00
Varun Shah
1669cd3caa Update PendingIntent mutability flag in CalendarContract.
Fixes: 170224062
Test: atest CalendarCommonTests
Test: atest CalendarProviderTests
Test: atest CtsCalendarProviderTestCases
Change-Id: Ib8fb8f2d48b33e2e8401c3ab3c371c1755200222
2020-10-08 17:44:43 -07:00
Beverly Tai
9214eb774f Merge "Add temp flag for lockscreen/aod ui prototyping" 2020-10-08 22:15:52 +00:00
Beverly
ce1ff14b25 Add temp flag for lockscreen/aod ui prototyping
Add new Settings.Global.SHOW_NEW_LOCKSCREEN property. When enabled, new
lockscreen & aod UI + transitions will show. This is a temporary flag for the
purposes of protoyping which will be removed before release. Therefore, it should
not be backed up.

To toggle the flag (value = 0 is disabled, value = 1 is enabled):
adb shell settings put global show_new_lockscreen <value>

Test: manual
Bug: 170228350
Change-Id: I3b40b1de9bb80d43218fa1e8661fba47b50e9888
2020-10-08 15:08:43 +00:00
mincheli
9a9471290f Adds Magnification settings keys as TestApi
Bug: 162814440
Test: atest SettingsProviderTest
Change-Id: If3ddc65ebbfd679892d89a273a84edac78bc0cb6
2020-10-08 16:07:54 +08:00
Sally
09821e196e Back up Force Bold Text setting and clean up javadoc
Bug: b/110991537
Test: builds
Change-Id: Ia4040a2dd84dae12fb5061ffb5bcd1d0cb99cbd6
2020-10-07 22:22:01 +00:00
Sally Yuen
b6697b2a32 Merge changes I72d65c73,Icc998925
* changes:
  Add Reduce Bright Color Settings to proto files
  Add Reduce Bright Colors to Settings
2020-10-06 20:47:43 +00:00
Bernardo Rufino
0cbce5de93 Merge "Block untrusted touches opt-in" 2020-10-06 08:05:00 +00:00
Sally
f4cb55fdf2 Add Reduce Bright Colors to Settings
Add values to track activation, intensity level, and persistence state
Add an activity action to open the subpage directly

Test: builds
Bug: b/128465252
Change-Id: Icc9989254bc044377c162a8d94eec37723d86c19
2020-10-05 20:19:10 +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
TreeHugger Robot
e3c1e22e32 Merge "Remove LOCATION_GLOBAL_KILL_SWITCH logic from settings" 2020-10-02 22:20:00 +00:00
Sally
834e5c3410 For Force Bold Text, adjust the configuration between users
When the user changes, populate the global config with the current
user's setting state. For new users, don't keep the previous user's
preference

Test: manual, switched between users
Bug: b/110991537
Change-Id: Iae412bccd64784a597ed8d493f1bda4984841cac
2020-10-02 18:25:01 +00:00
TreeHugger Robot
5c9039e137 Merge "Deprecate DownloadableFonts in framework." 2020-10-01 20:38:43 +00:00
Soonil Nagarkar
d37e55fd39 Remove LOCATION_GLOBAL_KILL_SWITCH logic from settings
This functionality is now handled by the location service, and legacy
settings code can be removed. Full removal to follow later.

Bug: 148963686
Test: presubmits
Change-Id: I7de19f17759b0a13b96dd8960d2dbdb84ffd72d9
2020-10-01 09:49:57 -07: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
Peiyong Lin
7b446ea75e Merge "Add global settings variables for ANGLE debug." 2020-09-30 02:10:59 +00:00
TreeHugger Robot
c747e87751 Merge "Expose spell checker settings for testing." 2020-09-29 23:08:01 +00:00
Flavio Fiszman
ea923db3c1 Create Settings.Global entry for People Space
People Space is a new feature in SysUI. This global settings entry
will determine whether a user will see the feature and it is not
user configurable, so it should not be backed up.

Test: build
Bug: 169410721
Change-Id: Iaaefaedbd8e17e09633478b44458713f3eae0362
2020-09-28 19:39:16 +00:00
Peiyong Lin
318ad33061 Add global settings variables for ANGLE debug.
Introduce angle.egl.features to assist ANGLE debugging. The input
contains lists for each opt-in apps. The format is each list of features
is separated by a comma, each feature in each list is separated by a
colon, e.g.  feature1:feature2:feature3,feature1:feature3:feature5

Bug: b/169156341
Test: use adb shell command to verify
Test: atest android.gputools.cts.CtsRootlessGpuDebugHostTest
Test: atest CtsAngleIntegrationHostTestCases
Change-Id: I752047df1c2567b4ebf900c3acb4a965e35dd6c2
2020-09-28 11:45:56 -07:00
Vishnu Nair
cf143d4408 Add BlastBufferQueue adapter in SurfaceView
Add support for submitting buffers in SurfaceView via BLAST using
BlastBufferQueue adapter.

Introduce a new config wm_use_blast_adapter_sv, that is disabled by
default to enable the adapter.

When enabled, the blast SC is created as a child of the main
SurfaceView SC and the main SC is set as a container layer. This layer
will continue to handle position, visibility and transforms while the
blast SC will handle buffer updates via the adapter.

Test: atest SurfaceViewBufferTests
Test: go/wm-smoke w/ & w/o adb shell adb shell settings set global use_blast_adapter_sv 1
Bug: b/168504870, b/168917217

Change-Id: I826eef39e03ea339df54400be0709eaba6c88797
2020-09-24 21:45:18 +00:00
TreeHugger Robot
21e884a4d5 Merge "Adds Assistant Handles learning state to backed up settings" 2020-09-23 05:12:46 +00:00
Govinda Wasserman
eec5673133 Adds Assistant Handles learning state to backed up settings
This solves the issue where the device would forget the learned state
when restoring from a backup.

Test: Tested locally
BUG: 159807978
Change-Id: Ia1d5926621c4b45402036aaf06cbab19c12869bd
2020-09-23 02:16:27 +00:00
Kohsuke Yatoh
b651d766db Expose spell checker settings for testing.
Bug: 166304720
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: I97921baa5a8808f31ae9127df471038fe2b6094c
2020-09-23 00:09:34 +00:00
TreeHugger Robot
bcf255bf86 Merge "Rememeber the last dark mode before shutdown when in auto mode" 2020-09-22 17:52:57 +00:00
Jay Aliomer
7bddda48fc Rememeber the last dark mode before shutdown when in auto mode
Twilight mode is not available when the phone starts. So the last state
is rememebered until the phone screen turns off

Fixes: 160842085
Test: manual testing
Change-Id: I78a490c0f083e92022e1995b3e19dc7dd567a7c3
2020-09-22 15:43:52 +00:00
TreeHugger Robot
ccc1fb658c Merge "Migrate AlarmManager to DeviceConfig." 2020-09-21 19:30:45 +00:00
Amit Mahajan
5f99e1b8fd Merge "Data connection for carrier specific APN" into rvc-d1-dev-plus-aosp am: e2b212e94e am: e662938fdf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12624999

Change-Id: I83ecb4caea6b66b8c3e08beda3fb70598132707e
2020-09-18 09:25:40 +00:00
Amit Mahajan
e662938fdf Merge "Data connection for carrier specific APN" into rvc-d1-dev-plus-aosp am: e2b212e94e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12624999

Change-Id: Id017dddb5ff8f10d8bacf9e55a8dbca515309a0f
2020-09-18 08:54:24 +00:00
Beth Thibodeau
48f5f05e91 [DO NOT MERGE] Revert "Allow user to block individual apps from resuming" am: f715910293
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12597796

Change-Id: Ib12f9d769f6273849216678f7749c72172f3e179
2020-09-17 19:12:14 +00:00
Beth Thibodeau
f715910293 [DO NOT MERGE] Revert "Allow user to block individual apps from resuming"
Revert "Allow user to block individual apps from resuming."

Revert submission 12392268-cherrypick-mediaappsettings-5fxuo164a2

Bug: 161813143

Reason for revert: no longer want change in QPR
Reverted Changes:
Id3de52419:Allow user to block individual apps from resuming....
I8c85bc937:Allow user to block individual apps from resuming

Change-Id: I888079abc77f5bc22aefa19c2f7523bb9db05bf8
2020-09-17 17:56:11 +00:00
Masaho Nishikawa
115e02818a Data connection for carrier specific APN
Implement the following features to support carrier network connection.
This commit is to define the carrier config for each features.

1. Sets default preferred APN
2. Uses dun APN when using Preset APN in roaming network

Also, fixed that to use only APNs with the same set id as preferred
APN.

Test: Manual
Bug: 147969062
Change-Id: If1e6d2bf58de39c22caa901fcd90fb11f104d900
(cherry picked from commit b9beb0d1afda6327b1c7645ac20a016f08e5744e)
2020-09-16 22:52:49 -07:00
TreeHugger Robot
445006fed6 Merge "Fix CONTENT_FILTER_URI documentation." 2020-09-15 22:14:05 +00:00
Jeff Sharkey
4b5b0174d0 Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347 am: 741c0a78cc am: da7478b570 am: 487d394296
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: Id01f468b43fd5b2aada78608010625b392c1b647
2020-09-15 21:01:48 +00:00
Varun Shah
2434271486 Fix CONTENT_FILTER_URI documentation.
Fixes: 142457056
Test: n/a
Change-Id: I43c34429e7e38cb986c45bf7de27df7d125dc91b
2020-09-15 12:52:46 -07:00
Kweku Adams
1e7a69c6f8 Migrate AlarmManager to DeviceConfig.
This migrates flags inside AlarmManagerService to DeviceConfig.
DeviceConfig is the recommended way and using it means
that we only operate/parse the set of flags that changed instead of
every single flag whenever one of them changes.

Bug: 124466289
Bug: 159068048
Test: atest AlarmManagerServiceTest
Test: atest CtsAlarmManagerTestCases
Test: atest CtsBatterySavingTestCases:BatterySaverAlarmTest
Test: atest SettingsProviderTest:SettingsBackupTest
Test: atest com.android.server.cts.IncidentdTest
Change-Id: I21263f54f57bf2a59daafbc35fe6bdfbaf4f031b
2020-09-15 18:13:23 +00:00
Jeff Sharkey
487d394296 Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347 am: 741c0a78cc am: da7478b570
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195

Change-Id: I79488866c538bf9e76d0a6429e30262978f6fdab
2020-09-15 00:13:08 +00:00