Commit Graph

22296 Commits

Author SHA1 Message Date
Jin Seok Park
4900d0e4ff Merge "Unhide Session2Command" 2019-01-11 06:58:00 +00:00
TreeHugger Robot
3bf407f536 Merge "Add classification to MotionEvent" 2019-01-11 06:28:13 +00:00
TreeHugger Robot
2383c6bfc9 Merge "Add profile class in SubscriptionInfo database" 2019-01-11 06:09:36 +00:00
Jiuyu Sun
5f08027714 Merge "Allow privileged carrier app to update subscription nickname." 2019-01-11 03:01:12 +00:00
Shuo Qian
18d6d78847 Merge "Add Emergency Uniform Resource Number (URN)" 2019-01-11 02:37:25 +00:00
TreeHugger Robot
c6536e4de6 Merge changes from topic "cc_virtual_id"
* changes:
  New, minor ContentCapture APIs for virtual views management.
  Implemented missing methods on android.view.contentcapture.ViewNode
2019-01-11 02:09:45 +00:00
Felipe Leme
2057c38a17 New, minor ContentCapture APIs for virtual views management.
Test: atest CtsContentCaptureServiceTestCases:android.contentcaptureservice.cts.CustomViewActivityTest
Test: atest CtsContentCaptureServiceTestCases # sanity check
Test: atest FrameworksCoreTests:android.view.contentcapture.ContentCaptureSessionTest
Test: m update-api
Bug: 117944706

Change-Id: I08bed441c6cc15673296f392e333c78018b14f65
2019-01-11 02:09:37 +00:00
Felipe Leme
6aae482ca4 Merge "Defined a new ContentCapture API: ContentCaptureService.onUserDataRemovalRequest" 2019-01-11 02:09:20 +00:00
Jin Seok Park
b2b5049077 Unhide Session2Command
Bug: 122435992
Test: atest CtsMediaTestCases:android.media.cts.Session2CommandTest
Change-Id: I109fd5383689c211b4019514e498022e2717ea53
2019-01-11 10:44:18 +09:00
Soonil Nagarkar
48273286e5 Merge "Use LOCATION_MODE to control location" 2019-01-10 22:47:48 +00:00
Soonil Nagarkar
90da1ab3d2 Use LOCATION_MODE to control location
Completely deprecate LOCATION_PROVIDERS_ALLOWED (but still support it).
Adds additional locking and @GuardedBy annotations where appropriate,
and some minor code cleanup is copied from previous CLs.

Bug: 118885128
Test: Manual + CTS
Change-Id: I3c0b4b2354a4c2b6a120fc467af60cb3409dd671
2019-01-10 14:43:43 -08:00
sqian
03bde886e5 Add Emergency Uniform Resource Number (URN)
Test: Treehugger
Bug: 112657134
Change-Id: I87537f7123910e9843207428eb3167a90a15b6df
2019-01-10 12:54:04 -08:00
Tyler Gunn
d7acc5a49f Merge "Call Screening / Caller ID API Changes" 2019-01-10 19:12:38 +00:00
Felipe Leme
62e45b0c4b Defined a new ContentCapture API: ContentCaptureService.onUserDataRemovalRequest
Test: m update-api

Bug: 121289354
Bug: 117944706

Change-Id: Ie317c170b49cdf6671dd0c4eadf02380cd737bf0
2019-01-10 10:34:02 -08:00
vincentpeng
be09f2801e WallpaperColor's ColorHint API go for @SystemApi
Making color hint's relative api @SystemApi.
For pre-installed live wallpaper apps, change to @SystemApi so:

1. apps can be build with gradle build tools.
   (e.g.: PixelLiveWallpaper for app bundle feature).
2. apps can calculate and pass color hint information to interested system components.
   (Such as passing dark text support to SystemUi)

Fixes: 111395593

Test: make system sdk and check if the wallpaper apps can compile with android_system.jar.
Test: check whether the wallpaper apps can pass correct color hint after build (dark text).

Change-Id: I2ecf6ff77ff7a823949c6e3253a077e6eba9683a
2019-01-10 14:34:26 +00:00
Shuo Qian
9f11eaff31 Merge "Add Emergency Call Routing" 2019-01-10 00:33:51 +00:00
TreeHugger Robot
6ef1b7e2d5 Merge "Expose WFC roaming Mode ISIM IST EF as SystemApi" 2019-01-10 00:00:19 +00:00
TreeHugger Robot
f9699619a6 Merge "Deprecate BluetoothHealth APIs" 2019-01-09 21:53:54 +00:00
Holly Jiuyu Sun
5b44f9b4c2 Allow privileged carrier app to update subscription nickname.
Make EuiccManager#updateSubscriptionNickname as public API to allow
carrier app to call it.
Only a privileged app of the given subscription can update the
subscription nickname.
Refresh cached subscription list after the nickname is successfully
updated.

