Commit Graph

101427 Commits

Author SHA1 Message Date
Bernardo Rufino
2f167d3823 Don't block app-rendered text toast on apps with targetSdk < 30
We've decided to gate the text toast move on targetSdk due to an app
crash (b/148438364) but decided not to gate the background custom toast
block (in NMS) on targetSdk temporarily to gather dogfood and DP
feedback. This meant that app-rendered text toasts (which are only
possible for apps with targetSdk < 30) were being blocked in NMS since
they were being considered custom toasts.

This brings back the boolean inside Toast class that differentiates
between custom and text toasts for apps with targetSdk < 30, since both
are app-rendered in this case. This code won't be present on final
version and is temporary to gather feedback on dogfood and DP, since
almost no app currently targets SDK 30+. We'll gate both changes (the
system UI move and the bg custom toast block) on targetSdk later on.

Bug: 148761979
Bug: 148794147
Bug: 144754526
Test: Verify that, while on the background:
      App with       | Custom toast | Text toast
      targetSdk < 30 |      Blocked |    Allowed
      targetSdk 30+  |      Blocked |    Allowed
Test: atest android.widget.cts.ToastTest android.widget.cts29.ToastTest
            LegacyToastTest

Change-Id: Id529028bc463034cd2f64a6f2f97e71bc6ea7c36
2020-02-06 10:11:34 +00:00
Hung-ying Tyan
2f6b69c5e7 Merge "Resolve media directories to the real paths" 2020-02-06 09:32:21 +00:00
Automerger Merge Worker
3e04f5af27 Merge "Avoid a @Nullable Boolean" am: 81a42af40d am: fd9c242128 am: 0db1f949da
Change-Id: Iae09c0c6e0d0b8cc9018b811c658d7d73e8a729b
2020-02-06 09:24:58 +00:00
TreeHugger Robot
99e648eafe Merge "Add document for ALLOWED_NETWORK_TYPES" 2020-02-06 09:08:13 +00:00
Automerger Merge Worker
0db1f949da Merge "Avoid a @Nullable Boolean" am: 81a42af40d am: fd9c242128
Change-Id: Id445c7151b8828df42e362eb2391357a18d06dee
2020-02-06 09:05:41 +00:00
Automerger Merge Worker
fd9c242128 Merge "Avoid a @Nullable Boolean" am: 81a42af40d
Change-Id: I5cf10a143bba4351efa2ea22fc5ccddb732f3044
2020-02-06 08:52:00 +00:00
Neil Fuller
81a42af40d Merge "Avoid a @Nullable Boolean" 2020-02-06 08:43:56 +00:00
Automerger Merge Worker
f01ecddd8c Merge "BluetoothAdapter#connectAllEnabledProfiles and BluetoothAdapter#disconnectAllEnabledProfiles updated to require BLUETOOTH_PRIVILEGED permission and update documentation to indicate connection and disconnection is asynchronous" am: 750ab04052 am: 1f65bc19d4 am: 08730cb3b2
Change-Id: I5f4c5445841de8ebb61a5197156e78b512068659
2020-02-06 05:19:47 +00:00
TreeHugger Robot
9ade0418a6 Merge "Add @Deprecated tag to Toast.getView()" 2020-02-06 05:08:53 +00:00
Automerger Merge Worker
08730cb3b2 Merge "BluetoothAdapter#connectAllEnabledProfiles and BluetoothAdapter#disconnectAllEnabledProfiles updated to require BLUETOOTH_PRIVILEGED permission and update documentation to indicate connection and disconnection is asynchronous" am: 750ab04052 am: 1f65bc19d4
Change-Id: Ie5d4e5b0e38d4d394d94811cebcf720ba17bfb5b
2020-02-06 05:04:43 +00:00
Shu Chen
b2ebfecce5 Merge "Use the line height for the magnifier source height." 2020-02-06 04:55:09 +00:00
Automerger Merge Worker
1f65bc19d4 Merge "BluetoothAdapter#connectAllEnabledProfiles and BluetoothAdapter#disconnectAllEnabledProfiles updated to require BLUETOOTH_PRIVILEGED permission and update documentation to indicate connection and disconnection is asynchronous" am: 750ab04052
Change-Id: Ie1a3555e3ca5d6a137142d3693850d72184cd3b6
2020-02-06 04:46:01 +00:00
TreeHugger Robot
6fa22924aa Merge "IME: Dispatch onProgress directly during app-driven onReady" 2020-02-06 03:32:36 +00:00
TreeHugger Robot
4e9d6a1148 Merge "Move StatsLog.java to fw-statsd.jar" 2020-02-06 03:24:53 +00:00
Mehdi Alizadeh
7a2b81b7d3 Merge "Adds locus Id to ShortcutQuery to find shortcuts based on LocusId" 2020-02-06 02:50:38 +00:00
Mehdi Alizadeh
03127b010f Merge "Adds LauncherApps#ShortcutChangeCallback" 2020-02-06 02:49:55 +00:00
Yunfan Chen
6ced1bff86 Merge "Do not write recycled icon to TaskDescription parcel" 2020-02-06 02:46:45 +00:00
calvinpan
9c518c60f2 Add document for ALLOWED_NETWORK_TYPES
Add document that ALLOWED_NETWORK_TYPES takes a long type in
Telephony.SimInfo.

