Commit Graph

6203 Commits

Author SHA1 Message Date
Gyanesh Mittal
9431debc23 Deprecate the pre-defined apps of IM in the ContactsContract.
Test: build
Bug: 172950907
Change-Id: I17a86ac2f16c238a28af6e0f04cbadb98a0cf3b6
2020-11-16 14:21:42 -08:00
Sally
3be3d32392 Change forceBoldText to fontWeightAdjustment in Settings
Bug: b/170966021, b/110991537
Test: builds; switched between users
Change-Id: I61958e7f7926aa773d2326eaed34352d69bf057b
2020-11-13 19:43:29 +00:00
Yu-Han Yang
5f084f88db Merge "GNSS Satellite Blocklist Renaming" 2020-11-10 23:06:24 +00:00
Marin Shalamanov
99aa6e7fe0 Add flag for match content frame rate
Add new Settings.Secure.MATCH_CONTENT_FRAME_RATE to store user's preferred
refresh rate switching type.

Bug: 161776333
Test: 1. adb shell settings put secure match_content_frame_rate [0|1|2]
      2. Verify the setting is correctly propagated:
         adb shell dumpsys display | grep mModeSwitchingType
         adb shell dumpsys SurfaceFlinger | grep allowGroupSwitching
      3. reboot and verify the setting is persisted

Change-Id: I95b3f3f550f3e49f3bc6858185a7f7af1d55a4a7
2020-11-04 14:15:04 +01:00
Darryl Johnson
5104973509 Merge changes from topic "vendor-display-settings"
* changes:
  Add global development setting to enable/disable vendor display settings. (2/n)
  Seperate out DisplayWindowSettings persistence from retreival/policy logic. (1/n)
2020-11-03 19:49:02 +00:00
Darryl L Johnson
7bbe64f9d6 Add global development setting to enable/disable vendor display settings.
(2/n)

This change introduces the DEVELOPMENT_IGNORE_VENDOR_DISPLAY_SETTINGS
setting which controls whether or not WindowManagerService should return
display vendor settings provided in the vendor/ partition. This will be
added as an entry in Developer Options to allow ignoring vendor settings
and using the default settings.

Test: atest WmTests:WindowManagerSettingsTests
Bug: 168808369
Change-Id: Iece0b76e4861be56186333134d7d5b25cab5c7e0
2020-11-03 09:00:14 -08:00
Yi Kong
e0f130b36d Merge "Add NAMESPACE_PROFCOLLECT_NATIVE_BOOT for profcollect feature experiments" am: c4aedd1f87 am: 02709d5394 am: d2b9bd8405 am: 475fb2a707
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471526

Change-Id: I006dbd6f8b0053aed42418f9c34d5b5b17d763e0
2020-11-03 02:14:49 +00:00
Yi Kong
475fb2a707 Merge "Add NAMESPACE_PROFCOLLECT_NATIVE_BOOT for profcollect feature experiments" am: c4aedd1f87 am: 02709d5394 am: d2b9bd8405
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471526

Change-Id: I8fd2dd7166b12f80135a949c187f6298ca01e701
2020-11-03 01:58:06 +00:00
Yu-Han Yang
8318aba8ed GNSS Satellite Blocklist Renaming
Test: on device
Bug: 168111993
Change-Id: I2ee4414fbc1fcb7abe8a3d5b1099a3e6e58a6777
2020-11-02 17:47:59 -08:00
Yi Kong
d2b9bd8405 Merge "Add NAMESPACE_PROFCOLLECT_NATIVE_BOOT for profcollect feature experiments" am: c4aedd1f87 am: 02709d5394
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471526

Change-Id: Ica83c944d645c9d1f23e5ba825e85491405bfc16
2020-11-03 01:41:59 +00:00
Yi Kong
878268ceab Add NAMESPACE_PROFCOLLECT_NATIVE_BOOT for profcollect feature experiments
Bug: 79161490
Test: build
Change-Id: Icf8c24f6d5b63a28272e383e5ab0641032710cdd
2020-11-03 00:48:10 +08:00
Mathew Inwood
5f0edaaaf5 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
Merged-In: I8285daa8530260251ecad6f3f38f98e263629ca7
Change-Id: I626caf7c1fe46c5ab1f39c2895b42a34319f771a
2020-11-02 10:30:09 +00:00
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
Anton Hansson
24b4d166dd Merge "Remove @TestApi from @SystemApi symbols" am: d2d4637685 am: cbe282347e am: 14897c256d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1466264

Change-Id: I859503688ea3254d5bd1b55e80cf1962286e948f
2020-10-20 20:31:58 +00:00
Anton Hansson
14897c256d Merge "Remove @TestApi from @SystemApi symbols" am: d2d4637685 am: cbe282347e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1466264

Change-Id: I86daec690141893837ec58ab1d75aecc88557ff9
2020-10-20 19:45:04 +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
d2d4637685 Merge "Remove @TestApi from @SystemApi symbols" 2020-10-20 13:45:13 +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
Anton Hansson
dd7d52f963 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
Merged-In: I772790b783b0a8730b8bf680c9e569a886b8d789
2020-10-19 16:41:01 +01: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
Mathew Inwood
8147357dac Merge "Add HIDDEN_API_POLICY to @TestApi.i" am: c6b54a3a9c am: ab5ea0c1c5 am: 4c1da9c0df
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1460404

Change-Id: Ie90f87cde805b09f3aba24c61b5b457038cb067d
2020-10-15 13:48:15 +00:00