Commit Graph

1173 Commits

Author SHA1 Message Date
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
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
Makoto Onuki
c279f2b85f Fix job concurrency calculation
- Originally, we had two parameters "total active jobs=6" and "max FG jobs=4",
but because of how we counted jobs against those, sometimes we ran at most 6
jobs and sometimes 10, depending on how pending jobs are queued. Now we made it
consistent.

- The new parameters that control it are:
 1. Max total jobs
 2. Max BG jobs
 3. Min BG jobs
    * This is used to ensure a certain number of BG jobs should run
      even when the TOP app keeps scheduling new jobs and consume
      the max total jobs.
 (4. Screen off rampup delay.)

We have these 3 values for each "memory trim level" and "screen on/off".
The intention is that when the screen is off, we should run more jobs. However,
when the screen is off, we don't increase the concurrency right away, but
we'll do so after the rampup delay.

- The current max values are based on the lenient side of the previous values,
but with a slightly lowered the max job count when the screen is on.

Under NOTMAL memory trim level, when the screen is ON:
 * 8 total jobs, 6 max BG jbos.

Under NOTMAL memory trim level, when the screen is OFF:
 * 10 total jobs, 6 max BG jbos.

Bug: 111360323
Test: Manual test using "adb shell requestsync"
Test: atest JobCountTrackerTest MaxJobCountsTest
Test: atest CtsJobSchedulerTestCases  (following failed; all known issues)
android.jobscheduler.cts.BatteryConstraintTest#testBatteryNotLowConstraintFails_withoutPower
android.jobscheduler.cts.BatteryConstraintTest#testChargingConstraintExecutes
android.jobscheduler.cts.ConnectivityConstraintTest#testConnectivityConstraintExecutes_metered
android.jobscheduler.cts.ConnectivityConstraintTest#testConnectivityConstraintExecutes_withMobile
android.jobscheduler.cts.ConnectivityConstraintTest#testUnmeteredConstraintFails_withMobile
android.jobscheduler.cts.JobThrottlingTest#testBackgroundConnectivityJobsThrottled

Change-Id: I0a9de5832b946cb1cac8a69aedbb0cb59251ea47
2019-01-17 10:26:51 -08:00
Aurimas Liutikas
ce7c99c661 Add source style for each TypedValue.
This API will be used by Android Studio layout inspector to
query where a given resource attribute originated from to allow
developers to have an easier way to find what needs to be changed
to affect a given resource attribute.

Test: CTS added in the topic
Bug: 111439551
Change-Id: Ifbb52b39912ed0444030a86164290a1cd4155250
2019-01-15 16:11:23 -08:00
Eugene Susla
40335c1be9 Merge "Mirgate default SMS app handling to RoleManager" 2019-01-11 21:23:34 +00:00
Wu Ahan
1153b78033 Merge "Enable AOD image wallpaper and apply aod mask view." 2019-01-11 08:21:59 +00:00
Eugene Susla
4ab9511993 Mirgate default SMS app handling to RoleManager
This includes laying down some groundwork to make the remaining migrations
more straightforward

Bug: 110557011
Test: atest RoleManagerTest && atest SmsManagerTest
Change-Id: Ie96abd73751d10f521756c9dcdab2a5710ca2045
2019-01-10 10:41:10 -08:00
TreeHugger Robot
2ff3918d69 Merge "Add new set of max job counts." 2019-01-09 13:52:38 +00:00
Ahan Wu
723a80e4fd Enable AOD image wallpaper and apply aod mask view.
1. Enables image wallpaper in AOD.
2. Enables a mask with 70% black scrim and vignette effects.
3. Add feature flag in developer options which is default disabled.

Bug: 111861907
Bug: 118470430
Test: Manually test the flow
Test: runtest systemui
Test: atest ImageWallpaperTransformerTest
Test: atest AodMaskViewTest

Change-Id: Iff2642d52264e88012f4759842a59aaf5bc45b38
2019-01-08 15:17:53 +08:00
Gopalakrishnan Nallasamy
ad1c854f87 Range.java:Correct sign error in description
Current description for android.util.Range says ""All ranges are bounded, and the left side of the
range is always {@code >=} * the right side of the range." It should have been  "<=" there instead
of ">=".  So, corrected that in this CL.

Bug: 122271254

Test: make offline-sdk-docs
      Modified description was visible correctly.

Change-Id: I1eaa94210b39813b3e72ac2a0834bc0b466a99a5
2019-01-03 00:27:06 +00:00
Mathew Inwood
8501ae1763 Merge "Limit access to suspected false positives." am: aeda49d185
am: 152d5a5dcd

