Commit Graph

95919 Commits

Author SHA1 Message Date
Kevin Hufnagle
7ab7ee8aa7 Merge "docs: Removed dates in obsolete field messages." into qt-dev am: 45855214b5 am: 3956d9606c am: 98fdc74e1c
am: 2d6db5ec0c

Change-Id: Id0daf5c83fa4011ee2829874f6154f41e8e0ec92
2019-08-07 15:56:20 -07:00
Eugene Susla
f366188dac Merge "Use dataclass codegen on a few initial framework classes" 2019-08-07 22:51:23 +00:00
Kevin Hufnagle
2d6db5ec0c Merge "docs: Removed dates in obsolete field messages." into qt-dev am: 45855214b5 am: 3956d9606c
am: 98fdc74e1c

Change-Id: I6a482123acdf91619e8abe63b6f62d2fe82384eb
2019-08-07 15:44:27 -07:00
Kevin Hufnagle
98fdc74e1c Merge "docs: Removed dates in obsolete field messages." into qt-dev am: 45855214b5
am: 3956d9606c

Change-Id: I2171e3587c1f4394bc47b082b7723f9722bc054f
2019-08-07 15:34:29 -07:00
Kevin Hufnagle
3956d9606c Merge "docs: Removed dates in obsolete field messages." into qt-dev
am: 45855214b5

Change-Id: I549026ea364645a8d60a1a06df9b20886a6df97a
2019-08-07 15:23:39 -07:00
TreeHugger Robot
6faff849b6 Merge "Prevent NPEs in NLSes" 2019-08-07 21:05:57 +00:00
Qasid Sadiq
0dd1be75c3 Merge "The source of subtree chagnes should be the viewParent" 2019-08-07 18:46:51 +00:00
Adrian Roos
a417290040 Merge "GestureNav: Fix AbsSeekBar thumb exclusion" into qt-r1-dev am: 92f61f0323 am: 9546c97709
am: 47ede3f54a

Change-Id: I579e89818e0ab7bbf787141d8dcefebc228ff5c3
2019-08-07 10:29:39 -07:00
Adrian Roos
47ede3f54a Merge "GestureNav: Fix AbsSeekBar thumb exclusion" into qt-r1-dev am: 92f61f0323
am: 9546c97709

Change-Id: I51d7bd3847825c8653a08bc8e3421ace755dd1f9
2019-08-07 10:08:42 -07:00
Adrian Roos
9546c97709 Merge "GestureNav: Fix AbsSeekBar thumb exclusion" into qt-r1-dev
am: 92f61f0323

Change-Id: Ib0fd305bbf70a33c4d66808a3e3ffca8376c07ad
2019-08-07 09:56:51 -07:00
TreeHugger Robot
92f61f0323 Merge "GestureNav: Fix AbsSeekBar thumb exclusion" into qt-r1-dev 2019-08-07 16:33:36 +00:00
Julia Reynolds
c562fc6937 Prevent NPEs in NLSes
NLSs (rightly) assume that the SBN they get from
onNotification[X] calls will not be null. If it is, log and bail early.

Bug: 78279961
Test: reboot device
Change-Id: Id2bba6b15aeea2d701d92d6c63022463f0f8c1df
2019-08-07 10:50:44 -04:00
Nandana Dutt
6c1f4b2dc2 Merge "Remove obsolete methods from DumpstateListener implementations" am: cbdb10f982 am: b745860a3e am: 82446aa5b6
am: d24128264f

Change-Id: I92e578ef4fe85823e4d6f6d3bb4005e2180ad408
2019-08-07 07:50:20 -07:00
Nandana Dutt
d24128264f Merge "Remove obsolete methods from DumpstateListener implementations" am: cbdb10f982 am: b745860a3e
am: 82446aa5b6

Change-Id: Idbf64e9fb70f39ae547ab3283ca6eb03b95db32d
2019-08-07 07:39:17 -07:00
Nandana Dutt
82446aa5b6 Merge "Remove obsolete methods from DumpstateListener implementations" am: cbdb10f982
am: b745860a3e

