Commit Graph

6362 Commits

Author SHA1 Message Date
Nick Chalko
ebe6e4c26c Merge "Add swcodec_native flag namespace" 2021-02-12 21:05:31 +00:00
Nick Chalko
c9cb2ef580 Add swcodec_native flag namespace
Test: add sepolicy, build
Bug: 123658514
Change-Id: I80d1f1b4f40c1a3d261f1017b047c1e29b7a13f3
2021-02-11 15:28:09 -08:00
Siyamed Sinir
5d6318a76b Merge "Log warning for downloadable fonts" into sc-dev am: e97161443b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13489639

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1181b450a5667a8577b8856b570053a969cd43ee
2021-02-09 22:12:52 +00:00
Siyamed Sinir
e97161443b Merge "Log warning for downloadable fonts" into sc-dev 2021-02-09 20:14:42 +00:00
Songchun Fan
48a71c50b6 Merge "Revert^2 "[SettingsProvider] @Readable annotation to restrict access to hidden keys"" into sc-dev am: c4e2866c12
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13441055

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6548507a76468ff13cc9b7641f049f911201aec6
2021-02-09 16:49:32 +00:00
Songchun Fan
25f6a9222c Revert^2 "[SettingsProvider] @Readable annotation to restrict access to hidden keys"
New in this revert:
+ Added missing annotations.
+ Added check for system apps.

BUG: 175024829
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Test: atest android.app.cts.NotificationTemplateTest
Test: atest com.android.systemui.statusbar.notification.row.ExpandableNotificationRowTest

1ca518c1ec75b8307126991ae2d253911b2be10c
Change-Id: I3f270831692b5ba0841e85b84902d0b101ff1095

Change-Id: I4cab132c1ef10f4319b570e8e9e15dcde6d909f8
2021-02-08 22:42:32 +00:00
TreeHugger Robot
cc45de7eb7 Merge "Revert "Update the bouncer to be able to move to either side of a wide screen."" into sc-dev am: 5d3ce05739
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13498470

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I48d1f5bfb121f0110aee14b24320a6ed554a77ba
2021-02-08 20:53:22 +00:00
Daniel Chapin
cae34b8e22 Revert "Update the bouncer to be able to move to either side of a wide screen."
This reverts commit 6c5bfcb40f.

Reason for revert: Bug: 179493042

Test: Manually verified
Change-Id: Iebcaa9e92a2f83419c07936aa5aa3c81970da34a
2021-02-08 11:36:04 +00:00
Siyamed Sinir
10a88921a4 Log warning for downloadable fonts
Framework implementation of downloadable fonts is
deprecated. Added a warning log for the usage of
sync font loading on framework.

Test: N/A
Bug: 178589784
Change-Id: Ibb395c817c6d656ee0593712c0d6f9360e7213c1
2021-02-04 19:50:39 -08:00
Treehugger Robot
0bf06ccac0 Merge "Adding SimPhonebookContract" am: 110420fcae am: 0e6db34869 am: 60be88bbd4 am: a7592f99b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1521063

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If9916cdaf2995ae35613b4f279c9d6ba52e7ddab
2021-02-04 01:28:30 +00:00
Treehugger Robot
a7592f99b0 Merge "Adding SimPhonebookContract" am: 110420fcae am: 0e6db34869 am: 60be88bbd4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1521063

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I36eeb81bffb9791076c872411c682bd2986ed02c
2021-02-04 01:12:40 +00:00
Treehugger Robot
60be88bbd4 Merge "Adding SimPhonebookContract" am: 110420fcae am: 0e6db34869
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1521063

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I03c972947b7cf8a4b57d326db196b8fe3f122d4c
2021-02-04 01:09:50 +00:00
Jamie Garside
1fbfc481ec Merge "Update the bouncer to be able to move to either side of a wide screen." into sc-dev am: 1ddf2b3ac4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13471267

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I917eea8879f7a321c14e25dd7cbddf07db6715f9
2021-02-03 17:14:28 +00:00
Jamie Garside
6c5bfcb40f Update the bouncer to be able to move to either side of a wide screen.
This is currently enabled by settings
persist.sysui.keyguard.one_handed_keyguard_enabled to true. If enabled,
this will cause "one-handed able" security modes to be measured with
half of the width of the SecurityViewContainer. Tapping either side of
the screen will then move the keyguard by changing the margins.

