Commit Graph

640958 Commits

Author SHA1 Message Date
Andy Hung
ba32f57428 Merge "AudioFormat: Retrieve sample rate capability from framework" 2021-05-10 16:23:37 +00:00
Beth Thibodeau
f3bb0f2861 Merge "Adjust size of action buttons" into sc-dev 2021-05-10 16:23:18 +00:00
Andy Hung
4afe15ccb0 AudioFormat: Retrieve sample rate capability from framework
Allows a device to specify a higher sample rate (e.g. 384kHz)
and have it acknowledged by CTS.

Test: AudioTrackTest#testGetMinBufferSizeTooHighSR
Bug: 135474352
Bug: 187062102
Change-Id: I2a44590970b437c1090c615961432afce974f2ba
2021-05-10 16:22:59 +00:00
Anna Zappone
46e414c47b Fix flaky tests in PeopleSpaceWidgetManager
Test: PeopleSpaceWidgetManagerTest
Bug: 187469743
Change-Id: Id40811a0adbf51b9d1a3e0cccd34acbdac99f425
2021-05-10 17:22:46 +01:00
Edgar Wang
3b9df00cbb Rename resource name to avoid build conflict in another path.
Bug: 186881512
Test: manual & robotest
Change-Id: I2545c07e9a0e7cb77cf942605fcc447cb387c5ec
2021-05-10 16:13:27 +00:00
Anton Hansson
76ac4cc96f Apply the same filtering for docstubs and jarstubs
A package filter was previously applied to just the jarstubs package,
but not the docstubs. This lead to various internal classes appearing in
the public documentation. Fix that to apply the same filter for both.

This removes the following classes from the docs:
    android/telephony/PackageChangeReceiver
    com/android/net/module/util/CollectionUtils
    com/android/net/module/util/ConnectivityUtils
    com/android/net/module/util/NetworkCapabilitiesUtils
    com/android/net/module/util/NetworkIdentityUtils
    com/google/android/collect/Lists
    com/google/android/collect/Maps
    com/google/android/collect/Sets
    com/google/android/gles_jni/EGLConfigImpl
    com/google/android/gles_jni/EGLContextImpl
    com/google/android/gles_jni/EGLDisplayImpl
    com/google/android/gles_jni/EGLImpl
    com/google/android/gles_jni/EGLSurfaceImpl
    com/google/android/gles_jni/GLImpl
    com/google/android/util/AbstractMessageParser
    com/google/android/util/AbstractMessageParser$Acronym
    com/google/android/util/AbstractMessageParser$FlickrPhoto
    com/google/android/util/AbstractMessageParser$Format
    com/google/android/util/AbstractMessageParser$Html
    com/google/android/util/AbstractMessageParser$Link
    com/google/android/util/AbstractMessageParser$MusicTrack
    com/google/android/util/AbstractMessageParser$Part
    com/google/android/util/AbstractMessageParser$Photo
    com/google/android/util/AbstractMessageParser$Resources
    com/google/android/util/AbstractMessageParser$Smiley
    com/google/android/util/AbstractMessageParser$Token
    com/google/android/util/AbstractMessageParser$Token$Type
    com/google/android/util/AbstractMessageParser$TrieNode
    com/google/android/util/AbstractMessageParser$Video
    com/google/android/util/AbstractMessageParser$YouTubeVideo
    com/google/android/util/Procedure
    com/google/android/util/SmileyParser
    com/google/android/util/SmileyResources

Bug: 187386774
Test: diff framework-doc-stubs/../api-versions.xml before and after
Change-Id: I85b1485b4c5bc1b30a5d537e96d961382f298fb7
2021-05-10 17:06:04 +01:00
Vova Sharaienko
41d13eb397 Stats: Deprecate IStats HIDL interface for the Android S
With IStats transition to the AIDL - the failure of HIDL service
registration should not be considered as a fatal.

