Commit Graph

1195 Commits

Author SHA1 Message Date
Jeff Sharkey
ac4eafc9cf Merge "Mark @Nullable annotation to String parameter" 2019-03-04 17:33:32 +00:00
Svetoslav Ganov
2a980300bc Merge "Slice and dice app ops - framework" 2019-03-04 17:22:20 +00:00
shawnlin
e40033eb24 Mark @Nullable annotation to String parameter
Test: make, make system-api-stubs-docs-update-current-api
Bug: 126700130
Change-Id: I89b9bf726bda3241cf8bfb4737d2c25cb65b8369
2019-03-04 17:01:34 +08:00
Hugo Benichi
df44944fe6 Merge "LocalLog: add overloaded dump and reverseDump methods." am: 7c447498c3 am: 0357a9ca4c
am: 5121df9b61

Change-Id: I89cb6300ae6c86e790df702fbdf3416b2f242cd9
2019-03-03 18:19:39 -08:00
Treehugger Robot
7c447498c3 Merge "LocalLog: add overloaded dump and reverseDump methods." 2019-03-04 01:46:23 +00:00
Svet Ganov
af189e3371 Slice and dice app ops - framework
Appops can be peformed by an app on its behalf and also on
behalf of another app, i.e. an app can perform a proxy op
and blame the work on another app. The proxy mechanims is
for apps doing work on behalf of other apps where GCore is
one example since the app doing the work needs to check if
the caller has access to the functionality - specifically
the app op backing a runtime permission in case the calling
app does not support runtime permissions.

Apps being able to blame work on other apps is a problem now
that we would be using historical op data to show permission
usage in the UI as apps can start blaming each other to gain
a competitive advantage.

To address the issue we are adding APIs for querying portions
of the app op data - last and historical. One can now get
the ops for work the app did for itself, work the app blamed
on other apps if the app is trusted, work the app blamed on
other apps if the app is not trusted, work other trusted apps
blamed on the app, work other untrusted apps blamed on the app.
A trusted app is one holding the permisison to update app op
stats which is privileged.

The data slicing API allow us to show in the UI only the trusted
poriton of the data which is work the app did for itself, work
trusted apps balmed on the app, and work the app if untrusted
blamed on other apps.

Test: atest CtsAppOpsTestCases

bug:111061782

Change-Id: I9a2bcaea272cb06f38ba742cf601a6dc3b287d5e
2019-03-01 21:12:16 -08:00
Jeff Sharkey
9e8f83db6d All Parcelable CREATOR fields are @NonNull.
If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
2019-02-28 23:29:04 -07:00
Jeff Sharkey
bffd25082c Translate selection arguments that are paths.
Also migrate MediaProvider logging to more general-purpose location
on the ContentProvider.Transport, where we can log exact input/output
values to aid debugging.

Bug: 124347872
Test: manual
Change-Id: I6aba60879ded4e0892d2d1cdd717c23cebaaabd8
2019-02-28 16:39:30 -07:00
Fan Zhang
3d6fff4db6 Merge "Revert "Enable mainline module feature."" 2019-02-28 00:51:42 +00:00
Fan Zhang
52e966e996 Revert "Enable mainline module feature."
This reverts commit 22171d7d64.

Reason for revert: hiding mainline module again in beta2.

Change-Id: I7d66aa1efe3bf1746d8f908dd115bf0f4eb83ebe
2019-02-28 00:51:10 +00:00
TreeHugger Robot
5f9cad60c8 Merge "Remove dynamic_homepage flag." 2019-02-27 19:51:40 +00:00
TreeHugger Robot
01085c4d1f Merge "Enable mainline module feature." 2019-02-26 02:13:10 +00:00
Fan Zhang
6e49425918 Remove dynamic_homepage flag.
Fixes: 118444000
Test: rebuild
Change-Id: Ifc9c983f87753e290cb0fbc2e467ae7696bb5ee8
2019-02-22 13:54:34 -08:00
Wale Ogunwale
691af68a3c Added some TestApi that are already used by CTS
Allows us to remove the use of private platform API from CTS.

Bug: 124134247
Test: builds
Change-Id: Iceb81ff7c9385e877d2612fbb7b506245d116928
2019-02-21 20:15:56 -08:00
Doris Ling
22171d7d64 Enable mainline module feature.
Fixes: 122615240
Test: rebuild
Change-Id: I20cc24993da079c82781b39e329fc13d86b0e0b3
2019-02-21 12:50:15 -08:00
Hugo Benichi
d7be4c70c3 LocalLog: add overloaded dump and reverseDump methods.
Both dump() and reverseDump() only need a single PrintWriter parameter.
This patch adds overloaded versions of these methods with that single
parameter. Callers can slowly migrate to these simpler methods over
time.

