Commit Graph

640958 Commits

Author SHA1 Message Date
Nataniel Borges
81583909a9 Merge "Revert "Set a floor value for BLE Batch Scan report delay of 5000ms"" am: 6528da5667 am: 3ed5afa516
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1681445

Change-Id: I7131b38a96c8ca4db748047132ce59d1503eb671
2021-04-20 16:51:21 +00:00
Nazanin Bakhshi
bc401f523d Merge "Refactoring and mocking to make sure unit test doesn't call the real service" am: 68bf2c52e5 am: 96b0148cc4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1668228

Change-Id: I1a398667cc0a51d0454fb956be8f08871c23af6e
2021-04-20 16:50:40 +00:00
TreeHugger Robot
32e08f8b0d Merge "Revert^2 "Introduce SpellCheckerSessionParams."" into sc-dev 2021-04-20 16:45:50 +00:00
Chavi Weingarten
0885db1f95 Merge "Updated native SurfaceControl APIs to reflect their behavior." into sc-dev 2021-04-20 16:38:11 +00:00
Nataniel Borges
3ed5afa516 Merge "Revert "Set a floor value for BLE Batch Scan report delay of 5000ms"" am: 6528da5667
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1681445

Change-Id: I705f617f14666683159b4f8dea93b120f14565e7
2021-04-20 16:31:30 +00:00
Kweku Adams
60028e7501 Simplify running job checking.
Now that we have a list of the currently running jobs, we no longer need
to iterate through all JobServiceContexts to know if a job is running.
Clean up the code by using the set of running jobs instead of iterating.

Bug: 141645789
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest CtsJobSchedulerTestCases
Change-Id: Icfdf420fa14496f0fd93f6aa6e67aaa229372985
2021-04-20 09:30:43 -07:00
Lucas Dupin
3ad4d99e26 Merge "More subtle sparkle animation" into sc-dev 2021-04-20 16:30:10 +00:00
Bill Yi
f0361a4c41 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie13c4fff25a663dedab951cd791b635d71d2f227
2021-04-20 16:28:00 +00:00
Nazanin Bakhshi
96b0148cc4 Merge "Refactoring and mocking to make sure unit test doesn't call the real service" am: 68bf2c52e5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1668228

Change-Id: Iaaa8635c0c1031f6b7e896c879de9744a1215f54
2021-04-20 16:27:56 +00:00
Megan Robinson
063e1c8f2b Fix grammatical error in LayoutAnimationController documentation.
Change-Id: I274079b932154fa61ebe64a7e0ed0dc1feb089cc
2021-04-20 16:26:43 +00:00
Hall Liu
379a3f5ae2 Merge "Add docs clarifying permissions of setSystemAppState" into sc-dev 2021-04-20 16:23:43 +00:00
Michal Olech
ab5f1f8398 [CEC Configuration] Rename Power Control Mode setting name string
This string is used to refer to configuration settings and when
preserving the values in permanent storage.

Bug: 184813910
Test: atest HdmiControlManagerTest HdmiCecConfigTest
Change-Id: I9c24b627f71b808533ef31d0c371ff7301bc757e
2021-04-20 18:23:20 +02:00
Jay Aliomer
f99023b507 Merge "Image inline reply" into sc-dev 2021-04-20 16:15:31 +00:00
Evan Severson
30a3a67dad Fix typo in sensor privacy init
Should be getting the value at index i, not using int i as a key. Also
when iterating over the state we should be holding the lock.

Test: Push sensor_privacy.xml file and reboot
Fixes: 185881144
Change-Id: I09823d888b05b674b32254d39ab030ce0e6c2acf
2021-04-20 09:14:07 -07:00
Mark Renouf
4b45c3601b Merge "Account for padding in dispatchScrollCaptureSearch" into sc-dev 2021-04-20 16:09:14 +00:00
Fabian Kozynski
815f2dd72e Change brightness mirror background
And match size to slider.

Also, simplify slider hierarchy by removing an unnecessary FrameLayout.

Test: manual
Test: atest com.android.systemui.settings.brightness
Fixes: 185505618

Change-Id: Iaf33514e627974a91712b5af99e171a7c64a3295
2021-04-20 12:06:51 -04:00
Shashwat Razdan
e7f4889beb Merge "Addressing the feedback received in the API review." into sc-dev 2021-04-20 16:01:42 +00:00
wilsonshih
82e484b4c3 Add luminance condition to validate color contrast.
Reference WCAG to calculate color contrast via luminance, add this as
one condition for similar color validate.

Bug: 184830058
Test: atest SplashscreenTests
Change-Id: I93bad2a8ff813036e71757e50f82b6d0ea7f81d5
2021-04-20 16:00:31 +00:00
Nataniel Borges
6528da5667 Merge "Revert "Set a floor value for BLE Batch Scan report delay of 5000ms"" 2021-04-20 15:52:32 +00:00
Nataniel Borges
5aa369359e Revert "Set a floor value for BLE Batch Scan report delay of 5000ms"
This reverts commit ea303904fd.

