Commit Graph

23216 Commits

Author SHA1 Message Date
Julia Reynolds
4509ce731c Add settings for notification bubbling
And a new api to consolidate that information for notification
listeners

Test: atest
Bug: 123543052
Change-Id: I61d1718ef5b5bb8ab824d4c3efff511669266313
2019-02-05 08:47:16 -05:00
Philip P. Moltmann
f2bfd385c9 Merge "Plumming of perm restore via permission controller" 2019-02-04 17:13:37 +00:00
Dario Freni
1108886bd2 Merge "Add STAGED_SESSION_ prefix to error codes." 2019-02-04 10:34:09 +00:00
Philip P. Moltmann
7532c615cb Plumming of perm restore via permission controller
On Android backup restoration first restores and inital state. Then with
the packages getting downloaded the leftover "delayed" backup gets
restored bit by bit.

This currently just created plumming mirroring the previously implemented
behavior.

Bug: 116738135
Test: Built
Change-Id: I528b5f76dfca5bbdc9f69d6402b23b3d2ef11706
2019-02-02 10:00:36 -08:00
TreeHugger Robot
0aa4a4692f Merge "RTT LCI API (Client Side)" 2019-02-02 01:19:53 +00:00
Philip P. Moltmann
180a0e1305 Merge "Add PermissionGrantRequestResultReported atom" 2019-02-01 21:48:00 +00:00
Tyler Gunn
8303572af5 Merge "Deprecate acceptRingingCall and endCall." am: 6e3a88a3e2 am: 280019629c
am: 994c17768a

Change-Id: I10fee83408de8a1af75555eedf2403dfdbc4b857
2019-02-01 13:06:23 -08:00
Roy Want
b1772f92bd RTT LCI API (Client Side)
Bug: 111439464
Test: Tests were added for new classes. All unit tests pass.
Change-Id: I5a644a06c512b98e735fc1acb19e38a33bf4b2ad
2019-02-01 12:37:21 -08:00
Aurimas Liutikas
ce37d9027d Merge "Update TypedArray and TypedValue to store source layouts." 2019-02-01 20:35:23 +00:00
Tyler Gunn
994c17768a Merge "Deprecate acceptRingingCall and endCall." am: 6e3a88a3e2
am: 280019629c

Change-Id: Ie2bc60b8c8f5abc1651944fa3f927b23ab545d0f
2019-02-01 12:31:53 -08:00
Philip P. Moltmann
e0cf4e6087 Add PermissionGrantRequestResultReported atom
Also add a prototype for a future system-api accessible metrics file
that will be auto-generated from atoms.proto

Test: - ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissoncontroller 170
      - triggered permission request
Bug: 123594188, 123663448
Change-Id: Icede6ff1f12ca79ebad6267c045a4fb3a9955402
2019-02-01 10:22:37 -08:00
TreeHugger Robot
20b6426f48 Merge "Flags instead of booleans for countPermissionApps" 2019-02-01 18:21:33 +00:00
Kevin DuBois
a28aa5e6ec Merge "Pipe through color sampling to BrightnessChangeEvent" 2019-02-01 17:42:00 +00:00
Tyler Gunn
6e3a88a3e2 Merge "Deprecate acceptRingingCall and endCall." 2019-02-01 17:27:58 +00:00
Dario Freni
b6d2896a4b Add STAGED_SESSION_ prefix to error codes.
Fix: 123661418
Test: m
Change-Id: I013af7699f0d0225cdcdde232e54e2ee3f615257
2019-02-01 16:26:14 +00:00
Narayan Kamath
bd01149b62 Merge "ModuleInfo: Address API council feedback." 2019-02-01 12:00:44 +00:00
TreeHugger Robot
3f4fcd0a94 Merge changes from topic "session2Token"
* changes:
  Revert "Remove MediaController2 usages in MediaSessionServiceImpl"
  Revert "Ensure that framework does not refer MediaSession2 related code"
2019-02-01 11:01:18 +00:00
Po-Chien Hsueh
5380a5adf9 Merge "Add DynamicAndroidClient" 2019-02-01 10:56:42 +00:00
Hyundo Moon
ff36c48229 Revert "Remove MediaController2 usages in MediaSessionServiceImpl"
This reverts commit c1e4316e02.

Reason for revert: Now the circular dependency problem is resolved, this change is now obsolete.

Bug: 123336670
Change-Id: I065d811e9b8a3c7f851fb66d9527d62b417f1420
2019-02-01 14:54:24 +09:00
Hyundo Moon
9f914c9bb7 Revert "Ensure that framework does not refer MediaSession2 related code"
This reverts commit 14ca142e65.

