Commit Graph

640958 Commits

Author SHA1 Message Date
Automerger Merge Worker
2355ccca25 Merge "Merge "AudioFormat: Retrieve sample rate capability from framework" am: ba32f57428" into stage-aosp-master am: bbffe8e909 am: 800b64ec90
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1700287

Change-Id: I6974e6d95d00f570d67445489f9363081e02e5fe
2021-05-10 20:36:49 +00:00
Andy Hung
ce18518dca Merge "AudioFormat: Retrieve sample rate capability from framework" am: ba32f57428 am: 89ce768aa1 am: 4a47417302
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1700287

Change-Id: I7cc3432c9457ef2d046fa8552e7bf7aca4e4e8d8
2021-05-10 20:34:47 +00:00
Rahul Sabnis
27918f0cf2 Merge "Update docs for BluetoothDevice#fetchUuidsWithSdp to reflect that if the device is bonding, we either broadcast cached UUIDs or wait for SDP to be performed after the device is bonded." am: d8c539d8b8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1698769

Change-Id: I80a142b64d16b00e973112e35dae2c5d962839b8
2021-05-10 20:34:06 +00:00
Automerger Merge Worker
e24feb4224 Merge "Merge "Enforce system/root/shell for dexopt operation." am: c900ba3cd6" into stage-aosp-master am: c8c54db537
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699071

Change-Id: I1e4e1988efbfe900444fa985cbe7015c021000ac
2021-05-10 20:17:48 +00:00
Calin Juravle
ad770e97d4 Merge "Enforce system/root/shell for dexopt operation." am: c900ba3cd6 am: 274d5098fe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699071

Change-Id: I98b2c50a3694b67f41af7f9b4faf5c1648d3d8b6
2021-05-10 20:17:00 +00:00
Automerger Merge Worker
800b64ec90 Merge "Merge "AudioFormat: Retrieve sample rate capability from framework" am: ba32f57428" into stage-aosp-master am: bbffe8e909
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1700287

Change-Id: I605fa5ca5f8e8e91a191b9c5b2f9f37d4c949a7b
2021-05-10 20:16:33 +00:00
Andy Hung
4a47417302 Merge "AudioFormat: Retrieve sample rate capability from framework" am: ba32f57428 am: 89ce768aa1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1700287

Change-Id: I137ad2c9e8b3f360037f312773ea8d31d8ba4bfa
2021-05-10 20:15:24 +00:00
Winson Chung
3d5b012471 Add test api to gc system and sysui
Bug: 186268407
Test: Presubmit
Test: adb shell cmd statusbar run-gc
Change-Id: Ie0567e1a75f6c991d226b5f90f1b126139b6be44
2021-05-10 13:13:06 -07:00
Automerger Merge Worker
c8c54db537 Merge "Merge "Enforce system/root/shell for dexopt operation." am: c900ba3cd6" into stage-aosp-master 2021-05-10 20:04:27 +00:00
Calin Juravle
669ca39862 Merge "Enforce system/root/shell for dexopt operation." am: c900ba3cd6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699071

Change-Id: Ic3d4d4cfbfff9019f3223a0c89ac7fa65a1d845a
2021-05-10 20:00:41 +00:00
Calin Juravle
274d5098fe Merge "Enforce system/root/shell for dexopt operation." am: c900ba3cd6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1699071

Change-Id: Iae5a23f356eb8d8f6179e940e362dce2eb140392
2021-05-10 19:57:10 +00:00
Automerger Merge Worker
bbffe8e909 Merge "Merge "AudioFormat: Retrieve sample rate capability from framework" am: ba32f57428" into stage-aosp-master 2021-05-10 19:56:48 +00:00
Andy Hung
89ce768aa1 Merge "AudioFormat: Retrieve sample rate capability from framework" am: ba32f57428
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1700287

Change-Id: I35be9d48f84dea6d8a9cb356873ea30725288ebf
2021-05-10 19:44:48 +00:00
Andy Hung
a40baa4af7 Merge "AudioFormat: Retrieve sample rate capability from framework" am: ba32f57428
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1700287

Change-Id: I2d56a1931bb32ef1890125bd7692dc3edc5f788b
2021-05-10 19:43:31 +00:00
Yi Jiang
cb800aa399 Simplifies the service resolving logic in RRMS
Bug: 178211282
Test: manually tested the feature.
Change-Id: I052368ee774ed840b801797f0461263e7d6c19b3
2021-05-10 12:37:34 -07:00
Beth Thibodeau
b31449d581 Add more logging for power menu lite
Adds logging for:
- Default action buttons
- Close by going back
- Close by tapping outside dialog
- Open via QS button