Reason for revert: b/185890964

Change-Id: I270dc16de0e24728c694830fbe920786b6d90174
2021-04-20 15:50:03 +00:00
Steve Elliott
8362a52c4c Make smart reply insertion logic more robust
Specifically, this removes the assumptions that the smart reply view
container should only container one child, and that the smart replies
will be the first view.

Bug: 174575121
Test: manual, atest
Change-Id: If2b98f6faac3e7cc4ac63bd114f25df1f604aa5e
2021-04-20 11:48:29 -04:00
Nazanin Bakhshi
68bf2c52e5 Merge "Refactoring and mocking to make sure unit test doesn't call the real service" 2021-04-20 15:44:00 +00:00
kholoud mohamed
dead379e48 Add a new permission to install testOnly apps
Added a new permission INSTALL_TEST_ONLY_PACKAGE
and granted it to shell, this will allow installing
testOnly apps from a testAPI.

Test: N/A
Bug: 183716601
Change-Id: I047a4013fb3462db3487eab2d1635ea75ae29264
2021-04-20 15:37:30 +00:00
kholoud mohamed
dbaaacd5ad Expose setInstallFlagAllowTest testAPI
Exposed a testAPIs to set INSTALL_ALLOW_TEST install flag,
and allowed it to holders of INSTALL_TEST_ONLY_PACKAGE
permission.

Bug: 183716601
Test: N/A
Change-Id: Ie045f43c5224ed75e0ba8db91a3b77aa4d66a5d6
2021-04-20 15:37:25 +00:00
Naomi Musgrave
692496d964 Merge "Introduce config for sandboxing" into sc-dev 2021-04-20 15:36:32 +00:00
Janis Danisevskis
52e19940b1 Keystore 2.0: Add namespace locksettings.
This namespace is required by LocksettingsService to protect the
synthetic password key from removal when the user removes the
credentials or wipes AID_SYSTEM app data.

Bug: 184664830
Test: N/A
Change-Id: Ie752a75d2cb2ebf1f4e5814bc2cbc807cc754c21
2021-04-20 15:32:56 +00:00
TreeHugger Robot
699c194b82 Merge "Change divider between framework and TileServices" into sc-dev 2021-04-20 15:32:24 +00:00
Wei Sheng Shih
8fdd1d8780 Merge "Let windowSplashScreenBackground work independent from icon." into sc-dev 2021-04-20 15:32:03 +00:00
TreeHugger Robot
b598e181da Merge "Add a comment mentioning that errors might be unbundled, to improve backwards compatibility story." into sc-dev 2021-04-20 15:29:12 +00:00
TreeHugger Robot
4f6232fa3c Merge "Update strings for privacy dialog" into sc-dev 2021-04-20 15:18:40 +00:00
Pierre Barbier de Reuille
f32f76d678 Correcting the image area computation.
Test: Manually (see bug)
Bug: 185887938
Change-Id: Ia935a8d9fb9a7c634e82bbdc11155f9fff52cbf6
2021-04-20 15:58:15 +01:00
Riddle Hsu
58bd27d6ef Verify that TaskOrganizer gets transferred launch cookie
If task A launches task B before A is drawn, the launch cookie
will be transferred from A to B. So onTaskAppeared should only
get the launch cookie from B.

Also clean up duplicated usages of ITaskOrganizer in unit tests.

Bug: 129067201
Test: atest WmTests:ActivityOptionsTest#testTransferLaunchCookie
Change-Id: I63bc8cd339642d3131c6a666cfffe37ad1a4c611
2021-04-20 22:57:07 +08:00
Alex Johnston
cbcb0560ae Log more meaningful log DPMS isCredentialManagemenApp
* Differentiate logging error message when caller is
  not the credential management app and when the alias
  is not found in the authentication policy.

Bug: 177979648
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest android.security.CredentialManagementAppTest
      atest android.devicepolicy.cts.CredentialManagementAppTest
Change-Id: I31a95eb58637cb33522d48eaaef971ff13721a89
2021-04-20 15:46:12 +01:00
TreeHugger Robot
cecbd506d8 Merge "Add null checks for notification shelf" into sc-dev 2021-04-20 14:45:28 +00:00
Kohsuke Yatoh
d4e3278b3e Revert^2 "Introduce SpellCheckerSessionParams."
Updated test added in commit 7000b5f89d8c43af5ccd116c1840ea89dd9f17dc

Bug: 179804789
Change-Id: I48c744815662cabcbef8e823916b1e6bba9c9b17
2021-04-20 14:28:56 +00:00
Jorge Gil
81c20075fe Merge "Add tests for PIP exclusion bounds updates" into sc-dev 2021-04-20 14:28:33 +00:00
Nicolas Geoffray
a12987512c bootanimation: ensure that if a percent is shown, we'll get to 100.
Seeing 100 while booting is not finished, or seeing eg 90 while booting
is not finished isn't user-friendly.