Reason for revert: Now the circular dependency problem is resolved, the change is now obsolete.

Bug: 123495968
Change-Id: I5992f9dd205654ce70143773f9ab9bdcafee9ace
2019-02-01 14:54:09 +09:00
TreeHugger Robot
8a72d5a9d5 Merge "Add a new "appPredictor" protection flag." 2019-02-01 03:48:32 +00:00
TreeHugger Robot
ccd5c4896c Merge "StatsManager setActiveConfigsChangedOperation API" 2019-02-01 02:19:11 +00:00
TreeHugger Robot
f7207298a7 Merge "Make android:useEmbeddedDex public" 2019-02-01 00:43:33 +00:00
TreeHugger Robot
f995dbadd6 Merge "Move multiplier to ViewConfiguration" 2019-02-01 00:06:38 +00:00
Aurimas Liutikas
949b05dbdc Update TypedArray and TypedValue to store source layouts.
In ag/5859897 we started tracking source styles for each TypedValue.
It is also useful to keep track of source layouts if the attribute
was resolved against a layout (attribute set in XML layout inside
of <View> tag).

Test: atest CtsContentTestCases:android.content.res.cts.TypedArrayTest
Bug: 111439551
Change-Id: Ie6bc6ecd9a22b536a2f3288263b896f9cec67d38
2019-01-31 15:44:51 -08:00
Brad Ebinger
8bb813dcd7 Merge "Add new ImsException to better handle ImsService errors" am: 3811aba3a4
am: 0bfbfe5646

Change-Id: Ic3a0806cc5e1d6efb0c2d175fda77cd57466072a
2019-01-31 15:43:52 -08:00
Brad Ebinger
3811aba3a4 Merge "Add new ImsException to better handle ImsService errors" 2019-01-31 23:26:57 +00:00
TreeHugger Robot
0e9854e065 Merge "Adding isInstantApp API to UsageEvents" 2019-01-31 23:05:55 +00:00
TreeHugger Robot
6f68d49476 Merge "Expose FLAG_WINDOW_IS_PARTIALLY_OBSCURED" 2019-01-31 22:29:58 +00:00
Philip P. Moltmann
e1436e85ae Flags instead of booleans for countPermissionApps
Test: Checked that the api retunred the results
Change-Id: I3f95bf9beee4a7edae5cbd9457ad4efefe83d1be
Fixes: 123697839
2019-01-31 14:22:39 -08:00
Victor Hsieh
f9bc914351 Make android:useEmbeddedDex public
Test: use it in (local) new CTS
Bug: 112037137

Change-Id: I2313f40bbd06be9721de33106bdae0b2fcbb55e1
2019-01-31 14:21:40 -08:00
TreeHugger Robot
7d3adab5e9 Merge "Change foregroundServiceType from enum to flags" 2019-01-31 22:11:41 +00:00
Siarhei Vishniakou
8b047dd850 Move multiplier to ViewConfiguration
We have defined the same constant twice. Let's move it to
ViewConfiguration to avoid redundancy.

Test: build only
Bug: 123368517
Change-Id: I2ac765a85ccd71584429edc693d3ef33b2515c9d
2019-01-31 13:36:07 -08:00
TreeHugger Robot
5f70acf095 Merge "Resolve feedback from API review" 2019-01-31 21:21:04 +00:00
Dimuthu Gamage
88ebac4275 Adding isInstantApp API to UsageEvents
Extending UsageEvents.Event to include isInstantApp()

Bug: 111407095
Test: Expecting to add cts tests to the added API methods
Change-Id: Iead337a23deddc58fa1f2f4a1cc3036572147951
2019-01-31 12:25:59 -08:00
Hui Yu
2d4207f8c1 Change foregroundServiceType from enum to flags
1. Now the value of manifest attribute foregroundServiceType can
be multiple flags ORed together.
2. Add a overloaded version of Service.startForeground() with an
additional parameter foregroundServiceType. The flags in parameter
foregroundServiceType must be a subset of flags specified in manifest
attribute foregroundServiceType, otherwise a IllegalArgumentException is
thrown.
3. Add a field foregroundServiceType in ServiceRecord, it is the types
that have been started on this foreground sevice.

Bug: 111453223
Test: atest frameworks/base/tests/FrameworkPerf

