Commit Graph

6354 Commits

Author SHA1 Message Date
Peiyong Lin
877273a602 Merge "Add GAME_OVERLAY namespace." into sc-dev 2021-02-17 18:40:38 +00:00
Julia Reynolds
94bfa64f01 Merge "Add apis for notification channel editing" into sc-dev 2021-02-17 14:12:03 +00:00
Treehugger Robot
03a1e5af63 Merge "Add UCS-2 support for SimPhonebookContract" am: 9a90bb9efa am: 9758ffb187 am: ff3e2d3799
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1564508

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I760b3a9007062414123e581ee3085cfa105540ec
2021-02-17 08:54:14 +00:00
Treehugger Robot
ff3e2d3799 Merge "Add UCS-2 support for SimPhonebookContract" am: 9a90bb9efa am: 9758ffb187
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1564508

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I802cd053265cf63f1d73835fae1ba9d252a1464e
2021-02-17 08:33:46 +00:00
Peiyong Lin
b76bf0dddb Add GAME_OVERLAY namespace.
Bug: b/180439000
Test: manual
Change-Id: I8fad20223c7109d767658011f8c15ab012d245df
2021-02-17 00:20:02 +00:00
Julia Reynolds
48d8f95d1b Add apis for notification channel editing
Allow apps to launch a mini notification channel editing
UI targeted at the fields the user wants to edit depending on
the launch context.

Test: Settings robotests
Bug: 177246841
Change-Id: I4ca552ff80e7c55c6845022ef94361fae4cd8e20
2021-02-16 13:13:16 -05:00
Marcus Hagerott
407164df11 Add UCS-2 support for SimPhonebookContract
This simplifies the API by eliminating the need to attempt to detect
and report unsupported characters.

Test: atest FrameworksTelephonyTests:com.android.internal.telephony.uicc.IccUtilsTest TeleServiceTests:SimPhonebookProviderTest
Bug: 154363919
Change-Id: Ica8f3a642ee50ca81c43822ba39c0a071c279705
2021-02-16 06:47:23 -08:00
Soonil Nagarkar
9627429fae Implement stationary location throttling
Throttle location providers completely when the device is completely
still, and provide "faked" locations instead.

Bug: 172688700
Test: manual + atest StationaryThrottlingLocationProviderTest
Change-Id: Iba4e50ebf78cd8c6a9f2433ecb6e967d3a533c63
2021-02-12 11:45:08 -08:00
Siyamed Sinir
e97161443b Merge "Log warning for downloadable fonts" into sc-dev 2021-02-09 20:14:42 +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
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
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
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
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
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
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
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
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
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
Peter Wang
83283caf84 Merge "Add an API for LPA (SIM Manager) to bring up pages related to managing SIM profiles." am: 795478a020 am: 5c0c899770
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552855

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I02d2548c9fa641ac43a6761b20bc8553e65621f9
2021-01-21 01:59:27 +00:00
Hall Liu
6b7885f153 Add new columns in CallLog
Add new column definitions in the call log db to support storing the new
call composer elements in the call log. Also refactor addCall to use a
builder pattern, and add READ_VOICEMAIL for shell in order to support
new CTS tests

Test: atest CallLogTest
Bug: 174798736
Change-Id: I00e127510c382d9ff0ffc70f4c5ad7179ac7319a
2021-01-19 16:06:13 -08:00
Peter Wang
9e1f4ec8c3 Add an API for LPA (SIM Manager) to bring up pages related to managing SIM profiles.
Bug: 170507492
Test: Build
Change-Id: I8a2c4e86cb3ffd6ef0dac03ec2e4968839202e7d
Merged-In: I8a2c4e86cb3ffd6ef0dac03ec2e4968839202e7d
2021-01-15 11:15:19 -08:00
Peter Wang
c77d2826b4 Merge "Add an API for LPA (SIM Manager) to bring up pages related to managing SIM profiles." 2021-01-15 18:36:46 +00:00
TreeHugger Robot
b4e8c32677 Merge "Revert "Create setting key for emergency gesture call number override"" 2021-01-15 03:50:25 +00:00
Peter Wang
74f0d22468 Add an API for LPA (SIM Manager) to bring up pages related to managing SIM profiles.
Bug: 170507492
Test: Build
Change-Id: I8a2c4e86cb3ffd6ef0dac03ec2e4968839202e7d
2021-01-14 17:27:03 -08:00
Fan Zhang
02bd0389e3 Revert "Create setting key for emergency gesture call number override"
This reverts commit 8e089728c7.

Reason for revert: It turns out we don't need this feature

Change-Id: Ibc042e451d66a1b87ed416bed41461df52f70a66
2021-01-14 22:55:48 +00:00
Treehugger Robot
71badc9b5b Merge "Add feature flag for app hibernation." am: 7ae76a2f3f am: 8dece034b9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1542244

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I155803617d66612501297dd04131849db8c49926
2021-01-14 04:20:51 +00:00