Bug: 177667419
Test: build, flash & boot
Change-Id: I1c0f159344219436bb116c92a99cb7e03ee01153
2021-05-10 16:03:06 +00:00
Julia Reynolds
c96669eac2 Merge "Allow NLS metadata fields to use name strings" into sc-dev 2021-05-10 15:56:35 +00:00
Fiona Campbell
52fbf36936 Merge "Send -1.0 when brightness is off" into sc-dev 2021-05-10 15:44:08 +00:00
Jay Aliomer
9351522eab Sample at least 1 pixel from image wallpaper
Fixes: b/186879399
Test: ImageWallpaperTest
Change-Id: Ieec953f81420e4b7b3ac500f4897cbc33eed59fa
2021-05-10 11:38:51 -04:00
Ying Xu
2cb35f1634 Merge "Don't refresh the Tile if the airplane mode is not changed" into sc-dev 2021-05-10 15:38:48 +00:00
Jorim Jaggi
5f6968d277 Merge "Correctly start tracing only where we are counting frames" into sc-dev 2021-05-10 15:37:28 +00:00
Miranda Kephart
3ab2e806dd Implement transition long screenshots->markup
Bug: 183197012
Test: manual
Change-Id: Ib05daf48970007ab3ab4df3253bbec937c02e69c
2021-05-10 11:27:09 -04:00
Aaron Huang
f5755c2919 Add return type javadoc to NetworkStateSnapshot#getLegacyType
Add javadoc to document the return type is the legacy network
type in getLegacyType.

Bug: 183972826
Test: only update javadoc
Change-Id: I7757253af5955f7d489d6349c090dcba146cfd7f
2021-05-10 23:18:41 +08:00
Kriti Dang
1985c45742 Removing the list of formats from the javadoc in setSurroundFormatEnabled
The IntDef in param automatically adds the javadoc.

Bug: 187701166
Test: N/A
Change-Id: I2fba353e98d543e8b5d1d66e4cc599e57e3a7f4d
2021-05-10 17:06:44 +02:00
Ned Burns
ee5ca902e1 Merge changes Iba1cee95,Ic5192c78 into sc-dev
* changes:
  Add injectable version of Assert.isMainThread()
  Break circular dependency in NotificationEntryManager
2021-05-10 14:57:41 +00:00
Gavin Corkery
b8e787f510 Merge "Add OWNERS to RescueParty" am: c27a2ab087 am: cb6f2ce83b am: ae854d5117
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699737

Change-Id: Iee3caccaa303798c9824a2a80d0163ac94216ba4
2021-05-10 14:56:20 +00:00
Jay Patel
249034de9d Merge "AudioSystem: update framework channel capabilities" 2021-05-10 14:47:52 +00:00
Remi NGUYEN VAN
0ef41fbca2 Add back @UnsupportedAppUsage to IS_DEBUGGABLE
The annotation was removed when adding the constant to the public API,
but it was removed from the public API in favor of Build.isDebuggable() in
a later change.

Add back the @UnsupportedAppUsage annotation that should have been
added back when removing the constant from the public API.

Change-Id: Ic2fda01a8c0e90712a1b7b435443d32f7e226d33
Fixes: 187432390
Test: m
2021-05-10 14:45:38 +00:00
SongFerngWang
6c1f38e18d Add carrier config nr_advanced_capable_pco_id_int
This configuration allows the framework to control the NR advanced
capable by protocol configuration options(PCO).
Bug: 183379536
Test: atest NetworkTypeControllerTest

Change-Id: I241700232325cc852c363e8efe567e14cfc7e0aa
2021-05-10 22:43:14 +08:00
Gavin Corkery
ae854d5117 Merge "Add OWNERS to RescueParty" am: c27a2ab087 am: cb6f2ce83b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699737

Change-Id: I933327ccaa94e056e292bb07840fd549f80fb20f
2021-05-10 14:37:33 +00:00
TreeHugger Robot
48eb116d88 Merge "Fix unknown item when exploring the App pinning page via Switch Access" into sc-dev 2021-05-10 14:24:28 +00:00
Rubin Xu
b59d8e1e21 Update SecurityLog javadoc
Bug: 183695861
Test: m -j docs
Change-Id: Idf05e69bda53ffe205683898984b6aa4677f2466
2021-05-10 15:20:45 +01:00
Fabian Kozynski
6009e7c2f8 Refactor animations in QSTileViewImpl
Now the color animations in the tile (minus the icon) happen all in a
single animator. That way, they are all in sync and we don't have race
conditions if two states are pushed really fast.

Test: manual
Test: atest com.android.systemui.qs
Fixes: 187459434
Change-Id: I1987b13c31c8ce695aa3199e41262a8f4ab80ab0
2021-05-10 10:18:56 -04:00
Gavin Corkery
cb6f2ce83b Merge "Add OWNERS to RescueParty" am: c27a2ab087
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699737