Also added new events to be implemented in future CLs

Bug: 182830510
Test: atest com.android.systemui.globalactions
Test: atest com.android.systemui.qs
Change-Id: I43c449450ba5b3879b128eaf64b1098dd625f8d3
2021-05-10 15:35:06 -04:00
Siarhei Vishniakou
571704424b Add transferTouch api
The new api will be similar to "transferTouchFocus" and
"pilferPointers".

In the new api, we will be transferring touch, wherever it might be,
to the specified window. This will be used in the case where the app
is fullscreen, and the user swipes down to check notifications.

Currently, the behaviour is like this: user swipes once to show the
status bar, and then swipes again to show the notification shade.

The desired experience is for user to swipe once to show the
notification shade.

This new api will allow the StatusBar to transfer touch to the
notification shade, so that it can continue to get expanded.

Bug: 177997773
Test: atest inputflinger_tests
Change-Id: If38d395669104d6aebb68f97e830fa80393b50d5
2021-05-10 12:33:08 -07:00
Fiona Campbell
81f2bbe018 Fix crash in BrightnessTracker write events
Bug: 183070682
Change-Id: Ia59bf41aa824fd501dfdee306f383eaf281b3461
Test: manual
2021-05-10 19:11:49 +00:00
Chris Li
4cb2859e93 Fix non-visual Context in ImageWallpaper
Before, it tried to access WindowManager from a non-visual context. Now,
it should use a window context.

Bug: 187644235
Test: manual
Change-Id: I3994d7b86fd28598d375c1c8033d72bbc9a9fdcf
2021-05-10 12:08:32 -07:00
Makoto Onuki
619c5a46d8 Implement requestForegroundServiceExemption, without enabling it
Bug: 187429663
Test: Checked ApplicationInfo.hasRequestForegroundServiceExemption()
  of a test app, with and without the new attribute set.

Change-Id: I98342a35a82e44327db896c9820806eb3eda5b4c
2021-05-10 11:50:32 -07:00
Ryan Mitchell
957168e2b2 Fix aapt badging segmentation fault
Unsigned subtraction lead to arithmetic overflow which caused aapt
to reference the vector out of its bounds.

Bug: 175789289
Test: dump badging on a manifest with no uses-sdk tag
Change-Id: Id1b96376a8bfe13c0c195bb6f62b681c3d686034
2021-05-10 11:46:49 -07:00
yinxu
f6b846000d Support VCN network in the default network tracker
Bug: 186025257
Test: manual tests
Change-Id: If9cde3ba634544e37b6847ac53c962b5419dcef3
2021-05-10 11:46:40 -07:00
Jay Patel
3d46ae52dc Merge "AudioSystem: update framework channel capabilities" am: 249034de9d am: 67143814c2 am: 4245889bbd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1317754

Change-Id: I30f6dd9c16b1168bf263f94498a3993a4bfe7b45
2021-05-10 18:44:23 +00:00
John Reck
8ed00dc56d Add a linear variant of the stretch effect
Supports SurfaceViews & everything

Test: setprop debug.hwui.stretch_mode 1
Bug: 187718492
Change-Id: I9a222fa4c1a40e80a74cdaf75becb9524cbeed9b
2021-05-10 11:33:20 -07:00
Nate Myren
c71f94421e Add TODO to SoundTriggerMiddlewarePermission hack
Test: build
Bug: 186164881
Change-Id: Ibdd411cf545b501151b658e653f10cdb71eb7900
2021-05-10 18:28:41 +00:00
Yuri Lin
dde1d04adc Log heads-up notification peeks using UiEvent logging.
This change adds a new UiEvent enum for NOTIFICATION_PEEK and logs it in the same places where we already count note_peek using MetricsLogger.

Test: atest HeadsUpManagerTest; manual verification via statsd_testdrive
Bug: 159697717
Change-Id: I10aebd73b4889f3f677de421018f39ce2ab8fb66
2021-05-10 14:23:56 -04:00
Seigo Nonaka
4f136b5c2d Try to create Typeface before writing to config file
This is additional guard for preventing unusable font files for update.

