Commit Graph

411873 Commits

Author SHA1 Message Date
Jackal Guo
e95df8aecb Don't cancel injected event when mouse event arrives
Currently, MotionEventInjector would cancel any injected gesture when
any MotionEvent arrives. For user using an external device to control
the pointer movement, it's almost impossible to perform the gestures.
Any slightly unintended movement results in the cancellation of the
gesture.

However, if MotionEventInjector keeps sending mouse movement events
when gesture is performing, dispatch logic would be confused and it
causes the gesture malfunction. Therefore, ignore movement events
from mouse when there is an ongoing gesture since click event from
mouse should be intended.

Bug: 116459737
Test: add a new test case in MotionEventInjectorTest
Test: a11y CTS & unit tests
Change-Id: I2c2be8cf565ba15d1a9cd6bc8c45b695c1309b56
2019-04-08 09:24:43 +08:00
Jeff Sharkey
4d4c558f6a Merge "DATA is deprecated, but some apps really want it." 2019-03-31 22:59:45 +00:00
Jeff Sharkey
f43cf00e30 Merge "Remove support for file:// items." 2019-03-31 22:59:01 +00:00
TreeHugger Robot
2118cc3042 Merge "Mute haptic channels by default." 2019-03-31 22:52:58 +00:00
Jeff Sharkey
f5e3d6a735 DATA is deprecated, but some apps really want it.
The DATA column points at raw filesystem locations, which aren't
always valid when an app is placed into a sandbox, so apps need to
move away from using them.

We had hoped to block this access based on an app targeting Q, but
we've received feedback that it's too painful for apps to transition,
so we'll continue returning paths that can be translated.

Also reduce CPU usage by skipping permission checks when not
processing an IPC, such as when called by ModernMediaScanner.

Bug: 128452447, 125725916
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ibd41d8ddedfaf9807333560b2d8e64e42ea7a1ba
2019-03-31 12:03:50 -06:00
Jeff Sharkey
57f6dbc578 Remove support for file:// items.
We've messaged since the N release that file:// Uris are going away,
and we've been crashing those apps via StrictMode for many years.

The broader storage changes in Q mean it's finally a good time to say
we only handle content:// items.

Bug: 123212933
Test: none
Change-Id: I69a791468c4bcf45b0022cf52264e78f94bfdeae
2019-03-31 10:40:22 -06:00
Jeff Sharkey
a1189dcf68 Merge changes from topic "permz"
* changes:
  Flesh out remaining CR.wrap() methods.
  Apps using storage must have runtime permission.
2019-03-31 16:36:05 +00:00
TreeHugger Robot
5595790416 Merge "Grant com.android.shell access to DynamicSystem" 2019-03-31 15:12:39 +00:00
TreeHugger Robot
439c06ba28 Merge changes from topics "apply_fast_pair_icon", "bt_color_icon"
* changes:
  According Bluetooth device type to get icon
  Add method to get rainbow bt icon
  Separate library from SettingsLib
2019-03-31 07:03:03 +00:00
TreeHugger Robot
413b523b90 Merge "Set the version code to 0200000000" 2019-03-30 07:44:28 +00:00
TreeHugger Robot
ec01b030a5 Merge "Log notification assistant importance whenever available." 2019-03-30 06:09:28 +00:00
TreeHugger Robot
5435f523c0 Merge "Change go/q-bg-block to g.co/dev/bgblock" 2019-03-30 06:07:16 +00:00
TreeHugger Robot
4f5b6de4d2 Merge "Moving Notifications into the status bar panel such that the Z layering works as expected" 2019-03-30 05:43:32 +00:00
TreeHugger Robot
e5e258148d Merge "Adding automatic heap dumping for system server." 2019-03-30 02:35:22 +00:00
TreeHugger Robot
95f28cf1f7 Merge "Increase ScanResult cache eviction timeout for failed/aborted scans" 2019-03-30 02:19:52 +00:00
Jeff Sharkey
5693cfd1c2 Flesh out remaining CR.wrap() methods.
Along with tests to verify that they're all delegated as expected.

Bug: 129564663
Test: atest cts/tests/tests/content/src/android/content/cts/ContentResolverTest.java
Test: atest cts/tests/tests/content/src/android/content/cts/ContentResolverWrapTest.java
Change-Id: I07dcabb78174ed2bb63061394bf737df71f49bb0
2019-03-29 20:09:41 -06:00
Jeff Sharkey
448c1ea84d Apps using storage must have runtime permission.
A major goal of the Q release is to promote user transparency around
permission usage, and to also give user controls over those
permissions.  To further this goal, all apps requesting the
internal WRITE_MEDIA_STORAGE permission must also request (and be
granted) the "Storage" runtime permission in order to gain the
associated access.

