Commit Graph

497291 Commits

Author SHA1 Message Date
Songchun Fan
bd6fc820a6 [SettingsProvider] extend font size scale range
As per requested in b/176940932#comment3 and b/156260178#comment32,
extending the valid font size scale range to [0.25, 5].

Existing CTS tests still pass.

BUG: 156260178
Test: atest android.provider.cts.settings.Settings_SystemTest
Test: atest android.app.cts.ApplicationTest
Change-Id: Icff82d727d63da4353342b0f9a5ca3c2ae1671c1
(cherry picked from commit df8852a0b5)
Merged-In: Icff82d727d63da4353342b0f9a5ca3c2ae1671c1
2021-01-20 21:52:50 +00:00
Jack Yu
4488005ee5 Merge "Temporary fix to prevent TEMPORARILY_NOT_METERED leak" into rvc-qpr-dev 2021-01-19 19:05:46 +00:00
raylinhsu
73ba11e97b DO NOT MERGE "Fix the ambient lux which did not update for blocking zone"
When the display enters doze mode, it should unregister the light
sensor. It should register light sensor again when the display
state change from doze to on otherwise we will lost lux information
and then the refresh rate could not be locked.

Bug: 177636374
Test: atest DisplayModeDirectorTest
Test: no fps transition in the blocking zone when the display state change
Test: check if the lux will update when the display state change
Change-Id: Ib69314aaf716be38af605f8abcca139c4bdd33f1
2021-01-19 01:07:17 +00:00
Michael Wright
58515946ac DO NOT MERGE "Allow DeviceConfig to change display settings for high zone"
Allow DeviceConfig to change the high zone behavior including
refresh rate and brightness thresholds.

Bug: 177636374

Test: atest DisplayModeDirectorTest
Test: adb shell device_config put display_manager refresh_rate_in_high_zone "90"
Test: adb shell device_config put display_manager fixed_refresh_rate_high_display_brightness_thresholds "200"
Test: adb shell device_config put display_manager fixed_refresh_rate_high_ambient_brightness_thresholds "8000"
Change-Id: I1463d6c5daaee46a87a193e98e7f63cad9274b49
2021-01-19 01:07:01 +00:00
raylinhsu
0ecd3e13e7 DO NOT MERGE "Set fixed fps when ambient or display brightness is high"
Force the display to stay at fixed fps when ambient and
display brightness are high.

Bug: 177636374
Test: atest DisplayModeDirectorTest
Test: no fps transition in the blocking zone when the display state change
Test: check if the lux will update when the display state change
Change-Id: I7d8ed657544bd1423ca8b9afefc87e58530c44dc
2021-01-19 01:06:42 +00:00
Jordan Liu
76f79a776d Merge "Allow CBR when device owners is set up" into rvc-qpr-dev 2021-01-16 00:11:13 +00:00
Jack Yu
5d0e3a3404 Temporary fix to prevent TEMPORARILY_NOT_METERED leak
Currently we are seeing TEMPORARILY_NOT_METERED occurs on non-5G
devices. This fix adds more checks to prevent incorrect
TEMPORARILY_NOT_METERED being set. Before we root cause the issue,
we only allow this bit when all of the following conditions met.

1. Devices should support 5G.
2. Carriers should support 5G unmetered data.
3. Device should camp on 5G network.

This temporary fix should be removed after we root cause the issue.

Bug: 176119724
Test: Manual
Merged-In: I2b987d24851cdb16d8457b0ec5c546ace5485ed0
Change-Id: I2b987d24851cdb16d8457b0ec5c546ace5485ed0
2021-01-15 11:47:55 -08:00
Jordan Liu
2268cafb1c Allow CBR when device owners is set up
Bug: 169758206
Test: manual
Change-Id: I98ac9eecd8a497541d9ce0761920db1252eb72e0
Merged-In: I98ac9eecd8a497541d9ce0761920db1252eb72e0
2021-01-15 19:26:12 +00:00
TreeHugger Robot
6e816f4425 Merge "DO NOT MERGE Remove floating cards launcher" into rvc-qpr-dev 2021-01-15 18:46:40 +00:00
Joanne Chung
19e9f00346 Merge "Get ApplicationInfo using usr id" into rvc-qpr-dev 2021-01-15 07:56:55 +00:00
Heemin Seog
c45278479f DO NOT MERGE Remove floating cards launcher
Bug: 177364704
Test: none
Change-Id: I8f19d7d58ee78b64d93de265739a7a880b6a52df
Merged-In: I8f19d7d58ee78b64d93de265739a7a880b6a52df
2021-01-15 06:23:07 +00:00
Joanne Chung
d96bcfcdf2 Get ApplicationInfo using usr id
Use ApplicationInfoAsUser() to get the application information by
user id to make sure we have correct permission, othewise we will
get the SecurityException due to lack of INTERACT_ACROSS_USERS.

