Commit Graph

22882 Commits

Author SHA1 Message Date
Sudheer Shanka
b6c8094b45 Merge "Add Cursor.{set,get}NotificationUris." 2019-01-27 23:00:13 +00:00
Jeff Sharkey
8bcdea7182 Merge "Get CtsProviderTestCases building against API." 2019-01-27 03:03:48 +00:00
Jeff Sharkey
cb269aac7e Get CtsProviderTestCases building against API.
To help confirm that we're actually testing developer-visible
behaviors, we need to build against public APIs, since there have
been plenty of examples in this suite of "testing" hidden API
behaviors, which are then misleading to developers.

Bug: 120429729
Test: atest cts/tests/tests/provider/
Exempt-From-Owner-Approval: Trivial API annotations
Change-Id: I07fe33e54f611a6060217f0706fb99b809961f4d
2019-01-27 03:03:39 +00:00
Tej Singh
bd37b5f8b3 Merge "APIs for registering config activation broadcasts" 2019-01-27 02:32:37 +00:00
TreeHugger Robot
4fcdce138f Merge "Hide new ColorSpace APIs" 2019-01-27 01:07:13 +00:00
Peiyong Lin
b20446f6bd Merge "Add Display.getPreferredWideGamutColorSpace()." 2019-01-26 22:10:16 +00:00
Sudheer Shanka
a07b052eb4 Add Cursor.{set,get}NotificationUris.
Bug: 120879205
Test: manual
Test: atest cts/tests/tests/database/src/android/database/cts/AbstractCursorTest.java
Change-Id: If3be228dc6b08ea58d24c9209822f9d8c2348082
2019-01-26 11:19:34 -08:00
Hongming Jin
7f921d7df8 Merge "Add API to SmsManager to allow apps to authenticate user account through sms without requesting sms permissions." 2019-01-26 19:19:18 +00:00
Richard Uhler
efb4132ba3 Merge changes Ic2bb4798,I2a409de2,I88a50a0e,Ia69342a4,Ia6548e4d, ...
* changes:
  Use "commit" instead of "execute" for rollbacks.
  Rename PACKAGE_ROLLBACK_EXECUTED to ROLLBACK_COMMITTED.
  Remove unused RollbackManager APIs.
  Use RollbackManager.getAvailableRollbacks in RollbackTest
  Use new RollbackManager API in RollbackPackageHealthObserver.
  Add RollbackManager.getAvailableRollbacks API.
  Include all relevant packages in RollbackInfo.
2019-01-26 07:31:28 +00:00
Kevin Chyn
71ae5ba4c9 Merge changes from topics "cc-implicit-2", "cc-implicit"
* changes:
  Deprecate CC and add BP#buildIntent()
  Revert "Add plumbing for setRequireConfirmation to CC"
2019-01-26 04:27:00 +00:00
TreeHugger Robot
7e88e4ceb6 Merge "Remove RuntimePermPresSvc#onRevokeRuntimePerm" 2019-01-26 04:09:32 +00:00
Kevin Chyn
1b2137cf42 Deprecate CC and add BP#buildIntent()
To ensure future BP builder changes don't require a 1:1 addition to the
CC API, we're deprecating CC and moving the API to BP.

Since CDC is an activity, and BP can't receive onActivityResult from CDC,
we need to have BiometricService launch CDC. CDC will return auth/reject
results to BiometricService using a private protected aidl method, which
can then forward the reuslt to BP/app.

Bug: 111461540

Test: builds
Test: demo app, receives correct callbacks

Change-Id: I7111ca2842534a596302fe0eb7338fbfaca72eec
2019-01-25 18:09:03 -08:00
Tej Singh
2c9ef2a92e APIs for registering config activation broadcasts
Creates a StatsManager API to register a pending intent that is invoked
whenever the active status of any of any config sent by that uid
changes.

ag/6112554 and further cls are needed to properly send back the pending
intent.

Bug: 123372077
Test: build success on blueline-eng. More thorough testing should be
done once ag/6112554 is submitted.

Change-Id: I36985c9820d4e7ac178064924190af88ea822254
2019-01-25 17:58:02 -08:00
Peiyong Lin
277eaff438 Add Display.getPreferredWideGamutColorSpace().
Add Display.getPreferredWideGamutColorSpace() to return the preferred wide
color space that the rendering and composition pipeline prefers.

BUG: 120904891
Test: atest android.display.cts.DisplayTest#testGetPreferredWideGamutColorSpace
Change-Id: I1bcd9db72689a734b2a7c097b99a01464810994a
2019-01-25 17:15:26 -08:00
Daniel Solomon
7d7a498788 Hide new ColorSpace APIs
A previous change added two new public ColorSpace APIs. These APIs are
being used only by ColorDisplayService for specific purposes, so for now
make them hidden.

Bug 116516917

Change-Id: Ib644d356a84d4122173ea4cafbac88bd63b1afcd
2019-01-25 15:43:10 -08:00
Hongming Jin
46edf1506d Add API to SmsManager to allow apps to authenticate user account through
sms without requesting sms permissions.

