Commit Graph

29690 Commits

Author SHA1 Message Date
Kyunglyul Hyun
dae3eea890 Merge "Add MediaRouter2#stop" into rvc-dev 2020-03-10 11:53:05 +00:00
Oli Lan
e6dbe2b880 Merge "Rename ApexContext to ApexEnvironment." into rvc-dev 2020-03-10 10:20:13 +00:00
TreeHugger Robot
e5150ded92 Merge "Create InlineAction class to wrap the IntentSender and the presentation" into rvc-dev 2020-03-10 04:15:36 +00:00
Dieter Hsu
04a579c6b7 Merge "Update API ExtraRenderingInfo by review feedback" into rvc-dev 2020-03-10 03:08:50 +00:00
Eugene Susla
623468289f Merge "Replace auto-revoke whitelist permission flags with appop" into rvc-dev 2020-03-10 02:53:51 +00:00
Sudheer Shanka
a5d63927da Merge "Address API feedback." into rvc-dev 2020-03-10 02:37:10 +00:00
Sudheer Shanka
b09e2c9584 Merge "Expose BlobStoreManager.waitForIdle() as @TestApi." into rvc-dev 2020-03-10 02:35:54 +00:00
Remi NGUYEN VAN
ad553fb634 Merge "Add missing RequiresPermission to EthernetManager" into rvc-dev 2020-03-10 01:54:57 +00:00
TreeHugger Robot
e5e8e34c7c Merge "API fix: getProprietaryCallExtras should not return null" into rvc-dev 2020-03-10 01:08:35 +00:00
Ahmed ElArabawy
30caf3d28a Merge "Wifi: Add some interface annotations" into rvc-dev 2020-03-10 00:47:02 +00:00
Feng Cao
88872971a7 Create InlineAction class to wrap the IntentSender and the presentation
* Before this change, we were putting the action intent in the Slice,
  but we realize that's not the best place as slice is only meant for
  data representation, and intent does not fall into that
* This patch includes the code to actually fire the pending intent when
  action suggestion is clicked. However, it'll only work if the fill
  service have the SYSTEM_ALERT_WINDOW permission for the intent to
  be fired when it is in the background. We will move it to be fired
  from the client foreground app in a separate patch

Test: manual verification
Test: atest android.autofillservice.cts.inline
Bug: 150499490

Change-Id: I411a7ee05e783f7de94a54064c44a6126afe0b12
2020-03-09 17:32:31 -07:00
Shuo Qian
e171bca393 Merge "API Council Feedback - Override EmergencyNumberDB File API" into rvc-dev 2020-03-09 23:17:44 +00:00
Brad Ebinger
816fdbb2b9 API fix: getProprietaryCallExtras should not return null
Fixes: 149216142
Test: atest CtsTelephonyTestCases
Change-Id: I7bd0d44f08169d41396a8cb202f3928e14bc5939
2020-03-09 23:14:42 +00:00
Brad Ebinger
1084c52acf Merge "API fix: Rename and clarify ProvisioningManager constants" into rvc-dev 2020-03-09 22:51:53 +00:00
Jeff Sharkey
469263a457 Merge "More CTS for APIs used by Mainline." into rvc-dev 2020-03-09 22:44:08 +00:00
TreeHugger Robot
3a68e2d0de Merge "Change setter methods in the FillResponse builder to @NonNull" into rvc-dev 2020-03-09 22:12:30 +00:00
TreeHugger Robot
941e815aab Merge changes I696e3c5d,Iea7a5610,If627e613 into rvc-dev
* changes:
  update javadoc for InstallationFile
  fix error message
  remove incremental.check_loader
2020-03-09 21:47:43 +00:00
Feng Cao
a355711adc Change setter methods in the FillResponse builder to @NonNull
* This is to incorporate the API council feedback at b/148107416
* This is made possible by the new DataClass codegen version 15

Test: build
Bug: 148107416

Change-Id: I8adaf45a64bc08e73988d61fba56430f2b49f747
2020-03-09 13:22:45 -07:00
Jeff Sharkey
9ed18340ca More CTS for APIs used by Mainline.
Bug: 150641862, 150641715, 150641138, 150640123
Test: atest cts/tests/tests/content/src/android/content/cts/ContentResolverTest.java
Test: atest cts/tests/tests/os/src/android/os/cts/BinderTest.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/DocumentsContractTest.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/media/MediaStoreTest.java
Change-Id: I6f9ae1dcffd79fd6c422962d9ca64d4b98841766
2020-03-09 20:12:55 +00:00
Sudheer Shanka
0b87215a35 Address API feedback.
- Rename deleteSession() to abandonSession().
- Update javadoc for releaseLease() and Session.close().

Bug: 150220575
Test: atest --test-mapping apex/blobstore
Change-Id: I68de966e195fadc1fbfad36ee0dbb40ccae6cdda
2020-03-09 12:53:59 -07:00
David Zeuthen
d50b281a32 Identity Credential: Apply changes identified in API review.
Bug: 150817385
Test: atest android.security.identity.cts
Merged-In: I4e005fa7a81ef363a80278224bb706441dad2241
Change-Id: I25e09df09e8a56dc7f639b2aa4636af0166d5050
2020-03-09 15:32:48 -04:00
Songchun Fan
73358eb5f0 update javadoc for InstallationFile
Also hides the constructor which is only used internally.