Change-Id: I7eb68f696e6bf75720fe9c9388a6c23a529677f7
2019-01-31 11:50:18 -08:00
Tyler Gunn
9bd8db4af7 Deprecate acceptRingingCall and endCall.
These APIs are replaced by CallScreeningService and the new
companion app roles in InCallService.

Test: Update Apis and verify deprecated.
Bug: 63966743
Change-Id: Ib4c4ac6b723ccd46d3052fb2b9c9f58b3151cc29
2019-01-31 10:54:03 -08:00
Aurimas Liutikas
83cbd348c3 Merge "Add View#getSourceLayoutResId()." 2019-01-31 18:23:02 +00:00
George Hodulik
cd7695dda0 Add a new "appPredictor" protection flag.
Permissions that have the new apppredictor protection flag will
be granted to the app predictor app, which is AiAi for Pixels.

The MANAGE_APP_PREDICTIONS permission is updated to use the
app predictor flag.

App Predictor for Pixels already set in ag/6019430.
Some one-off handling for app predictor already added in
ag/6025266 and ag/6025267. This cl adds the appPredictor flag.

Test: Tested manually that it worked.
Test: atest CtsPermission2TestCases:PermissionPolicyTest
Bug:123599542

Change-Id: I0550930f78fdb57eea8680762c9b313a330968b6
2019-01-31 10:17:09 -08:00
Siarhei Vishniakou
3a6a411282 Expose FLAG_WINDOW_IS_PARTIALLY_OBSCURED
Currently, Chrome is using this flag via reflection.
Let's allow developers to use this flag.

Fixes: 120487602
Test: presubmit only
Change-Id: Id28bd1f2cb862bb49f27758a4948f197bba124e2
2019-01-31 10:11:36 -08:00
TreeHugger Robot
d73433cf25 Merge "VideoSize: replace with Size" 2019-01-31 17:35:13 +00:00
Kenny Guy
908108aa4b Pipe through color sampling to BrightnessChangeEvent
Change brightness tracker to enable / disable color
sampling on screen on / off.
Add value channel to BrightnessChangeEvent if available.

Bug: 112756444
Test: atest BrightnessTrackerTest
Test: atest android.display.cts.BrightnessTest
Test: manual checked pixel3 which supports this and pixel2 which doesn't

Change-Id: I94384752235d891cee975b01f933c0bc0b4572a9
2019-01-31 16:33:06 +00:00
TreeHugger Robot
62c8b56d00 Merge "[Magnifier-74] Remove MAX_IN_VIEW sourcebound type" 2019-01-31 16:09:20 +00:00
Howard Chen
1906271db6 Merge "Add the DynamicAndroid Service" am: 0b2057db02
am: 683251a1e2

Change-Id: Ia23e042273c8ab1a9d6de5e393b126794822cb5f
2019-01-31 07:11:33 -08:00
Remi NGUYEN VAN
45289f0bef Merge "Add NetworkStackPermissionStub definitions" am: 0fe59007ce am: d1a7c18ec6
am: f502776654

Change-Id: Ic4eb53246e7e61f7ebe6ad574a2e96a2cb4eff4b
2019-01-31 06:47:49 -08:00
Remi NGUYEN VAN
f502776654 Merge "Add NetworkStackPermissionStub definitions" am: 0fe59007ce
am: d1a7c18ec6

Change-Id: I201c5a28b7f07178a6980e582d05b36121037707
2019-01-31 06:36:24 -08:00
Howard Chen
0b2057db02 Merge "Add the DynamicAndroid Service" 2019-01-31 14:35:49 +00:00
Remi NGUYEN VAN
0fe59007ce Merge "Add NetworkStackPermissionStub definitions" 2019-01-31 14:13:22 +00:00
Martijn Coenen
81973983b0 Merge "Allow app to specify class name for app zygote preloading." 2019-01-31 12:35:13 +00:00
Remi NGUYEN VAN
d8c75a0438 Add NetworkStackPermissionStub definitions
The NetworkStackPermissionStub package is used to enforce that
permissions used by the NetworkStack are only used in packages
sharing signature with NetworkStackPermissionStub.

Permissions defined in this package are intended to be used only by the
NetworkStack: both NetworkStack and the stub APK will be signed with
a dedicated certificate to ensure that, with permissions being signature
permissions.

This APK *must* be installed, even if the NetworkStack app is not
installed, because otherwise, any application will be able to define
this permission and the system will give that application full access
to the network stack.

Test: flashed, booted
Bug: 112869080
Change-Id: Ia13a9e6a703cb7b4403697a7f7bfff0f6f3b813e
2019-01-31 21:16:13 +09:00