Bug: 148853369
Test: Build pass
Change-Id: Id8049f66f4b5409ca2e945f39d679d4f59014ec8
2020-02-06 02:34:26 +00:00
TreeHugger Robot
d51f8c5639 Merge "Move compat behavior in #onPipRequested to ActivityThread" 2020-02-06 02:00:57 +00:00
Adrian Roos
bbf42404b7 IME: Dispatch onProgress directly during app-driven onReady
Fixes and issue where the initial frame of an app-driven transition would flicker
because onProgress would only be called after the first frame had been rendered.

Bug: 111084606
Test: atest WmTests
Change-Id: I312ba27d95aaeb69c94bbdba39ee423ed38ffdac
2020-02-05 17:18:39 -08:00
Automerger Merge Worker
82c9b74407 Merge "Fix serialization issue of ExternalVibration" into qt-dev am: 02824fc2a9 am: 74c9ad17c2
Change-Id: I12075c1d870a032990cfc0c78911a2dd5abc6170
2020-02-06 00:43:36 +00:00
Rahul Sabnis
966cef37c2 BluetoothAdapter#connectAllEnabledProfiles and
BluetoothAdapter#disconnectAllEnabledProfiles updated to require
BLUETOOTH_PRIVILEGED permission and update documentation to indicate
connection and disconnection is asynchronous

Bug: 147321746
Test: Manual
Change-Id: I961f02a539a247b1397ce4f478b9dc804d9973ab
2020-02-05 16:37:18 -08:00
Automerger Merge Worker
74c9ad17c2 Merge "Fix serialization issue of ExternalVibration" into qt-dev am: 02824fc2a9
Change-Id: I196882cf82416b3d4e84c487bd94b925f719dc1d
2020-02-06 00:25:37 +00:00
Chris Ye
02824fc2a9 Merge "Fix serialization issue of ExternalVibration" into qt-dev 2020-02-06 00:12:49 +00:00
Tej Singh
e86dab7a6a Move StatsLog.java to fw-statsd.jar
Test: atest GtsStatsdHostTestCases
Bug: 146578693
Change-Id: I7244c6099d16c5c7da14060a1a5fa0c866199754
2020-02-05 15:02:49 -08:00
TreeHugger Robot
808fd231da Merge "remove unused methods" 2020-02-05 22:44:19 +00:00
Mehdi Alizadeh
ae808ff765 Adds locus Id to ShortcutQuery to find shortcuts based on LocusId
Bug: 148085173
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10
Test: atest DataManagerTest

Change-Id: Ie789582a43db6d53130f4a0e5bff646a3c08c71e
2020-02-05 13:53:47 -08:00
Mehdi Alizadeh
9f68019066 Adds LauncherApps#ShortcutChangeCallback
This CL only defines the APIs and the aidl layer. LauncherAppsService
changes will be added in a separate CL.

Bug: 148085769
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10
Change-Id: I9590cd7e2ad2b0336280f23a2766e242158ceb4a
2020-02-05 13:53:44 -08:00
Yinglei Wang
04c84989d3 Merge "Fix TYPE_VIEW_SCROLLED event in AsListView and ListView" 2020-02-05 21:11:56 +00:00
Eugene Susla
695cfc2057 Merge "Introduce permission flag for whitelisting permission from auto-revoke" 2020-02-05 21:10:47 +00:00
Bernardo Rufino
54ec64b8f9 Add @Deprecated tag to Toast.getView()
For some reason I had added @deprecated inside javadocs but forgot to
add @Deprecated to the method on ag/10117117. Repo-hooks only
warned me now that touched that method for something unrelated.
Curiously even api/current.txt in that CL has the method marked as
@Deprecated.