Bug: 111210542
Test: atest android.telephony.cts.SmsManagerTest
Change-Id: I9b176032d7b2bf578dd1a64745bf4a1e13008a7a
2019-01-25 15:24:29 -08:00
TreeHugger Robot
4e78dec0d8 Merge "Add api to change charging state update delay" 2019-01-25 22:42:06 +00:00
Brad Ebinger
0b1b7c2b76 Merge "Add new ImsException to better handle ImsService errors" 2019-01-25 21:02:02 +00:00
Roshan Pius
3a8cc45d71 WifiManager: Remove @SystemApi tag for settings APIs
Bug: 123314904
Test: make system-api-stubs-docs-update-current-api
Change-Id: Id9f088b3a9bbeeb74d5f5bcd3070743943b0c6e6
2019-01-25 11:55:18 -08:00
Android Build Merger (Role)
59e3189d96 Merge "Merge "Track change of some java.nio.Buffer methods to nonfinal." am: 38a641d29f am: 5fdb4eb6ef am: 5cb69db85c" 2019-01-25 18:32:35 +00:00
Tobias Thierer
c7eef3e49d Merge "Track change of some java.nio.Buffer methods to nonfinal." am: 38a641d29f am: 5fdb4eb6ef
am: 5cb69db85c

Change-Id: I6e2f82dd543d9d685240a902a782eb2ccda4a19a
2019-01-25 10:30:33 -08:00
Matthew Fritze
623f3785bd Merge "Add NFC Settings Panel API" 2019-01-25 18:27:03 +00:00
Tobias Thierer
5cb69db85c Merge "Track change of some java.nio.Buffer methods to nonfinal." am: 38a641d29f
am: 5fdb4eb6ef

Change-Id: I08059da73d48200b3a0b1c3612ddb5cca9be7ac2
2019-01-25 10:03:11 -08:00
Mady Mellor
b091bc9431 Merge "BubbleMetadata flags: suppress initial notif & auto expand when posted" 2019-01-25 17:26:38 +00:00
Tobias Thierer
38a641d29f Merge "Track change of some java.nio.Buffer methods to nonfinal." 2019-01-25 17:22:04 +00:00
TreeHugger Robot
3abecb462b Merge "Rename PERSON_USER_LOCAL and PERSON_USER_REMOTE" 2019-01-25 17:16:38 +00:00
Ng Zhi An
0941120f79 Add api to change charging state update delay
This adds a field Settings.Global.BATTERY_CHARGING_STATE_UPDATE_DELAY
that overrides the value of battery_charged_delay_ms in
Settings.GLOBAL.BATTERY_STATS_CONSTANTS.

This new field can then be set for experimentation, and easily reset to
default by deleting, or setting it to a negative value.

Expose a method in BatteryManager to set a value for this new setting.

Bug: 111360323
Test: adb shell settings put global battery_charging_state_update_delay 999
adb shell dumpsys batterystats --settings # should see battery_charged_delay_ms=999
adb shell settings put global battery_charging_state_update_delay -1
adb shell dumpsys batterystats --settings # should see battery_charged_delay_ms=90000
Change-Id: Ic308af938836a1f9c235cec341808b6c6c28d22d
2019-01-25 09:14:44 -08:00
Philip P. Moltmann
9610a1619b Remove RuntimePermPresSvc#onRevokeRuntimePerm
This was newly added to a now deprecated service. we can just
remove it and not provide backwards compatibility

Test: Built
Bug: 123221743
Change-Id: Ic7ff6674d3eafd98cd00f3a3e1d92c8161ba3f16
2019-01-25 09:09:12 -08:00
Richard Uhler
4b092ef6f7 Use "commit" instead of "execute" for rollbacks.
Which makes more sense for rollback of staged installs, where the caller
will have to reboot the device before the rollback takes effect.

Internal references to "execute" in IRollbackManager.aidl and the
rollback manager service implementation will be renamed in a follow up
CL.

Bug: 112431924
Test: atest RollbackTest
Change-Id: Ic2bb479873b309fc145e4eda3b347849ac219ac9
2019-01-25 14:56:02 +00:00
Richard Uhler
dca7beb740 Rename PACKAGE_ROLLBACK_EXECUTED to ROLLBACK_COMMITTED.
Because there's no need to distinguish between package and other kinds
of rollbacks, and for rollback of staged installs, committed is a more
appropriate name than executed.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I2a409de29ba82a7a3df2fd0b17f939795caa61d5
2019-01-25 14:23:27 +00:00
Richard Uhler
65f9717b6f Remove unused RollbackManager APIs.
RollbackManager.getAvailableRollback and
getPackagesWithAvailableRollback are no longer needed given the
getAvailableRollbacks API. Remove them.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I88a50a0efd97dd5b45c68e0a3e3253f11d0284f6
2019-01-25 14:23:27 +00:00
Dario Freni
5cccc2bd8e Merge "Add an error message to staged install session." 2019-01-25 14:21:56 +00:00
TreeHugger Robot
471530dd56 Merge "Remove MediaController2 usages in MediaSessionServiceImpl" 2019-01-25 14:21:24 +00:00
Tony Mak
91daa15eea Rename PERSON_USER_LOCAL and PERSON_USER_REMOTE
Test: atest TextClassificationManagerTest.java
Bug: 123223181

