Commit Graph

88812 Commits

Author SHA1 Message Date
Jeff Sharkey
4260098e02 Merge "Filter volumes to only those the caller can see." 2019-01-21 00:54:31 +00:00
Jeff Sharkey
3036089cfa Filter volumes to only those the caller can see.
Don't return volumes that caller can't actually use.  Also add feature
to indicate that device supports "virtual disk" feature to verify
secondary external storage behaviors.

Bug: 117932814
Test: atest MediaProviderTests
Test: atest cts/tests/tests/media/src/android/media/cts/MediaScanner*
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I66091c532ab5dac5032a82b136c590ac5a2a983a
2019-01-20 14:57:38 -07:00
Jeff Sharkey
ef033dada9 Merge "Better volume name argument checking." 2019-01-20 21:52:00 +00:00
Jeff Sharkey
8559e65694 Better volume name argument checking.
Bug: 117932814
Test: atest MediaProviderTests
Test: atest cts/tests/tests/media/src/android/media/cts/MediaScanner*
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I799d04a30e5328c1b9266357f192a3e65e24a28d
2019-01-20 11:37:03 -07:00
Jeff Sharkey
f4246a1c17 Merge "Better scanning of secondary storage volumes." 2019-01-20 17:55:05 +00:00
Jeff Sharkey
1eda2caa98 Better scanning of secondary storage volumes.
There's been a long-standing bug where secondary external storage
volumes were being scanned into a single "external" database.  We've
had the logic in MediaProvider for a long time to support individual
databases on a per-UUID basis, but that regressed at some point.

This change revives that logic, which has the benefit of greatly
speeding up media scanning of secondary storage devices, since we can
preserve those databases instead of churning the primary "external"
database whenever they're ejected and reinserted.

Future work will clean up stale databases in the recently added idle
maintenance service.

Bug: 117932814, 122060093
Test: atest MediaProviderTests
Test: atest cts/tests/tests/media/src/android/media/cts/MediaScanner*
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Ib48577a2146758acd882db0b1767e88f3a70247f
2019-01-19 17:27:16 -07:00
Eric Laurent
de2a980547 Merge "audio: Add API for BT to query offload A2DP encoding formats" 2019-01-19 22:26:25 +00:00
Jeff Sharkey
7e14e72766 Merge "Return valid path for secondary storage devices." 2019-01-19 22:23:47 +00:00
Dario Freni
4d3deb815c Merge "Fix: PackageInfo for apex has wrong info" 2019-01-19 21:42:49 +00:00
Jeff Sharkey
f81494a161 Return valid path for secondary storage devices.
Bug: 122900949
Test: manual
Change-Id: I3ce5ca49720dc1854dd5207d29f59fa85821f23e
2019-01-19 13:26:20 -07:00
Yohei Yukawa
401e3d4c84 Introduce @hide TextView#setTextOperationUser()
This CL introduces a unified way for framework developers to specify
whose components should be interacting with the given TextView.  An
important use case is the direct-reply UI notification hosted in
System UI, which always runs as user 0 no matter who is the current
user.

For instance, to let the given EditText interact with user 10's input
methods and spell checkers, you can call setTextOperationUser() as
follows.

  editText.setTextOperationUser(UserHandle.of(10));

In this way we can easily propergate the same user ID to other
components such as autofill and text classifer as necessary in the
future.

No one calls TextView#setTextOperationUser() yet hence there should be
no user-visible behavior change.

Bug: 120744418
Bug: 123043618
Test: spell checker still works
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: I6d11e4d6a84570bc2991a8552349e8b216b0d139
2019-01-19 11:49:37 -08:00
Sudheer Shanka
7461df211d Merge "Create a new MOUNT_EXTERNAL_LEGACY storage mode." 2019-01-19 18:04:40 +00:00
Nandana Dutt
e0546e6b12 Merge "Pass in calling UID and package to dumpstate" am: bc6e433ae4 am: ae97716377
am: ec3ce57698

Change-Id: I70d120ed5666322fa75646c05c12a6dfd51ed1f3
2019-01-19 06:24:23 -08:00
Nandana Dutt
ec3ce57698 Merge "Pass in calling UID and package to dumpstate" am: bc6e433ae4
am: ae97716377

Change-Id: Ie1126fb68184c7789fe969b008ee1550d4424809
2019-01-19 06:11:19 -08:00
Nandana Dutt
ae97716377 Merge "Pass in calling UID and package to dumpstate"
am: bc6e433ae4

