Commit Graph

19824 Commits

Author SHA1 Message Date
Lenka Trochtova
bc9f74c83e Merge "Return a boolean from the mandatory backup transport setter." into pi-dev
am: 2f81559d29

Change-Id: Ibb77d5f16312f03504e7ced961b92e48f37342bc
2018-03-21 20:13:51 +00:00
TreeHugger Robot
2f81559d29 Merge "Return a boolean from the mandatory backup transport setter." into pi-dev 2018-03-21 19:34:52 +00:00
Tim Volodine
03d64cdd9e Merge "WebView Tracing API: remove LARGE_BUFFER, make RECORD_CONTINUOUSLY the default mode" into pi-dev
am: 158a18108b

Change-Id: I557685531c2d80fd3eb4792d5b8aacffd9ae7d2e
2018-03-21 18:15:52 +00:00
Jason Monk
e98e31ce3f Merge "Some Slices API refinement" into pi-dev
am: 1543171d3e

Change-Id: Ib921eac77b9154800aa784ec3d3f4846f788a9a7
2018-03-21 17:45:59 +00:00
TreeHugger Robot
158a18108b Merge "WebView Tracing API: remove LARGE_BUFFER, make RECORD_CONTINUOUSLY the default mode" into pi-dev 2018-03-21 17:14:47 +00:00
Tim Volodine
1a07ccc07e WebView Tracing API: remove LARGE_BUFFER, make RECORD_CONTINUOUSLY the default mode
This patch:
- remove the RECORD_UNTIL_FULL_LARGE_BUFFER tracing option, because
  this does not appear really useful in the production setting as
  the buffer size limit exceeds the device memory and can grow
  uncontrollably large.
- make RECORD_CONTINUOUSLY the default mode for tracing, to make
  sure the least memory is used by default (typically 4x less than the
  previous default RECORD_UNTIL_FULL).
- add some missing IntDef values (to make them match with the constants)

BUG: 63750258
Test: CTS

Change-Id: Ib3698273dee776ebc7a8388fc1bd8c80255e3b63
2018-03-21 17:12:20 +00:00
TreeHugger Robot
1543171d3e Merge "Some Slices API refinement" into pi-dev 2018-03-21 17:06:40 +00:00
Jason Monk
7ea088bb22 Merge "UsageEvents for slices pinning" into pi-dev
am: 17d3b47e20

Change-Id: I559072719451cd2cff5b49f7d89c3ee92b995ac1
2018-03-21 16:37:57 +00:00
Lenka Trochtova
56681f761e Return a boolean from the mandatory backup transport setter.
Bug: 73813043
Bug: 64012357
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testGetAndSetMandatoryBackupTransport
Test: cts-tradefed run cts -m CtsBackupHostTestCase --test android.cts.backup.BackupDeviceOwnerHostSideTest

Change-Id: I7f47a41070b767a6be8b986be485b4ad782690cf
2018-03-21 15:48:41 +01:00
Jason Monk
1918ef7569 UsageEvents for slices pinning
Test: atest frameworks/base/services/tests/servicestests
Bug: 73455786
Change-Id: I6a37f5525c29d3f47aa37e262c8834840309ba44
2018-03-21 10:03:29 -04:00
Gustav Sennton
283747b58c Merge "Add API WebView.getWebViewLooper()" into pi-dev
am: 6951716952

Change-Id: I912664ece4b41853dcac61f0b6adf11a0eb854c0
2018-03-21 12:17:45 +00:00
TreeHugger Robot
6951716952 Merge "Add API WebView.getWebViewLooper()" into pi-dev 2018-03-21 11:59:28 +00:00
Philip P. Moltmann
9dd3e7d300 Add SoundTriggerDetectionService
am: 18e3eb8168

Change-Id: I4bb7ada74c36df4a64956c9c36a1675aad1f6645
2018-03-21 06:00:01 +00:00
Philip P. Moltmann
961db4b07d Expose SoundTriggerManager and SoundTrigger APIs
am: a5fd0294c7

