Commit Graph

468813 Commits

Author SHA1 Message Date
Andy Hung
ff78aab391 Merge "RingtoneManager: Don't crash if the ringtone doesn't have a numerical ID" 2020-02-18 21:48:53 +00:00
arangelov
f163a88595 Disable tabbed view support for UsbResolverActivity.
UsbResolverActivity extends ResolverActivity, but it should never
show a tabbed view if there is a work profile on the device.

Test: none
Fixes: 149749166
Change-Id: I4ea713a32d4b85820e42b4e3ab60c9da54814fdc
2020-02-18 21:44:34 +00:00
Leon Scroggins III
5a190b19bb Add Bitmap#getHardwareBuffer
Bug: 148155907
Bug: 135299581
Test: TODO

Hidden for now. We'd like to make it an SDK API eventually
(b/148155907).

Internal code is currently calling createGraphicBufferHandle. This is
not something we plan to expose from the UI rendering module, so add a
method to get a HardwareBuffer instead. This is something we were
already planning to add. It seems that clients of
createGraphicBufferHandle really wanted a Parcelable to pass the
HARDWARE Bitmap to another thread. This should satisfy that use case.

Change-Id: Id701f7c7eab37830cd7d2cdb929cbe6ba4eca119
2020-02-18 16:35:56 -05:00
Sarah Chin
3fd9bc7e2c Revert "PhoneCapability cleanup"
Revert "Test PhoneCapability API"

Revert "PhoneCapability cleanup"

Revert submission 10153355-dev_cap

Reason for revert: Change not supported by modem
Reverted Changes:
Id86ad81d8: Update PhoneCapability to use 1.5 UTRAN bands
Ia44398852: Test PhoneCapability API
I2510de0ab: PhoneCapability cleanup
I29dfb51bf: PhoneCapability cleanup

Change-Id: Ia6a528b5677eb561a0845fca3d8141385d8bc2da
2020-02-18 13:35:38 -08:00
Hui Yu
af766934d7 Create a white list to allow while-in-use permission in FGS.
Add AttentionService, SystemCaptionService(for live caption) and assistant
(voice interaction service) into the white list.

Bug: 149203389, 136219221
Test: manual test.
Change-Id: Ibf677019d37c72d620fa6917e436eccc4807df65
2020-02-18 13:35:01 -08:00
TreeHugger Robot
414b066328 Merge "Fix double tapping notifications on lock screen." 2020-02-18 21:27:49 +00:00
Danning Chen
91f90e0fd6 Add getShareTargets() to ShortcutServiceInternal and get caller's user ID from AppPredictionSessionId
Previously, the caller's user ID was got from Binder. But
AppPredictionManager clears caller's identity. The only way to get the
caller's user ID is to get it from session ID.

Bug: 146522621
Test: atest com.android.server.people.data.DataManagerTest
Test: atest com.android.server.people.data.ShareTargetPredictorTest
Change-Id: Ia0dc35879084110849e06e919ff3b3c7241c46fd
2020-02-18 13:23:04 -08:00
TreeHugger Robot
55b01d97b4 Merge "Allow TestableLooper to be asserted as main looper" 2020-02-18 21:22:48 +00:00
Aran Ink
f96bf42792 Resize images in NotificationInlineImageResolver if too big.
Bug: 144361336
Test: Automated tests pass.
Change-Id: Ibca7d1055ca7a6b79f55d2be7af626eaf2408530
2020-02-18 16:18:37 -05:00
Jorim Jaggi
0a082e7220 Fix unnecessary onApplyWindowInsets
...such that we don't trigger another apply immediately after
the first frame.