Bug: 122597547
Test: test on phone
Change-Id: I63c5ec4366f32735a54adf40b9cc0b47af681736
2019-01-09 13:52:07 -08:00
TreeHugger Robot
d3827b910b Merge "Rename onNotificationDirectReply to onNotificationDirectReplied as per ... the API council feedback." 2019-01-09 21:46:51 +00:00
Mihai Popa
59a7bc0453 Merge "[Magnifier-69] Some cleanup in API names and docs" 2019-01-09 19:58:35 +00:00
Tony Mak
836147ecb2 Rename onNotificationDirectReply to onNotificationDirectReplied as per ...
the API council feedback.

BUG: 120841922
Test: Build

Change-Id: I630134955bb86b36e8d186e92302ae141629f4f6
2019-01-09 19:44:06 +00:00
Chen Xu
55c53d029b Merge "precisedataState refactor part 3" 2019-01-09 19:11:12 +00:00
TreeHugger Robot
8be2420b9b Merge "Fixed application info null pointer exception." 2019-01-09 18:48:28 +00:00
Brad Ebinger
c50a1ef795 Expose WFC roaming Mode ISIM IST EF as SystemApi
Bug: 120986348
Bug: 120945804
Test: atest FrameworksTelephonyTests
Change-Id: I4d7a203dd57050535867329c8dc36f8c75667c15
2019-01-09 10:12:04 -08:00
Mihai Popa
becda34f25 [Magnifier-69] Some cleanup in API names and docs
This CL:
- renames setForcePositionWithinWindowSystemInsetsBounds to
setClippingEnabled
- improves some of the docs

Bug: 120609112
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I14c774b432b4a0cff96066734758b9f937179d94
2019-01-09 17:22:03 +00:00
Dan Gittik
a5a2d6390e Fixed application info null pointer exception.
Test: manual.
      Set up work profile and open an app that's only installed
      there. This should change the user ID without triggering a
      system-wide global switch, in which case the application info
      would be null and cause the system service to crash.
      In the current implementation, this shouldn't happen, and in
      fact the foreground app should be properly inferred regardless
      of the user. This can be visible by enabled and checking the
      AutomaticBrightnessController logs with:

      adb shell cmd display ab-logging-enable
      adb logcat | grep AutomaticBrightnessController

Fixes: 122107873

Change-Id: I8161414a766c494ab0efadaa20fe6fcdf5067948
2019-01-09 16:26:34 +00:00
Nikita Ioffe
0800858b02 Merge "Add Binder.getCallingUidOrThrow method" 2019-01-09 16:07:56 +00:00
Nikita Ioffe
a929cf01cf Add Binder.getCallingUidOrThrow method
Binder.getCallingUidOrThrow is a pure java method which uses
Binder.isHandlingTransaction @CriticalNative method.

Binder.isHandlingTransaction itself is not exposed a public API.

Bug: 62253865
Fix: 62253865
Test: Added a testcase to BinderTest.java to verify ISE is thrown
Change-Id: I93a1b6c24a4747b8b70c32d291b4706b6159a3d0
2019-01-09 13:15:56 +00:00
Riddle Hsu
e716d72d40 Add @TestApi to Configuration.assetsSeq
The value of the field will be verified in CTS.

Bug: 112837428
Test: atest CtsActivityManagerDeviceTestCases
Change-Id: I7f8e4b20c75077c77f4d723946d6596737523479
2019-01-09 15:56:46 +08:00
sqian
a4bd738b8b Add Emergency Call Routing
Some countries or carriers require some emergency numbers that must
be handled with normal call routing or emergency routing.

Do not send service types from the database
as the emergency service categories

When searching for the corresponding service categories,
try to find the one that comes from the radio indication.

Test: Treehugger
Bug: 112657134
Change-Id: I95dadd07e9155c6e402a72339f307b4d7ef32fe4
2019-01-08 18:56:17 -08:00
TreeHugger Robot
1b9f645e05 Merge "Add intent action for managing the list of special app access." 2019-01-09 01:57:51 +00:00
TreeHugger Robot
8c4d24f07e Merge changes I16a302b5,I33f2ce58
* changes:
  Migrate frameworks/base/apct-tests/perftests/core to androidx.test
  Introduce TextClassifierEventTronLogger
2019-01-09 01:24:18 +00:00
TreeHugger Robot
ed954eb7e6 Merge "MediaPlayer2: add back convenient API's for current data source." 2019-01-09 01:09:21 +00:00
TreeHugger Robot
95cb8e40ca Merge "Make PlaybackInfo implement Parcelable" 2019-01-09 00:27:30 +00:00
TreeHugger Robot
738441d3fa Merge "Made AugmentedAutofillService.dump() final so subclass cannot hide it." 2019-01-09 00:19:53 +00:00
Philip P. Moltmann
00483d91e8 Merge "Allow apps to bulk revoke permissions with the correct semantics" 2019-01-08 23:16:14 +00:00
Tyler Gunn
9e76fd19bc Call Screening / Caller ID API Changes
- Fix bug in call identification parcelable; was reversing the app name
and package name.
- Add @hide RoleManager consts for the Telecom roles; this will be
replaced by values in the library for public consumption as a later
date.
- Add new call direction attribute to the Call.Details class; this is
needed so that a CallScreeningService can know if a call is incoming
or outgoing.  This way it knows whether it needs to perform call blocking
or just caller ID.
- Update CallScreeningService API docs to explain how to request the
call screening role.
- Update InCallService API docs to explain the 3 roles related to this
service and how you declare an appropriate IncallService to fill each of
them.