Change-Id: I71c2698aa282d33fb5468164b0b5bf90b28f8323
2018-03-21 05:56:25 +00:00
Kenny Guy
ec210b657c Merge "Get current and default brightness configs." into pi-dev
am: daec95a7f5

Change-Id: Ida5b40009af65cc63d54f941d1fdc01691285266
2018-03-21 05:01:52 +00:00
Android Build Merger (Role)
45dcce7cce Merge "Merge "Expose add/removeAddress for IpSecInterfaces" am: 8e2b079f56 am: 189292cc36" into pi-dev-plus-aosp 2018-03-21 04:45:42 +00:00
nharold
763352f1f5 Merge "Expose add/removeAddress for IpSecInterfaces" am: 8e2b079f56
am: 189292cc36

Change-Id: Ib6780094b6b6b13146829b92fb3942a98cd96100
2018-03-21 04:45:15 +00:00
Chong Zhang
f9d841f978 Merge "heif: address api review comments" into pi-dev
am: ffb6521082

Change-Id: Id4d960bc09434583ef9ab231d1e110248d31384a
2018-03-21 04:41:09 +00:00
Beverly
de3719dffe Merge "Ability to hide/unhide suspended app notifications" into pi-dev
am: 6c0f42b3b5

Change-Id: Iad46af0da71abd4c879b8a0811ebe1943d064b7a
2018-03-21 03:36:44 +00:00
TreeHugger Robot
6ed6340e3c Merge changes from topic "SoundTriggerJobService-steps" into pi-dev
* changes:
  Throttle number of sound trigger operations / day
  Add SoundTriggerDetectionService
  Expose SoundTriggerManager and SoundTrigger APIs
2018-03-21 03:27:56 +00:00
yuemingw
e31dd1fe95 Merge "Better javadoc and rename several methods in ApnSetting." into pi-dev
am: 5d5d6aa28a

Change-Id: Ifaae67cd03bd979e3aeb40f3a077bdb36d5911e6
2018-03-21 02:51:18 +00:00
TreeHugger Robot
daec95a7f5 Merge "Get current and default brightness configs." into pi-dev 2018-03-21 02:31:19 +00:00
Jiuyu Sun
eb73734b96 Merge "Mark eraseSubscriptions as @SystemApi." into pi-dev
am: b8651f6fba

Change-Id: I31b7c560e9e2c0c6163b2f4214d897ddc279f51a
2018-03-21 02:31:18 +00:00
TreeHugger Robot
ffb6521082 Merge "heif: address api review comments" into pi-dev 2018-03-21 01:04:15 +00:00
Eino-Ville Talvala
6b031adf08 Merge "Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION" into pi-dev
am: 1486849e8b

Change-Id: Ie4195451c9c0084973dc0c1f758eb81c99977f96
2018-03-21 00:51:15 +00:00
Julia Reynolds
e75d735d01 Merge "Log visual interruptions to usagestats." into pi-dev
am: 1c7c2bdd0b

Change-Id: I3a6497fbdddc5f728c5702f1a60e479d99fd7277
2018-03-21 00:08:39 +00:00
Michael Wachenschwanz
543275c541 Merge "Make SYSTEM_INTERACTION a SystemApi" into pi-dev
am: 06ce5f6803