If the user revokes the "Storage" runtime permission, then the app
must lose all access granted to it via WRITE_MEDIA_STORAGE.

Bug: 129144016
Test: atest android.permission.cts.ProviderPermissionTest#testWriteMediaStorage
Change-Id: I7e747de0107cf9364a0ff2401686906340d31995
2019-03-29 19:46:20 -06:00
TreeHugger Robot
5e4bd68c95 Merge "Metrics constants for bubble confirmation" 2019-03-30 01:31:28 +00:00
Android Build Merger (Role)
32c15e69c5 Merge "Merge "Revert "Change Values for Opportunistic Entry & Exit Thresholds"" am: 92e99a6ca9 am: c6c093e778 am: 6c7d65384a" 2019-03-30 01:24:01 +00:00
Amy Zhang
5bf6f81361 Merge "Make mTvSystemAudioModeSupport originally null and fix related logic" 2019-03-30 01:23:42 +00:00
Sooraj Sasindran
a783041e08 Merge "Revert "Change Values for Opportunistic Entry & Exit Thresholds"" am: 92e99a6ca9 am: c6c093e778
am: 6c7d65384a

Change-Id: Iad7e00fb64835eb14061eac0d90c2d4d96a56fac
2019-03-29 18:23:28 -07:00
TreeHugger Robot
d727a13870 Merge "Remove some unused ongoing usage dialog artifacts." 2019-03-30 01:22:28 +00:00
Sooraj Sasindran
6c7d65384a Merge "Revert "Change Values for Opportunistic Entry & Exit Thresholds"" am: 92e99a6ca9
am: c6c093e778

Change-Id: I8e5ab63be21b97077ecd263f12581b120e3f85e2
2019-03-29 18:14:27 -07:00
Sooraj Sasindran
c6c093e778 Merge "Revert "Change Values for Opportunistic Entry & Exit Thresholds""
am: 92e99a6ca9

Change-Id: I7ce860cdca34cf4ff421384fe3071b9f13dc427b
2019-03-29 18:06:00 -07:00
Treehugger Robot
92e99a6ca9 Merge "Revert "Change Values for Opportunistic Entry & Exit Thresholds"" 2019-03-30 00:53:23 +00:00
Colin Cross
31bfddf583 Merge "Convert frameworks/base/cmds/media and bmgr to Android.bp" 2019-03-30 00:45:05 +00:00
TreeHugger Robot
4cb02be4c8 Merge "Fix NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS handling" 2019-03-30 00:31:22 +00:00
Brad Ebinger
440d168834 Merge "Do not show SMS SIM pick UI for Cell Broadcast Config change" am: 4ae4e50def am: f15dabde00
am: 511f86aa55

Change-Id: Id46383f86fe31460d8fde22e5e572e016e065fb7
2019-03-29 17:19:04 -07:00
TreeHugger Robot
7ac99e0abe Merge "Fix volume dialog ringer icon size." 2019-03-30 00:11:34 +00:00
Jeff Sharkey
1801b4be8b Merge "More apps making assumptions about MediaStore." 2019-03-30 00:10:18 +00:00
Sooraj Sasindran
6633c57fa0 Revert "Change Values for Opportunistic Entry & Exit Thresholds"
This reverts commit f0c8f19325.

Reason for revert: From further test, we see sharp decline in data throughput

Change-Id: I0fb031a8adf15d3a0149651bcc51ee1d7318a42e
2019-03-30 00:07:33 +00:00
Oscar Shu
80dde957d2 Merge "new WifiConfiguration @hide API to get SSID + SecurityType" 2019-03-30 00:00:59 +00:00
Brad Ebinger
511f86aa55 Merge "Do not show SMS SIM pick UI for Cell Broadcast Config change" am: 4ae4e50def
am: f15dabde00

Change-Id: I13573f02a8b14fe695222cced5e8fbfa493ed733
2019-03-29 16:58:32 -07:00
TreeHugger Robot
5027fb23aa Merge "Fade display in when waking up" 2019-03-29 23:52:36 +00:00
Winson Chiu
fbe87233d5 Merge changes from topic "code-paths-and-resources-caching-fix"
* changes:
  Revert ContextImpl LoadedApk packageInfo caching workaround
  Fix AssetManager2 isUpToDate check
  Diff resource dirs when checking LoadedApk packageInfo cache in ActivityThread
  Diff overlays between PackageManagerService and OverlayManagerService
  Propagate base code path and split dir changes to Resources objects