Change-Id: Id3f0740b64d6f370104c18311b9f6c8dc02663f8
2021-05-10 14:12:44 +00:00
Jordan Demeulenaere
0cd1d01d63 Merge "Polish the app reveal animation." into sc-dev 2021-05-10 14:09:51 +00:00
Riddle Hsu
87af06e5e9 Merge "Log app launch event in fg thread" into sc-dev 2021-05-10 14:02:46 +00:00
Selim Cinek
2ce2914cf9 Merge "Fixed an issue where the qs position was wrong while bypassing" into sc-dev 2021-05-10 13:56:04 +00:00
Gavin Corkery
c27a2ab087 Merge "Add OWNERS to RescueParty" 2021-05-10 13:54:23 +00:00
Matt Pietal
241f1e71c2 Merge changes from topic "ss_next_alarm" into sc-dev
* changes:
  Smartspace - Next alarm
  Cleanup support for multiple PIN views
2021-05-10 13:44:20 +00:00
TreeHugger Robot
ec6c6835ca Merge "Promote stable flicker tests" into sc-dev 2021-05-10 13:39:52 +00:00
Jeff DeCew
0601cb9bd7 Merge "Remove exception whe Colorized notificiation uses COLOR_DEFAULT." into sc-dev 2021-05-10 13:29:08 +00:00
Fiona Campbell
4eaafe399e Send -1.0 when brightness is off
Brightness was being sent as 0(MIN) previously, we want -1.0(OFF) to be sent to the display.

Bug: 185853190
Bug: 184908496
Test: manual
Change-Id: I14cff1a769e769fff1fa6e90ef0177c3b8518ba4
2021-05-10 14:12:21 +01:00
Nataniel Borges
4f741f2e89 Promote stable flicker tests
Move:
- Stable postsubmit to presubmit
- Stable flaky to postsubmit

Bug: 186115871
Test: atest FlickerTests WMShellFlickerTests
Change-Id: Ia4b1a4868595d6f9c5134e92851664137d79098e
2021-05-10 14:05:15 +02:00
Chalard Jean
0d88f8065d Merge "Allow network providers to set yield to bad wifi" into sc-dev 2021-05-10 12:02:00 +00:00
Gavin Corkery
b9d9b1ac79 Add OWNERS to RescueParty
Test: Builds
Bug: 180579911
Change-Id: Icb592c7db07feefe7e35278496532a91e49f9b3d
2021-05-10 13:00:17 +01:00
Anton Hansson
2e25fdc90f Use filegroups for test-{base,mock,runner} srcs
This allows soong to infer the package of the given srcs, which in turns
make it able to filter the inputs to metalava to exclude unwanted
packages.

This is part of a larger topic of changes intended to remove undesired
classes from the public documentation.

Bug: 187386774
Test: m
Change-Id: I8196c306b743ce6ca8a6452d212f3d7c0b5b2b82
2021-05-10 12:41:01 +01:00
Anton Hansson
fd6c615054 Fix appsearch filegroups to match package
The "java" directory in appsearch contains both a package structure and
subdirectories that include a package structure. Update the build
structure to match that.

This is part of a chunk of work necessary to avoidi unintentional
classes being included in the public documentation.

Bug: 187386774
Test: diff docs with/without package filter applied
Change-Id: I312d5cef014557b02d5c015899944ffdea8ca168
2021-05-10 12:23:40 +01:00
Anton Hansson
6c4de79bcc Fix incorrect package in PackageChangeReceiver
This class is  meant to be internal but accidentally had the wrong
package name set. Rectify that to avoid it appearing in documentation.

Test: diff docs with internal filter applied, verify PCR is gone.
Change-Id: I498d460a524c878aafdf4f1a4497fcc51979c343
2021-05-10 12:16:32 +01:00
John Li
9113ce63fa Add javadoc for Secure.UI_TRANSLATION_ENABLED
Bug: 186240729
Test: manual
Change-Id: I4b997e9958c2272019138ec25c87d021da241b4e
2021-05-10 19:06:36 +08:00
Fiona Campbell
6a2953601b Merge "Save display persistent data store" into sc-dev 2021-05-10 11:00:22 +00:00
Anton Hansson
c2baf8f5e4 [automerger skipped] Merge "Add targets to build doc-stubs for non-updatable" am: ee95f486e5 am: 288898968d am: c2603116e7 -s ours
am skip reason: Merged-In Ic2cef748c42c141ea42b8cd7b4afd7ee78a1399d with SHA-1 867f94c755 is already in history

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