Bug: 187542525
Test: atest FontFamilyUpdateRequestTest
Test: atest FontListParserTest
Test: atest FontManagerTest
Test: atest NativeSystemFontTest
Test: atest PersistentSystemFontConfigTest
Test: atest SystemFontsTest
Test: atest SystemFontsUniqueNameTest
Test: atest UpdatableFontDirTest
Test: atest UpdatableSystemFontTest
Change-Id: I61060e19e0e8c9b1ee992ab85eb93562ea823e5e
2021-05-10 11:21:45 -07:00
Siim Sammul
60cd2fa626 Merge "Create BinderLatencyObserver to collect binder call latency stats. Pushing these as a metric will come in a future change." 2021-05-10 18:10:58 +00:00
Jay Patel
4245889bbd Merge "AudioSystem: update framework channel capabilities" am: 249034de9d am: 67143814c2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1317754

Change-Id: Icb4bc0bd4382c6a0a7d330624bc371d009efc1c6
2021-05-10 18:08:04 +00:00
Songchun Fan
c4c7c07e40 [pm] add uid in PackageInstallerV2 metrics
BUG: 187455299
Test: atest com.android.cts.packagemanager.stats.host.PackageInstallerV2StatsTests
Change-Id: Iaebecd2809021dd9c11d0dbfa2ad082b44f8223f
2021-05-10 11:07:11 -07:00
Selim Cinek
0e05cb9d8b Merge "Fixed an issue where the shade wouldn't stay open on unlock" into sc-dev 2021-05-10 18:05:29 +00:00
Jing Ji
6dfd2c3105 Merge "Fix the argument list to logcat from am instrument" into sc-dev 2021-05-10 18:02:43 +00:00
Jay Patel
67143814c2 Merge "AudioSystem: update framework channel capabilities" am: 249034de9d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1317754

Change-Id: I8de728097196b1acece91c1651d2ead7c6323f44
2021-05-10 17:42:44 +00:00
Kweku Adams
4ca74041be Increase RESTRICTED timeout to 45 days.
Increase timeout to 45 days based on feedback.

Bug: 183103253
Test: atest AppStandbyControllerTests
Change-Id: I7a36c720dbf16c16940308576a3965384889e527
2021-05-10 10:42:11 -07:00
Rahul Sabnis
d8c539d8b8 Merge "Update docs for BluetoothDevice#fetchUuidsWithSdp to reflect that if the device is bonding, we either broadcast cached UUIDs or wait for SDP to be performed after the device is bonded." 2021-05-10 17:41:36 +00:00
Beverly
271709856b Enable start haptic for udfps by default
When the user's touch first enters the udfps area, play the
keyboard pressed (click) haptic feedback.

Test: manual, atest UdfpsControllerTest
Fixes: 187535630
Bug: 185124905
Change-Id: I2e5231e74dbbc2617ba9f0f04127827fd14078e9
2021-05-10 17:38:13 +00:00
Nader Jawad
16864cd9df Merge "Updated HWUI to calculate the stretch bounds for a surface" into sc-dev 2021-05-10 17:30:30 +00:00
Leon Scroggins
49c3b39dc9 Merge "Always use Skia reduceOpsTaskSplitting" into sc-dev 2021-05-10 17:30:07 +00:00
Songchun Fan
efcd3258e9 [am] check if codePath is null before checking incremental
BUG: 187653672
Test: builds
Change-Id: I12eb18e085660a20508a8407b2643ecbcddf1b54
2021-05-10 17:18:01 +00:00
Joe Huang
88385cc1f0 Merge "Add additional doc for SatellitePvt" into sc-dev 2021-05-10 17:07:40 +00:00
Felka Chang
6f87dc549e Drop prebuilt files to android source tree.
CtsShimPriv.apk
package: name=com.android.cts.priv.ctsshim
versionCode=30
versionName=S-7351002
platformBuildVersionName=S
compileSdkVersion=30
compileSdkVersionCodename=S
sdkVersion:24
targetSdkVersion:28

CtsShim.apk
package: name=com.android.cts.ctsshim
versionCode=30
versionName=S-7351002
platformBuildVersionName=S
compileSdkVersion=30
compileSdkVersionCodename=S
sdkVersion:24
targetSdkVersion:28