Change-Id: I1bf6f1053d088af55d35164207e5167c806db686
2019-01-19 05:59:00 -08:00
Treehugger Robot
bc6e433ae4 Merge "Pass in calling UID and package to dumpstate" 2019-01-19 13:48:29 +00:00
TreeHugger Robot
84686f1140 Merge "Resolve all browsers even if there is a default browser." 2019-01-19 06:55:12 +00:00
TreeHugger Robot
df61ea34d8 Merge "[view compilation] Add --compile-layouts flag to pm compile" 2019-01-19 05:47:45 +00:00
TreeHugger Robot
d5bd0d0801 Merge "Change how notifyAppearedOrDisappearedForContentCaptureIfNeeded() checks if view is visible." 2019-01-19 03:53:04 +00:00
TreeHugger Robot
086e3a4056 Merge "Removed graphical properties from Content Capture ViewNode." 2019-01-19 02:57:01 +00:00
Sudheer Shanka
0b6da5362d Create a new MOUNT_EXTERNAL_LEGACY storage mode.
Apps that are already installed on the device before isolated_storage
feature is enabled will be granted MOUNT_EXTERNAL_LEGACY mode. In this
mode, /mnt/runtime/write will be mounted at /storage giving them same
level of access as in P.

A new mount directory /mnt/runtime/full is also created which will be
used for mounting at /storage for apps started with MOUNT_EXTERNAL_FULL
mode. This will allow apps with WRITE_MEDIA_STORAGE permission to
read/write anywhere on the secondary devices without needing to bypass
sdcardfs.

Bug: 121277410
Test: manual
Test: atest android.appsecurity.cts.ExternalStorageHostTest
Change-Id: I4ec73276d7c586ae4afc482580d1eb8ee03d5be1
2019-01-18 18:48:55 -08:00
Eric Holk
a1485f61e9 [view compilation] Add --compile-layouts flag to pm compile
This allows us to generate precompiled layouts for installed applications.

If the system property view.precompiled_layout_enabled is set, then
PackageMannager will also automatically generate precompiled layouts for apps at
install or upgrade time.

Bug: 111895153
Test: manual
Change-Id: If6455e1b9b0542a36882af9f3e29d0185a53393c
2019-01-18 18:14:54 -08:00
Ryan Mitchell
d906d809fb Merge "Add enforcement of overlayable targetName" 2019-01-19 02:01:23 +00:00
Nate Fischer
b3c20e6ba5 WebView: clean up onReceivedSslError docs am: 9f726cd280
am: f85e6546e6

Change-Id: I05296f1e7c4b400b1111eed312d55741cffd4617
2019-01-18 17:43:02 -08:00
TreeHugger Robot
b9b4f9c3b5 Merge "Remove Activity Recognition from the Android Code." 2019-01-19 01:26:41 +00:00
Nate Fischer
f85e6546e6 WebView: clean up onReceivedSslError docs
am: 9f726cd280

Change-Id: Id927f42978e86296710995c9d445ac7ce168e265
2019-01-18 17:22:01 -08:00
xueliang.zhong
01e3a8919b Merge "Quiet SNaN inputs in Half.toFloat()" am: a879fd8b02 am: fea7e9f20d
am: b67858ba35

Change-Id: I5edd03a8e40d32618ded5f409e72b8e29c75137b
2019-01-18 16:59:47 -08:00
Hai Zhang
e029713362 Resolve all browsers even if there is a default browser.
PackageManager.queryIntentActivities() handles browser intent
differently when there is a default browser, and only returns the
default browser. Previous code for querying all the browsers all
passed in the PackageManager.MATCH_ALL flag and filtered the result
manually, so we move that logic into RoleBehavior.

Bug: 110557011
Test: build
Change-Id: I928f13d27aca64d49f625dd1ffbd3262b42a06cd
2019-01-18 16:58:56 -08:00
TreeHugger Robot
55d0e93a15 Merge "Annotation processing for @InspectableProperty" 2019-01-19 00:40:07 +00:00
xueliang.zhong
b67858ba35 Merge "Quiet SNaN inputs in Half.toFloat()" am: a879fd8b02
am: fea7e9f20d

Change-Id: If0cdc41993d42759cd04fbf12fcb45e4ccc7acb7
2019-01-18 16:32:01 -08:00
Lucas Dupin
6d0c7aff5d Merge changes from topic "q_pulse_por"
* changes:
  New pulsing notification layout
  Light scrim on pulsing state
2019-01-19 00:28:39 +00:00
Jayachandran Chinnakkannu
a09c7737aa Merge "Cellular data stall recovery based on networkStatus" am: 44631dfc26 am: e9dc415e2b
am: 58a61cc734

