Commit Graph

29659 Commits

Author SHA1 Message Date
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
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
shubang
be1c41196f Filter changes according to API review
Bug: 150244216
Test: mmm;
Change-Id: I52a7df6bbd8a580a4ea6e8bff4f1ee1515acf3f4
2020-03-06 02:57:12 +00:00
Xiangyu/Malcolm Chen
2f2742cc80 Merge "Remove @ModemCount enum definitions." into rvc-dev 2020-03-06 01:51:03 +00:00
Kevin Chyn
90cc357df1 Rename biometric enroll extra
Fixes: 150499348

Test: make -j56 update-api
Test: CtsVerifier
Change-Id: Iaa4c682c74c2a082f5e6ec8bd4d1680e1ff8a4bc
2020-03-05 16:53:34 -08:00
TreeHugger Robot
6a84d7bef4 Merge "Tuner API: remove @FilterConfiguration.PacketType" into rvc-dev 2020-03-06 00:43:05 +00:00
Tej Singh
72a70a8a3c Address Puller API Feedback
1. Rename registerPullAtomCallback to setPullAtomCallback
2. Rename unregisterPullAtomCallback to clearPullAtomCallback
3. Add getters to PullAtomMetadata
4. Change Ns to Millis (when I tried to make it Nanos, I received a
built time error saying to prefer millis unless we need the precision.
We do not need the precision, so I changed it).
5. Fix out of order params.

I did not change usePooledBuffer to setPooledBuffer because I think use
is more appropriate for our use case.

Test: make
Test: atest PullAtomMetadataTest
Test: atest GtsStatsdHostTestCases
Bug: 149475498

Change-Id: Ib07aa57a6e02c77917fe0e65a3d4a77c00ce8565
2020-03-05 16:43:02 -08:00
John Reck
7ce90af518 Deprecate long-obsolete android:anyDensity
This API exists for compatibility with pre-Donut applications
that were not properly density aware. As such, there's no
current reason to use this. So deprecate it.

Bug: 150869482
Test: builds
Change-Id: Ie12957988d5f5d292277a291a20b565c2e3ef46e
2020-03-05 16:30:30 -08:00
Jeff Sharkey
189e00a46b Merge "Use flags to indicate reason for Uri changes." into rvc-dev 2020-03-06 00:04:24 +00:00
TreeHugger Robot
03a65f1a5e Merge "BatteryStatsManager: Address API council feedback" into rvc-dev 2020-03-05 21:42:12 +00:00
TreeHugger Robot
0ffc3165a3 Merge "Do not allow -1 duration in setUserAuthenticationParameters" into rvc-dev 2020-03-05 21:39:57 +00:00
Jing Ji
7712b3a92a Merge "Update the categories of app kill reaons" into rvc-dev 2020-03-05 21:16:12 +00:00
TreeHugger Robot
8caff7dc81 Merge "DO NOT MERGE: Remove AppSearch from Android R." into rvc-dev 2020-03-05 21:09:00 +00:00
Matt Pietal
cd47696a59 Controls API - Add support for routines
Apps can support the idea of a routine. Routines tie together multiple
actions across multiple controls to support everyday tasks that would
otherwise require multiple clicks.

Bug: 150869263
Test: atest ControlProviderTest
Change-Id: I3ee2c87c6130420032ebe407b2ffc1e3e8c1504f
2020-03-05 15:03:08 -05:00
Kevin Chyn
9f49e8df2a Do not allow -1 duration in setUserAuthenticationParameters
This is a completely new API so callers can follow the new pattern of
using 0 to require auth for every use of the key.

Supporting both -1 and 0 to require auth for every use of the key
increases CtsVerifier complexity exponentially (strongbox,
invalidated by enrollment, etc).

Fixes: 150823346
Test: builds
Change-Id: Ieef53a8b50f5119c5e52656e930bf16b1e8e3d89
2020-03-05 11:17:22 -08:00
TreeHugger Robot
77864d6771 Merge "Revert "Revert "Require user pass in a non-null BluetoothDevice ..."" into rvc-dev 2020-03-05 19:15:30 +00:00
Amy Zhang
2c2b5a7a0c Merge "Add an Executor to the new acquireTvInputHardware API" into rvc-dev 2020-03-05 18:48:00 +00:00
Roshan Pius
cdf5744a77 BatteryStatsManager: Address API council feedback
Bug: 144925883
Test: Compiles
Change-Id: Ibdc61769965a97222fdd968084eca71b997e8feb
2020-03-05 10:34:24 -08:00
Jeff Sharkey
d70325359e Use flags to indicate reason for Uri changes.
As part of MediaProvider becoming a Mainline module, some partners
need to understand more details about what triggered a Uri change
notification.  This helps listening apps avoid making expensive and
race-condition-prone calls back into MediaProvider; typically when
they're only interested in insert and delete operations.  This change
uses the existing "flags" argument to communicate the reason.

