Commit Graph

29045 Commits

Author SHA1 Message Date
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
Neil Fuller
1b883e2118 Merge "Remove System APIs not required for R" 2020-02-05 11:47:13 +00:00
Yuhan Zhao
be5015b00a Merge "Intercepting activites that could cause lock task mode violation in ActivityStartInterceptor." 2020-02-05 07:42:49 +00:00
Svetoslav Ganov
3e2213e035 Merge "Providing new accessibilityNode action" 2020-02-05 03:45:32 +00:00
Automerger Merge Worker
e7217d3eee Merge "Change data type of duration param from int representing seconds to long representing milliseconds in BluetoothAdapter#setScanMode" am: 6d4004fc61 am: cd3f28071e am: 9514b54cfd
Change-Id: I648f6be33a3b9ec4626fc991863df4645629d2a2
2020-02-05 01:14:26 +00:00
Automerger Merge Worker
cd3f28071e Merge "Change data type of duration param from int representing seconds to long representing milliseconds in BluetoothAdapter#setScanMode" am: 6d4004fc61
Change-Id: I3a222fe93c7cc4bfc0b967e51b633ceb0605c642
2020-02-05 00:50:59 +00:00
Rahul Sabnis
6d4004fc61 Merge "Change data type of duration param from int representing seconds to long representing milliseconds in BluetoothAdapter#setScanMode" 2020-02-05 00:41:33 +00:00
Nate Jiang
1b74411bc3 Merge "Make autojoin consistent" 2020-02-05 00:36:39 +00:00
TreeHugger Robot
e9a69b5667 Merge "Deprecates ChooserTargetService APIs" 2020-02-04 23:10:13 +00:00
Yuhan Zhao
f3b3d41560 Intercepting activites that could cause lock task mode violation in ActivityStartInterceptor.
Test: Manual
Test: atest WmTests:ActivityRecordTests
Test: atest WmTests:ActivityStartInterceptorTest
Test: atest WmTests:LockTaskControllerTest
Bug: b/131614258
Screenshot: https://screenshot.googleplex.com/hPy1b9NgkNj
Change-Id: Ibba62d4cd0065cab9c46fcb575c207d1a88bd02f
2020-02-04 14:38:39 -08:00
Automerger Merge Worker
6461a7e81c Merge "Add public API for EuiccService log dump" am: f22d8eac6f
Change-Id: I1dc34f7a657a522826f0a8ed02ae726d9306150e
2020-02-04 22:30:23 +00:00
Rahul Sabnis
99507b5eb3 Change data type of duration param from int representing seconds to long
representing milliseconds in BluetoothAdapter#setScanMode

Bug: 144380530
Test: Manual
Change-Id: I76528478a64d22afefd4ec964d1a78295dd3c94f
2020-02-04 14:29:09 -08:00
Alex Lin
f22d8eac6f Merge "Add public API for EuiccService log dump" 2020-02-04 22:26:53 +00:00
Etan Cohen
b9a3ea2f80 Merge changes from topic "wificond"
* changes:
  [WIFICOND][API] Update channel API from array to list
  [WIFICOND][API] Expose public constructor for data classes.
2020-02-04 22:13:48 +00:00
Automerger Merge Worker
e1f9b607d7 Merge "Added data coding scheme and location check time support" am: ad194f332d
Change-Id: I475683bca98d019295726a21a487253ae09383a7
2020-02-04 21:55:33 +00:00
Winson Chung
3d358dba3d Merge "Add lock task check when entering split screen" 2020-02-04 21:39:36 +00:00
Amy Zhang
f816b93b97 Merge "Make TvInputManager.getClientPid(int) to hidden api" 2020-02-04 21:29:14 +00:00
Tony Mak
c5a7432ebf Make TCS.getDefaultTextClassifierImplementation returns a ...
SystemTextClassifier that is backed by ExtServices

1. The default textclassifier is always provided by
   config_servicesExtensionPackage (i.e. ExtServices)
2. OEM can specify a system text classifier by specifying
   config_defaultTextClassifierPackage.
3. System text classifiers can get an instance of the default textclassifier
   by calling TCS.getDefaultTextClassifierImplementation(), so that
   they can add their customization on top of the default TCS.
4. If config_systemTextClassifierPackage is set, the specified package
    is used to process requests from apps and the platform. Otherwise,
   the default textclassifier is used.
5. For testing and droidfooding purpose, text classifier service package
   can be overridden. If the overridden package is neither
   the default one nor the system one, the package is considered as a
   untrusted text classifier, which can only see requests from itself.

Test: m mts && mts-tradefed run mts-extservices
Test: Not setting config_defaultTextClassifierPackage. Select some text and
      make sure smart selection works. Run dumpsys textclassification
      to make sure the default TCS is bound.
