Commit Graph

6385 Commits

Author SHA1 Message Date
Beverly Tai
384db6dd05 Merge "Add quickpickup gesture" into sc-dev 2021-03-11 13:35:56 +00:00
Beverly
c0ddb20d17 Add quickpickup gesture
Only registered when:
- udfps enrolled
- AOD is not enabled
- quickpick enabled:
    adb shell settings put secure doze_quick_pickup_gesture 1
Currently by default, quickpickup is not enabled

On gesture trigger, AOD screen will show for 5 seconds

Test: manual
Bug: 176550666
Change-Id: I804a2590c1d95acad62fbfbc85228ecfc8bfa3ed
2021-03-10 19:00:24 +00:00
Abel Tesfaye
a643342375 Fix long press auto rotate implementation bug
Test: locally with flame

Bug: 181741815
Change-Id: Ie0a69ab7f8320ac688ee4182113d8396d541bf4c
2021-03-05 18:21:06 +00:00
Tej Singh
0c7463b8d7 Merge "Java flag support for statsd" into sc-dev 2021-03-04 03:11:12 +00:00
Jayachandran Chinnakkannu
2cdad9f0a2 Add new provisioning flag for VOIMS opt-in
Bug: 177009570
Test: By Manual
1. Call setProvisioningIntValue() and getProvisioningIntValue()

2. Enable/disable the value and dial a VoLTE call
2-1. Set value to 1
2-2. Dial a call
2-3. From ImsPhoneCallTracker and GsmCdmaPhone's log, VoLTE is
 registered and device is trying IMS PS call
2-4. Set value to 0
2-5. Dial a call
2-6. From ImsPhoneCallTracker and GsmCdmaPhone's log, VoLTE is
unregistered and device is trying (non-IMS) CS call

3. atest

Change-Id: I0b8af8fe6c9a34a56f9e2275df0a03ba093f439e
Merged-In: I0b8af8fe6c9a34a56f9e2275df0a03ba093f439e
2021-03-02 23:26:40 +00:00
Paul Hu
f95beb7a91 Merge "Implement Settings#checkAndNoteChangeNetworkStateOperation on CS" into sc-dev 2021-03-02 13:03:13 +00:00
Chris Li
df4a15b512 Allow non-resizable apps in split-screen (5/n)
Replace usages of DEVELOPMENT_ENABLE_SIZECOMPAT_FREEFORM with
DEVELOPMENT_ENABLE_NON_RESIZABLE_MULTI_WINDOW so that we can use one
setting to control all multi window mode

Bug: 176061101
Test: pass existing
Change-Id: I873b4902f3995815721401b30236919ffdbc6a82
2021-02-26 20:29:00 -08:00
Oli Lan
7a1ebc3492 Merge "Add DeviceConfig namespace for clipboard." into sc-dev 2021-02-26 09:49:01 +00:00
Tej Singh
d5dbfcb09a Java flag support for statsd
Declare statsd_java and statsd_java_boot as statsd flag namespaces for
java features.

Bug: 180992603
Test: used adb shell cmd device_config put to insert properties and
manually verified that statsd java code in system server could read.

Change-Id: I9e1ad337800f503b2f0df1c5e5eec9d752a9cbd5
2021-02-25 21:17:27 -08:00
Oli Lan
3bb63f2c45 Add DeviceConfig namespace for clipboard.
Adds a new namespace to DeviceConfig for features
relating to clipboard.

Bug: 179667029
Test: builds
Change-Id: I28e94fc93622f0ce7899f1ca6e23e57cdd661d08
2021-02-25 15:08:57 +00:00
Jamie Garside
072bedcef8 Android config updates for one handed bouncer.
This is the changes in Settings (to store the current screen side) for
the one-handed keyguard. This also checks in symbols.xml to expose the
platform config to SysUI (the lines in symbols.xml are currently in
config.xml; I'm assuming that a previous revert didn't remove them).

Bug: 170858298
Test: included.
Change-Id: I9d91a9360c821562634e83295f5e2e340f6de1d5
2021-02-25 11:54:39 +00:00
Suprabh Shukla
6f8a22f4be Merge "Adding Intent API to navigate to alarm permission page" into sc-dev 2021-02-24 20:06:56 +00:00
Jamie Garside
5f630223cc Merge "Revert "Update the bouncer to be able to move to either side of a wide screen."" into sc-dev 2021-02-24 13:32:25 +00:00
Suprabh Shukla
08db23236c Adding Intent API to navigate to alarm permission page
This is needed to provide apps a way to request the user to grant them
SCHEDULE_EXACT_ALARM permission

Test: atest CtsAlarmManagerTestCases
Also, manually:
adb shell am start -n android.settings.REQUEST_SCHEDULE_EXACT_ALARM
adb shell am start -n android.settings.REQUEST_SCHEDULE_EXACT_ALARM \
-d package:com.android.deskclock

Bug: 171306433
Change-Id: I0517e05fe7b9decb29fcc16719d7a534f7e0c0fe
2021-02-23 22:32:23 -08:00
Marcus Hagerott
a5aea04314 Merge "Add more detail to javadocs for SimPhonebookContract" am: 57a0af04c5 am: dc54e7afdf am: c0b2128dd2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1596935

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iab3d8a09ea809c9d4c5495991f838c917292465b
2021-02-24 02:17:30 +00:00
Marcus Hagerott
c0b2128dd2 Merge "Add more detail to javadocs for SimPhonebookContract" am: 57a0af04c5 am: dc54e7afdf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1596935

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I37d21d22c504e16787e1bcc962fd233ff14a60a9
2021-02-24 01:26:15 +00:00
Marcus Hagerott
dc54e7afdf Merge "Add more detail to javadocs for SimPhonebookContract" am: 57a0af04c5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1596935

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id968da9f8ec6ada50d674def708662383bf6b382
2021-02-24 01:22:51 +00:00
Gavin Corkery
4e56d1569a Merge "Add DeviceConfig namespace for reboot readiness detection" into sc-dev 2021-02-23 21:16:53 +00:00
Jamie Garside
0f53fd20d5 Revert "Update the bouncer to be able to move to either side of a wide screen."
This reverts commit 868e770b82.