This change adds overloads to ContentObserver for listening apps to
receive these flags.  In addition, we add overloads that deliver a
clustered set of multiple Uris together in a single Binder transaction
to improve overall efficiency.  (This matches well with the existing
CR.notifyChange() API that we added earlier this year, since they
both work with Iterable<Uri>.)

Tests to verify that we only collapse Uris together when all other
method arguments are identical.

Bug: 147778404, 144464323
Test: atest CtsDatabaseTestCases
Test: atest CtsContentTestCases:android.content.cts.ContentResolverTest
Test: atest FrameworksServicesTests:com.android.server.content.ObserverNodeTest
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I0bbd8a8b4a898ab6f891d085de0ecb4d68cbe302
2020-03-05 11:01:23 -07:00
Galia Peycheva
fc1430a39e Merge "Make ActivityInfo.preferMinimalPostProcessing a flag" into rvc-dev 2020-03-05 15:45:06 +00:00
Hyundo Moon
7c2059c999 Merge notifySessionCreationFailed into notifyRequestFailed
Bug: 150582958
Test: Ran CTS and mediaroutertest
Change-Id: Ica95c7619d85565d49f238b46d3043358c94a37f
2020-03-05 23:10:46 +09:00
TreeHugger Robot
931e7099e1 Merge "Change javadoc of getSubmitPduEncodedMessage and add IntRange to its parameters" into rvc-dev 2020-03-05 11:33:39 +00:00
Santiago Seifert
315b8782c4 Merge "Remove InterruptedException from MediaParser" into rvc-dev 2020-03-05 10:58:38 +00:00
shubang
b838fbf8aa Tuner API: remove @FilterConfiguration.PacketType
There are some valid and reserved packet type values, so packet type
should not be enum.

According to specs
ITU-R BT.1869, https://screenshot.googleplex.com/HhktwijUqBF.png
ATSC A/330:2019,https://screenshot.googleplex.com/6ZQdO6HrmAS.png

Bug: 150639580
Test: mmm
Change-Id: Ie879a518635707dc71837fda12d90866faf35dc1
2020-03-04 19:42:24 -08:00
Zongheng Wang
38bb7285a9 Change javadoc of getSubmitPduEncodedMessage and add IntRange to its
parameters

To resolve merge conflict for aosp/1242353. Cherrypick it to rvc-dev since this should be in R.

Bug: 149697039
Test: compile
Change-Id: I5e131f71c376db56d3b7aa835058f0d2f4e8566a
Merged-In: I5e131f71c376db56d3b7aa835058f0d2f4e8566a
(cherry picked from commit 1d2378bd0d)
2020-03-04 23:49:03 +00:00
Songchun Fan
ecd96c2be4 Merge "make IDataLoaderManager and IDataLoader stable interfaces" into rvc-dev 2020-03-04 22:53:12 +00:00
Zimuzo Ezeozue
e8de8f21bd Merge "Replace String for 'path' to File" into rvc-dev 2020-03-04 22:18:59 +00:00
Brad Ebinger
cd31f739da Merge "Add new capability polling opt-in intent" into rvc-dev 2020-03-04 18:05:24 +00:00
Heemin Seog
d1bbc14732 Merge "Replace TYPE_STATUS_BAR_PANEL with TYPE_STATUS_BAR_ADDITIONAL" into rvc-dev 2020-03-04 17:06:50 +00:00
Tony Mak
36beec8030 Merge "Rename TextClassificationSessionId.flattenToString() to getValue()" into rvc-dev 2020-03-04 16:08:03 +00:00
Zim
71fcf13cf2 Replace String for 'path' to File
This addresses API review feedback

Bug: 150685654
Test: m
Change-Id: I45d6eb1fc02272e4e4fd729b6535a950aefe8f20
2020-03-04 15:38:48 +00:00
Shafik Nassar
d021b2851a Merge "Treat playlists like first class media files" into rvc-dev 2020-03-04 11:14:00 +00:00