467951 Commits

Author SHA1 Message Date
Sudheer Shanka
f462373a9b Merge "Don't hold any locks while computing the blob digest." 2020-02-19 21:36:26 +00:00
Nate Myren
8f842ae786 Merge "Add Auto Revoke Enabled settings constant" 2020-02-19 21:18:36 +00:00
Nikita Dubrovsky
37f4c72a28 Merge "Update cursor drag to snap the finger position to the handle + add slop" 2020-02-19 21:18:13 +00:00
TreeHugger Robot
80def30076 Merge "Dismiss bubbles into overflow" 2020-02-19 21:16:40 +00:00
Sudheer Shanka
5cbf9d6856 Merge "Allow usagestats for multiple pkgs to be dumped." 2020-02-19 21:14:18 +00:00
David Su
0792b12f99 Merge "CurrentTimeMillisLong: Move to framework-annotations" 2020-02-19 21:06:34 +00:00
Leon Scroggins
658cd3ccff Merge "Switch to SharedElementCallback to HardwareBuffer" 2020-02-19 20:50:21 +00:00
Leon Scroggins III
25118818b6 Switch to SharedElementCallback to HardwareBuffer
Bug: 148155907
Bug: 135299581
Test: Covered by CTS

We plan to remove Bitmap#createGraphicBufferHandle. Call the new
Bitmap#getHardwareBuffer instead.

Change-Id: I0b3ada9636fcc00df82472ea9479eb0bfbcda9eb
2020-02-19 20:48:21 +00:00
Sudheer Shanka
9c7eed49fb Don't error out if the index files are not available.
... which is expected when there is no data contributed yet.

Test: atest --test-mapping apex/blobstore
Change-Id: Ib760a184fb17cb39d7d84378416c0e1fba390858
2020-02-19 12:47:13 -08:00
Muhammad Qureshi
58b9a11b07 Merge "Add apex_available to statsd-aidl-ndk_platform" 2020-02-19 20:46:08 +00:00
Makoto Onuki
f8bbba1477 Merge "Add WTF when a system server wrapper can't be found" 2020-02-19 20:45:18 +00:00
TreeHugger Robot
fe446f7f24 Merge "Fixes to GnssAntennaInfo API" 2020-02-19 20:34:29 +00:00
Hai Shalom
da4585593f Merge "[Passpoint] Remove throws IllegalStateException form getUniqueId API" 2020-02-19 20:17:42 +00:00
TreeHugger Robot
f2dc70b4b7 Merge "Fix NSWC goingAway flag" 2020-02-19 20:17:05 +00:00
Beth Thibodeau
58772783bf Adding unit tests
Tests that the screen record tile on/off/cancel works as expected and that the
recording controller updates state and calls listeners correctly

Also updated a couple methods so they make more sense (aren't called
multiple times per event, differentiating between onRecordingEnd and
onCountdownEnd)

Test: atest ScreenRecordTileTest RecordingControllerTest
Bug: 144944929
Change-Id: Ic2d44bbc250bcb1e90eff78839c9ab37c0d93564
2020-02-19 15:14:25 -05:00
Automerger Merge Worker
a2c3c9fe10 Merge "Revert "Revert "[DexLoadReporter] Report classloader contexts di..."" am: 1ee3e70cf3 am: 2cef69cb5f
Change-Id: I6146cfbbd0a8214e476e50b359ce5474e6d5070c
2020-02-19 20:12:07 +00:00
Automerger Merge Worker
f65d00890f Merge "IMS: Add support for IMS Explicit call transfer" am: 12f7f43ec8 am: 4c0cd62311
Change-Id: Ida84f4a23f19946d0f305304e700b292636762dd
2020-02-19 20:11:49 +00:00
Automerger Merge Worker
9ca6a4957e Merge "Rename KEY_ALLOW_HOLDING_VIDEO_CALL_BOOL." am: 10f01e3c4c am: 32cdb7dcbb
Change-Id: Ifd8b93e4dca702afa60288a160eb6e09ce74bce4
2020-02-19 20:11:25 +00:00
Automerger Merge Worker
fa4e1eb407 Merge "Clarify getSmsCapacityOnIcc docs." am: c2ea5a5bcb am: 0624828d41
Change-Id: I986c9601162203f6e0bd70217fe48291dea24163
2020-02-19 20:10:59 +00:00
Fabian Kozynski
93e844f371 Merge "Fix Kotlin warnings" 2020-02-19 20:10:48 +00:00
Automerger Merge Worker
730f2ff7de Merge "Made the comment more clear" am: 5bb8151a47 am: d41acbdab8
Change-Id: Ia42914c318d709ade0c2df5e3246ce7b88310d03
2020-02-19 20:10:38 +00:00
TreeHugger Robot
8887c6da17 Merge "Controls API - Publisher change - Phase 1" 2020-02-19 20:07:24 +00:00
Eugene Susla
be1e77ed2f Merge "Reduce maps and browser location pre-grants" 2020-02-19 19:59:44 +00:00
Ricardo Correa
f72bb3fe6d Merge "Include an AppOp to allow dialer role app to record and play audio into calls" 2020-02-19 19:56:56 +00:00
Mehdi Alizadeh
f436164eb8 Merge "Overrides permission check in tests to fix failing unit tests" 2020-02-19 19:54:34 +00:00
Kevin Han
225b712359 Move inflation-related NEM tests to their own file
In a gambit to improve organization and make other improvements to
NotificationEntryManagerTest, this CL moves the inflation-related tests
to a separate file, leaving more focused unit tests in
NotificationEntryManagerTest.