Test: Setting config_defaultTextClassifierPackage and repeat the above.
      Make sure the specified OEM text classifier is used.
Test: Set the service override config to be ExtServices.
      Run dumpsys textclassification to make sure everything is unbound.
      Select some text and make sure ExtServices is bound.
Test: Set the service override to be AiAi and repeat the above.
Test: Set the service to be something invalid and repeat the above.
      Observe that no TC is bound and fallback to NO_OP.

BUG: 148049185

Change-Id: Ia2fb549fda49363e0d0ebc4b7e0d31cb76e11ee0
Make TCS.getDefaultTextClassifierImplementation returns a ...
SystemTextClassifier that is backed by ExtServices

1. The default textclassifier is always provided by
   config_servicesExtensionPackage (i.e. ExtServices)
2. OEM can specify a system text classifier by specifying
   config_defaultTextClassifierPackage.
3. System text classifiers can get an instance of the default textclassifier
   by calling TCS.getDefaultTextClassifierImplementation(), so that
   they can add their customization on top of the default TCS.
4. If config_systemTextClassifierPackage is set, the specified package
    is used to process requests from apps and the platform. Otherwise,
   the default textclassifier is used.
5. For testing and droidfooding purpose, text classifier service package
   can be overridden. If the overridden package is neither
   the default one nor the system one, the package is considered as a
   untrusted text classifier, which can only see requests from itself.

Test: m mts && mts-tradefed run mts-extservices
Test: Not setting config_defaultTextClassifierPackage. Select some text and
      make sure smart selection works. Run dumpsys textclassification
      to make sure the default TCS is bound.
Test: Setting config_defaultTextClassifierPackage and repeat the above.
      Make sure the specified OEM text classifier is used.
Test: Set the service override config to be ExtServices.
      Run dumpsys textclassification to make sure everything is unbound.
      Select some text and make sure ExtServices is bound.
Test: Set the service override to be AiAi and repeat the above.
Test: Set the service to be something invalid and repeat the above.
      Observe that no TC is bound and fallback to NO_OP.

BUG: 148049185

Change-Id: Ia2fb549fda49363e0d0ebc4b7e0d31cb76e11ee0
2020-02-04 20:36:52 +00:00
Julia Reynolds
24edc00304 Separate concept of VIC from DND
(Very important conversations). Track VICs in a different
field, and update DND (and public apis) to allow
all, important, or no conversations through.

Test: atest, cts
Bug: 137397357

Change-Id: Iae04546eb7c0b1e79cfdbeec7311628cd7ad634a
2020-02-04 14:23:46 -05:00
David Su
6d5c892936 Merge "Rename WifiManager.ACTION_WIFI_SCAN_AVAILABLE" 2020-02-04 19:06:14 +00:00
Neil Fuller
567a91279f Remove System APIs not required for R
Test: treehugger
Bug: 148842434
Change-Id: If022a726a058a90cb5446d220628c76800da8e96
2020-02-04 18:59:23 +00:00
Jack Yu
eba90e264a Added data coding scheme and location check time support
AT&T requires showing data coding scheme, location check
time, whether shown to the user or not in the test menu.
Expanded database to support this.

Bug: 144152683
Test: Manully sending fake messages and verified database
Merged-In: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
Change-Id: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
(cherry picked from commit 641db9a36a)
2020-02-04 10:39:52 -08:00
Automerger Merge Worker
0935fa18aa Merge "Remove build rules for module-app API" am: e534a33ca3 am: b37648b759 am: 5ffbe6f31c
Change-Id: I499aac005559a80b3254c0d7e7a8b32d5ccc6382
2020-02-04 16:00:03 +00:00
Automerger Merge Worker
b37648b759 Merge "Remove build rules for module-app API" am: e534a33ca3
Change-Id: I4a9defa9eab99aa8bf04c72b82ca1519136a8e10
2020-02-04 15:33:58 +00:00
Anton Hansson
e534a33ca3 Merge "Remove build rules for module-app API" 2020-02-04 15:23:19 +00:00
Automerger Merge Worker
0cb8f6af54 Merge "More API council tidy up" am: f4e1ac840c am: 5846bfad68 am: 941751a606
Change-Id: I6d3b688fdd0c3cc8a9f40e3aaff5d1142569ed3a
2020-02-04 12:08:09 +00:00
Automerger Merge Worker
5846bfad68 Merge "More API council tidy up" am: f4e1ac840c
Change-Id: I3a14ce6e52bf6ac254c996c9739eac9fccbd6af6
2020-02-04 11:44:53 +00:00
Neil Fuller
f4e1ac840c Merge "More API council tidy up" 2020-02-04 11:35:11 +00:00
Automerger Merge Worker
ce4e22638c Merge "Add setSubscriptionOverride() to system API" am: f734372173
Change-Id: I80a7cae65eaefad94afa428c27c84338142bd224
2020-02-04 07:19:54 +00:00
Chalard Jean
f734372173 Merge "Add setSubscriptionOverride() to system API" 2020-02-04 07:07:57 +00:00
WAYNE YANG
6bfbee076b Merge "Added a new "retailDemo" protection level." 2020-02-04 06:56:48 +00:00
Etan Cohen
98b1d8d5a2 [WIFICOND][API] Update channel API from array to list
Per API council feedback.