Bug: 63966743
Test: Manual, CTS
Change-Id: Ic4547b8ead791690305f7be58e43272c4155b7fb
2019-01-08 15:01:19 -08:00
Hai Zhang
1d79232d5f Add intent action for managing the list of special app access.
This intent action will be used by Settings to launched the new
special app access list UI in PermissionController.

Bug: 110557011
Test: build
Change-Id: Ib3570cf8110d75e443e2c3d63eecea0aa6eaee5c
2019-01-08 13:59:11 -08:00
Felipe Leme
61a17f3383 Made AugmentedAutofillService.dump() final so subclass cannot hide it.
Test: m update-api
Bug: 122076014

Change-Id: Id171d3208fb12cca429af913e98233efb69f1eb7
2019-01-08 13:55:33 -08:00
Grace Chen
c3eb446c52 Add profile class in SubscriptionInfo database
Bug: 116732485
Test: Basic telephony sanity

Change-Id: I28a6d64c90db94ef0735f4d97f430560b733e797
2019-01-08 18:43:09 +00:00
Alex Kershaw
cb577bca43 Merge "Map error code 51 to an incorrect OS error." 2019-01-08 16:32:23 +00:00
Tony Mak
5a5f0d52c3 Introduce TextClassifierEventTronLogger
1. SelectionEvent will be still logged via SelectionSessionLogger
   to make sure we don't break existing logs.

2. New features including language detection and conversation actions
   are logged via TextClassifierEventTronLogger.

3. Added TYPE_ACTIONS_GENERATED to log when actions are generated.
   This is used to calcuate the recall, i.e. among all the requests,
   how many of them TextClassifier returns something.

Test: atest TextClassifierEventTronLoggerTest
Test: Turn on the DEBUG flag and observe the logging.

BUG: 120803809
BUG: 120828422

Change-Id: I33f2ce58885d90bc35316f54abcd42b137b42a13
2019-01-08 11:07:23 +00:00
Michael Wachenschwanz
266dd3bfd7 Merge "Add Usage Reporting Api to UsageStatsManager" 2019-01-08 06:50:24 +00:00
Jack He
2be70a11a2 Deprecate BluetoothHealth APIs
* Mark all BluetoothHealth related APIs as deprecated
* Make BluetoothAdapter#getProfileProxy(context, BluetoothProfile.HEALTH)
  always return false
* Remove all logic behind BluetoothHealth APIs and add deprecation error log
* Health Device Profile (HDP) and MCAP protocol has been largely
  replaced by BLE. New applications should use Bluetooth Low Energy
  instead of legacy Bluetooth Health Device Profile

Bug: 111562841
Test: make, unit test, use Bluetooth
Change-Id: If99a9d79e9e1b89b75b9b74bd3b1c965247a1892
2019-01-07 20:10:36 -08:00
Shuo Qian
da241c5355 Merge "Call Redirection Service enhancement" 2019-01-07 23:00:37 +00:00
Michael Wachenschwanz
36778525ba Add Usage Reporting Api to UsageStatsManager
The Usage Reporting Api allows apps to report usage within the app to
platform. Apps with the the OBSERVE_APP_USAGE permission may register
observers that use the reported in-app usage.

Test: manual (using the included Usage Reporter App)
Test: atest CtsUsageStatsTestCases:UsageReportingTest
Test: atest FrameworksServicesTests:AppTimeLimitControllerTests
Bug: 112486938

Change-Id: Iddd6f0993bbbf68a2032b34d473ef8d67da7747a
2019-01-07 14:56:06 -08:00
chen xu
16e24cd5de precisedataState refactor part 3
1. expose DataFailCause to systemAPI
2. expose PreciseDataState to systemAPI
3. change string apntype to bitmask.
4. change string dataFaiLcause to intdef

Bug: 119891533
Change-Id: Ife380a5063f44f80d41f60ffaecc5185f2f5b16b
2019-01-07 14:01:05 -08:00
Chad Brubaker
9a4cf62c90 Merge "Add intent for permission usage info learn more" 2019-01-07 20:42:02 +00:00
Ecco Park
05df45db02 passpoint-r2: change the return type of getAllMatchingWifiConfigs
This change is required to show the signal level associated with service
name on UI for installed passpoint profile as picking strongest one up
from matching scanResults.

In order to get a map that consists of WifiConfiguration and a list of
ScanResults, three steps are required.

1) Gets a map that consists of FQDN(Fully Qualified Domain Name) of
a matching Passpoint profile and a list of ScanResults.
2) Gets a list of WifiConfigurations for Passpoint profiles matched a
provided list of FQDN.
3) Creates a new map that consists of WifiConfiguration and a list of
ScanResult.

Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: tested with R1 AP for installing profile and R2 AP for connection
Change-Id: I0d56dbdddae4e365b909b9c8f3eff3b0121dc5de
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-07 15:38:12 +00:00