Change-Id: I077d06aabf96d824942b99dd6ab95fe8adc2641f
2019-01-25 12:07:50 +00:00
Richard Uhler
150ad9865e Add RollbackManager.getAvailableRollbacks API.
To replace getAvailableRollback and getPackagesWithAvailableRollbacks,
which will be removed in a subsequent CL.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I67adeb41df974aa5b375f16becdad5910ccc9c76
2019-01-25 10:19:38 +00:00
Richard Uhler
0a79b32332 Include all relevant packages in RollbackInfo.
Instead of a single target package. Needed for rollback of multiPackage
installs.

Additionally, expose this information by a public method rather than a
public field.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I6e3ce87385abd37c48047db27bc443d3719ee023
2019-01-25 10:19:31 +00:00
Dario Freni
275b4aba77 Add an error message to staged install session.
The enum itself might be a bit opaque when trying to debug what failed
during the staged session flow. Add an error message field so that the
caller can learn more about the failure, and also log this message on
logcat.

Bug: 118865310
Bug: 123360647
Test: atest PackageInstallerSessionTest; verified that error message is
written to install_sessions.xml and in logcat.

Change-Id: I45c8633f36d490c17c751a9037b90d3fd413c506
2019-01-25 10:02:44 +00:00
Hyundo Moon
c1e4316e02 Remove MediaController2 usages in MediaSessionServiceImpl
Bug: 123336670
Test: Passed below tests
      MediaSessionManagerTest#testNotifySession2Created/Destroyed*
Change-Id: I25a20bf9e8a78920f2219d22b81b899af665ed32
2019-01-25 18:52:44 +09:00
TreeHugger Robot
3175839d6c Merge "Add PermissionControllerManager.isApplicationQualifiedForRole()." 2019-01-25 05:55:41 +00:00
Jeff Sharkey
85d9b31a13 Merge "Verify permissions are only held by media stack." 2019-01-25 04:20:27 +00:00
Hai Zhang
1982187691 Add PermissionControllerManager.isApplicationQualifiedForRole().
Settings DefaultAppShortcutPreference needs this info to determine
whether to show the shortcut to default apps on the app info page.

Bug: 110557011
Bug: 123238935
Test: manual
Change-Id: I3ffa62eb199ba9c761bf09a556443f685f6b6b50
2019-01-24 17:38:36 -08:00
Matthew Fritze
f8a1ff15e9 Add NFC Settings Panel API
NFC Panel is the third Settings Panel, which hosts NFC related settings.
Currently the panel only holds the NFC slice, but is open to future
additions.

Test: atest SettingsPanelTest
Bug: 120142616
Change-Id: Ib9e36b6c645ecb8788c558f505197723836f4616
2019-01-24 17:03:41 -08:00
TreeHugger Robot
0969d6ec11 Merge "Unhide APIs of Android HDMI Framework for Q." 2019-01-25 00:45:37 +00:00
Jeff Sharkey
334ddaa544 Merge "Define DeviceConfig for storage features." 2019-01-25 00:19:16 +00:00
Jeff Sharkey
87a5616161 Verify permissions are only held by media stack.
The WRITE_MEDIA_STORAGE permission is a very powerful permission that
grants raw storage access to all devices, and as such it's only
appropriate to be granted to the media stack. Any apps with a
user-visible component (such as Camera or Gallery apps) must go
through public MediaStore APIs, to ensure that users have meaningful
permission controls.

For example, if the end user revokes the "Music" permission from an
app, but that app still has raw access to music via
WRITE_MEDIA_STORAGE, that would be a privacy incident.

Bug: 118402224
Test: atest android.permission.cts.ProviderPermissionTest
Change-Id: Iaf649689ff9e6d4eabbdb242852c179500654b56
2019-01-24 17:17:46 -07:00
Mady Mellor
0157ff27e2 BubbleMetadata flags: suppress initial notif & auto expand when posted
Test: atest NotificationTest
Bug: 111236845
Change-Id: Idd1d23a91f2bf45454d1598637c8d7979b7f5287
2019-01-24 15:49:21 -08:00
Dan Albert
fa4f594144 Merge "resolve merge conflicts of fb54fde402 to master" 2019-01-24 23:00:19 +00:00
Etan Cohen
448a1d5c2a Merge "[WIFI][LOCATION] Convert API from Coarse -> Fine for >= Q" 2019-01-24 22:49:12 +00:00
Dan Albert
fe1cdd047f resolve merge conflicts of fb54fde402 to master
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I7256999a13b713607cfb4c844bf1bc7b37b827a7
2019-01-24 14:46:02 -08:00
Brad Ebinger
b2c88d1480 Add new ImsException to better handle ImsService errors
The ImsService can crash unexpectantly or not be available
for certain device configurations. Define a checked exception
ImsException to handle these cases instead of using
RuntimeExceptions.

Bug: 122480210
Test: atest FrameworksTelephonyTests
Change-Id: Ie3221d56a235c0e037d71e197f4972df31faa09b
2019-01-24 22:28:06 +00:00