Commit Graph

6400 Commits

Author SHA1 Message Date
Tej Singh
f6561f6c82 Merge "Add statsd flags to public namespaces" into sc-dev 2021-03-22 18:22:48 +00:00
TreeHugger Robot
41ec7a8e38 Merge "Add device config parameters to DiscreteRegistry." into sc-dev 2021-03-21 22:56:05 +00:00
Stanislav Zholnin
3c46aca490 Add device config parameters to DiscreteRegistry.
DiscreteRegistry cut off and quantization can be set using
adb shell device_config command.

Bug: 176965672
Test: in development
Change-Id: If4df5413d7c7f9bcbdcb751ac2ab772d51c1da80
2021-03-21 21:18:23 +00:00
Tej Singh
8d5fd36dd1 Add statsd flags to public namespaces
Add statsd_java and statsd_java_boot to PUBLIC_NAMESPACES, which allows
feature flagging in app-side statsd code (in
packages/modules/StatsD/framework)

Test: TH
Bug: 181823899
Change-Id: Ia3f92a21a9bc050373de6c6fa4969a4d3af4bccb
2021-03-19 22:54:21 +00:00
Jeff DeCew
6f667c3b5a Minimal change to remove development settings.
Fixes: 183120687
Test: manual
Change-Id: I5632e131b47058ebe25ab21db004eb90498bc299
2021-03-19 15:59:47 -04:00
Jordan Liu
1dfc25617a Make backport_s_notif_rules readable
Bug: 182313963
Test: atest
Change-Id: I4a0ba25a8a5f0674696a83e931ce2aa914c7e7ea
(cherry picked from commit a5792f7402)
Merged-In: I4a0ba25a8a5f0674696a83e931ce2aa914c7e7ea
2021-03-19 19:52:00 +00:00
TreeHugger Robot
b50b960b35 Merge "Add the intent to navigate to MANAGE_MEDIA permission page" into sc-dev 2021-03-19 01:00:40 +00:00
Songchun Fan
e6383a6d3d [Settings] add @Readable back for block_untrusted_touches, maximum_obscuring_opacity_for_touch
These settings are marked @hide to encourage the usage of wrapper APIs.
They should still be readable for any app via the public APIs in
InputManager.

BUG: 183067125
Test: atest android.server.wm.WindowUntrustedTouchTest
Change-Id: I2a3aff0e3bb2ecfba439323fc09b353bd0f2106f
2021-03-18 18:16:06 +00:00
lucychang
b98a658c27 Prompt notifications for non-accessibility services
Prompts a notification for the non-accessibility category service after
24 hours enabled to alert users the service has powerful permissions to
view and control the device. And the notification won't be resend to
the same service by saving the dismiss record to Settings.

Bug: 176965357
Test: atest AccessibilitySecurityPolicyTest
      atest PolicyWarningUIControllerTest
      and manually test

Change-Id: Id5daf7b14dc88cf3f71a53f46fa9a8f1dee91822
2021-03-18 03:01:10 +00:00
Songchun Fan
cd9ae13846 Merge "[settings] Remove @Readable for hidden fields added in S" into sc-dev 2021-03-18 00:55:44 +00:00
Songchun Fan
2a9a33830d [settings] Remove @Readable for hidden fields added in S
This protects newly added fields from being accessed outside
system_server or system/privileged apps.

BUG: 175024829
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Change-Id: I40fda59c164a5982e811d51a69dc9aa8365b04d1
2021-03-17 18:51:07 +00:00
Ivan Chiang
e82705b52e Add the intent to navigate to MANAGE_MEDIA permission page
Test: m -j
Test: atest AvailableIntentsTest
Bug: 181112025
Change-Id: I08ca853c96bf83fe51e6e09f47e1ee052d2a7453
2021-03-17 14:02:02 +08:00
Oli Lan
242c7c5f2c Merge "Add a setting to control whether clipboard access notifications are shown." into sc-dev 2021-03-15 14:09:48 +00:00
Grace Jia
b53cb66e5f Add D2D sharing level setting APIs.
Test: unit test, cts test
Bug: 163085177
Change-Id: I86f88d68c8629a0329dcde7b2d17928cacec37e7
Merged-In: I86f88d68c8629a0329dcde7b2d17928cacec37e7
2021-03-11 22:20:16 +00:00
Oli Lan
dfeb99ae1a Add a setting to control whether clipboard access notifications are shown.
This adds a setting to turn on/off the toast notifications shown when
an app accesses clipboard.

Bug: 182349993
Test: atest SettingsProviderTest
Change-Id: I6922ed5a74fae17602a2ac20a199a7d6c03014b9
2021-03-11 18:11:41 +00:00
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