Commit Graph

13098 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
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
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
Philip P. Moltmann
9dd3e7d300 Add SoundTriggerDetectionService
am: 18e3eb8168

Change-Id: I4bb7ada74c36df4a64956c9c36a1675aad1f6645
2018-03-21 06:00:01 +00:00
Selim Cinek
2004f06753 Merge changes from topic "heads_up_redesign" into pi-dev
am: db0e4f1d73

Change-Id: I95507d927831053efcb16ac9821f18a175d90bc4
2018-03-21 04:34:20 +00:00
Amith Yamasani
01dbdeea77 Merge "API Review: Documentation improvement for standby buckets" into pi-dev
am: 35a4f4c4a6

Change-Id: I8e98ec5fe80689c78b5e5db17e58c7b08b244606
2018-03-21 04:01:08 +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
Andrii Kulian
fb49ec71ce Merge "Use transaction for local activity relaunch" into pi-dev
am: 60b877fa8c

Change-Id: I54a375a4220d2d12a5948141c396cee57fc5a55e
2018-03-21 02:18:58 +00:00
Andrii Kulian
8ef2b626c8 Merge "Don't set override display info for ActivityView" into pi-dev
am: 982973934d

Change-Id: Icee9f177557338f2392434701bb80e4300287661
2018-03-21 01:09:29 +00:00
Selim Cinek
db0e4f1d73 Merge changes from topic "heads_up_redesign" into pi-dev
* changes:
  Added new appear and disappear animations for heads up
  Polished the heads up experience
  Removed the heads up scrim and replaced it with more elevation
  Insetting heads up notifications
  Ensured that the heads-up notifications are always rounded
2018-03-21 00:53:50 +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
TreeHugger Robot
35a4f4c4a6 Merge "API Review: Documentation improvement for standby buckets" into pi-dev 2018-03-21 00:08:28 +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
Andrii Kulian
e5c818e202 Merge "Don't throw exception for duplicate stop" into pi-dev
am: 002e0ef06e

Change-Id: I70a17eb1b923871536721aa77442a85d18b49c74
2018-03-20 23:03:57 +00:00
Andrii Kulian
60b877fa8c Merge "Use transaction for local activity relaunch" into pi-dev 2018-03-20 22:42:21 +00:00
Selim Cinek
aa9db1f34f Insetting heads up notifications
Heads up notifications are now corretly respecting insets.
instead of overlapping with any possible notches, we're
insetting heads up notifications and splitting the main
content from the header.

Fixes: 72748440
Test: runtest systemui
Change-Id: Ie53ea31fef4e468239c4346f9d1f192bcb26e11d
2018-03-20 15:36:17 -07:00
Andrii Kulian
982973934d Merge "Don't set override display info for ActivityView" into pi-dev 2018-03-20 22:01:27 +00: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
Andrii Kulian
002e0ef06e Merge "Don't throw exception for duplicate stop" into pi-dev 2018-03-20 21:11:09 +00:00
Andrii Kulian
77d7360597 Use transaction for local activity relaunch
To know that onPostCreate callback should be executed we should use
TransactionExecutor for the entire transaction. It will fill
PendingActions object during the launch and the callback will be
triggered after onStart.
This CL changes local activity relaunch to use Lifecycler
infrastructure.

Bug: 72029061
Bug: 64610483
Fixes: 73747058
Test: ActivityLifecycleTests
Change-Id: I7d3fa6339fa6fe2634d0d1635f76e4d6ba03beb2
2018-03-20 14:08:40 -07: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
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
Andrii Kulian
f0379de259 Don't set override display info for ActivityView
ActivityView content should never be letter- or pillar-boxed
and it doesn't have overscan areas, so we can skip setting
display override info for a virtual display that backs it.

Bug: 72220802
Test: Manually resize with ActivityView demo app
Change-Id: I211449eaea50ec5d3214d63e7eb93a1d2ed2c0fd
2018-03-20 19:43:34 +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
Amith Yamasani
853e53f6e8 API Review: Documentation improvement for standby buckets
Specify how to compare with bucket constants since new
bucket constants could be introduced later.

Fixes: 73790511
Test: builds

Change-Id: Ib99ec5fe208bc612869df8bfc69a26ee6be31fa5
2018-03-20 12:00:28 -07: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
Chris Wren
6446ed4a0f Merge "support framework logging for slices" into pi-dev 2018-03-20 17:33:40 +00:00
Leon Scroggins
27e12ac211 Merge "Scale up in ImageDecoder based on API level" into pi-dev
am: 83ad4e53b6