Test: update ART module, see percent progress
Change-Id: I5509c83f661f937f00a7d28c789df509e3528a37
2021-04-20 15:15:06 +01:00
Ming-Shin Lu
75a4e742f8 Update IME window status when KeyguardController#setKeyguardShown
As in IMMS#handleSetInteractive handles the IME icon status (e.g.
Back-key arror or IME picker icon on navigation bar) when the
interactive changed and setting IME icon as invisible when the
keyguard is not the IME client and in shown state.

However, the keyguard state is independent of the screen going
non-interactive and the transition to locked can happen much later
(e.g.the brief flow will be starting from triggering dream service
to notify KeyguardService to update keyguard shown state to WM side),
or even never depens on user settings.

Add InputMethodManagerInternal#setImeWindowState for KeyguardController
to update IME icon status directly to fix the timing issue that
in IMMS side expects to set IME icon as IME_INVISIBLE when
KeyguardManager#isKeyguardLocked is true but sometimes may
return false and still see the IME icon is visible even the
Lockscreen is shown.

Bug: 185763794
Test: manual as below steps
    0) setup PIN lock for the device
    1) launch an app (e.g. Messaging) and show IME
    2) turn-off the screen and then turn-on quickly
    3) verify if the IME icon is invisible when the keyguard shown
Change-Id: Ic12baae9fd7886d2d96a049c8067a79360088549
2021-04-20 22:14:32 +08:00
Joanne Chung
108cec2f17 Remove the deprecated APIs in UiTranslationManager.
We introduced some APIs for initial demo but we dropped these APIs.
To avoid to break the client app, we keep the API until the client
moves to new APIs. It's ok to delete these API now.

Bug: 185448758
Test: manual
Test: atest android.translation.cts.UiTranslationManagerTest

Change-Id: I5ea71d4658246f52610e1f62412d60c6c58bb31e
2021-04-20 14:00:36 +00:00
Aaron Huang
d78c60c10a Add getters to NetworkStateSnapshot
Address API council feedback, add getters to NetworkStateSnapshot
instead of exposing the bare fields directly.

Bug: 183972826
Test: FrameworksNetTests
Change-Id: Id1707753b42ae88d2b95e4bd00a792609434e4f5
2021-04-20 21:55:56 +08:00
TreeHugger Robot
9646f6630b Merge "Fix the ellipsis format" into sc-dev 2021-04-20 13:55:22 +00:00
Matt Pietal
73702413f8 Remove "Device Controls" from Settings
Both device controls and wallet have moved to new areas outside of the
power menu. In step 1, we are deprecating the device controls settings,
as the user can now fully control availability within the new Quick
Settings device controls tile.

Bug: 185597511
Test: atest ControlsControllerImplTest ControlsComponentTest DeviceControlsTileTest ControlsRequestDialogTest
Change-Id: Ifdbb83dfd35263d62c9fd3dc67699769f9c9f408
2021-04-20 13:53:18 +00:00
Oli Lan
ad73e49262 Merge "Change clipboard access notification wording." into sc-dev 2021-04-20 13:50:22 +00:00
Jeff DeCew
eba7be7876 Merge "CallStyle actions have minimum width" into sc-dev 2021-04-20 13:46:14 +00:00
Jeff DeCew
5e7b103e14 Merge "Allow passing 0 to RemoteViews.setDimen() or setAttr()" into sc-dev 2021-04-20 13:44:38 +00:00
Fabian Kozynski
28de2e23ff Merge "Add some padding between QS and shelf" into sc-dev 2021-04-20 13:36:18 +00:00
TreeHugger Robot
9ab42eb145 Merge "Enforce mutual exclusivity in setScrollCaptureHint" into sc-dev 2021-04-20 13:20:13 +00:00
Paul Duffin
9660f4811b Merge "Move icu related hidden API flag file contents to icu" am: 653935b511 am: e8cf665edd am: f27b828bf9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675890

Change-Id: Id534f0ec692848bbb6c99074bcd4a7e92c0df9ce
2021-04-20 13:15:17 +00:00
Daulet Zhanguzin
db11353c46 Merge "Fix build error due to null annotations in core platform API" into rvc-qpr-dev-plus-aosp am: b016acc8c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14236420

Change-Id: Iedceb78f447cdaaadf1a816f0ea073c3043d70fa
2021-04-20 13:14:59 +00:00
Paul Duffin
b314a25c9e Merge "Move art related hidden API flag files to art" am: ef13360a02 am: 727dfbfe51 am: 414d8c1c95
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675868

Change-Id: Idf6c7bdce1f40cae109345c82b9a696675203285
2021-04-20 13:13:46 +00:00