Change-Id: Idd72ca09a0256c3e1283fd0c9d73a29939de4778
2019-08-07 07:28:15 -07:00
Nandana Dutt
b745860a3e Merge "Remove obsolete methods from DumpstateListener implementations"
am: cbdb10f982

Change-Id: Ia746b0cdadd0c4d652c373763f7a12266b080e3b
2019-08-07 07:08:27 -07:00
Nandana Dutt
cbdb10f982 Merge "Remove obsolete methods from DumpstateListener implementations" 2019-08-07 13:45:36 +00:00
Adrian Roos
7c7898e74f GestureNav: Fix AbsSeekBar thumb exclusion
Fix two issues that caused the exclusion for SeekBar thumbs to be to small and offset
from the thumb:

Account for padding and thumb offset; the thumb drawable is drawn with an offset
from the View's Canvas; the same offset must be applied when udpating the exclusion
rects.

The thumb is typically much smaller than the drag zone; the thumb rect alone doesn't
provide an appropriately large exclusion for reliably hitting it, so it is enlarged
to the height of the seek bar (up to 48dp).

Bug: 138992366
Test: manual, show exclusion zones with: adb shell setprop debug.pointerlocation.showexclusion 150 && adb shell settings put system pointer_location 1
Test: atest android.widget.AbsSeekBarTest
Change-Id: I2b670c6f3f33451bdccdfd3d75a75e90260257ff
2019-08-07 15:09:26 +02:00
Eugene Susla
3b2fe616fd Use dataclass codegen on a few initial framework classes
Test: presubmit
Change-Id: Ide3c21596f6489fdb1db8f72e1436a01b10f56ed
2019-08-06 21:29:29 -07:00
Kevin Hufnagle
6f809e2f7c docs: Removed dates in obsolete field messages.
Notices about obsolete fields and methods now mention the publish
location (Google Play Store) or Android version (Q and higher).

Test: make ds-docs

Bug: 122482744
Change-Id: Idb60fef711401d43af8eb71343f157590c311571
2019-08-06 18:21:18 -07:00
Vinit Nayak
e185ac2b8b Merge "Create general callback for changes to RecentTaskList" 2019-08-06 22:05:26 +00:00
TreeHugger Robot
d1845aa160 Merge "Add GPU draw stats to gfxinfo and GraphicsStatsService" 2019-08-06 21:45:20 +00:00
TreeHugger Robot
da6b1ff949 Merge "Fix ActivityView surface can't visible for ActivityViewTest" 2019-08-06 21:22:22 +00:00
Nandana Dutt
47c5ecc50a Remove obsolete methods from DumpstateListener implementations
Note that with the new Bugreporting API, SystemServer is the only
expected DumpstateListener implementation. Once we fully migrate Shell
app, we can remove the implementation in BugreportService as well.

BUG: 128980174
Test: bugreport from power menu, observe progress bar

Change-Id: I40d654a70bd9ceb3a29f8a0113b85616100f4ee9
Merged-In: I40d654a70bd9ceb3a29f8a0113b85616100f4ee9
2019-08-06 17:43:11 +00:00
Kevin Hufnagle
ac971c2c1c Merge "docs: Clarified when onRestoreInstanceState() executes" into qt-dev am: c80fe63001 am: ad1de8fbe4 am: 0f27f04f9b
am: 7130f7ed6b

Change-Id: Icd331ef8ed5fa1a2925b621d6670140aa03d7c09
2019-08-06 09:45:11 -07:00
Kevin Hufnagle
7130f7ed6b Merge "docs: Clarified when onRestoreInstanceState() executes" into qt-dev am: c80fe63001 am: ad1de8fbe4
am: 0f27f04f9b

Change-Id: Ibafe22878438e3f1ce176647a3ba07544d753dbf
2019-08-06 09:38:01 -07:00
Kevin Hufnagle
0f27f04f9b Merge "docs: Clarified when onRestoreInstanceState() executes" into qt-dev am: c80fe63001
am: ad1de8fbe4