Bug: 176313819
Test: atest CtsVoiceRecognitionTestCases
Test: manual.
      1.create profile user
      2.Install sample recognizer app
      3.Function works fine and no security exception occurred after
      apply the change

Change-Id: I6958dbf661373606fb9dba55e386aaea4399a146
Merged-In: Iaf485537b8082d2109d2134ff987dc7244e31218
2021-01-15 12:25:06 +08:00
TreeHugger Robot
07124c1950 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-01-15 01:00:41 +00:00
Bill Yi
d26253e6f5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I26837872bece6c11b9f8b302919edbffa3d4441e
2021-01-14 15:48:56 -08:00
TreeHugger Robot
4d0d51d7f5 Merge changes from topic "revert_high_zone" into rvc-qpr-dev
* changes:
  DO NOT MERGE Revert "Set fixed fps when ambient or display brightness is high"
  DO NOT MERGE Revert "Allow DeviceConfig to change display settings for high zone"
  DO NOT MERGE Revert "Fix the ambient lux which did not update for blocking zone"
2021-01-14 18:51:44 +00:00
TreeHugger Robot
87e5c697fa Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-01-13 17:56:45 +00:00
raylinhsu
b4bf83a773 DO NOT MERGE Revert "Set fixed fps when ambient or display brightness is high"
This reverts commit 4a0a896acc.

Bug: 176018998
Test: atest DisplayModeDirectorTest
Change-Id: Ic9329c59c358742696adbbca9cc2b33f25787eb1
2021-01-13 14:04:14 +08:00
raylinhsu
b14bed88c5 DO NOT MERGE Revert "Allow DeviceConfig to change display settings for high zone"
This reverts commit cf55c21064.

Bug: 176018998
Test: atest DisplayModeDirectorTest
Change-Id: Ib576e16257d7903b39efa8015c2af3be8c0d0c40
2021-01-13 14:04:08 +08:00
raylinhsu
d348974ecd DO NOT MERGE Revert "Fix the ambient lux which did not update for blocking zone"
This reverts commit 400e7d5dda.

Bug: 176018998
Test: atest DisplayModeDirectorTest
Change-Id: I58c60a3a124db11e9ae091831a84a704b3c4e6bf
2021-01-13 14:03:27 +08:00
Bill Yi
2d067c33c0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7d579a91209b6663d63f891cd6b6f4e6f24a89b4
2021-01-12 17:12:06 -08:00
Danny Epstein
d77d372dc7 Merge "DO NOT MERGE Focus clock by default" into rvc-qpr-dev 2021-01-13 00:20:19 +00:00
TreeHugger Robot
61b61e49ed Merge "Fix the ambient lux which did not update for blocking zone" into rvc-qpr-dev 2021-01-12 21:45:48 +00:00
Evan Laird
623049adac Merge "Listen for EXTRA_PRESENT changes" into rvc-qpr-dev 2021-01-12 18:57:58 +00:00
Dave Mankoff
37bba85895 Merge "Pass interaction type to FalsingManager.isFalse" into rvc-qpr-dev 2021-01-12 15:54:09 +00:00
raylinhsu
400e7d5dda Fix the ambient lux which did not update for blocking zone
When the display enters doze mode, it should unregister the light
sensor. It should register light sensor again when the display
state change from doze to on otherwise we will lost lux information
and then the refresh rate could not be locked.