BUG: 149299379
Test: builds
Change-Id: I696e3c5db7b7591276b741f68d50edf47c2f30a0
2020-03-09 08:57:26 -07:00
Automerger Merge Worker
2398e9be60 Add missing RequiresPermission to EthernetManager
The method requires NETWORK_STACK or MAINLINE_NETWORK_STACK permissions,
but the annotation was missing.

Test: m
Fixes: 150877670
Merged-In: I2af74cbcfa642f05f5e7bf85b2a8e8c38595f6ca
(cherry picked from commit e45d3ff849)

Change-Id: Ia215b74df99ae60be2e380917be68a272d658ef4
2020-03-09 10:20:22 +00:00
Mark Chien
0bba033e34 Merge "Send offload status changed callback" into rvc-dev 2020-03-09 09:50:20 +00:00
Mark Chien
888782e1d6 Merge "Tethering: add isTetheringSupported with callerPkg parameter" into rvc-dev 2020-03-09 09:49:56 +00:00
Automerger Merge Worker
c22ab7b368 Send offload status changed callback
The callback would be fired when offload started, stopped, or failed.
If offload is not supported, "failed" callback would be fired when user
enable tethering. Enabling multiple tethering would not have multiple
offload status callbacks because offload should already be started or
failed.

Bug: 130596697
Test: -build, flash, boot
      -atest TetheringTests
      -ON/OFF hotspotf

Change-Id: Ifb16dcedc8081833fa95a39596fe5cdc309ededd
Merged-In: Ifb16dcedc8081833fa95a39596fe5cdc309ededd
Merged-In: Ia0398601144b0e5f61dc0c5771eacf13e7cfbb59
(cherry picked from commit cd266076be)
2020-03-09 07:59:29 +00:00
Automerger Merge Worker
fcf74d1d8d Tethering: add isTetheringSupported with callerPkg parameter
BT tethering need to know whether tethering is supported for its caller
that call isTetheringSupported in binder thread under BT's process.
Current isTetheringSupported API is getting callerPkg inside
TetheringManager that would be BT's package name for bt tethering case.
Provide isTetheringSupported(String callerPkg) for caller to pass its
caller's package name if the use case is under binder IPC.

Bug: 146915889
Test: -boot, flash, boot

Change-Id: I01646fe045772c57b4e39a5e129531f8a2cea89f
Merged-In: I01646fe045772c57b4e39a5e129531f8a2cea89f
Merged-In: I2a35e1b6851e7a799c343be0dd60da23514768ba
(cherry picked from commit e09a92fabe)
2020-03-09 02:42:28 +00:00
Automerger Merge Worker
06fe92de0f Fix crash and duplicated ethernet tethering request
This change fix two things:
1. Handle ethernet callback in internal thread to avoid crash. IpServer
should be created from tethering thread, otherwise mIpNeighborMonitor of
IpServer would throw
   IllegalStateException("start() called from off-thread")
2. Ethernet tethering request may be duplicated if multiple
startTethering is called but no stopTethering

Bug: 130840861
Bug: 148824036
Test: ON/OFF ethernet tehtering manually
      atest TetheringTests

Change-Id: Ibd3ea6bc6751bd65647ff381f9b0124bc3395c09
Merged-In: I7c5127e96d80d077735010d2e62c7227805ccb10
Merged-In: Ibd3ea6bc6751bd65647ff381f9b0124bc3395c09
(cherry picked from commit 72702b9796)
2020-03-09 02:02:23 +00:00
Hyundo Moon
fde3c9ac59 Merge "Put requestId first in notifySessionCreated() arguments" into rvc-dev 2020-03-09 02:02:12 +00:00
Kyunglyul Hyun
c439bfe783 Merge "Remove MediaRoute2Info.getDeviceType" into rvc-dev 2020-03-09 01:54:48 +00:00
Jeff Sharkey
16c9fb8c0f Merge "Updates based on API council feedback." into rvc-dev 2020-03-08 20:59:38 +00:00
Sudheer Shanka
38dae29cbb Expose BlobStoreManager.waitForIdle() as @TestApi.
Bug: 151035961
Test: atest --test-mapping cts/hostsidetests/blobstore
Change-Id: I3632560c5ba9b28b4492d07d847911196b0abc78
2020-03-08 12:30:14 -07:00
Ahmed ElArabawy
1b2fbf990e Wifi: Add some interface annotations
This commit adds some Wifi related interface annotations.
This includes:
    Annotations.WifiStandard
    Annotations.ChannelWidth
The commit also converts some APIs to @hide

Bug: 149420144
Test: Builds correctly (no new functionality in commit)
Change-Id: I007a7d828197e24e32d8f9bb558500e56d8b74dc
2020-03-06 19:32:03 -08:00
Brad Ebinger
6b06c64627 API fix: Rename and clarify ProvisioningManager constants
Fixes: 148515237
Test: atest CtsTelephonyTestCases; atest FrameworksTelephonyTests
Change-Id: I633ad3270f8b7d047c3522a420746b668000d078
2020-03-06 15:49:34 -08:00
Shuo Qian
75c49ab334 API Council Feedback - Override EmergencyNumberDB File API
Use ParcelFileDescriptor; Introduce Reset API