Change-Id: I7208d67f45df60af9d8c81cc2c9138cb0dbf2b5c
2021-05-10 10:02:54 +00:00
Tsung-Mao Fang
2616831f75 Fix unknown item when exploring the App pinning page via Switch Access
Set a not important attribute on a view.

Test: no unknown item when using app pinning page.
Fix: 187241610
Change-Id: I72cd6c6e853807d352759a7fdb93359a1a4949c0
2021-05-10 09:50:25 +00:00
Anton Hansson
c2603116e7 Merge "Add targets to build doc-stubs for non-updatable" am: ee95f486e5 am: 288898968d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697266

Change-Id: I9ee3bbc9c0e21b23ef2cc0c38e2254da9f28c925
2021-05-10 09:43:50 +00:00
Anton Hansson
4e86dcad12 Inline two constants from CorePlatform
Inlining these constants allow the public api metalava run to depend on
ART's public API rather than the "internal" CorePlatform API, which
prevents picking up unintentional classes (such as annotations) from the
CorePlatform API in the public stubs.

Because these constants get inlined in the API/stubs, and the constants
have been finalized for many years, they can never change. Because they
cannot change, reusing the constant is of limited value. I've added
some comments to point readers to other places the constant is used.

Bug: 154796679
Test: m checkapi
Change-Id: I0b347a2964cfe5a1206145fdc56934727b890469
2021-05-10 10:28:02 +01:00
Anton Hansson
288898968d Merge "Add targets to build doc-stubs for non-updatable" am: ee95f486e5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697266

Change-Id: Ibdcd1144da22d8a2a76003540d2023e53cd680e6
2021-05-10 09:21:08 +00:00
Joanne Chung
1450a8706d API feedback: Translation View API improvement.
1. Rename dispatchRequestTranslation().
2. Provide what should be done in onViewTranslationResponse().

Bug: 186578468
Bug: 186578311
Test: atest CtsTranslationTestCases
Test: manual.
CTS-Coverage-Bug: 177960696

Change-Id: Id90e7d68a92ec17ec302d7ff05ef67c8bfa6454b
2021-05-10 17:19:09 +08:00
Ming-Shin Lu
0638a9f91f Fix Keyboard covered input box after leaving split screen
When leaving split-screen, task organizer will trigger transaction to
reparent task and then invoking updateAboveInsetsState for all windows
when updating the IME layering target through the below call path:

InsetsStateController.updateAboveInsetsState
   DisplayContent.setImeLayeringTargetInner
     DisplayContent.computeImeTarget
       DisplayContent.updateFocusedWindowLocked
         ..
           DisplayContent.layoutAndAssignWindowLayersIfNeeded
             Task.reparent
               ..
                WindowOrganizerController.applyTransaction

However, DC#forAllWindows will skip IME windows in
WindowState#applyImeWindowsIfNeeded since split-screen mode not yet be
changed. that caused the application will get mAboveInsetsState when
dispatching to the client because system thought the app window is above
IME.

Use isSplitScreenModeActivated() to consolide the split-screen check in
case misjudge for this issue.

Fix: 186746922
Test: atest InsetsStateControllerTest
Test: manual as issue steps
Change-Id: I47bcb1234a49ea35c5e0d7281973fb3237e420eb
2021-05-10 17:15:19 +08:00
Chalard Jean
c4660c98f6 Allow network providers to set yield to bad wifi
While the "yield to bad wifi" policy is handled by CS for
backward compatibility, the network provider should in
fact be in control of it. There is no downside to allowing
providers to set it as no provider is using this, and it
will allow for migration in the future. The code is also
simpler, and becomes possible to test through CTS.

Test: NetworkScoreTest
Bug: 184037351
Change-Id: I3b2418f37bf1f0374d0a626fda7e2b6f3a3b41ba
2021-05-10 08:55:19 +00:00
Anton Hansson
ee95f486e5 Merge "Add targets to build doc-stubs for non-updatable" 2021-05-10 08:55:07 +00:00