Bug: 176018998
Test: atest DisplayModeDirectorTest
Test: no fps transition in the blocking zone when the display state change
Test: check if the lux will update when the display state change
Change-Id: Ibf2e7cb2e336c88a583f00f59abcbc9d06ec3d62
Merged-In: Ibf2e7cb2e336c88a583f00f59abcbc9d06ec3d62
2021-01-12 13:43:53 +08:00
TreeHugger Robot
d099321312 Merge "Fix renaming file and moving file issue in MTP" into rvc-qpr-dev 2021-01-12 03:55:52 +00:00
Alisher Alikhodjaev
aadceeb17a Merge "Nfc adapter randomly returns null on devices having Nfc" into rvc-qpr-dev 2021-01-11 23:08:40 +00:00
Kevin Hufnagle
5290b8d590 Merge "docs: Remove error in requestPermissions doc" into rvc-dev am: 05efe90a8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13122154

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1f2497b843db9d953e225da17e16f92f93f2ad99
2021-01-11 19:53:53 +00:00
Dave Mankoff
263c0d5d5e Merge "Unregister Touch Sensors for DOZE_AOD_DOCKED" into rvc-qpr-dev 2021-01-11 19:07:36 +00:00
Kevin Hufnagle
05efe90a8d Merge "docs: Remove error in requestPermissions doc" into rvc-dev 2021-01-11 18:56:59 +00:00
Dave Mankoff
bf88e9faf1 Pass interaction type to FalsingManager.isFalse
This ensures that the falsing manager always is testing against the
correct interaction type when it is asked. Prior to this change, we
could end up in states where a user was swiping down (opening the
quick settings) but the falsing manager believed the user was trying
to unlock the phone.

Fixes: 160967364
Test: atest SystemUITests && manual
Change-Id: I176f54a768622dec3e758a7f01ed8aec26223648
Merged-In: I176f54a768622dec3e758a7f01ed8aec26223648
2021-01-11 13:24:30 -05:00
Lais Andrade
c188fc2ed9 Check mode/boost index before accessing cached support value am: 20b47da57a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13164079

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I557ca22ba1a854468174e70391601d9379d99b81
2021-01-11 18:06:24 +00:00
Lais Andrade
20b47da57a Check mode/boost index before accessing cached support value
Bug: 174243830
Test: manual
Change-Id: I2f81bcd57181791fa95d35ad52e6af2d7d9c8dcf
Merged-In: If305a4b694a9d6fcc27da8279f1f53f9fd9cb685
Merged-In: I345d9ff828021da35556f2d51da512840dda8026
2021-01-11 16:11:50 +00:00
Lais Andrade
557838f550 Check mode/boost index before accessing cached support value
Bug: 174243830
Test: manual
Change-Id: I2f81bcd57181791fa95d35ad52e6af2d7d9c8dcf
Merged-In: If305a4b694a9d6fcc27da8279f1f53f9fd9cb685
Merged-In: I345d9ff828021da35556f2d51da512840dda8026
2021-01-11 14:51:30 +00:00
Ivan Chiang
23ed52f971 Fix renaming file and moving file issue in MTP
After the user renames/moves a file/directory, the database of
MediaProvider is not updated. It causes that the file can't be
opened via MediaProvider. Use scanFile to instead of MP.update
for the file/directory.

Handle the .nomedia case for create/copy/move/delete/rename.
Scan the parent directory to update the database.

Test: atest MtpTests
Test: atest --test-mapping packages/providers/MediaProvider
Test: manual. 1. Move/rename the file/directory.
              2. Open the file in DocumentsUI
	      3. create/copy/move/delete/rename for .nomedia case
Bug: 169300366
Bug: 171538933
Bug: 172029805
Bug: 170798581
Change-Id: Ia37be7a027bfe502e3f7c96babe5a5bbed5f942c
Merged-In: Ia37be7a027bfe502e3f7c96babe5a5bbed5f942c
(cherry picked from commit 20079f1064)
2021-01-11 10:47:12 +00:00
TreeHugger Robot
b26c104b45 Merge "Ensure OK/Cancel buttons always shown" into rvc-qpr-dev 2021-01-11 10:06:22 +00:00
Todd Kennedy
d840949816 Ensure OK/Cancel buttons always shown
There is some weirdness with the way the AlertActivity behaves when
it's populated and elements are enabled while it's not actually on
the screen. Work around this by populating the AlertActivity during
onResume() [eg. every time the activity is shown] instead of
onCreate() [eg. only the first time the activity is created].