Change-Id: Id6aad52ccb869d3b04d5b687d9bb93c6e4aa80f0
2018-03-20 17:29:19 +00:00
Leon Scroggins
83ad4e53b6 Merge "Scale up in ImageDecoder based on API level" into pi-dev 2018-03-20 16:44:44 +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 III
8290eaba47 Scale up in ImageDecoder based on API level
Bug: 74061412
Bug: 73893665
Test: Manual, I5669a97c70d726826c5c00bc1413c2f97d95d88c

ImageDecoder typically does not scale a Bitmap up to handle density.
This saves memory, and we already handle the density by scaling at
draw time. But some apps rely on the size of the Bitmap without taking
density into account. For backwards compatibility, on apps that are
built for a pre-P version of Android, scale up in ImageDecoder.

Change-Id: I9991d1286e386b47fc57bcfbf0c6652beb1a53ef
2018-03-20 10:30:32 -04:00
Peter Visontay
a382a8e668 Add missing "android:" prefix to some app op constants.
Bug: 75253734
Test: none
Change-Id: Ie91b4bee938b9c834c2cb3c831e3473fab0f534c
2018-03-20 14:25:12 +00:00
kopriva
9c6821025f docs: fixing typo, bug 36909553 am: 4dddc63ee7
am: fdffe0a8be

Change-Id: Ib9c862fc159005c71f4af7c2e8028d588d197a11
2018-03-20 05:26:31 +00:00
kopriva
fdffe0a8be docs: fixing typo, bug 36909553
am: 4dddc63ee7

Change-Id: Ib943321651422b55b928b90617145a871a0d0460
2018-03-20 04:12:47 +00:00
Andrii Kulian
829829ca2c Don't throw exception for duplicate stop
A double stop request is possible when display is being locked.
An activity may receive a "sleep" message followed by "stop",
both of which try to move it to stopped state.

An example when this happens: a keyguard is set up and the screen
is being locked. The keyguard will occlude the activity, which
causes a transition to paused state and, eventually, to stopped
state. A "sleep" message can be sent sometime before "stop" message
and will ignore that activity is in the process of becoming stopped.

Change-Id: I09e2c26004664b6e73ac5c2b6fe88bdf8271cf34
Fixes: 74967786
Test: FrameworksCoreTests:ActivityThreadTest
2018-03-19 18:41:15 -07:00
David Chen
1cc4099e80 Merge "Small fixes to StatsManager API." into pi-dev
am: 96e680cb90

Change-Id: I2d7e2a204c91ed7a824002111452286e5efa4977
2018-03-19 23:16:51 +00:00
Tracy Zhou
6f9ebab4ed Merge "Move default pip position to right above the shelf." into pi-dev
am: 017f44be88

Change-Id: I0b61860bedd0b949dbd2b2f87b10149c3577559b
2018-03-19 22:37:06 +00:00
kopriva
4dddc63ee7 docs: fixing typo, bug 36909553
Test: make ds-docs

Bug: 36909553
Change-Id: I6e6842fe555690d97b954c370b777b25c6f5e54e
2018-03-19 14:25:30 -07:00
TreeHugger Robot
96e680cb90 Merge "Small fixes to StatsManager API." into pi-dev 2018-03-19 21:04:39 +00:00
Alex Kershaw
c445726833 Merge "Fix Javadoc of DevicePolicyManager#setStorageEncryption to reflect that it's a no-op (and silent fail) when called from a non-system user." into pi-dev
am: 56be97edd0

Change-Id: I26c48173f62c19c437a6f24bd63159f80e3f6fb1
2018-03-19 20:15:31 +00:00
Tracy Zhou
017f44be88 Merge "Move default pip position to right above the shelf." into pi-dev 2018-03-19 20:15:14 +00:00
Chris Wren
9d8ce74a63 support framework logging for slices
Bug: 74354980
Test: runtest systemui
Change-Id: I0c7b398b1a077bc525f50c01d1065be2282a1809
2018-03-19 15:56:00 -04:00
John Reck
b542ac19c6 Merge "Don't use IPC in isolateProcess" into pi-dev
am: 75cd1c0334

Change-Id: If943e25ce31246bbc4267402b679665f674980ef
2018-03-19 19:12:20 +00:00
Alex Kershaw
56be97edd0 Merge "Fix Javadoc of DevicePolicyManager#setStorageEncryption to reflect that it's a no-op (and silent fail) when called from a non-system user." into pi-dev 2018-03-19 18:17:23 +00:00
Mike Digman
05a3cfd4d5 Merge "Add disable2 flag for rotate suggestions" into pi-dev
am: bd24572e17

Change-Id: I4b5cd5aa47debaedb115bd78cdd19fdda2bba552
2018-03-19 18:08:29 +00:00