Test: Compiled.
Change-Id: I503df2af1d8115f715238f94551343fda1e951cb
2019-02-21 16:34:08 +09:00
Howard Chen
0d958bbf1d Add feature flag for Dynamic Android
Bug: 119647479
Test: flashall and check the option exists.

Merged-In: I46efd27a6880dde4bc69aa457a6f3b0fdd9ce5cd
Change-Id: I46efd27a6880dde4bc69aa457a6f3b0fdd9ce5cd
2019-02-21 15:05:20 +08:00
TreeHugger Robot
407761a768 Merge "Add feature flag for Dynamic Android" 2019-02-21 05:10:49 +00:00
Howard Chen
8cbedf5647 Add feature flag for Dynamic Android
Bug: 119647479
Test: flashall and check the option exists.

Change-Id: I46efd27a6880dde4bc69aa457a6f3b0fdd9ce5cd
2019-02-21 10:41:27 +08:00
Ahan Wu
e3b0664716 Remove AOD_IMAGEWALLPAPER_ENABLED from feature flags
The design of aod image wallpaper has changed and we don't need this
implementation any more so we remove it from feature flags.

Bug: 118470430
Bug: 123617158
Test: Manually

Change-Id: I4d48a8b6b8146b754c1d1f48c35855190219d8a9
2019-02-20 20:37:47 +08:00
Johnson Lu
054ccde09a Remove feature flags of WiFi Sharing feature
Bug: 120744414
Test: Manual
Change-Id: I8aef3e2f197307cd884f846ab508dd465f78395f
2019-02-18 00:44:23 +00:00
Xin Li
0e71b4f19b DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into
stage-aosp-master

Bug: 124234733
Change-Id: Ic4f67fde0835da0b1c363906cccef0d244e38393
2019-02-14 09:48:06 -08:00
Chenjie Yu
afe83a6720 Merge "add api to log BinaryPushStateChanged atom" 2019-02-14 00:14:07 +00:00
Chenjie Yu
6b1667c8b1 add api to log BinaryPushStateChanged atom
This api is to log BinaryPushStateChanged.
Experiment id is added as a binary blob that is not expected to be
accessed on device side.
This cl is mainly for API.
Will add follow up cls for persisting train info on disk and make puller
for it.
Will address sepolicy in follow up cls.

Bug: 119633962
Bug: 119685453
Test: will add gts
Change-Id: I68b4246cf7e8079155e16121ca37a312b35a5328
2019-02-13 10:47:27 -08:00
Zak Cohen
c730de9118 Adds lerpInv, saturate, lerpInvSat and constrainedMap to MathUtils.
Change-Id: I525c9c691cb8f3eb61022e98b45997981c067018
Test: part of bigger change.
2019-02-11 15:01:52 -08:00
Gavin Corkery
6db967fe33 Merge "Renaming plsCertsNoVerifyOnlyCerts to unsafeGetCertsWithoutVerification." 2019-02-04 10:08:00 +00:00
Philip P. Moltmann
180a0e1305 Merge "Add PermissionGrantRequestResultReported atom" 2019-02-01 21:48:00 +00: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
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
Gavin Corkery
ed521ab2a9 Renaming plsCertsNoVerifyOnlyCerts to unsafeGetCertsWithoutVerification.
Bug: 118866213
Test: m -j
Change-Id: Iba5e933b7db8dd36d5c720dba128cdce7d76e6d5
2019-01-31 17:58:18 +00:00
linanson
5fbcaf46c1 Set the flag string "settings_seamless_transfer" as a static constant
Bug: 118428931
Test: Build pass
Change-Id: I1eb31307d4a1a63f4217f031bcb4d8bb856babdc
2019-01-31 11:42:01 +08:00
TreeHugger Robot
dcc1a9dd36 Merge "Add feature flag for mainline module." 2019-01-31 00:38:07 +00:00
Doris Ling
b97faba490 Add feature flag for mainline module.
Bug: 122615240
Test: rebuild
Change-Id: I89b723c71ade462d8d4b67172f52c676eaf0c363
2019-01-30 12:51:03 -08:00
TreeHugger Robot
0544b1ac87 Merge "Get ProtoOutputStream size without compressing it" 2019-01-30 02:32:49 +00:00
Makoto Onuki
1f0348524f Merge "Fix job scheduler constant" 2019-01-29 17:23:22 +00:00
Nataniel Borges
5f1cca657f Get ProtoOutputStream size without compressing it
The current implementation of the ProtoOutputStream compresses the
buffer in order to return its correct size.