Fixes: 172699073, 173159446
Test: Manual
Test: Start a staging install
Test: Turn off the phone screen
Test: Wait for the staging to complete
Test: Turn on the phone screen.
Test: See the install dialog has OK/Cancel buttons
Change-Id: Ia9525f20f98f42e6b2b865fa926b9707d416cde4
2021-01-09 02:58:56 +00:00
TreeHugger Robot
c58d6f6653 Merge "Protect DeviceAdminReceiver intents" into rvc-qpr-dev 2021-01-08 21:38:06 +00:00
Bill Yi
13070106c6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I216f1736a0b63c8cf0c8b4a73e9ba57d5142fd32
2021-01-08 06:49:10 -08:00
Dmitry Dementyev
deb17bda7f [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours am: be9c053cef -s ours am: 948bd61f09 -s ours am: 065fbe9cae -s ours am: 91b1893603 -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13194523

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7515c5d471509c53b234d43432ced958e979c84e
2021-01-07 01:19:45 +00:00
Dmitry Dementyev
91b1893603 [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours am: be9c053cef -s ours am: 948bd61f09 -s ours am: 065fbe9cae -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13194523

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I20ba00a11c0524b2452c27b9e31e540417ac7d4b
2021-01-07 00:41:22 +00:00
Hui Yu
da3fa364ca [automerger skipped] Merge "RESTRICT AUTOMERGE: Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background." into rvc-dev am: 970762d46c am: 2005c4ee01 -s ours
am skip reason: Change-Id I7a240621267648ea54e7dc737ebc55bc665e39b6 with SHA-1 86bd39db35 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13236923

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3c3e570d60cea20eb0bc0700340baa706e14d200
2021-01-07 00:24:40 +00:00
Hui Yu
6f4aadc779 [automerger skipped] RESTRICT AUTOMERGE: Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background. am: 346eed7325 am: 883e25f011 -s ours
am skip reason: Change-Id I7a240621267648ea54e7dc737ebc55bc665e39b6 with SHA-1 86bd39db35 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13236923

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icd6b4d5874503ca83c632525e05018437775bafd
2021-01-07 00:24:32 +00:00
Dmitry Dementyev
065fbe9cae [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours am: be9c053cef -s ours am: 948bd61f09 -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13194523

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8bf63aac89074610dbb8f6b475e3d6ba0f420f67
2021-01-07 00:18:39 +00:00
Hui Yu
2005c4ee01 Merge "RESTRICT AUTOMERGE: Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background." into rvc-dev am: 970762d46c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13236923

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If3bdb01bca9d8e14f2a62f379d4e688a91770c28
2021-01-06 23:41:33 +00:00
Hui Yu
883e25f011 RESTRICT AUTOMERGE: Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background. am: 346eed7325
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13236923

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1d407b76df870c343a30199bf69ff4d0025c67e7
2021-01-06 23:41:30 +00:00
TreeHugger Robot
37ff5c9d04 Merge "Protect account chooser activities against overlay." into qt-dev am: 7f2257fa0f am: 683623e8b0 am: be186dc33e am: 88e38a7d1c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13191817

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If31258e284c7bad73295eaffcc2a1011f4538ad6
2021-01-06 23:34:54 +00:00
Dmitry Dementyev
948bd61f09 [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours am: be9c053cef -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13194523

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie78c9b638fe0d342b31833ddee9b2a4e790fddc3
2021-01-06 23:34:12 +00:00
Hui Yu
970762d46c Merge "RESTRICT AUTOMERGE: Set mAllowWhileInUsePermissionInFgs correctly when bindService() from background." into rvc-dev 2021-01-06 23:22:53 +00:00
Dmitry Dementyev
be9c053cef [automerger skipped] Protect account chooser activities against overlay. am: fedbadf57e am: e1d00ab8b8 -s ours
am skip reason: Change-Id I1a16808426934f4a8d12410576d769443e4c2a04 with SHA-1 6ff42dd2d2 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13194523

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I31b47fd1a80db951eaa393a429e5495cc31a31e8
2021-01-06 23:10:43 +00:00