Change-Id: Ieef7dc8027f0c81b8dfafa08b3d626adf3cfe75f
2018-03-21 00:03:53 +00:00
TreeHugger Robot
6c0f42b3b5 Merge "Ability to hide/unhide suspended app notifications" into pi-dev 2018-03-20 23:38:36 +00:00
TreeHugger Robot
5d5d6aa28a Merge "Better javadoc and rename several methods in ApnSetting." into pi-dev 2018-03-20 23:38:10 +00:00
Jiuyu Sun
b8651f6fba Merge "Mark eraseSubscriptions as @SystemApi." into pi-dev 2018-03-20 22:53:31 +00:00
Eino-Ville Talvala
1486849e8b Merge "Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION" into pi-dev 2018-03-20 21:58:15 +00:00
Beverly
5a20a5ed2f Ability to hide/unhide suspended app notifications
Test: NotificationListenerVerifierActivity.java
Test: atest NotificationDataTest NotificationListenerServiceTest NotificationManagerServiceTest
Bug: 73965645
Change-Id: I49a02e9fd84dfaa1891437a5d8fc52109a43cded
2018-03-20 17:40:36 -04:00
TreeHugger Robot
1c7c2bdd0b Merge "Log visual interruptions to usagestats." into pi-dev 2018-03-20 21:34:01 +00:00
TreeHugger Robot
06ce5f6803 Merge "Make SYSTEM_INTERACTION a SystemApi" into pi-dev 2018-03-20 21:31:58 +00:00
Amit Mahajan
04c6962605 Merge "Revert "TelephonyManager System APIs process"" into pi-dev
am: cfa8591779

Change-Id: I9cea061688397e4d407167f8f7b680385c5592cf
2018-03-20 21:27:58 +00:00
Philip P. Moltmann
18e3eb8168 Add SoundTriggerDetectionService
The service is meant to replace the PendingIntent based API. Once all
users of the PendingIntent based API switched the PendingIntent based API
will be removed.

To have as little as possible impact on the whole SoundTrigger framework
the RemoteSoundTriggerDetectionService class implements the same
interface as the PendingIntent based class. Hence the exising code has
very little change. Further once the old code can be removed the amount
of changed (and added) code is limited.

The RemoteSoundTriggerDetectionService -> SoundTriggerDetectionService
is a vanilla as possible service implementation. The special behaviors
are:
- The system holds a wakelock while service operations are in progress
and the service is bound as foreground. Hence the service can e.g.
listen to the microphone.
- Service operations have a certain amount of time they are allowed to
run. Once every operation is either finished or the the operation
exceeded the allotted time, the system calls onStopOperation for each
still pending operation. This is a similar model as for the commonly
used JobService.
  Please note that if the time allowed for an operation is 15s and
op1 was run as 0si, and op1 was run at 5s, the service is allowed to run
until 20s. Hence _both_ onStopOperations will happen at 20s. This is
done for ease of implementation but should not give the service more
power than calling onStopOperation exactly 15s after each operation is
triggered.
- If an operation is done before the allotted time is reached, the
service can declare the operation as finished manually by calling
onOperationFinished. This is a call back into the system, hence a
'client' binder is sent to the service. If the operation is finished
by calling this method onStopOperation will not be called.
- As the service instance might be killed and restored between
operations we add a opaque bundle 'params' to each operations. The users
of the API can use this to send data from the start command to the
operations. It can also just be set to null. The params are not meant to
store changing state in between operations. Such state needs to be
persisted using the regular methods (e.g. write it to disk)
- A service can be used for multiple recognition sessions. Each
recognition is uniquelity defined by its sound model UUID. Hence each
operation gets at least tree arguments: Operation ID, sound mode UUID, params
- As a small optimization the params are cached inside of the service
instance.

The time allowed for each operation is in a @SystemAPI global setting,
so the service can make sure it finishes the operations before they are
stopped. It might take some time to deliver the operations via the
binder, hence it is not recommended to try to use every last ms of
allotted time.

Test: atest SoundTriggerDetectionServiceTest (added in separate CL)
      atest android.provider.SettingsBackupTest
Change-Id: I47f813b7a5138a6f24732197813a605d29f85a93
Fixes: 73829108
2018-03-20 13:57:14 -07:00
Philip P. Moltmann
a5fd0294c7 Expose SoundTriggerManager and SoundTrigger APIs
These APIs require a system permissions, hence SystemAPI.

As SoundTrigger is now partially SystemApi and partially internal API a
lot of @hide tags are needed to keep hiding the still internal classes,
fields and methods. As SoundTrigger is heavily used via reflection no
structural change to this class can be made.