Test: Launch calc, observe only one onApplyInsets
Bug: 148604688
Change-Id: I1b8c1735ca0b93869eb3bf8bd1fc078e6474e653
2020-02-18 22:16:42 +01:00
Automerger Merge Worker
8f9d77ae03 Merge "Consume health HAL 2.1 values from framework" am: 217aadd0c2 am: 28c43860ea
Change-Id: Ib99043efeb26c5e87ab208df2d780e87b96e5e93
2020-02-18 21:13:48 +00:00
Automerger Merge Worker
9764563966 Merge "Add encoding information to TvTrackInfo" am: f3681741e3 am: e982fa4084
Change-Id: I08f3fd2cf097442a5a2e0dab3888668fd1cec243
2020-02-18 21:13:38 +00:00
Treehugger Robot
28c43860ea Merge "Consume health HAL 2.1 values from framework" am: 217aadd0c2
Change-Id: I5cf49ce94dcb28566bb37edb2583a300630f618e
2020-02-18 21:12:32 +00:00
nchalko
e982fa4084 Merge "Add encoding information to TvTrackInfo" am: f3681741e3
Change-Id: Id263372457ab5849cdadd3f6788c64ad462310fe
2020-02-18 21:11:28 +00:00
Automerger Merge Worker
9048380d4d Merge "Refactor NativeHeapTagging compat feature." am: 077e78a71f am: 79b70781fd
Change-Id: Ia69d6c902c9c5ee4a5e79a28094d89daa5e747d8
2020-02-18 21:09:56 +00:00
TreeHugger Robot
1031e06adf Merge "Remove more deferTransactionUntilSurface calls" 2020-02-18 21:09:50 +00:00
Automerger Merge Worker
163015b675 Merge "Use month in the range 1-12 for 3GPP2 SMS Time Stamp instead" am: 223696559f am: fe80efe1d1
Change-Id: I21c138c30e4a3fedd9bf987a432813ca89b5c298
2020-02-18 21:08:47 +00:00
Alec Mouri
ca0adce78b [libandroid_graphics] Add a missing release() call
RenderProxy acquires its own references to the ANativeWindow and does
not steal it, so there needs to be an additional ANativeWindow_release
call in setSurface

Test: builds
Test: interact with device
Change-Id: I598f57febf835cda7fb4195b19e03c3723698702
2020-02-18 12:59:41 -08:00
Zhen Zhang
7219da8c9c Replace explicit intent with implicit ACTION_TETHER_SETTINGS intent
Using implicit intent will give us the freedom to handle it differently
on Settings app side at runtime. This won't change the behavior of this
QuickSettings Hotspot Tile.

Bug: 149590956
Test: Built and flashed to crosshatch. Long clicking on Hotspot Tile
will go to Tether Settings.

Change-Id: I9f79ff7966b65f9a2ab3d69dfb4a5f50cad798d4
2020-02-18 12:57:00 -08:00
Automerger Merge Worker
5adf4d96b7 Merge "Set a shorter timeout for logging a warn on slow IUserSwitchObservers." into qt-qpr1-dev am: 928add13d4
Change-Id: I170d8d5d312a4147a0b88165dc47d7544e30561c
2020-02-18 20:53:54 +00:00
Evgenii Stepanov
79b70781fd Merge "Refactor NativeHeapTagging compat feature." am: 077e78a71f
Change-Id: I6e51200ae57c78c45c503d481ef66b14eb8544c3
2020-02-18 20:53:51 +00:00
Amit Mahajan
fe80efe1d1 Merge "Use month in the range 1-12 for 3GPP2 SMS Time Stamp instead" am: 223696559f
Change-Id: I16bf32e2bcdfd6ac04c19c0112f8c2ce56bd0271
2020-02-18 20:49:14 +00:00
Amos Bianchi
ebd361c266 Merge "Use constant for tethering connector poll interval." 2020-02-18 20:46:25 +00:00
Makoto Onuki
2690838de9 Fix ConcurrentModificationException in SyncManager.
Change-Id: Iae304fa7d64beac1b4aeab0956022d2e952b2bb7
Fix: 149070594
Test: atest CtsSyncManagerTestsCases
2020-02-18 12:45:36 -08:00
Treehugger Robot
217aadd0c2 Merge "Consume health HAL 2.1 values from framework" 2020-02-18 20:45:15 +00:00
arangelov
4bf1747be7 Add metrics for work tab in intent resolver and share sheet.
Also includes a metric for cross profile app autolaunch.

Fixes: 149696928
Test: manual
Change-Id: Ic8f9819819d9d18d8616eb974580696fcbc26c36
2020-02-18 20:32:54 +00:00
Kweku Adams
5a84168376 Add missing information to dumpsys.
The dynamic battery saver information was not being logged in the
dumpsys, which made debugging an issue harder. Adding the information to
make future debugging easier.