There's some flaws here, but it's a start. There's a frame of the
bouncer being on the wrong side of the screen if the keyguard is on the
right, and it doesn't respond to opening/closing the device properly yet.

Bug: b/170858298
Change-Id: Ib997b9b3cb4ca7a069c805c7a8f3a79434eebd4c
Test: Incoming :)
2021-02-03 12:29:00 +00:00
TreeHugger Robot
b7c6196c1b Merge "Adds smart autorotate setting to the system." into sc-dev am: b5884dc67c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13420209

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9f51b735e8fa07ec88bb784fb006bf926c4ea368
2021-02-03 06:43:07 +00:00
Yi Jiang
2e533939d4 Adds smart autorotate setting to the system.
Also adds a config flag for the smart autorotate to indicate whether the
feature is enabled.

Test: make RunSettingsRoboTests
Bug: 172370409
Change-Id: I23ff3247827dca188e10d0bd8f00c37e2cd0b920
2021-02-03 03:02:08 +00:00
Jiashen Wang
4482c1465b Merge "Change Settings to be able to receive timeout values from LPA" into sc-dev am: 4419835ff3 am: e2d7a999cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13430557

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7efe899317e7ff11eb9c8975f1733a1f92ab209e
2021-02-02 01:15:47 +00:00
Jiashen Wang
4419835ff3 Merge "Change Settings to be able to receive timeout values from LPA" into sc-dev 2021-02-01 23:56:37 +00:00
Marcus Hagerott
1edf43e23d Adding SimPhonebookContract
This is a contract class for a provider that reads contacts from the SIM
card.

Bug: 154363919
Test: atest CtsSimPhonebookProviderTestCases CtsSimPhonebookProviderNoSimTestCases
Change-Id: I584150dd8352dbb49d70ea28c6d064a6336d018d
2021-02-01 09:18:16 -08:00
Neil Fuller
07055f6f52 Merge "Add a constant for system_time to DeviceConfig" into sc-dev am: 5e8177bf78 am: f4a8b28963
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13427870

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id92a7c99588680ae4054136390e4895e2b4fd748
2021-02-01 14:06:31 +00:00
Neil Fuller
5e8177bf78 Merge "Add a constant for system_time to DeviceConfig" into sc-dev 2021-02-01 13:15:06 +00:00
Bernardo Rufino
bf1903d277 Merge "Open IM.getMaximumObscuringOpacityForTouch() and update docs." into sc-dev 2021-02-01 09:55:38 +00:00
Jiashen Wang
f3bed30575 Change Settings to be able to receive timeout values from LPA
Bug: 171846124
Test: Tested manually
Change-Id: Ib13aa832e186ae964069d888c1c4b8321a0f7fc1
2021-02-01 00:31:06 -08:00
Hall Liu
a749abcead Add support for integrating call composer
* Minor bugfix in call log to handle USER_CURRENT
* add TelephonyLocalConnection that allows frameworks/opt/telephony to
call code (indirectly) in packages/services/Telephony

Bug: 177613111
Test: atest CallComposerTest

Merged-In: I602b51da6009c884364a026781ca3c160978fbd1
Change-Id: I61af7553b4b3d71fe87c86fca62941747d43ef55
2021-01-28 12:28:25 -08:00
Neil Fuller
dfea9c4ab9 Add a constant for system_time to DeviceConfig
Add a constant for "system_time" to DeviceConfig for server-push feature
flags. "system_time" has been added server-side under cl/353067789.

This change references the new namespace for device-side config code.

This change is following the go/android-flags-setup process. Flags will
be added in follow up changes.

Bug: 159121373
Bug: 178107773
Test: build only
Change-Id: If49365cddc5827382ea4c466322c9fc65777d564
2021-01-28 18:26:41 +00:00
Bernardo Rufino
03ec50d528 Open IM.getMaximumObscuringOpacityForTouch() and update docs.
Bug: 158002302
Test: atest WindowUntrustedTouchTest
Change-Id: I735169e0508678e07431704f184a938ffada53cc
Exempt-From-Owner-Approval: Approved on main branch
2021-01-28 15:30:54 +00:00
Bernardo Rufino
0702b2fa10 Merge "Open IM.getMaximumObscuringOpacityForTouch() and update docs." 2021-01-28 15:25:34 +00:00
Hall Liu
8b66817fb3 Merge changes from topics "composer-final-integration", "composer-final-integration-2"
* changes:
  Rename TelecomManager.EXTRA_INCOMING_PICTURE
  Add support for integrating call composer