Bug: 148680192
Test: atest android.net.wifi
Change-Id: I3a6230eee6fbace68df8b67fb3fa64e299152d40
2020-02-03 22:30:39 -08:00
Mingguang Xu
c69d2c85e6 Merge "Extension API: Use NetworkScore object in API surface" 2020-02-04 05:56:57 +00:00
Automerger Merge Worker
6f87ad9abd Merge "[Mainline] Move the setAlwaysAllowMmsData from SubscriptionManager to TelephonyManager" am: 442a1ca027
Change-Id: I2b518c3bc87d2ae3db242227532c5306522e0ab7
2020-02-04 02:55:32 +00:00
Betty Chang
442a1ca027 Merge "[Mainline] Move the setAlwaysAllowMmsData from SubscriptionManager to TelephonyManager" 2020-02-04 02:44:15 +00:00
Nathan Harold
c250524f4a Merge "Expose PreciseDataConnectionstate#getApnSetting()" 2020-02-04 01:43:13 +00:00
TreeHugger Robot
dfe9f394b3 Merge "Change byte fields to int" 2020-02-04 01:37:57 +00:00
Nate(Qiang) Jiang
0e46cc88cd Make autojoin consistent
Bug: 148780003
Test: atest android.net.wifi
Change-Id: I6aef43fa9df6787a61f0c150be7910cabef47d31
2020-02-03 16:56:32 -08:00
Evan Rosky
ed187ae698 Merge "Pass through some input-related layout flags for windowless surfaces" 2020-02-04 00:23:58 +00:00
David Su
f842ef2fe6 Rename WifiManager.ACTION_WIFI_SCAN_AVAILABLE
Renamed to WIFI_SCAN_AVAILABILITY_CHANGED to
conform to API guidelines.

Bug: 148781526
Test: compiles
Change-Id: Ifa00f84bbeda9cfe34c442f6d906f757ec9ff51f
2020-02-03 15:20:15 -08:00
Automerger Merge Worker
a2cf5100f0 Merge "Do not use @SystemApi(client = MODULE_APPS) (documents/settings)" am: 9bf0c496df
Change-Id: Iadcd9db4717f1350621ce1565c1f79b75af5eced
2020-02-03 22:32:03 +00:00
Anton Hansson
9bf0c496df Merge "Do not use @SystemApi(client = MODULE_APPS) (documents/settings)" 2020-02-03 22:29:37 +00:00
Tingting Wang
431ea9b0e3 Merge "Update ContactsContract doc." 2020-02-03 22:14:15 +00:00
TreeHugger Robot
225bfa7c6b Merge "Require internal permission for BIOMETRIC_CONVENIENCE" 2020-02-03 21:55:40 +00:00
David Su
2a198f3bf5 Merge changes from topics "api-review-DISABLED_NONE", "api-review-hasEverConnected"
* changes:
  Rename NetworkSelectionStatus.NETWORK_SELECTION_ENABLE
  Rename WifiConfiguration.getHasEverConnected()
2020-02-03 21:12:03 +00:00
David Su
a51778da50 Merge "WifiConfiguration: Remove IpConfiguration helpers" 2020-02-03 21:09:51 +00:00
Anton Hansson
81969c27df Remove build rules for module-app API
It's been abandoned for now. Also remove the process attribute
requirement as it's no longer in use.

Bug: 148177503
Test: m
Change-Id: I2b1444105c670f1ef5bc214aa7b0a7ac06d84a37
2020-02-03 21:05:42 +00:00
Makoto Onuki
4056d87005 Do not use @SystemApi(client = MODULE_APPS) (documents/settings)
There will be no special protection mechanisms around MODULE_APPS,
so we're going to remove it for now.

All the MODULE_APPS should be protected with a permission, etc, so
the change should be safe.

Bug: 148177503
Test: Build / treehugger
Change-Id: I76328c2d5aaa3f171bf8afde5b3d1accad8c2e2b
Merged-In: I76328c2d5aaa3f171bf8afde5b3d1accad8c2e2b
2020-02-03 20:37:22 +00:00
Automerger Merge Worker
3f10146fe6 Merge changes Ib7daba9c,Ib692bff0 am: 75b7e58c47 am: 72dcf0a781 am: 3503f24fe4
Change-Id: I77cc4ef70bcad85d921496a8e307997973de43b4
2020-02-03 20:28:53 +00:00