Change-Id: I8e10322e69d2d479079df5cf8fec0287c7c117f1
2019-01-02 05:00:54 -08:00
Mathew Inwood
55418eada5 Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 14:26:35 +00:00
Mathew Inwood
31755f94e1 Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: I020a9c09672ebcae64c5357abc4993e07e744687
2018-12-28 11:50:04 +00:00
Jorim Jaggi
5bb571dc40 A brave new world for window insets (5/n)
Implement controlWindowInsetsAnimation

Based on the leashes we have on the client, and the insets the
client has requested, we are able to move the surfaces around
such that the resulting insets will match what the client
requested.

Bug: 118118435
Change-Id: I0616e53455a6544aaf374c1b0eb10e258aced21d
2018-12-21 13:05:30 +01:00
Makoto Onuki
66a5144ec4 Add new set of max job counts.
We'll use different max numbers for screen on and screen off,
and the semantics will be different from that of P (since the previous
code was broken), so I'm just adding a new set of configs.

Also add wrapper classes for config values.

Bug: 111360323
Test: dumpsys jobscheduler contains the following sections.
  max_job_total_on_normal=4
  max_job_bg_on_normal=2
  max_job_total_on_moderate=4
  max_job_bg_on_moderate=1
  max_job_total_on_low=4
  max_job_bg_on_low=1
  max_job_total_on_critical=2
  max_job_bg_on_critical=1
  max_job_total_off_normal=8
  max_job_bg_off_normal=4
  max_job_total_off_moderate=6
  max_job_bg_off_moderate=4
  max_job_total_off_low=4
  max_job_bg_off_low=1
  max_job_total_off_critical=2
  max_job_bg_off_critical=1

Change-Id: I46004a1633494c0498681f4ee1d0045d3c3ab4d7
2018-12-20 14:35:07 -08:00
jackqdyulei
83651ec25c Add feature flag for settings slice injection
Bug: 120803703
Test: Manual
Change-Id: I1e0f92576ffb01d7300ec60d9c40165454b3aeba
2018-12-17 13:44:19 -08:00
xueliang.zhong
ea652eac63 Quiet SNaN inputs in Half.toFloat()
This CL fixes Half.toFloat() in handling SNaN inputs,
to make sure the Java implementation has same semantics
as the hardware implementations (Arm and Intel).

1. Armv8.2 implementation (FCVT):
  // tested as ART intrinsic on Pixel3
  __ Fmov(h31, w1);  // input: w1 register
  __ Fcvt(s0, h31);  // output: s0 register

2. X86 implementation (VCVTPH2PS):
  // clang -mf16c test.c
  float x86_toFloat(short h) {
    __v8hi v = {h, 0, 0, 0, 0, 0, 0, 0};
    __v4sf r = __builtin_ia32_vcvtph2ps(v);
    return r[0];
  }

3. Java implementation (software):
  android.util.Half.toFloat(short);

Test: Exhaustive testing of 0x0..0xFFFF input bits on above three
      implementations and compare output values.

Change-Id: Iff137858379bf43e59cde94c9d19c2054a3d4f93
2018-12-17 10:25:25 +00:00
Xin Li
15b123ef45 DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
Bug: 120502534
Change-Id: Idc8bfb6d97a869b76cfb87ca1a494201baf9e8bd
2018-12-11 14:13:44 -08:00
Johnson Lu
73eb2bf380 Add feature flags for WiFi connectivity feature
Bug: 120743100
Bug: 120744414
Test: Manual
Change-Id: Iaf26a947ac16b4a77d524492638dc489056d9e8b
2018-12-11 01:08:28 +00:00
Doris Ling
66cbe991ba Remove data usage v1 code.
Bug: 117420679
Test: make RunSettingsLibRoboTests
Change-Id: I3862b27c4e1df7d5bf560131bf29b89630603cc9
2018-11-30 16:34:45 -08:00
Neil Fuller
f148c8d7d4 Merge "Track move of timezone classes to libcore.timezone" am: d48dbc9a34 am: f79ecf7c82
am: 402dc485d0

Change-Id: If9c8cfdce9bd0b3bcd460216edca369fd75abdde
2018-11-28 08:24:57 -08:00
Neil Fuller
402dc485d0 Merge "Track move of timezone classes to libcore.timezone" am: d48dbc9a34
am: f79ecf7c82

Change-Id: I1551e5d4330ea290ba3e3054349f79ee28f919c6
2018-11-28 08:10:04 -08:00
Neil Fuller
b8383a10b9 Track move of timezone classes to libcore.timezone
Some time zone related libcore classes are moving from
libcore.util to libcore.timezone.

Bug: 119026403
Test: build only
Change-Id: Ic807977a85276b888362295d1d305effe33076fc
2018-11-27 14:44:59 +00:00