Bug: 128611929
Bug: 144754526
Test: Builds
Change-Id: I8e4a58ae5ba2204aaced6d7a83746b17573a8c97
2020-02-05 20:30:01 +00:00
Automerger Merge Worker
ae75006891 Merge "Implement INetworkMonitorCallbacks#notifyNetworkTestedWithExtras." am: 113ea83450 am: fbacb0ed11
Change-Id: I3b32a91106646e98cf52b4ca48eeb4ebacd164db
2020-02-05 20:23:52 +00:00
Automerger Merge Worker
fbacb0ed11 Merge "Implement INetworkMonitorCallbacks#notifyNetworkTestedWithExtras." am: 113ea83450
Change-Id: I39b74228c6c2a48ace7ad36dba995fa6f91bfbb5
2020-02-05 20:09:32 +00:00
Cody Kesting
113ea83450 Merge "Implement INetworkMonitorCallbacks#notifyNetworkTestedWithExtras." 2020-02-05 19:55:05 +00:00
Automerger Merge Worker
a74cbceda1 Merge changes from topics "cbs_area_info", "subscription_id" am: 361cae3630 am: 3f01e13713
Change-Id: I90ead187a39bf79e66c93184066bd467ef291d71
2020-02-05 19:27:35 +00:00
Automerger Merge Worker
a18c5c0266 Renamed SUB_ID to SUBSCRIPTION_ID am: 087568092a am: 8a6bd20bdb
Change-Id: I5ad401812d99944597f54b5d9647e7976eb5aa8c
2020-02-05 19:27:32 +00:00
Automerger Merge Worker
3f01e13713 Merge changes from topics "cbs_area_info", "subscription_id" am: 361cae3630
Change-Id: I95de805e4f8decbba7ab5f18278d97a13d064eb9
2020-02-05 19:19:33 +00:00
Automerger Merge Worker
8a6bd20bdb Renamed SUB_ID to SUBSCRIPTION_ID am: 087568092a
Change-Id: I3c5f995f742ea861140e22ab43ff40d89ab462ad
2020-02-05 19:19:27 +00:00
TreeHugger Robot
d27eec1829 Merge "Update StatsLogProcessor to handle BinaryPushStateChanged" 2020-02-05 19:15:29 +00:00
Jack Yu
361cae3630 Merge changes from topics "cbs_area_info", "subscription_id"
* changes:
  Added area info support in cell broadcast service
  Renamed SUB_ID to SUBSCRIPTION_ID
2020-02-05 19:13:54 +00:00
Svetoslav Ganov
2dccbf2d60 Merge "Scrollable inline keyboard suggestions" 2020-02-05 18:52:35 +00:00
Cody Kesting
d198ed0a80 Implement INetworkMonitorCallbacks#notifyNetworkTestedWithExtras.
INetworkMonitorCallbacks defines notifyNetworkTestedWithExtras() for
notifying ConnectivityService of networks being tested along with a
PersistableBundle of extras. A new event is introduced for
NetworkStateTrackerHandler to notify the ConnectivityDiagnosticsHandler
before continuing with the normal processing for "network tested"
notifications. The event is also used in the
ConnectivityDiagnosticsHandler.

Bug: 143187964
Bug: 147391402
Test: compiles.
Test: atest CtsNetTestCases FrameworksNetTests
Change-Id: Iab29da790c0f5faae68227770bc3a84bbc94f124
Merged-In: Iab29da790c0f5faae68227770bc3a84bbc94f124
2020-02-05 18:48:12 +00:00
TreeHugger Robot
1527beb31e Merge "Add public docs to AppOpsManager" 2020-02-05 18:07:42 +00:00
Neil Fuller
b2d0306a00 Avoid a @Nullable Boolean
To avoid a @Nullable Boolean one method has been split into two. After
some changes in the last release this also removes an optional parameter
from the two new methods as it is now always null.

Bug: 148450671
Test: treehugger
Change-Id: I83be9647943c16ae30af4f8d032db428af1ad5fc
2020-02-05 17:13:31 +00:00
Cody Kesting
bb83c298e0 Merge "Implement INetworkMonitorCallbacks#notifyNetworkTestedWithExtras." 2020-02-05 15:01:55 +00:00
Tony Mak
4624cdd12e Merge "Make TCS.getDefaultTextClassifierImplementation returns a ... SystemTextClassifier that is backed by ExtServices" 2020-02-05 14:44:39 +00:00
Julia Reynolds
e79019393a Merge "Separate concept of VIC from DND" 2020-02-05 12:21:25 +00:00
Automerger Merge Worker
f202e1109a Merge "Remove System APIs not required for R" am: f5f137b9d3 am: 630aacdc73
Change-Id: I1e48c0ebc1fa1089336b3fbf2e4e28a195d6c050
2020-02-05 12:14:54 +00:00
Automerger Merge Worker
eeb878fd41 Merge "Add setSubscriptionPlans() and getSubscriptionPlans() @SystemApi" am: 12aeaefeaf am: 5b9370b4c8
Change-Id: I01a9be9cc6263989cd2551940833a93f962c6450
2020-02-05 12:14:19 +00:00
Automerger Merge Worker
630aacdc73 Merge "Remove System APIs not required for R" am: f5f137b9d3
Change-Id: I02925dc4f4810032a7381832187c420253227664
2020-02-05 12:04:38 +00:00