Commit Graph

6171 Commits

Author SHA1 Message Date
Robert Carr
b92fec61f6 Flip BLAST flag.
This flag will enable the BLASTBufferQueue adapter for use by ViewRootImpl.
BLASTSync and the BLASTBufferQueue in SurfaceView are still behind seperate flags.

Bug: 168506246
Test: Days of manual testing on multiple devices (stressed: app switching, rotation, SurfaceView, PIP, Split-screen). Multiple presubmits. 5 passing runs of flicker. Systrace inspection. App startup perf tests. Inspection of jankstats from experiment based flip in R dogfood.
Change-Id: I2b6e37884d938d327479977becbbce8e38e521f0
2020-10-29 16:00:12 -07:00
TreeHugger Robot
a15b4bb4fd Merge "Remove LOCATION_PROVIDERS_ALLOWED completely" 2020-10-29 18:50:12 +00:00
Soonil Nagarkar
3bacac2197 Remove LOCATION_PROVIDERS_ALLOWED completely
Test: presubmits only
Change-Id: I68d7c53c0edc2df0ab3642451aa1ee84b03d7dcc
2020-10-29 10:15:26 -07:00
Kweku Adams
6dac7fd2d0 Merge "Migrate AppStandbyController to DeviceConfig." 2020-10-29 15:25:26 +00:00
Mathew Inwood
8e742f928e Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

This is a resubmit of ag/12929664 with some APIs excluded that caused
test failures; see bugs 171886397, 171888296, 171864568.

APIs excluded:
Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord;
Landroid/os/Process;->myPpid()I
Landroid/os/SharedMemory;->getFd()I
Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I

Bug: 170729553
Test: Treehugger
Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
2020-10-29 11:51:12 +00:00
Minche Li
e5abc9331c Merge "Removes the settings key,WINDOW_MAGNIFICATION, that is never used" 2020-10-29 03:08:31 +00:00
Hongwei Wang
286c33a5c5 Merge "Revert "Add maxTargetSdk restriction to unused APIs."" 2020-10-28 23:58:21 +00:00
TreeHugger Robot
b2f811d3c8 Merge "Add flag for notif dismissal prototype" 2020-10-28 22:12:36 +00:00
Hongwei Wang
050275cd83 Revert "Add maxTargetSdk restriction to unused APIs."
This reverts commit 72f07d6a8a.

Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397

Bug: 171886397
Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
2020-10-28 20:16:22 +00:00
Lyn Han
c1ffb4f443 Add flag for notif dismissal prototype
New flag: Settings.Global.SHOW_NEW_NOTIF_DISMISS
- Do not backup to other devices
- To be removed before release

Usage:
adb shell settings put global show_new_notif_dismiss [0|1]
- 0 to disable
- 1 to enable

Test: treehugger
Bug: 171817112
Change-Id: I8712a7f8a2bac6483afd52ede9e478f8b08d661d
2020-10-28 12:18:28 -07:00
Mathew Inwood
ee5d369323 Merge "Add maxTargetSdk restriction to unused APIs." 2020-10-28 09:39:20 +00:00
TreeHugger Robot
fe43160894 Merge "Add Setting for HDMI CEC 2.0" 2020-10-28 09:03:09 +00:00
TreeHugger Robot
27cec559d3 Merge "Migrate QuotaController to DeviceConfig." 2020-10-27 22:36:29 +00:00
Mathew Inwood
72f07d6a8a Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

Bug: 170729553
Test: Treehugger
Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
2020-10-27 15:46:07 +00:00
Marvin Ramin
0ef6062ea1 Add Setting for HDMI CEC 2.0
Introduce Settings.Global.hdmi_cec_version. Stores an integer value
based on the CEC version constants defined in the HDMI-CEC
specification.

Defaults to v1.4b.

Bug: 166227067
Test: atest HdmiControlServiceTest
Change-Id: If3d85991230c00af4482076d90bf9a730ab385ae
2020-10-27 11:43:58 +01:00
TreeHugger Robot
ffeb0c7453 Merge "Rename panic button in framework settings." 2020-10-26 20:27:50 +00:00
Nathalie Le Clair
cce6307cb8 Playback device to turn on connected audio system when waking up
Bug: 167344870
Test: atest HdmiCecLocalDevicePlaybackTest
Change-Id: Ia305114762a5f356347459e3da2e3d65d860d7af
2020-10-26 18:18:27 +01:00
Grace Jia
adda6859df Merge "Add missed information relative parameter and fields." 2020-10-26 16:31:17 +00:00
Fan Zhang
35df68a66c Rename panic button in framework settings.
Renamed panic to "emergency" or "emergency gesture" to
avoid speculation once source code is accessible to
parties without full context.

Bug: 169946710
Test: rebuild
Change-Id: Ic05405dabb04ae59960ea60ab3618fc8e6a741b2
2020-10-23 22:44:47 +00:00
Kweku Adams
12fce9938e Migrate QuotaController to DeviceConfig.
This migrates flags inside QuotaController 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.

This uses the JobScheduler DeviceConfig namespace instead of creating a
wholly separate namespace just for the controller.

Bug: 124466289
Test: atest CtsJobSchedulerTestCases
Test: atest FrameworksMockingServicesTests:ConnectivityControllerTest
Test: atest FrameworksMockingServicesTests:JobSchedulerServiceTest
Test: atest FrameworksMockingServicesTests:JobStatusTest
Test: atest FrameworksMockingServicesTests:QuotaControllerTest
Test: atest FrameworksServicesTests:JobStoreTest
Change-Id: Id397dccc6d9c40bac1a9837addcab514f509a721
2020-10-23 13:46:55 -07:00
Jeff DeCew
c2eb050354 Remove Settings.Secure.NOTIFICATION_NEW_INTERRUPTION_MODEL flag
Fixes: 160886843
Test: SystemUITests
Change-Id: I88a10b370d9022bbc226eabce3b41293e55c7f96
2020-10-22 09:25:17 -04:00
TreeHugger Robot
f1764cc21f Merge "Remove WebView fallback logic migration code." 2020-10-22 00:01:57 +00:00
Kweku Adams
01e36ae3a1 Migrate AppStandbyController to DeviceConfig.
This migrates flags inside AppStandbyController 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
Test: atest AppIdleHostTest
Test: atest CtsUsageStatsTestCases:UsageStatsTest
Test: atest FrameworksServicesTests:AppIdleHistoryTests
Test: atest FrameworksServicesTests:AppStandbyControllerTests
Change-Id: I1aa5afc7f96e121bceccce44def4b86883b0a3c9
2020-10-20 12:32:12 -07:00
Grace Jia
3a851d2829 Add missed information relative parameter and fields.
Test: android.provider.cts.CallLogTest
Bug: 144452099
Change-Id: Idb5fb877a5e947b00ae1d7d4046f0bef26af8550
2020-10-20 14:26:28 +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
mincheli
4edcb283d5 Removes the settings key,WINDOW_MAGNIFICATION, that is never used
The settings key is never used and can be removed.

Bug: 171026082
Test: atest SettingsBackupTest
Change-Id: I0d1b84eb2f866bf9c59cb2aab7470e9aa8f4ac87
2020-10-16 16:55:14 +08: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