Reason for revert: Breaks password entry - b/180993584

Change-Id: I9a1771b795c90b1cfe6c2457d390ac53235c6c94
2021-02-23 19:24:29 +00:00
Michal Olech
873c541423 Merge changes from topic "HdmiCecVersionSharedPrefs" into sc-dev
* changes:
  [CEC Configuration] Move 'hdmi_cec_version' to SharedPreferences
  [CEC Configuration] Run HdmiControlService change notifications in the service thread
2021-02-23 17:28:11 +00:00
paulhu
694c8a9935 Implement Settings#checkAndNoteChangeNetworkStateOperation on CS
Connectivity is becoming a mainline module in S and
ConnectivityManager#enforceChangePermission is using
Settings#checkAndNoteChangeNetworkStateOperation for performing a
strict and comprehensive check of whether a calling package is
allowed to change the state of network. However, Mainline modules
are not allowed to use non-formal APIs, fortunately CS is the
only caller of this ConnectivityManager#enforceChangePermission.
Thus, implement the Settings API on ConnectivityService and remove
the ConnectivityManager#enforceChangePermission and
Settings#checkAndNoteChangeNetworkStateOperation.

Bug: 178565313
Test: atest FrameworksNetTests
Change-Id: I6f03398c1735b89470ad5bdbe3a036929daeb53c
2021-02-23 08:33:01 +00:00
Marcus Hagerott
42a163c89e Add more detail to javadocs for SimPhonebookContract
This provides more details about the operations supported by the provider.

Test: none
Bug: 154363919
Change-Id: I90147f5dd2b55be52089c854464ca4c52f4ba5a7
2021-02-22 16:39:27 -08:00
Jamie Garside
868e770b82 Update the bouncer to be able to move to either side of a wide screen.
I'd like to test other things (like tap makes the IME move), but to do
that means replacing the mock with a proper fake. That can come later,
but this at least tests that the flagging works correctly.

The changes between this and
commit cae34b8e22 is the bouncer height is
now measured using wrap_content, so the placement can be controlled
properly by the outer View (as the position of the bouncer changes
depending on the size of the screen).

This reverts commit cae34b8e22.

Test: Included
Bug: 170858298
Change-Id: I18428a6df9abf0e8e37c1c179be6843e4eee793c
2021-02-22 15:35:56 +00:00
Xin Li
be473bf819 Merge ab/7061308 into stage.
Bug: 180401296
Merged-In: I4bf82035631ccff6d5a6144d6d9b1d203b076851
Change-Id: I1b5f3a672a55eaabba0f5389bab110b395553559
2021-02-21 09:39:53 -08:00
Gavin Corkery
68ffc29c09 Add DeviceConfig namespace for reboot readiness detection
Adds new namespace to DeviceConfig for handling properties
used in reboot readiness detection.

Test: Builds
Bug: 161353402
Change-Id: I9d8dcc9d027bb916a711f819356883517f840ff8
2021-02-20 23:24:32 +00:00
Michal Olech
27a8746695 [CEC Configuration] Move 'hdmi_cec_version' to SharedPreferences
Test: cts-tradefed
Bug: 171958586
Change-Id: I01d374c9a69d23f0d242c0c8ec2364454692ddd4
2021-02-19 14:13:32 +01:00
Yomna Nasser
a20761e23f Merge "Implementation of "Enable 2G" for Settings." into sc-dev 2021-02-17 23:45:17 +00:00
Colin Cross
cad1bd63fb Merge "Fix self-assign error in SimPhonebookContract" am: 334917b860 am: 349f6cee8b am: c51c2171bb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1591459

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3e872be0ac1d4bd4d24cdde2b9d3ed3ba02e71f3
2021-02-17 19:46:56 +00:00
Yomna Nasser
8fa54b7c20 Implementation of "Enable 2G" for Settings.
(1) Adds KEY_HIDE_ENABLE_2G_BOOL to CarrierConfigManager, and
(2) Adds new reason ALLOWED_NETWORK_TYPES_REASON_ENABLE_2G.

Test: manual & atest -c Enable2gPreferenceControllerTest
Bug: b/163168917
Change-Id: I81052549f8dde491697c35365320145fd24c3842
2021-02-17 19:38:33 +00:00
Colin Cross
c51c2171bb Merge "Fix self-assign error in SimPhonebookContract" am: 334917b860 am: 349f6cee8b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1591459

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibc6093e1ac681fe4d9e30ef54f4947ff645a511d
2021-02-17 18:52:37 +00:00
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
Jooyung Han
8ab5cf670f Fix self-assign error in SimPhonebookContract
Bug: 180472752
Test: atest
FrameworksTelephonyTests: com.android.internal.telephony.uicc.IccUtilsTest
TeleServiceTests: SimPhonebookProviderTest
Change-Id: I1a8c0dabee3ca90fcdeca263a4c943e01fbae75e
2021-02-17 18:27:59 +09: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