Commit Graph

1157 Commits

Author SHA1 Message Date
Lei Yu
d22cf2d3ab Merge "Turn on feature flag for slice injection." 2019-01-28 02:33:33 +00: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
Neil Fuller
894b41c3f8 Merge "Track move of timezone classes to libcore.timezone" am: bfd3237eac
am: 0f2e3d68be

Change-Id: Ia88ee2fae4d3c21f2b7b96513bc4e276df13bc28
2018-11-26 15:46:42 -08:00
Neil Fuller
69ffbd67c2 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
Exempt-From-Owner-Approval: Trivial import change
Merged-In: Ie90c219799cbf9601a22a2d972c09e3d94fc0c43
Change-Id: Ie90c219799cbf9601a22a2d972c09e3d94fc0c43
(cherry picked from commit 164394db8e)
2018-11-22 09:57:12 +00:00
Neil Fuller
f58e10d979 Merge "Track move of timezone classes to libcore.timezone" 2018-11-22 09:31:19 +00:00
Neil Fuller
164394db8e 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
Exempt-From-Owner-Approval: Trivial import change
Change-Id: Ie90c219799cbf9601a22a2d972c09e3d94fc0c43
2018-11-22 09:31:04 +00:00
Neil Fuller
f35dd4fa6c Merge "API for retrieving time zone IDs by country" am: 4492ec573a
am: b5ab9c2e1f

Change-Id: I69b477e36d760e5d06c232fc7fd0891d98dd52b6
2018-11-21 07:55:55 -08:00
Neil Fuller
4492ec573a Merge "API for retrieving time zone IDs by country" 2018-11-21 15:18:27 +00:00
TreeHugger Robot
d26b8bc796 Merge "resolve merge conflicts of 183271d1d2 to master" 2018-11-20 15:23:40 +00:00
yuanjiahsu
b39b469b12 resolve merge conflicts of 183271d1d2 to master
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I219a85189fb4207a0605ca541f8ecc29f5ee6808
2018-11-20 20:55:49 +08:00
Neil Fuller
6caa954ead API for retrieving time zone IDs by country
New method has been requested by Setup Wizard.

Test: CTS: run cts-dev -m CtsUtilTestCases -t android.util.cts.TimeUtilsTest
Bug: 116544863
Merged-In: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
Change-Id: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
(cherry picked from commit f9bb2d8f02)
2018-11-20 10:59:18 +00:00
Neil Fuller
9347978d5f Merge "API for retrieving time zone IDs by country" 2018-11-20 09:33:24 +00:00
Yuanjia Hsu
183271d1d2 Merge "Modify feature flag of Personal Safety" am: b4a197ca39
am: 4f4e52c1b9

Change-Id: Iebde195a7f6fd86cae357169fae76368df9727b4
2018-11-19 23:12:33 -08:00
yuanjiahsu
2c69b0b487 Modify feature flag of Personal Safety
1.Remove feature flag and let Emergency Dialer Shortcut feature always
enabled.
2.Add feature flag for Safety Hub (the bug ID to clean up this feature flag is b/118848485).

Test: Manually
Bug: 117128459
Bug: 118809382
Change-Id: I0a3819629bc579d93c682451abdf271d0b36bf59
2018-11-19 13:12:28 +00:00
Doris Ling
da476111bb Turn on feature flag for data usage v2.
- and update failing test case.

Change-Id: I6c12ce1fbae4ffa0c183df8a2bbf6867886b4986
Fixes: 117433810
Test: make RunSettingsLibRoboTests
2018-11-16 12:37:10 -08:00
Neil Fuller
f9bb2d8f02 API for retrieving time zone IDs by country
New method has been requested by Setup Wizard.

Test: CTS: run cts-dev -m CtsUtilTestCases -t android.util.cts.TimeUtilsTest
Bug: 116544863
Change-Id: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
2018-11-14 19:38:13 +00:00
Emily Chuang
7e15b7cc40 Turn on feature flag of settings contextual homepage.
Fixes: 118691898
Test: manual
Change-Id: I434d3c7827c03857974211a354264c542e1323f7
2018-11-12 18:16:35 +08:00
Lei Yu
cb9366507b Merge "Turn on feature flag for mobile network v2" 2018-11-09 20:41:06 +00:00