Bug: 142473857
Test: atest android.os.cts.PowerManagerTest
Change-Id: I81cb724efd454f578d99b8abaa4eca3b6bad587a
2020-02-18 12:30:33 -08:00
Connor O'Brien
103a7bb6e1 Use bpf data when available for single-UID cpu stats
Update KernelSingleUidTimeReader to read BPF data rather than per-UID
proc files when the BPF data is available. This is implemented by
calling libtimeinstate functions via JNI.
Extend KernelSingleUidTimeReaderTest to exercise both the BPF and proc
file code paths.

Bug: 138317993
Test: KernelSingleUidTimerTest passes
Test: no regression in BatteryStatsTests
Change-Id: Ie962ddd9e30d96aa0fab6104a4164af9ad02f55e
Signed-off-by: Connor O'Brien <connoro@google.com>
2020-02-18 12:25:21 -08:00
Patrick Baumann
2fa1c95404 Adds NON_BROWSER & DEFAULT match flags
This change adds two new flags for starting activities:
FLAG_ACTIVITY_REQUIRE_NON_BROWSER and FLAG_ACTIVITY_REQUIRE_DEFAULT.
The first will only start if the result is a non-browser result. The
second will only start if the result is not the resolver activity.

Bug: 148452357
Test: Builds
Change-Id: I1f25bd78b6231c08036c15436bd8c2e3dccf56d6
2020-02-18 20:12:02 +00:00
Fabian Kozynski
eff2c740e5 Add cutout support in QSDetail
Add padding from cornerCutoutMargins.

Test: manual on device with and without cutout
Fixes: 147708367
Change-Id: I21a9b71c34664982b4e14dd4372638e405a5046e
Merged-In: I665c8c76a2a057e9a30bce7c28fdbe7a249bb5c2
2020-02-18 15:10:19 -05:00
Fabian Kozynski
dcd3b3b714 Add support for cutout in QSDetail
The QS Detail already has padding, so we just need to add some in the
case of corner cutout.

Bug: 147708367
Test: manual
Change-Id: I665c8c76a2a057e9a30bce7c28fdbe7a249bb5c2
2020-02-18 15:06:51 -05:00
Patrick Baumann
f2fe03f588 Adds app enumeration feature
This change adds a new app enumeration feature to system features.

Test: atest AppEnumerationTests
Bug: 149399359
Change-Id: Iaf181a54819343d5531d14142a844acda02b10e5
2020-02-18 12:01:03 -08:00
TreeHugger Robot
b55d7214b0 Merge "Update work off empty state icon." 2020-02-18 19:57:40 +00:00
Philip P. Moltmann
f9486608ab Revert "Make PermPolicySvc based on uid"
This reverts commit 4018617220.

Reason for revert: Did not improve performance, actually regressed it in most cases

Fixes: 149255086
Change-Id: Id89935e565b44110ae186757e9a2a7795aa5d56d
2020-02-18 11:57:00 -08:00
arangelov
db0c1f18c9 Be more consistent with Q when the tabs feature flag is disabled.
This change involves 2 things:
- Check when there are apps on the other profile when deciding
whether to autolaunch with the tabs disabled
- Only take into account the rebuildInactiveTab result when
the tabbed view is enabled. Otherwise it's always false and
that always calls postRebuildList with false.

Fixes: 149031386
Test: manual
Change-Id: I166b3abca3c0da38b3c496b34f139107f6b56410
2020-02-18 19:53:07 +00:00
arangelov
367de77f1e Add metric constant for organization owned managed profile.
Bug: 149690565
Test: none
Change-Id: I1585c92d193ba36b292db2b1612780c297f3cedf
2020-02-18 19:51:25 +00:00
Beverly
95a0802acb Move SBTouchableRegion out of HeadsUpManagerPhone
Move the StatusBarTouchableRegionManager to StatusBar where it will be
recreated whenever new views are created (instead of within
HeadsUpManager)

Test: atest SystemUITests
Change-Id: I802ec8ea122a2cede234ec7536f1177f7b261fd0
2020-02-18 14:49:33 -05:00
Beverly
1467c9e393 Allow TestableLooper to be asserted as main looper
Tests are run from the TestableLooper, but we still want to pass
Assert.isMainThread calls. Therefore, allow SysUI tests to assert the Testable
Looper is the main looper.

We cannot set sMainLooper to TestableLooper because there may still be
messages in the MainLooper's queue that will get evaluated in the
future.