In the process of doing this, I've also tried to make net positive
changes to how the inflation test works. The summary of changes below.

The Good
* We no longer modify NotificationContentInflater behavior for tests by
telling it to enter "synchronous" mode which probably means we no
longer have to maintain a test-specific path of logic in that class
* We no longer depend on a countdown latch attached as a listener to
know when inflation is done, so listeners breaking shouldn't break all
the inflation-related tests.
* We no longer have the possibility of the test blocking forever from a
TestableLooper#processMessages waiting for a message forever (we just
throw a runtime exception now if it times out)
* Hopefully less flaky since we have tighter control/knowledge on what
messages we produce/wait on.

The Bad
* We now have to use the main thread looper. This is because using
NotificationContentInflater "for real" uses a lot of AsyncTasks which
HAVE to post back to main thread. Since we split the tests though, this
is only needed for inflation-related tests which arguably should be on
main thread.

The Ugly
* The test is more fragile for async/main-thread-related changes as we
depend on knowing the exact number of main thread callbacks to know when
inflation is done. I've tried to mitigate this as much as possible by
having very explicit documentation, but this is clearly less than ideal.

Test: atest SystemUITests
Change-Id: Iff5413cc48167e182f9fdfa0606790c0d4071154
2020-02-19 11:53:26 -08:00
Automerger Merge Worker
2cef69cb5f Merge "Revert "Revert "[DexLoadReporter] Report classloader contexts di..."" am: 1ee3e70cf3
Change-Id: I5645d6c8f666e2e29e753cad5f216f9d7ab335d2
2020-02-19 19:52:57 +00:00
Automerger Merge Worker
4c0cd62311 Merge "IMS: Add support for IMS Explicit call transfer" am: 12f7f43ec8
Change-Id: Ic2c83555814d74c3ef0e25cd8940288f4e915f9b
2020-02-19 19:52:21 +00:00
Dave Mankoff
6dfeeb710e Merge "Decrease fling sensitivity for vertical falsing." 2020-02-19 19:52:21 +00:00
TreeHugger Robot
5f88ef88e2 Merge "Revert "Add configs for ePDG"" 2020-02-19 19:52:05 +00:00
Automerger Merge Worker
32cdb7dcbb Merge "Rename KEY_ALLOW_HOLDING_VIDEO_CALL_BOOL." am: 10f01e3c4c
Change-Id: I5d69ec2f11680ef25b06cd1e1b6460dd4b1e8523
2020-02-19 19:51:44 +00:00
Automerger Merge Worker
0624828d41 Merge "Clarify getSmsCapacityOnIcc docs." am: c2ea5a5bcb
Change-Id: I487ce61290175e68e2853994192e650bbf90d894
2020-02-19 19:51:18 +00:00
Automerger Merge Worker
7fb85d8573 [automerger skipped] Merge "Refactor NativeHeapTagging compat feature." am: 077e78a71f am: 79b70781fd am: 9048380d4d -s ours
am skip reason: skipped by user eugenis

Change-Id: I85f3a2821b9822c3de0b52872639ec7381e7192d
2020-02-19 19:50:27 +00:00
Automerger Merge Worker
07dd2677e6 Merge "Add cutout support in QSDetail" into qt-qpr1-dev am: 79a42a6cf9
Change-Id: I86e99aa262953f893d03a3ade41144d7177d8ddb
2020-02-19 19:50:00 +00:00
Automerger Merge Worker
d41acbdab8 Merge "Made the comment more clear" am: 5bb8151a47
Change-Id: Iafc60dfd0eccbc4fde177e076f178aaff700be91
2020-02-19 19:49:55 +00:00
Dave Mankoff
129d47ce75 Merge "Remove Dep.get(MAIN_HANDLER) from NotificationMediaManager" 2020-02-19 19:49:42 +00:00
Ricky Wai
62048287d9 Merge "Bind mount obb directory in emulated storage." 2020-02-19 19:42:13 +00:00
Calin Juravle
1ee3e70cf3 Merge "Revert "Revert "[DexLoadReporter] Report classloader contexts di..."" 2020-02-19 19:38:35 +00:00
Calin Juravle
c78162f489 Revert "Revert "[DexLoadReporter] Report classloader contexts di..."
Original commit:
[DexLoadReporter] Report classloader contexts directly from classloader