CtsShimPriv.apk
package: name=com.android.cts.priv.ctsshim
versionCode=30
versionName=S-7351002
platformBuildVersionName=S
compileSdkVersion=30
compileSdkVersionCodename=S
sdkVersion:24
targetSdkVersion:28

CtsShim.apk
package: name=com.android.cts.ctsshim
versionCode=30
versionName=S-7351002
platformBuildVersionName=S
compileSdkVersion=30
compileSdkVersionCodename=S
sdkVersion:24
targetSdkVersion:28

Built here: ab/7351002

This build IS suitable for public release.

The change is generated with prebuilt drop tool.

Test: presubmit
Bug: 181312900
Change-Id: I8e06cb5b5a8407316a83df7b9eb95a651dc677a9
2021-05-10 17:05:51 +00:00
Tiger Huang
ea491da863 Let IME receive insets ignoring z-order
When IME is targeting notification shade, IME will be above status bar,
and IME won't receive status bar insets anymore. The surface position of
the control of IME will be changed because IME fits status bar. If the
IME control target receives the new IME control (new surface position)
after the IME animation starts, the IME position will be stale until the
next IME animation, because the controls would be copied before playing
the insets animation.

This CL lets IME receive insets no matter what z-order IME has. So the
IME position will stay the same while it is moved above system bars, and
the IME behavior will be the same as before Android S (receiving status
bar insets while targeting notification shade).

Fix: 186178729
Test: Steps as below:
1. Make, install, and open EditTextVariations.
2. Open menu, and select Direct Reply.
3. Expand notification shade.
4. Expand the notification of EditTextVariations.
5. Click Direct Teply Test.
6. See if IME is overlapped with (button-based) navigation bar.
   If no, press home button and repeat 3-6 for several times.
Change-Id: I53c64a5598f246ad577f652156903e4666a30cd9
2021-05-10 17:02:39 +00:00
Siim Sammul
5e6453dc94 Create BinderLatencyObserver to collect binder call latency stats.
Pushing these as a metric will come in a future change.

This is a direct cherrypick with no changes.

Test: unit tests

Change-Id: I8a123f7aed7c0ce416814372f2287b04a8a04ac0
Merged-In: I8a123f7aed7c0ce416814372f2287b04a8a04ac0
(cherry picked from commit 8d0ecde2b8)
2021-05-10 16:53:05 +00:00
TreeHugger Robot
a2547e3057 Merge "Revert "Revert "Only update default home when the preferred home activity is modified.""" into sc-dev 2021-05-10 16:48:58 +00:00
Alex Johnston
4d9bf3a097 Remove device ownership text in quick settings
* On an org-owned device with a managed profile,
  quick settings has a tappable security footer
  that shows privacy disclosures.
* The footer should be untappable if there
  is no policy applied by the admin that
  requires a disclosure (e.g. network logging).
* The device ownership text will no longer be
  shown for org-owned devices.

Manual testing steps
* Set up org-owned device with managed profile.
* Verify QS footer is visible but untappable.
* Enable network logging.
* Verify QS footer is visible and tappable.
* Verify device ownership text is no longer shown.
* Verify behaviour is unchanged for device owner
  and profile owner.

Bug: 186196610
Test: Manual testing
      atest QSSecurityFooterTest
Change-Id: I0df6dc69dc249544d596375f7cd364d8a4080230
2021-05-10 17:41:05 +01:00
Calin Juravle
c900ba3cd6 Merge "Enforce system/root/shell for dexopt operation." 2021-05-10 16:39:50 +00:00
Anton Hansson
f572f77a6f Merge "Fix appsearch filegroups to match package" into sc-dev 2021-05-10 16:34:46 +00:00
TreeHugger Robot
880ad9cfb1 Merge "Add READ_VOICEMAIL permission to privapp-permissions." into sc-dev 2021-05-10 16:34:29 +00:00
Jing Ji
0ec24536c5 Merge "Add support to log app kill stats into statsd" into sc-dev 2021-05-10 16:34:21 +00:00
Grace Jia
ff9040693d Add READ_VOICEMAIL permission to privapp-permissions.
For packages don't have READ_VOICEMAIL permission, CallLogProvider will
limit its access to voicemails by applying strict grammar check. Add
this permission to CallLogBackupAgent to avoid exception when backup and
restore.

Bug: 184244328
Test: Manually restore the device
Change-Id: I7848a6b58f4502d4dd9a346e5e3725e5d741c02f
2021-05-10 16:29:29 +00:00