Commit Graph

101894 Commits

Author SHA1 Message Date
Ryan Mitchell
9f6f9ca935 Fix RelativeLayout checking of resource ids greater than 0x80
For splits with package id 0x80 and higher, the resource ids are
negative. RelativeLayout builds a dependency graph to indicate in which
order the layout height and width need to be processed. Since the ids
are less than 0, RelativeLayout is incorrectly assuming the layouts are
not order dependent.

Bug: 72869300
Test: manual
Change-Id: I98f58f11733c2976fc5c1b4152949cf80660f657
2019-04-11 16:55:37 -07:00
TreeHugger Robot
ac3d917aa3 Merge "Remove remaining deepCopy() usages in TextClassifier" into qt-dev 2019-04-11 15:54:52 +00:00
Matt Pietal
43e9ec2354 Merge "Sharesheet - 4->8 direct share expansion fix" into qt-dev 2019-04-11 15:30:34 +00:00
Ricky Wai
bbde1150c5 Merge "Do not allow moveToFront() and moveTaskToFront() when app is in background" into qt-dev 2019-04-11 13:33:04 +00:00
Alison Cichowlas
bf72ee109b Merge "Merge caller targets and ranked targets." into qt-dev 2019-04-11 12:24:22 +00:00
TreeHugger Robot
b73580d2fa Merge "Revert "Remove overlay logic from package manager and parser"" into qt-dev 2019-04-11 04:12:23 +00:00
TreeHugger Robot
10093916cc Merge changes from topic "bt-metadata-api-v2-qt-dev" into qt-dev
* changes:
  Bluetooth metadata API changes in SettingsLib
  Refine Bluetooth Metadata API
2019-04-11 03:37:58 +00:00
TreeHugger Robot
a81892761b Merge "Flip default value of headless user 0 flag." into qt-dev 2019-04-11 01:10:29 +00:00
Alison Cichowlas
d0a075ba0d Merge caller targets and ranked targets.
Bug: 126566208
Test: Manual; test apk and twitter
Change-Id: Ib264d4a646cafe160b9d3115d42292d940dc1918
2019-04-10 20:52:50 -04:00
Lucas Dupin
a4d6b7801c Merge "Remove color extraction from scrims" into qt-dev 2019-04-11 00:19:03 +00:00
Nikita Ioffe
7d7583e421 Merge "Improve documentation for getActiveStagedSession API" into qt-dev 2019-04-10 23:04:15 +00:00
Jack He
61034792b4 Revert "Remove overlay logic from package manager and parser"
This reverts commit c6778e5435.

Reason for revert: This CL causes Bluetooth fail to start

Bluetooth Java services cannot turn on.

Change-Id: I4a9649d61de7781d3a00074da780c3a5a1dfbd56
Fixes: 130260055
Test: compile, BluetoothInstrumentationTests
2019-04-10 23:01:45 +00:00
Ying Zheng
4214a0933d Flip default value of headless user 0 flag.
Since this is to replace an existing car property which default to true.

Bug: 130310171
Test: build
Change-Id: Ie4f6389b4514727cf88c72e931e9fff4bf5f1484
2019-04-10 15:32:29 -07:00
TreeHugger Robot
e8c5311cb0 Merge "Rename capabilities to adjustments" into qt-dev 2019-04-10 22:22:25 +00:00
Sean Stout
783bdb0dec Merge "Add android.settings.VIEW_ADVANCED_POWER_USAGE_DETAIL" into qt-dev 2019-04-10 22:02:40 +00:00
TreeHugger Robot
b5258351ea Merge "System Bars: Ensure contrast when app requested transparent bar" into qt-dev 2019-04-10 21:58:42 +00:00
Cody Northrop
3432b6df37 Merge "GPU Debug Layers: Allow multiple layer apps" into qt-dev 2019-04-10 21:38:31 +00:00
TreeHugger Robot
a00cee7fed Merge "Nullability for ViewTreeObserver gesture exclusion" into qt-dev 2019-04-10 21:32:33 +00:00
Michael Wachenschwanz
9f7dba6155 Merge "Remove Test Api annotation from ProtoInputStream" into qt-dev 2019-04-10 21:30:49 +00:00
TreeHugger Robot
0444bcc6d4 Merge "Add @CurrentTimeMillisLong to new API method" into qt-dev 2019-04-10 21:29:53 +00:00
Winson Chiu
6706c22b52 Merge "Close ApkAssets in PackageParser" into qt-dev 2019-04-10 21:28:43 +00:00
Nicolas Geoffray
5e05627687 Merge "Disable USAP when running in jitzygote mode." into qt-dev 2019-04-10 21:23:08 +00:00
Tony Mak
748281037b Remove remaining deepCopy() usages in TextClassifier
Did a grep to ensure no more deepCopy() in textclassifier folder.