2021-01-28 02:09:35 +00:00
Bernardo Rufino
97f0a78338 Open IM.getMaximumObscuringOpacityForTouch() and update docs.
Bug: 158002302
Test: atest WindowUntrustedTouchTest
Change-Id: I735169e0508678e07431704f184a938ffada53cc
2021-01-27 09:58:06 +00:00
John Li
ca6f369aa0 Merge "Add Settings flag for Transform." 2021-01-27 01:05:13 +00:00
Christine Franks
e8f6e92fe0 Merge "Add configurable mapping between color modes" 2021-01-26 23:16:12 +00:00
TreeHugger Robot
3cb20493af Merge "Hide AOD/LS layout changes" 2021-01-26 21:02:24 +00:00
Hall Liu
2d1bc540e4 Add support for integrating call composer
* Minor bugfix in call log to handle USER_CURRENT
* add TelephonyLocalConnection that allows frameworks/opt/telephony to
call code (indirectly) in packages/services/Telephony

Bug: 177613111
Test: atest CallComposerTest

Change-Id: I602b51da6009c884364a026781ca3c160978fbd1
2021-01-26 12:31:08 -08:00
Christine Franks
b776313816 Add configurable mapping between color modes
There are two categories of color modes: the standard color modes, which
are defined and implemented in AOSP, and a reserved range of vendor color
modes, which are defined and implemented by the vendor. Currently, there
is no way to distinguish between two vendor's color modes that use the
same value within the reserved range. This will allow OEMs to specify a
hint as to which vendor's color mode definitions were used on the
original device. If the hint from the restored device matches the hint
on the new device, the color mode from the restored device can still be
considered valid for the new device if it is within the vendor reserved
range. If it does not match, the restored device's color mode value is
invalid on the new device, and must be replaced by the default on the
new device.

Bug: 167449433
Test: builds
Change-Id: Ie5ac0a2d783e1ea703e0342f5cdb41dca07d04d4
2021-01-26 12:12:32 -08:00
Kohsuke Yatoh
386dfed00c Merge "Set FOREGROUND thread priority to 'fonts' thread." 2021-01-26 18:39:54 +00:00
Matt Pietal
9bade6ba98 Hide AOD/LS layout changes
Add support for new sysui overlay in order to disable aod/ls layouts
from the preview builds.

Bug: 178471752
Test: atest KeyguardUpdateMonitorTest
Change-Id: Iaf1dd2ba73368a3c43efe81c10aa9df42df6fdbe
2021-01-26 13:14:24 -05:00
John Li
c77275d321 Add Settings flag for Transform.
Bug: 177299699
Test: manual
Change-Id: I4947117b6bb11678e3ad761204d720354b9e73ae
2021-01-26 16:04:20 +08:00
Jason Hsu
806e4e12a0 Merge "Add key ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED" 2021-01-26 03:44:37 +00:00
Yi Jiang
7a0969c65d Merge "Introduces RotationResolverService to the system" 2021-01-26 00:09:12 +00:00
Yi Jiang
0127af73ed Introduces RotationResolverService to the system
Rotation Resolver Service provides the suggested screen rotation
to the system server.

Bug: 162359770
Bug: 172370409
Test: atest RotationResolverManagerPerUserServiceTest
Change-Id: Ia43dfdba8502e04768933ef46a4ac8a687d4936c
2021-01-25 20:58:14 +00:00
Todd Kennedy
7fd1ba73f4 Revert "[SettingsProvider] @Readable annotation to restrict acce..."
Revert "[cts] tests for settings readable fields"

Revert submission 13355582-settings_readable

Reason for revert: b/178340718 b/178329499 b/178234427
Reverted Changes:
Id1f133d52:[cts] tests for settings readable fields
I8a2733580:[SettingsProvider] @Readable annotation to restric...

Change-Id: Ia55e58106e49ba411603bbadd8d909e22516293e
2021-01-25 11:17:14 -08:00
jasonwshsu
85bdea9e4c Add key ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED
This key handles the fade effect of the accessibility floating menu.