Test: atest SystemUITests
Fixes: 149740127
Change-Id: I0c76763766f5ed4a85d99aea64dbbd14dc1d711c
2020-02-18 19:46:01 +00:00
TreeHugger Robot
a83ff7c895 Merge "MediaFormat AAC DRC documentation updates" 2020-02-18 19:42:00 +00:00
Fabian Kozynski
00afd49556 Properly check for changes in CellSignalState
Make the CellSignalState class immutable. Provide a method for changing
the visibility from Java (by providing a copy if it actually changes).

Test: atest
Test: manual
Fixes: 148957619
Change-Id: If2070113bc379a53c207f4ca94dc1f741c608386
2020-02-18 14:38:31 -05:00
Collin Fijalkovich
ceb5e24ae6 Merge "Cache PowerManager binder calls" 2020-02-18 19:31:36 +00:00
Muhammad Qureshi
6f83764ce5 Re-add compile_multilib to statsd apex
An earlier revert removed compile_multilib: both line which caused only
64-bit variant of libstats_jni to be added to the apex when 32-bit is
also required.

This change adds both 32-bit and 64-bit variants to the apex.

Bug: 149720256
Test: m
Test: fastboot flashall
Test: launch Play Store
Change-Id: I594b290e60052e28139cd954a54ada1067d43e09
2020-02-18 11:30:17 -08:00
Soonil Nagarkar
070e54d48b Prevent mock location from leaking fudger offsets
By using a different location fudger for each provider, and by reseting
the fuger when mock location providers are removed we prevent mock
providers from being used to leak information on the current location
offsets.

Test: presubmits
Change-Id: Ib37c583631c84e01e19352b011ccf8a769f5102c
2020-02-18 11:28:26 -08:00
Alex Kershaw
0f9d6aff1d Merge "Add CrossProfileAppsInternal#getTargetUserProfiles" 2020-02-18 19:25:44 +00:00
Eric Sandness
1a57cb06c2 Merge "Add metrics for DPC setup" 2020-02-18 19:25:36 +00:00
Malcolm Chen
46e16493ba Add carrier config to skip validation if recently validate.
Bug: 148611362
Test: unittest
Change-Id: I4f4e1f698bf883e6eaf80959f3592562015c70f5
2020-02-18 11:23:58 -08:00
TreeHugger Robot
4b6403800c Merge "Make companion callback calls oneway" 2020-02-18 19:23:44 +00:00
Vishnu Nair
cf786c012f Fix wm test rule to rethrow exceptions and update StubTransaction
Test: presubmit
Test: atest WmTests:SystemServicesTestRuleTest
Change-Id: I412093ea0e7fcbe47c2f33d0588c26626ea01b65
2020-02-18 11:21:04 -08:00
Dave Mankoff
20de6bde28 Fix double tapping notifications on lock screen.
http://ag/10273995 broke double tapping on notifications. This cl
restores the behavior by replacing a call to
ActivatableNotificationView#performClick with
ExpandableOutlineView#performClick.

That is to say, we needed to call the super method, as we did before
the breaking cl was checked in.

Bug: 149744457
Test: atest SystemUITests
Change-Id: Ie77ade20f74b04eb0edbe0f1806938523068175a
2020-02-18 14:17:39 -05:00
Robert Carr
2bd95bf6ad ViewRootImpl: Fix overlapping BLAST Sync issues.
Currently we aren't well equipped to handle overlapping synchronization.
That is to say where a second BLAST Sync begins before the first one finishes.
We track enabling this in b/149747443. In the mean-time we take a few steps
to prevent overlap:
   1. Call finishBLASTSync directly from the RT callback rather than posting
      to the UI thread.
   2. Before consuming "mNextDrawUseBLASTSync" fence the threaded renderer to make sure
      any previous draw has finished and emitted its callback.
   3. Use seperate variable for tracking whether the BLAST transaction has been applied
      so that an earlier draw finishing inbetween us calling setNextDrawUseBLASTSync
      and calling performDraw, will not lear the value of mNextDrawUseBlastSync.

Test: Flip the flag, play with youtube.
Bug: 149747443
Bug: 146598493
Bug: 149251083
Bug: 149315421
Change-Id: I6cfd976cd72345acc814fc99d182b50456014a0e
2020-02-18 11:13:21 -08:00