For some use cases the compression is too expensive and it is more
useful to have a faster but overestimated size to a precise but slower
one.

This implementation adds a `getRawSize` method which returns the buffer
size without compressing it. If the buffer has already been compressed
the returned size is the same as the one from the `getSize`. If the
buffer is not yet compressed the size may diverge.

This implementation will be used to support a ring buffer for window
transitions on the Window Manager.

Bug: 123535780
Test: Check the getSize method from the EncodedBuffer and the getRawSize
from the ProtoOutputStream.
Change-Id: Ied24742a14b76980afdf6d6d22d67ade15ba7aad
2019-01-28 22:47:03 +00:00
Lei Yu
d22cf2d3ab Merge "Turn on feature flag for slice injection." 2019-01-28 02:33:33 +00:00
Makoto Onuki
f996c2c8c9 Fix job scheduler constant
Test: manual test with "adb shell settings put..." and "dumpsys jobscheduler"
Bug: 111360323
Change-Id: I2266bc0d4e75e9e374f3fe49d3e640b9f5712476
2019-01-25 15:18:48 -08:00
Aaron Heuckroth
5d1f0e0058 Merge "Creates a new grid-based global actions menu on power button hold." 2019-01-25 15:19:07 +00:00
jackqdyulei
0e42f8a3c0 Turn on feature flag for slice injection.
Bug: 120803703
Test: Manual
Change-Id: I0b3896257c346f458c4a8bdb0752c87ab27d97d2
2019-01-24 17:21:11 -08:00
Johnson Lu
f23df2f30a Merge "Enable Wi-Fi connectivity features" 2019-01-25 01:05:30 +00:00
Aaron Heuckroth
166392ff24 Creates a new grid-based global actions menu on power button hold.
Test: Automated tests should pass. Menu should render at correct size, shape, and position for 0-9 action items.

Bug: 121385065

Change-Id: I3448e7e333ea8fdaeb09a241249ce7521920169e
2019-01-24 20:06:54 +00:00
TreeHugger Robot
0e32dc9d01 Merge "Implementing app standby quotas for alarms" 2019-01-24 02:41:08 +00:00
Johnson Lu
b71cf3b1b0 Enable Wi-Fi connectivity features
1. Enables MAC randomization.
2. Enables Wi-Fi DPP.

Bug: 117192879
Bug: 117399425
Test: Manually test the flow
Test: make RunSettingsLibRoboTests
Change-Id: I78cc9a1ea3e4db42f6efa1c9cfa9ca90c37cf45b
2019-01-24 01:15:11 +00:00
Suprabh Shukla
47ca6fc6ef Implementing app standby quotas for alarms
Adding a quota mechanism for deferring alarms based on their standby
buckets.
Number of times an app can receive alarms in an hour is now capped by a
maximum depending on their standby bucket, with the frequency getting
more restricted as the buckets move higher.

Restricting presubmit test to only run when AlarmManagerService changed,
as some tests can take a while to complete.

Test: atest android.util.LongArrayQueueTest
atest CtsAlarmManagerTestCases:AppStandbyTests
atest FrameworksMockingServicesTests:AlarmManagerServiceTest

Bug: 122974477
Change-Id: Icbd5bbb8aeef91b543d09acee553fd0aa3a23f30
2019-01-23 13:50:12 -08:00
shawnlin
8a66b94c78 Add public APIs for docsui Westworld metrics
Test: make, make api-stubs-docs-update-current-api
Bug: 111552654
Change-Id: I94d24efcd2d015aa97fb1fdb429f3f2a23c3675b
2019-01-21 15:26:04 +08:00
xueliang.zhong
01e3a8919b Merge "Quiet SNaN inputs in Half.toFloat()" am: a879fd8b02 am: fea7e9f20d
am: b67858ba35

Change-Id: I5edd03a8e40d32618ded5f409e72b8e29c75137b
2019-01-18 16:59:47 -08:00
xueliang.zhong
b67858ba35 Merge "Quiet SNaN inputs in Half.toFloat()" am: a879fd8b02
am: fea7e9f20d

Change-Id: If0cdc41993d42759cd04fbf12fcb45e4ccc7acb7
2019-01-18 16:32:01 -08:00
Treehugger Robot
a879fd8b02 Merge "Quiet SNaN inputs in Half.toFloat()" 2019-01-18 23:18:15 +00:00
Makoto Onuki
5d5e98271c Merge "Fix job concurrency calculation" 2019-01-18 22:18:23 +00:00