Change-Id: I22a8b72e89aef3063c3f2b40e6d1f58c7155a7e8
2019-08-06 09:23:03 -07:00
Nandana Dutt
ecc40227b6 Merge "Remove obsolete methods from DumpstateListener implementations" 2019-08-06 16:21:34 +00:00
Kevin Hufnagle
410f162645 Merge "docs: Clarified when onRestoreInstanceState() executes" into qt-dev
am: c80fe63001

Change-Id: I3acf4d0a724d252b59a9e56fb1939187d741dcf7
2019-08-06 09:09:56 -07:00
Kevin Hufnagle
ad1de8fbe4 Merge "docs: Clarified when onRestoreInstanceState() executes" into qt-dev
am: c80fe63001

Change-Id: I332332fc88e565a3842297b04769778ee1c344ca
2019-08-06 09:09:56 -07:00
Kevin Hufnagle
c80fe63001 Merge "docs: Clarified when onRestoreInstanceState() executes" into qt-dev 2019-08-06 15:53:40 +00:00
lumark
3f51e3cfd4 Fix ActivityView surface can't visible for ActivityViewTest
CL [1] introduced ActivityView's surface view set alpha as zero by default.
but SurfaceView ignores alpha value by default.

So to archieve SurfaceView can support alpha value and then introduced CL[2].
with that CL, it will affect ActivityView that can't see the surface because
of this zero alpha value.

Since CLs[1] & [2] are mainly considered for BubbleController to implement
content visiblity with setting surface view's alpha value without
flickering, and in BubbleExpandedView#onFinishInflate has already
called setContentVisibility(false) to set ActivityView's alpha value as
zero before add this view.

So removing ActivityView's default zero alpha value would be fine, since
it may not always the case that need to set zero alpha but need to show
the black rectangle surface for user. (i.e. ActivityViewTest or Android Auto)

Also, refined ActivityView#setAlpha for some stuff to make it clear.

[1]: Ie5aed373996419b059935889b564ca91c2e3cf23
[2]: I86847de59109b2adf12a2c7c50c988c2cbcf0450

Bug: 137937105
Test: manual as below steps
      1) make & install ActivityViewTest
      2) launch "AV Main" shortcut
      3) press "Test ActivityView" -> "Launch test activity"
      4) see if launched Acitvity is visible as expected.
Test: atest ActivityViewTest, observe if ActivityView is visible during testing.

Change-Id: Iaf480912f06a6851001a42bf90e4d962c8a88a37
2019-08-06 23:22:56 +08:00
Yin-Chia Yeh
f042ad8802 Merge "Camera: fix getKeys impl for vendor keys am: 1b1f14ebff" into qt-qpr1-dev-plus-aosp
am: d1e6177672

Change-Id: If317e03171bdb9ee87556fca89d7e3f363f8cddf
2019-08-06 03:07:42 -07:00
Yin-Chia Yeh
8251b2deea Camera: fix getKeys impl for vendor keys
am: 1b1f14ebff

Change-Id: Id8fd308714ea7bd53f088a951250e74b0c24d489
2019-08-06 02:17:53 -07:00
Adrian Roos
304f75603b GestureNav: Log exclusion rect heights am: 5f2c9a14f5 am: fde134f106
am: e4b2440287

Change-Id: If3f626a85dcf93482ad580e93c1c5b49299fd78f
2019-08-05 14:43:57 -07:00
Adrian Roos
e4b2440287 GestureNav: Log exclusion rect heights am: 5f2c9a14f5
am: fde134f106

Change-Id: I6b4d05cbd7f9b42dd4e2e340b2abadc791c69f37
2019-08-05 14:30:16 -07:00
Adrian Roos
fde134f106 GestureNav: Log exclusion rect heights
am: 5f2c9a14f5