2019-03-29 23:50:02 +00:00
TreeHugger Robot
de11a5ae75 Merge "Update strings for face auth" 2019-03-29 23:37:56 +00:00
Jeff Sharkey
ff9c704536 Merge "Support optional use of aggregation functions." 2019-03-29 23:35:12 +00:00
TreeHugger Robot
cb91b276f3 Merge "Making Battery Saver policy setting more defensive." 2019-03-29 23:30:16 +00:00
Android Build Merger (Role)
e17af32fe9 Merge changes from topic "am-9997b803e8644e99a7015357856dcda0"
* changes:
  [automerger skipped] Merge changes from topics "128455935", "123661746" am: dc4cb81c83 am: 1c906d426d am: 2e0ea1ab5e -s ours am skip reason: change_id I41ae6752756d998739fd7635bcc7765f255806d7 with SHA1 7a7e06d968 is in history
  [automerger skipped] Remove SubscriptionManager#setMetered API. am: 9b932fa1a4 am: 8231d3b231 am: 37c9ced0e6 -s ours am skip reason: change_id Ia6772dee1bd566e0be6b06455d92c923d2c01b12 with SHA1 fd838e9585 is in history
2019-03-29 23:27:54 +00:00
Xiangyu/Malcolm Chen
5224d65c99 [automerger skipped] Merge changes from topics "128455935", "123661746" am: dc4cb81c83 am: 1c906d426d
am: 2e0ea1ab5e -s ours
am skip reason: change_id I41ae6752756d998739fd7635bcc7765f255806d7 with SHA1 7a7e06d968 is in history

Change-Id: I84a556a7fc5fc3ebfa6214191d541768212d31f7
2019-03-29 16:25:51 -07:00
Kweku Adams
fa8256386e Adding automatic heap dumping for system server.
This adds a request to ActivityManager to track the system server's pss heap
and make sure it doesn't go above a predefined limit. If it does, the dump is
generated and a notification is posted.

Bug: 77490269
Test: flash device and test with 100MB and 150MB limits
Change-Id: Ie886cc36860e8557fbd037b3bfd4975d12806a4b
2019-03-29 16:25:06 -07:00
Brad Ebinger
f15dabde00 Merge "Do not show SMS SIM pick UI for Cell Broadcast Config change"
am: 4ae4e50def

Change-Id: Iefa6fdcfaa5e3efbfebcf403d284acf569d45ab2
2019-03-29 16:23:24 -07:00
TreeHugger Robot
78c9ef7e75 Merge "Move all UI thread callbacks off ui thread to mitigate watchdog kills" 2019-03-29 23:20:04 +00:00
Malcolm Chen
d8e5e233e8 [automerger skipped] Remove SubscriptionManager#setMetered API. am: 9b932fa1a4 am: 8231d3b231
am: 37c9ced0e6 -s ours
am skip reason: change_id Ia6772dee1bd566e0be6b06455d92c923d2c01b12 with SHA1 fd838e9585 is in history

Change-Id: I95a2131c0f43305a9f6f845ac1997e525ec50efb
2019-03-29 16:18:39 -07:00
George Lu
6abfbb9e69 Merge "Fix for b/126739800: Enforce aggressive open policy on TunerSessions." 2019-03-29 23:12:30 +00:00
TreeHugger Robot
cbc7969813 Merge "Add attr documentation for a couple accessibility attributes" 2019-03-29 22:59:34 +00:00
Xiangyu/Malcolm Chen
2e0ea1ab5e Merge changes from topics "128455935", "123661746" am: dc4cb81c83
am: 1c906d426d

Change-Id: I745f66fc63d03e2ccf03b47daae56f219252d87b
2019-03-29 15:57:11 -07:00
TreeHugger Robot
1dc1da2dce Merge "Add missing trace points" 2019-03-29 22:55:14 +00:00
Treehugger Robot
4ae4e50def Merge "Do not show SMS SIM pick UI for Cell Broadcast Config change" 2019-03-29 22:52:00 +00:00
Malcolm Chen
37c9ced0e6 Remove SubscriptionManager#setMetered API. am: 9b932fa1a4
am: 8231d3b231

Change-Id: Ic00503fca6ef09ac2cda1cf0388d199d2190c1f3
2019-03-29 15:45:36 -07:00