The MANAGE_SOUND_TRIGGER permission should be visible to the apps as
the apps need to know which permission to request in their manifest.
If it wouldn't be exposed it would just be a magic string.

Test: built
Change-Id: Ic93d67639e2605c26c961acdd827c14cb0a68f47
Bug: 73829108, 71981721
2018-03-20 13:57:14 -07:00
Jason Monk
106387f0b2 Some Slices API refinement
Removing overloads, fixing documentation, adding stringdefs, etc.

Test: update-api
Change-Id: Iae902092a29d44c3f4735ad2c3392bb35988684a
Fixes: 73124159
Bug: 73123366
Fixes: 73123451
Fixes: 73123651
Fixes: 73124123
2018-03-20 16:55:47 -04:00
Gustav Sennton
6abde8b128 Add API WebView.getWebViewLooper()
We want to rename WebView.getLooper() to contrast it better with the
unrelated method WebView.getHandler(). For now we just create a method
to replace WebView.getLooper(), so that we can remove references to
WebView.getLooper() before removing it.

Bug: 74831609
Test: make
Change-Id: I8e493a67aa078f9c8ceea6706dc940abacfdd6e6
2018-03-20 20:39:52 +00:00
Nathan Harold
a83601a511 Expose add/removeAddress for IpSecInterfaces
When exposing the APIs, these were missed.
The outer structure is exposed, so this exposes
the addAddress and removeAddress methods.

Bug: 75234273
Test: compilation
Change-Id: I79911434f9baa660e4d8564cc59d80da4a710c42
2018-03-20 12:32:20 -07:00
Amit Mahajan
cfa8591779 Merge "Revert "TelephonyManager System APIs process"" into pi-dev 2018-03-20 19:27:10 +00:00
Julia Reynolds
7217dc9f76 Log visual interruptions to usagestats.
Test: runtest systemui-notification, cts
Bug: 74318867
Change-Id: I6233240c2a7940225cadde0258b5d7ba88b86aaf
2018-03-20 15:14:16 -04:00
Chris Wren
d1d1980455 Merge "support framework logging for slices" into pi-dev
am: 6446ed4a0f

Change-Id: Ie848304de218b16ce740b0dfd5701e120c322e36
2018-03-20 18:48:06 +00:00
yuemingw
7e1298f1a4 Better javadoc and rename several methods in ApnSetting.
Test: runtest -x frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java
run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testOverrideApn

Bug: 73087996
Change-Id: I5232c92a44ab505946956f81965a205f170aa52b
2018-03-20 18:15:25 +00:00
Chris Wren
6446ed4a0f Merge "support framework logging for slices" into pi-dev 2018-03-20 17:33:40 +00:00
TreeHugger Robot
c6d6f55ec4 Merge "NfcAdapter.EXTRA_SE_NAME -> NfcAdapter.EXTRA_SECURE_ELEMENT_NAME" into pi-dev 2018-03-20 17:23:59 +00:00
Amit Mahajan
71e4c9bfad Revert "TelephonyManager System APIs process"
This reverts commit 2f39856753.

Reason for revert: b/75998747

Bug: 75998747
Merged-in: I4a98388c732249ce2aaf05a57c3a98c15f4bd4b3
Change-Id: I35569102bc311162c3d3550fadb6b4307dbe3af1
2018-03-20 16:21:39 +00:00
Leon Scroggins
c2af8747cb Merge "Add an asset source for ImageDecoder" into pi-dev
am: 51d2cc45d8

Change-Id: Id54fef03d3ac97a259bb6f71721407962c76c067
2018-03-20 14:55:29 +00:00
Peter Visontay
87627e2e63 Add missing "android:" prefix to some app op constants.
am: a382a8e668

Change-Id: I0513c60a9763065219d56feb9cc05ad2d4cfcd96
2018-03-20 14:42:23 +00:00
Leon Scroggins
51d2cc45d8 Merge "Add an asset source for ImageDecoder" into pi-dev 2018-03-20 14:33:43 +00:00