Bug: 173940865
Test: atest SettingsProviderTest
Change-Id: I9e6e02920e331cd326e1667d968a0397dde8d377
2021-01-25 22:39:29 +08:00
Edgar Wang
7adf2fbd75 Fix crash when enter Settings Developer options
Bug: 178365519
Change-Id: Ide1ce84c02317ab2529061a8a5f703f226dbcb33
Test: manual
2021-01-25 13:39:23 +00:00
SongFerng Wang
1581f4fc97 Merge "Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType" 2021-01-23 07:41:10 +00:00
SongFerngWang
7d95185d46 Improve AllowedNetworkTypesForReason and refactor PreferredNetworkType
- Add more reasons of allowed network type
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
- Add @systemApi for below
  - ALLOWED_NETWORK_TYPES_REASON_USER
  - ALLOWED_NETWORK_TYPES_REASON_POWER
  - ALLOWED_NETWORK_TYPES_REASON_CARRIER
  - setAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesForReason API
  - getAllowedNetworkTypesBitmask API
- Add Public for below
  - CARRIER_NR_AVAILABILITY_NONE
  - CARRIER_NR_AVAILABILITY_NSA
  - CARRIER_NR_AVAILABILITY_SA
  - KEY_CARRIER_NR_AVAILABILITY_INT
- @Deprecated API
  - setPreferredNetworkTypeBitmask
  - getPreferredNetworkTypeBitmask
  - setAllowedNetworkType
  - getAllowedNetworkType
- Add a new way to notify allowedNetworkType at PhoneStateListener
- Replace KEY_NR_ENABLED_BOOL with KEY_CARRIER_NR_AVAILABILITY_INT

Bug: 161434786
Test: atest TelephonyManagerTest#testSetAllowedNetworkTypesForReason
(PASS)
atest TelephonyManagerTest#\
testSetAllowedNetworkTypesForReason_moreReason
(PASS)
atest PhoneStateListenerTest#\
testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener
(PASS)

Change-Id: I3d0c119a0c2a30c56b0c127ba6525f8992b4e9dd
2021-01-23 06:51:05 +08:00
Chris Li
78dacf0c71 Allow non-resizable apps in split-screen (1/n)
1. Add a setting to enable this.
2. Allow non-resizable apps to be moved to split-screen when the setting
is on.

TODO:
1. Add a developer option for this
2. Fix SizeCompatMode when the non-resizable app is in split screen

Bug: 176061101
Test: adb shell settings put global enable_non_resizable_multi_window 1
Test: atest WmTests:ActivityRecordTests
Test: atest WmTests:WindowOrganizerTests
Test: atest WmTests:WindowManagerSettingsTests
Test: atest CtsWindowManagerDeviceTestCases:MultiWindowTests
Change-Id: Ife9e5e5848614f072efb3b23f71472561e00488c
2021-01-22 20:56:08 +00:00
Songchun Fan
8b444c2c01 Merge "[SettingsProvider] @Readable annotation to restrict access to hidden keys" 2021-01-22 18:07:31 +00:00
Kohsuke Yatoh
b18a57cbc1 Set FOREGROUND thread priority to 'fonts' thread.
'fonts' thread will block UI thread, so it should have a higher priority
than DEFAULT.

Bug: 178195682
Test: adb shell "ps -A -l -T" | grep fonts
Change-Id: I4fd67389abcfd7d1b78a3db3dc86422a7a837024
2021-01-22 17:01:53 +00:00
Linus Tufvesson
01088524cb Update Settings#canDrawOverlays
.. to consider if the caller is holding the permission
SYSTEM_APPLICATION_OVERLAY.

Bug: 171177581
Test: Manually verified using wellbeing app
Change-Id: I58907de33015d7441818110e94612ec3d29d07ad
2021-01-22 15:07:04 +00:00
Songchun Fan
2af6e521ee [SettingsProvider] @Readable annotation to restrict access to hidden keys
Adding a new annotation that can be fetched at runtime.

The settings keys annotated with the new annotation can be accessed via
the get* methods, even if they are marked as @hide. Access to a value
that is not annotated with @Readable will end up with an
IllegalArgumentException.

Notice that if a caller tries to call get* method with a value that is
not defined in the Settings.Secure, Settings.System or Settings.Global
classes, this access is still regarded as valid. We only reject accesses
where the value is defined in one of the three classes, but is marked as
@hide and does not have @Readable annotation.

This CL adds @Readable to all existing hidden keys and public keys.

A follow up CL will remove the @Readable annotation for the hidden keys
added in S. The end result would be that all the keys (hidden or public)
can be accessed if they were added before S. From S and beyond, only
public keys can be accessed.

+ also fixed some formatting issues

BUG: 175024829
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Change-Id: I8a2733580ff9c9d01cbdb0f14ad56c2062a2f956
2021-01-21 14:20:14 -08:00