Change-Id: I0196a9f1da64efd6a811139bb9d2de7e39defe11
2019-01-18 16:18:57 -08:00
TreeHugger Robot
c9c272bb60 Merge "Removed ContentCaptureSession.FLAG_USER_INPUT." 2019-01-19 00:11:44 +00:00
Winson Chiu
235ab33363 Merge "Fallback to regular XML Drawable if ColorStateList loading fails" 2019-01-19 00:00:25 +00:00
Felipe Leme
3835835ab9 Change how notifyAppearedOrDisappearedForContentCaptureIfNeeded() checks if view is visible.
It was calling isVisibleToUser(), which is expensive.

Bug: 121039624
Test: atest CtsContentCaptureServiceTestCases

Change-Id: If641a01a5a6706743caefaa5fa34114902cd2c49
2019-01-18 15:54:48 -08:00
Jayachandran Chinnakkannu
58a61cc734 Merge "Cellular data stall recovery based on networkStatus" am: 44631dfc26
am: e9dc415e2b

Change-Id: I2e381e9215a2d8f036a0de4f021573688250c142
2019-01-18 15:43:03 -08:00
Felipe Leme
a3196a781c Removed graphical properties from Content Capture ViewNode.
They can be expensive to calculate, so the cost/benefit is not worth it...

Bug: 121039624
Test: atest CtsContentCaptureServiceTestCases \
      FrameworksCoreTests:android.view.contentcapture.ViewNodeTest

Change-Id: I2950fb5916ab8fceb5c089742e99c197e3d017e9
2019-01-18 15:42:26 -08:00
xueliang.zhong
fea7e9f20d Merge "Quiet SNaN inputs in Half.toFloat()"
am: a879fd8b02

Change-Id: I9ad4e399a81121ec0e59d8aa1af4cd05866c12cb
2019-01-18 15:38:15 -08:00
Varun Shah
de77b6fee7 Merge "Clarified CrossProfileApps API and documentation." 2019-01-18 23:25:07 +00:00
Jayachandran Chinnakkannu
e9dc415e2b Merge "Cellular data stall recovery based on networkStatus"
am: 44631dfc26

Change-Id: Ibe4c78717d5b0f0a0709c5271c7974ac79cb9a6f
2019-01-18 15:19:23 -08:00
Treehugger Robot
a879fd8b02 Merge "Quiet SNaN inputs in Half.toFloat()" 2019-01-18 23:18:15 +00:00
TreeHugger Robot
20581a3578 Merge "Revert "Suppress injected launcher activity for apps that are vouched"" 2019-01-18 23:12:57 +00:00
Jiuyu Sun
2b9f09ba7e Merge "Populate cardId in resolution intent." 2019-01-18 23:10:15 +00:00
Christine Franks
88ec096b72 Merge "Move a11y color transforms to ColorDisplayService" 2019-01-18 23:08:37 +00:00
Jayachandran C
8ef41bf34f Cellular data stall recovery based on networkStatus
This CL introduces cellular data stall recovery based on
network validation result. It still re-uses the existing
recovery steps but the triggers are based on networkStatus
from NetworkMonitor when the network is bad. Each recovery
step is spaced by a configurable grace period (default 3 mins)
to avoid back to back recovery.

This feature is controlled by the following settings. If this
feature is enabled then the legacy data stall detection based
on TrafficStats will automatically be disabled.

Settings.Global.DATA_STALL_RECOVERY_ON_BAD_NETWORK
1 => Enabled (default)
0 => Disabled

Settings.Global.MIN_DURATION_BETWEEN_RECOVERY_STEPS_IN_MS
3 minutes is default value

Bug: 113916551
Test: atest FrameworksTelephonyTests:com.android.internal.telephony.dataconnection.DcTrackerTest

Change-Id: I738fc7ed08803de1114f7a3d79bf278449e94ea8
2019-01-18 22:52:16 +00:00
Perumaal Shanmugam
b1882925b5 Merge "Add content_capture and autofill experiment namespaces" 2019-01-18 22:45:09 +00:00
TreeHugger Robot
d839beae5b Merge "Make security warning on contains() more obvious." 2019-01-18 22:33:42 +00:00
Ashutosh Joshi
e24f1b095b Remove Activity Recognition from the Android Code.
Removing AR from the Android code base. We had already severed the
connection to the AR HAL in Android Oreo. This change simply removes all
unused references and uses of the stubs.

Test: Build compiles. Ensure that clients that provide AR through other
channels continue to work.

Change-Id: I79d19c0bd2b80962cdecc8ad88065911fd6311ac
2019-01-18 22:31:53 +00:00
Makoto Onuki
5d5e98271c Merge "Fix job concurrency calculation" 2019-01-18 22:18:23 +00:00
TreeHugger Robot
b128866274 Merge "Prepare setresuid()/setresgid() seccomp filter in AppZygote." 2019-01-18 22:10:09 +00:00