Test: atest TelephonyHostTest#testEmergencyNumberDb
Bug: 147805285
Change-Id: I7a7733c02874c0f17fef8c91b9e543c8e803f504
Merged-In: I7a7733c02874c0f17fef8c91b9e543c8e803f504
2020-03-06 22:56:25 +00:00
Kevin Chyn
db45def65e Merge "Rename biometric enroll extra" into rvc-dev 2020-03-06 22:43:57 +00:00
Sudheer Shanka
cd629dd39a Merge "Add a limit on how much data an app can acquire a lease on." into rvc-dev 2020-03-06 22:39:06 +00:00
Jeff Sharkey
f5eebf9fe6 Updates based on API council feedback.
-- Promote generally-useful PFD API to public.
-- Add @WorkerThread annotations.
-- Add docs to explain how AUTHORITY_LEGACY works, and add explicit
START/FINISH_LEGACY_MIGRATION_CALL verbs to communicate progress.
-- Expand docs for createWriteRequest() to explain broader access
that it grants.  Expand all request methods to indicate the action
is fully completed before the result is delivered.
-- Expand docs for new generation fields to explain that version
also needs to be inspected.
-- Explicitly call out why getKindSize() is deprecated, and guide
towards better alternative.

Bug: 148867182, 148403418, 148011561, 147760276
Test: none
Change-Id: I54ff072a752497b6aba153bd4013567c269e5b19
2020-03-06 14:42:00 -07:00
John Reck
e2e7cd5d4c Merge "Deprecate long-obsolete android:anyDensity" into rvc-dev 2020-03-06 20:37:53 +00:00
Matt Pietal
8ebe5c222d Merge "Control API review changes" into rvc-dev 2020-03-06 19:55:03 +00:00
Tej Singh
8651b62518 Merge "Address Puller API Feedback" into rvc-dev 2020-03-06 18:43:31 +00:00
Fabian Kozynski
95dcd2444b Control API review changes
* Add documentation to Device types
* Replace singletons in ControlAction and ControlTemplate to getter
static functions.
* Add javadoc for MODES and FLAG_MODE in TemperatureControlTemplate.
* Removed ThumbnailTemplate instead of updated javadocs. Determined
not necessary anymore
* Remove MultiFloatAction - no longer needed
* Removed reliant sysui code

Bug: 150630500
Test: atest ControlTemplateTest ControlActionTest
Change-Id: Ic4f60c789ce959205137944380e78622d76581a4
2020-03-06 11:15:24 -05:00
TreeHugger Robot
780782b750 Merge "Controls API - Add support for routines" into rvc-dev 2020-03-06 14:50:04 +00:00
Hyundo Moon
f8e49f4bf7 Put requestId first in notifySessionCreated() arguments
For consistency, this CL applies the same changes also to the
internal methods.

Bug: 150922531
Test: CTS and mediaroutertest (Passed except already failing methods)
Change-Id: Iac0ab78464b16212cb3ad46519f5892e8d1b69d9
2020-03-06 23:33:56 +09:00
Kyunglyul Hyun
50919b97c3 Remove MediaRoute2Info.getDeviceType
The hidden method getType() should be used instead.

Bug: 150925607
Test: run cts test

Change-Id: I6b488a27c20aa3bfd10e9edbd6b4efab91bda22d
2020-03-06 20:43:04 +09:00
TreeHugger Robot
531bb231d8 Merge "Merge notifySessionCreationFailed into notifyRequestFailed" into rvc-dev 2020-03-06 06:52:21 +00:00
Betty Chang
e78a4b2695 Merge "[Telephony Mainline] Rename the method from isCurrentSimOperator to matchesCurrentSimOperator" into rvc-dev 2020-03-06 06:01:38 +00:00
Kyunglyul Hyun
508393075c Add MediaRouter2#stop
MediaRouter2#stop stops the current media routing and
invokes the callback onStopped.
According to the change transferTo doesn't accept null route
as its argument.

CTS is changed as well.

Bug: 150472061
Test: CTS tests related to media router2

Change-Id: I6bc7b7ad394189e035e4c018677efb94e5497c85
2020-03-06 14:34:45 +09:00
Dieter Hsu
809a286aef Update API ExtraRenderingInfo by review feedback
Bug: 150685398
Test: m update-api docs
Change-Id: Id21dbde8d15dc936fbbe157b1b50e19564dcd051
Merged-In: Id21dbde8d15dc936fbbe157b1b50e19564dcd051
(cherry picked from commit 327bb81a78)
2020-03-06 05:15:41 +00:00
shubang
be1c41196f Filter changes according to API review
Bug: 150244216
Test: mmm;
Change-Id: I52a7df6bbd8a580a4ea6e8bff4f1ee1515acf3f4
2020-03-06 02:57:12 +00:00