At the moment classloader contexts are incorrectly computed in the
PackageManager for secondary dex files. There are two issues:

(1) The wrong computed classLoaderContext will be reported for a secondary
    dex file if it was loaded at the same time as a primary dex file
    - This is due to the continue statement that doesn't increment
      dexPathIndex
(2) If a secondary dex file was loaded with a shared library then that
    shared library info isn't passed through the dex load reporting
    infrastructure, and thus its classloader context is incorrectly computed
    in PackageManager.

In order to fix the issues described above & prevent further classloader
context computation divergences between the package manager and the
runtime, lets compute the classloader context in the runtime at dex load
time and report the expected classloader context directly to
DexLoadReporter (and thus the package manager).

Notes: This is mostly just a refactor (i.e. there are a lot of line
changes, but functionally speaking this set of CLs doesn't do much
except change where the classloader context is computed)

Addendum: The bugs described above could also be fixed by:
- changing DexLoadReporter to report information about shared libraries that
  the reported classloaders depend on to PackageManager
- Teach DexoptUtils.processContextForDexLoad about shared libraries
- Fix dexPathIndex calculation in DexManager

I opted for this set of changes instead because this reduces the
possibility of context computation divergence between the framework and the
runtime. Additionally it feels more "solid" that the classloader context
is now computed directly when a dex file is loaded, rather than the
context recreated later on in the PackageManager.

Test: atest com.android.server.pm.dex.DexManagerTests
Test: atest com.android.server.pm.PackageManagerServiceTest
Test: Install app depending on shared library & uses secondary dex
files; adb shell pm bg-dexopt-job; launch app and see odex file
successfully loaded (from smaps/no logcat errors)

Bug: 148494302
Exempt-From-Owner-Approval: This is a pure re-revert, previously owner approved.
Reason for revert: Re-land
Reverted Changes:
I295a6e99e:Revert "Fix shared libraries not being reported vi...
Ib58066e8f:Revert "[DexLoadReporter] Report classloader conte...

Change-Id: I8d1af791f93a3f8fa6eca78df50891cd2ebbb4a3
2020-02-19 19:37:05 +00:00
Nikita Dubrovsky
7c583592a8 Update cursor drag to snap the finger position to the handle + add slop
When dragging the cursor...

1) If the touch moves slightly above or below the current line, we keep
moving the cursor along the same line without jumping up and down across
lines.

2) When the drag motion moves downward, jumping to the lower line is
delayed to allow the user's touch to snap to the cursor's handle. Once
the touch is over the handle, we position the cursor above the user's
actual touch (offset such that the finger remains over the handle rather
than on top of the cursor vertical bar). This improves the visibility of
the cursor and the text underneath.

Bug: 148116165
Test: Manually and ran automated tests
  atest FrameworksCoreTests:EditorCursorDragTest
  atest FrameworksCoreTests:TextViewActivityTest
  atest FrameworksCoreTests:TextViewActivityMouseTest
Change-Id: I88432cbc5a7f1a47cd35866f2001d51d3f66828b
2020-02-19 11:36:24 -08:00
TreeHugger Robot
cb7f6ffe03 Merge "Add COMP->COPE migration test into presubmit." 2020-02-19 19:21:39 +00:00
Pavel Grafov
fba650eaed Merge "Add "Forgot my password" to start profile in locked state." 2020-02-19 19:09:20 +00:00
David Su
f0e76331da Merge "Rename OsuLogin package to com.android.hotspot2.osulogin" 2020-02-19 19:07:40 +00:00
Ruchir Rastogi
f4a77432fc Add apex_available to statsd-aidl-ndk_platform
Test: m
Change-Id: I6ecb2e98eb1ee7cc0740f4205b5d269162c78a3c
2020-02-19 11:05:14 -08:00
Tyler Gunn
12f7f43ec8 Merge "IMS: Add support for IMS Explicit call transfer" 2020-02-19 18:55:20 +00:00
Alex Johnston
5263c11a4c Merge "Add permission to ACTION_RESET_PROTECTION_POLICY_CHANGED" 2020-02-19 18:54:35 +00:00
Tyler Gunn
10f01e3c4c Merge "Rename KEY_ALLOW_HOLDING_VIDEO_CALL_BOOL." 2020-02-19 18:53:23 +00:00
TreeHugger Robot
79a42a6cf9 Merge "Add cutout support in QSDetail" into qt-qpr1-dev 2020-02-19 18:53:21 +00:00
Steven Thomas
1b1b9d2a1d Merge "Add compatibility param to setFrameRate() api" 2020-02-19 18:53:04 +00:00
Tyler Gunn
c2ea5a5bcb Merge "Clarify getSmsCapacityOnIcc docs." 2020-02-19 18:52:38 +00:00