Change-Id: I6b72f4b68773a21575296601f5545746d012524e
2019-08-05 14:17:15 -07:00
Adrian Roos
5f2c9a14f5 GestureNav: Log exclusion rect heights
Logs the rejected and requested exclusion rect heights.

Test: adb shell device_config put android:window_manager key_system_gesture_exclusion_log_debounce_millis 1000
Bug: 135152789
Change-Id: Ie12640f4bf0a8b40b666e604188a0bedd85e8981
Exempt-From-Owner-Approval: DeviceConfig.java: Adding constant to WindowManager namespace.
2019-08-05 21:19:40 +02:00
Noah Zimmt
4e878506d7 Merge "Avoid calling installd where not needed" 2019-08-05 19:06:08 +00:00
Jorim Jaggi
5534e159c1 Merge "Fix overlapping remote and recents animations" into qt-r1-dev am: b248a0343f am: dd40a0c75a
am: c7b3ff1c52

Change-Id: Iaba42814773ab7333aae3fbc90d3bbd2ea8bac87
2019-08-05 12:01:12 -07:00
Jorim Jaggi
c7b3ff1c52 Merge "Fix overlapping remote and recents animations" into qt-r1-dev am: b248a0343f
am: dd40a0c75a

Change-Id: Ia9361be8e0040303ab397e718e055193409624cf
2019-08-05 11:50:14 -07:00
Jorim Jaggi
dd40a0c75a Merge "Fix overlapping remote and recents animations" into qt-r1-dev
am: b248a0343f

Change-Id: I103ff225bbf69e6945cb90430130ae233dd6cb9f
2019-08-05 11:39:05 -07:00
Noah Zimmt
b255807189 Avoid calling installd where not needed
The method StorageStatsManager#getCacheBytes is called several times
during package installation. It calls
InstalldNativeService::getUserSize via a binder call.

The runtime of getUserSize is variable; I have traces where it takes
50ms and traces where it takes 500ms.

The return value of getUserSize used to take into account freeable cache
space when determining available space on a given volume. In most cases,
it is possible to first do a pessimistic check of the space available on
the volume - forgoing the installd call - and only consider cache space
if the pessimistic check fails.

This avoids a binder call + the time spend in getUserSize for most
installs.

Bug: None
Test: atest frameworks/base/core/tests/coretests/src/android/content/pm/PackageHelperTests.java
cts/tests/tests/os/src/android/os/storage/cts/StorageManagerTest.java
Change-Id: Icaecee732ef330fee1b409d2dd76723822c25959
2019-08-05 11:25:22 -07:00
Jorim Jaggi
b248a0343f Merge "Fix overlapping remote and recents animations" into qt-r1-dev 2019-08-05 18:12:56 +00:00
TreeHugger Robot
7682e5d196 Merge "DPM: Add API for granting apps access to keys" 2019-08-05 17:48:43 +00:00
Jorim Jaggi
589c5ba0fa Fix overlapping remote and recents animations
Test: Open app and immediately swipe up while opening. Verify
Thread prioties in systrace

Test: WindowProcessControllerTests
Fixes: 137881181
Change-Id: Ic1d7403d2a648e6f1d1b6a3d55b56bf37bc57a2c
2019-08-05 17:10:18 +02:00
TreeHugger Robot
94bb876e20 Merge "Removes direct use of LocalServices.getService" 2019-08-05 14:18:45 +00:00
TreeHugger Robot
f80171ef5c Merge "Dispose InputChannel when dispose InputEventReceiver" 2019-08-05 05:28:21 +00:00
Jeff Sharkey
3a5492c398 Merge "Enable stricter SQLiteQueryBuilder options." 2019-08-04 14:23:36 +00:00
Aurimas Liutikas
74dd35ccb0 Merge "Fix broken Javadoc links in frameworks/base" am: 4a532813df am: fbcbeec03c am: 3bd2895bdd am: c79a232e42
am: f9b868681d

Change-Id: I8fc2530c0f2735d320c1b641642aa3b8dd48b1f7
2019-08-04 02:29:44 -07:00