BUG: 129901152

Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts/

Change-Id: Ia1e6f3ad1664a0b57495d94d2cf5aa8945965862
2019-04-10 21:15:10 +00:00
Lucas Dupin
2bd3af67a0 Remove color extraction from scrims
Fixes: 129295950
Test: atest SysuiColorExtractorTests
Test: atest ScrimControllerTest
Test: atest ScrimViewTest
Test: visual
Change-Id: Ie45fd3f2e7b022236f0dda22fa1c854c0eff19ea
2019-04-10 13:30:43 -07:00
Jeff Sharkey
668f138c3a Merge "People might want GROUP_CONCAT." into qt-dev 2019-04-10 19:05:19 +00:00
Winson
7a3d82a581 Close ApkAssets in PackageParser
Immediately closes ApkAssets to free up some memory during package
parsing/install process.

This is used instead of implementing AutoCloseable because of
complexities with AssetManager and tracking assets opened
outside of the ApkAssets.java class.

Explained more in b/72056911.

Test: manually booted emulator; closing ApkAssets is used at
boot in PackageParser#parseApkLiteInner
Test: adb install test.apk && sleep 5 && adb uninstall test.package
&& sleep 1 && (adb shell lsof | grep "test.package") prints no
system_server references

Bug: 130182148

Change-Id: Ia471d7065e65bd39b535309de6c6da7ec35bdf12
2019-04-10 19:00:35 +00:00
TreeHugger Robot
592192f813 Merge "Sharesheet - navbar color integration" into qt-dev 2019-04-10 18:37:26 +00:00
Ned Burns
001277f606 Add @CurrentTimeMillisLong to new API method
Addressing API council feedback

Test: None
Bug: 123223649
Change-Id: I797e293be1fbb552c54d010a379d8e87a201a57c
2019-04-10 14:33:02 -04:00
Matt Pietal
a9c8e5053a Sharesheet - 4->8 direct share expansion fix
The 4->8 expansion area can become stuck when the user is scrolling as
the list is rebuilt, say from a package changed event. Be more
specific about when we choose to lock this area.

Bug: 129979914
Test: Constantly scroll while sharesheet is loading
Change-Id: I969d628e1e420fd12133cef413dadf4f14ca75d7
2019-04-10 14:27:35 -04:00
TreeHugger Robot
3fa2657fd6 Merge "Hard-disable precompiled layouts" into qt-dev 2019-04-10 18:16:41 +00:00
Adam Powell
aa78d796f0 Nullability for ViewTreeObserver gesture exclusion
Bug: 128704597
Test: n/a
Change-Id: Ia89458cf967ab4e01738ba1658e3460f27ae1830
2019-04-10 18:09:44 +00:00
Julia Reynolds
088c448e79 Rename capabilities to adjustments
To match existing API

Test: make, cts
Fixes: 130224929
Change-Id: I881ce11b583b389ee43bad6b45f837c85f949aa5
2019-04-10 14:05:39 -04:00
Mady Mellor
b78bc92ed3 Merge "Make FLAG_BUBBLE public; update some documentation" into qt-dev 2019-04-10 17:33:20 +00:00
Jeff Sharkey
457296a084 Merge "Split VOLUME_EXTERNAL and VOLUME_PRIMARY." into qt-dev 2019-04-10 17:31:13 +00:00
Cody Northrop
f959f6b5aa GPU Debug Layers: Allow multiple layer apps
This allows applications to specify both a GLES layer app and a
Vulkan layer app, so both APIs can be debugged at the same time.

To specify multiple debug layer apps, colon separate them just
like the layers:

  adb shell settings put global gpu_debug_layer_app app1:app2:appN

Bug: 110883880
Test: atest CtsGpuToolsHostTestCases
Change-Id: I5f721b7d9de59577adb6cc03e909ff99ca79d75e
2019-04-10 11:02:28 -06:00
Jeff Sharkey
0ab6feb7c8 People might want GROUP_CONCAT.
Bug: 129890881
Test: none
Change-Id: I24b6cc3c65e7a25b34c57f17584ba75c40be38ab
2019-04-10 10:27:19 -06:00
Nikita Ioffe
05305027e1 Improve documentation for getActiveStagedSession API
Addressing API review in b/130224237.

Test: n/a
Bug: 130224237
Fixes: 130224237
Change-Id: Ic543412acdadfd08a0929ebff4b8e36567481e48
2019-04-10 17:26:35 +01:00
Ricky Wai
aca8a770cd Do not allow moveToFront() and moveTaskToFront() when app is in background
Bug: 129063631
Test: Unable to start activity / move task in background
Change-Id: Icb5ebad3567b911719341f221483df1a1512109b
2019-04-10 17:24:30 +01:00
Felipe Leme
bef3d76b16 Merge "Clarified ContentCaptureCondition constructor." into qt-dev 2019-04-10 16:19:56 +00:00
Adrian Roos
4c864595bd System Bars: Ensure contrast when app requested transparent bar
Bug: 129533768
Test: atest EnsureBarContrastTest
Change-Id: Ib8f4045b9e8e7bf65c13437133f114d91d0cb050
2019-04-10 18:16:25 +02:00
Eric Holk
49e7040b92 Hard-disable precompiled layouts
The feature is not enabled for Q, so although the cost of checking if it's
enabled is low, there's no reason to pay it at all.

Bug: 111895153
Change-Id: I0d20f47d2c8ddc15031257ce87b40a0d23a617ff
2019-04-10 09:16:05 -07:00
TreeHugger Robot
9214de571f Merge "Do not deep copy bundle in getExtras()" into qt-dev 2019-04-10 16:00:56 +00:00
Jeff Sharkey
586d3c013a Split VOLUME_EXTERNAL and VOLUME_PRIMARY.
To let developers focus on specific concrete storage devices in Q,
we need a volume name that can be used to point at the primary
external storage device.  We had been using VOLUME_EXTERNAL for that,
but we've heard that certain apps are making deep assumptions that
media item IDs are globally unique across all volumes.

Thus these changes merge all volumes back into a single underlying
database, and VOLUME_EXTERNAL works with all of the currently
attached volumes.  The new VOLUME_PRIMARY name can be used to focus
on the primary storage device when desired.

When developers try inserting items directly into VOLUME_EXTERNAL,
we gracefully assume they meant VOLUME_PRIMARY.

Bug: 128451765
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I682ff6e9aaab4f5315a46c9825313a438548c7e6
2019-04-10 09:35:14 -06:00
Jeff Sharkey
191114330a Merge "Refactor s/TypeInfo/MimeTypeInfo/ per feedback." into qt-dev 2019-04-10 15:09:33 +00:00
Nicolas Geoffray
fd00e94dd1 Disable USAP when running in jitzygote mode.
The feature needs to be tweaked for it, and currently
regresses app startup.

Test: build jitzygote config, check there is no usap processes
Bug: 119800099
Change-Id: Ic33c539636f206da72d6d0cc51219e8d2dfe23dc
2019-04-10 14:58:17 +01:00
Chiachang Wang
60cc2ab6e7 Merge "Enforce NETWORK_STACK permission for calling NSS#forceUpdateIfaces" into qt-dev 2019-04-10 10:55:06 +00:00
Kevin Chyn
76d5454a86 Merge "Handle cancellation properly for setDeviceCredentialAllowed(true)" into qt-dev 2019-04-10 08:34:34 +00:00
TreeHugger Robot
4777281cf4 Merge "Remove overlay logic from package manager and parser" into qt-dev 2019-04-10 07:59:42 +00:00
Chiachang Wang
bd92d1539f Enforce NETWORK_STACK permission for calling NSS#forceUpdateIfaces
ConnectivityManager and its usages are removed from
NetworkStatsService. After that, forceUpdateIfaces requires
information that only ConnectivityService has, hence
restricting the calling permission to NETWORK_STACK or
MAINLINE_NETWORK_STACK permission. The required permission
will be changed from READ_NETWORK_USAGE_HISTORY to
NETWORK_STACK or MAINLINE_NETWORK_STACK. This change would make
it impossible to call outside the system.

Bug: 126830974
Test: atest FrameworksNetTests
Merged-In: I1b26dc64eaab2151e6885fd01cc5e8d4e18c4e60
Change-Id: I4ea421e4126a45f65d25fe0bec74243a3b20aeab
(cherry picked from commit 6b895dea25)
2019-04-10 06:36:55 +00:00
Jeff Sharkey
0185ea0802 Refactor s/TypeInfo/MimeTypeInfo/ per feedback.
Bug: 128903949
Test: atest android.content.cts.ContentResolverTest
Change-Id: Idb9e63a68dc9ffe0c35ad3e6bff55aaa10320e81
2019-04-10 00:04:27 -06:00