OSDN Git Service

android-x86/frameworks-base.git
6 years agoAdd tracing for network statistics and policy.
Jeff Sharkey [Thu, 12 Apr 2018 20:26:32 +0000 (14:26 -0600)]
Add tracing for network statistics and policy.

These trace points surround areas of heavy lifting to help us debug
code that might be taking longer than expected.  (For example, slow
getting data from eBPF, slow recording into data structures, slow
writing to disk, or slow evaluating policy.)

Typical timings on a taimen:

performPollLocked:   25.5ms
snapshotUid:          4.4ms
snapshotXt:           1.4ms
[persisting]:        13.4ms
updateNotifications:  3.3ms

Bug: 77908520778085467785323877154412
Test: builds, boots
Change-Id: I072bfecffee01eeec7e4cbad439bd1cdc166febc

6 years agoMerge "Fix "auto battery saver notification comes back"" into pi-dev
Makoto Onuki [Mon, 16 Apr 2018 15:32:20 +0000 (15:32 +0000)]
Merge "Fix "auto battery saver notification comes back"" into pi-dev

6 years agoMerge "Cutout: Fix broken cutout rendering in landscape" into pi-dev
TreeHugger Robot [Mon, 16 Apr 2018 15:20:04 +0000 (15:20 +0000)]
Merge "Cutout: Fix broken cutout rendering in landscape" into pi-dev

6 years agoMerge "Add more hidden API on light greylist" into pi-dev
David Brazdil [Mon, 16 Apr 2018 15:04:07 +0000 (15:04 +0000)]
Merge "Add more hidden API on light greylist" into pi-dev

6 years agoMerge "Added screen brightness override feedback." into pi-dev
TreeHugger Robot [Mon, 16 Apr 2018 14:48:38 +0000 (14:48 +0000)]
Merge "Added screen brightness override feedback." into pi-dev

6 years agoMerge "Doc change: removed reference to the reverted Password Blacklist feature....
TreeHugger Robot [Mon, 16 Apr 2018 14:48:19 +0000 (14:48 +0000)]
Merge "Doc change: removed reference to the reverted Password Blacklist feature." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 16 Apr 2018 14:26:28 +0000 (14:26 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 16 Apr 2018 14:22:12 +0000 (14:22 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoCutout: Fix broken cutout rendering in landscape
Adrian Roos [Mon, 16 Apr 2018 14:03:04 +0000 (16:03 +0200)]
Cutout: Fix broken cutout rendering in landscape

Change-Id: I835fd7fa06dfcc0eff0323efe8f2913b9e1239b8
Fixes: 77960411
Test: Simulate cutout, rotate to landscape, verify cutout is still visible.

6 years agoDoc change: removed reference to the reverted Password Blacklist feature.
Benjamin Miller [Mon, 16 Apr 2018 12:54:43 +0000 (12:54 +0000)]
Doc change: removed reference to the reverted Password Blacklist feature.

Bug: 73750934
Test: make ds-docs and inspected HTML output.

Change-Id: I545ef13219dc994a4f157cc6f2380eac59331498

6 years agoMerge "Bouncer visibility fixes" into pi-dev
TreeHugger Robot [Mon, 16 Apr 2018 11:30:37 +0000 (11:30 +0000)]
Merge "Bouncer visibility fixes" into pi-dev

6 years agoAdd more hidden API on light greylist
David Brazdil [Mon, 16 Apr 2018 11:05:41 +0000 (12:05 +0100)]
Add more hidden API on light greylist

Bug: 64382372
Bug: 78019806
Bug: 77982395
Bug: 77862070
Bug: 77860747
Bug: 77785209
Bug: 77814672
Bug: 77760092
Test: make
Change-Id: I78643c355801241a2e02f16f986a7a5d14d79823

6 years agoBouncer visibility fixes
Lucas Dupin [Mon, 16 Apr 2018 06:50:20 +0000 (14:50 +0800)]
Bouncer visibility fixes

Test: go/sysui-bouncer-tests
Change-Id: Iaf6e0ded57eb3b737cfd074bbc750aa6977e36b2
Fixes: 77921840

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 16 Apr 2018 08:19:56 +0000 (01:19 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I458b91bd87cd73ec887a9581ed1d4d2527513bd4

6 years agoMerge "Guard the SSID with NETWORK_SETTINGS" into pi-dev
TreeHugger Robot [Mon, 16 Apr 2018 05:40:17 +0000 (05:40 +0000)]
Merge "Guard the SSID with NETWORK_SETTINGS" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 16 Apr 2018 04:42:35 +0000 (04:42 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoGuard the SSID with NETWORK_SETTINGS
Chalard Jean [Mon, 16 Apr 2018 03:25:22 +0000 (12:25 +0900)]
Guard the SSID with NETWORK_SETTINGS

Bug: 77865258
Test: manual
Change-Id: I01d4ec7366382d42847c823ae6056222a012c504

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 16 Apr 2018 04:29:07 +0000 (21:29 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I61e1929cbf38843fcce516c103cd51e4e03ae10c

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 15 Apr 2018 14:16:58 +0000 (07:16 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5dc789af62825582ca94133ab6721152b2b6871f

6 years agoMerge "Respect light nav bar flag set by IME on keyguard" into pi-dev
TreeHugger Robot [Sun, 15 Apr 2018 02:55:53 +0000 (02:55 +0000)]
Merge "Respect light nav bar flag set by IME on keyguard" into pi-dev

6 years agoMerge "Add new category key for ConnectDeviceFrag" into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 23:12:48 +0000 (23:12 +0000)]
Merge "Add new category key for ConnectDeviceFrag" into pi-dev

6 years ago[automerger skipped] Merge "DO NOT MERGE (O) Revoke permision when group changed...
Philip P. Moltmann [Sat, 14 Apr 2018 22:48:31 +0000 (15:48 -0700)]
[automerger skipped] Merge "DO NOT MERGE (O) Revoke permision when group changed" into oc-mr1-dev
am: 4cfd9bb78d  -s ours

Change-Id: I2b84b8b8cf53a5a1aef7e5a7169c3c6bd42e3ecc

6 years agoAddress visual inconsistency in smart replies
Milo Sredkov [Thu, 12 Apr 2018 11:52:43 +0000 (12:52 +0100)]
Address visual inconsistency in smart replies

Address the major style differences and make the smart reply buttons
fit better with the other notification UI elements.

This CL does not yet address all the isues but removes the most
obvious inconsistencies.

Screenshot before: https://screenshot.googleplex.com/90QVvxJmUJ3.png
Screenshot after: https://screenshot.googleplex.com/2C8cMQgTVBG.png

Bug: 73605520
Test: In Notify post a Messaging notification with Large chices

Change-Id: Ide285c21c7bf83e9f06ade6912fd13cb3e4b9024

6 years agoMerge "Don't create recovery snapshot until it contains at least one key." into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 16:39:30 +0000 (16:39 +0000)]
Merge "Don't create recovery snapshot until it contains at least one key." into pi-dev

6 years agoMerge "Add an action to launch scanning settings" into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 02:35:28 +0000 (02:35 +0000)]
Merge "Add an action to launch scanning settings" into pi-dev

6 years agoMerge "DO NOT MERGE (O) Revoke permision when group changed" into oc-mr1-dev
Philip P. Moltmann [Sat, 14 Apr 2018 01:09:04 +0000 (01:09 +0000)]
Merge "DO NOT MERGE (O) Revoke permision when group changed" into oc-mr1-dev

6 years agoMerge "(P) Revoke permision when group changed" into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 00:55:22 +0000 (00:55 +0000)]
Merge "(P) Revoke permision when group changed" into pi-dev

6 years agoMerge "Fix facetbuttons selection It didn't work when apps where in a virtual or...
TreeHugger Robot [Sat, 14 Apr 2018 00:45:15 +0000 (00:45 +0000)]
Merge "Fix facetbuttons selection It didn't work when apps where in a virtual or secondary dispaly" into pi-dev

6 years agoMerge "Use heif embedded thumbnail if available" into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 00:23:37 +0000 (00:23 +0000)]
Merge "Use heif embedded thumbnail if available" into pi-dev

6 years agoMerge "Benchmarks for streams." into pi-dev
Jeff Sharkey [Sat, 14 Apr 2018 00:11:30 +0000 (00:11 +0000)]
Merge "Benchmarks for streams." into pi-dev

6 years agoMerge "Return "null" cycles for deprecated callers." into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 00:11:15 +0000 (00:11 +0000)]
Merge "Return "null" cycles for deprecated callers." into pi-dev

6 years agoMerge "Only check bg restriction if an app is idle" into pi-dev
TreeHugger Robot [Sat, 14 Apr 2018 00:07:51 +0000 (00:07 +0000)]
Merge "Only check bg restriction if an app is idle" into pi-dev

6 years agoMerge "OP_GET_USAGE_STATS should be noted, not checked." into pi-dev
Jeff Sharkey [Fri, 13 Apr 2018 23:58:44 +0000 (23:58 +0000)]
Merge "OP_GET_USAGE_STATS should be noted, not checked." into pi-dev

6 years agoMerge "Add HFP/HearingAid set/get action device to greylist" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 23:51:24 +0000 (23:51 +0000)]
Merge "Add HFP/HearingAid set/get action device to greylist" into pi-dev

6 years agoMerge "Correct lookback for while-idle alarm rate limiting" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 23:43:26 +0000 (23:43 +0000)]
Merge "Correct lookback for while-idle alarm rate limiting" into pi-dev

6 years agoAdd an action to launch scanning settings
Lifu Tang [Thu, 12 Apr 2018 17:13:15 +0000 (10:13 -0700)]
Add an action to launch scanning settings

Needs to launch scanning settings from other apps

Bug: 77823544
Test: build and flash
Change-Id: If02b359dcbfee79b34b6b66abb3cf36a2a3412e3

6 years agoMerge "Don't process broadcasts until really ready." into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 23:03:17 +0000 (23:03 +0000)]
Merge "Don't process broadcasts until really ready." into pi-dev

6 years agoMerge "Add constant for bluetooth fragment" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 23:00:51 +0000 (23:00 +0000)]
Merge "Add constant for bluetooth fragment" into pi-dev

6 years agoFix "auto battery saver notification comes back"
Makoto Onuki [Fri, 13 Apr 2018 22:53:57 +0000 (15:53 -0700)]
Fix "auto battery saver notification comes back"

Bug: 78017511
Test: Manual:
- Run them:
adb shell settings delete global low_power
adb shell settings delete global low_power_sticky
adb shell settings delete global low_power_trigger_level
adb shell settings delete secure low_power_manual_activation_count
adb shell settings delete secure low_power_warning_acknowledged
adb shell settings delete secure suppress_auto_battery_saver_suggestion
- Unplug
- Toggle BS 4 times -> the "Tap to schedule battery saver" notification shows up
- Dismiss the notification
- Wait until the battery percent drops
- Make sure the notification stays dismissed.

Change-Id: I82cbd0110ab5d140c9e9b5b449577040e51032c6

6 years agoOnly check bg restriction if an app is idle
Fyodor Kupolov [Fri, 13 Apr 2018 19:12:51 +0000 (12:12 -0700)]
Only check bg restriction if an app is idle

Test: Manual
Bug: 77237719
Change-Id: I379b1f5f93ac4318929c080fd74fae23daebbe54

6 years agoCorrect lookback for while-idle alarm rate limiting
Christopher Tate [Fri, 13 Apr 2018 20:41:51 +0000 (13:41 -0700)]
Correct lookback for while-idle alarm rate limiting

Lookback for while-idle alarm "last delivered?" bookkeeping was clamping
at zero, but that means "when we rebooted" in the elapsed time base, not
a point in the deep past.  As a result, testing sequences that forced
idle mode would behave unpredictably on devices that were rebooted
recently.

Change the lookback defaulting such that the first "while idle" alarm
that triggers after reboot will always be considered deliverable.

Change-Id: I0a35e046ecf858cd44523a6cece4a6a0779194bc
Fixes: 77981603
Test: atest CtsAlarmManagerTestCases
Test: POC app

6 years agoRespect light nav bar flag set by IME on keyguard
Yohei Yukawa [Fri, 13 Apr 2018 21:55:30 +0000 (14:55 -0700)]
Respect light nav bar flag set by IME on keyguard

Currently LightBarController takes care of both ScrimBehind alpha and
ScrimInFront text color when finally deciding whether light navigation
bar mode should be enabled or not.

When IME is shown on the keyguard, however, light navigation bar flag
explicitly set by the IME actually needs to be used because
ScrimController does not put anything over the IME layer in that
state.

This CL addresses the above corner case, by also forwarding ScrimState
from ScrimController to LightBarController so that LightBarController
can change the behavior when scrim UI is in bouncer mode.

Test: atest CtsInputMethodTestCases
Test: atest com.android.server.policy.PhoneWindowManagerTest
Test: atest SystemUITests:com.android.systemui.statusbar.phone.ScrimControllerTest
Test: Manually tested Manually tested with ThemedNavBarKeyboard sample
  1. make -j ThemedNavBarKeyboard
  2. adb install -r $OUT/system/app/ThemedNavBarKeyboard/ThemedNavBarKeyboard.apk
  3. adb shell ime enable com.example.android.themednavbarkeyboard/.ThemedNavBarKeyboard
  4. adb shell ime set com.example.android.themednavbarkeyboard/.ThemedNavBarKeyboard
  5. Open Dialer app
  6. Focus in the top edit field.
  7. Tap "EXTENDED LIGHT NAVIGARION BAR" mode
  8. Make sure that the navigation button color is optimized for light navigation bar
  9. Swipe down the notification shade.
 10. Make sure that the navigation button color is inverted.
Fixes: 72940586
Change-Id: I7a9001888f9b2d74c84c384b6302706da7a2b4b2

6 years agoMerge "Update Docs to clarify using a Message across IPC" into pi-dev
Brad Ebinger [Fri, 13 Apr 2018 21:35:13 +0000 (21:35 +0000)]
Merge "Update Docs to clarify using a Message across IPC" into pi-dev

6 years agoMerge "Adds a private field to parceled data." into pi-dev
Brad Ebinger [Fri, 13 Apr 2018 21:34:37 +0000 (21:34 +0000)]
Merge "Adds a private field to parceled data." into pi-dev

6 years ago[automerger skipped] [automerger] ResStringPool: Fix security vulnerability am: 7e54c...
y [Fri, 13 Apr 2018 21:24:24 +0000 (14:24 -0700)]
[automerger skipped] [automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50 am: 24a89da344 am: d85632ae40 am: 927b3357fa am: 79d0fb2530 am: a509e771ba am: 80e36faa72 am: 76d71fa910 am: 86cfcaa610 am: 4f5e234020
am: 5604680766  -s ours

Change-Id: I1ff6265b401704800f7be276034cb9cc720c94ec

6 years agoMerge "Don't update crop WSA when drag resizing so screenshots are correct." into...
Chavi Weingarten [Fri, 13 Apr 2018 21:14:16 +0000 (21:14 +0000)]
Merge "Don't update crop WSA when drag resizing so screenshots are correct." into pi-dev

6 years ago[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50...
y [Fri, 13 Apr 2018 21:08:07 +0000 (14:08 -0700)]
[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50 am: 24a89da344 am: d85632ae40 am: 927b3357fa am: 79d0fb2530 am: a509e771ba am: 80e36faa72 am: 76d71fa910 am: 86cfcaa610
am: 4f5e234020

Change-Id: Iedf59329ed35149cec2143e8f179c7912534a41d

6 years agoAdd constant for bluetooth fragment
Salvador Martinez [Wed, 4 Apr 2018 21:42:59 +0000 (14:42 -0700)]
Add constant for bluetooth fragment

simply adds a metrics constant for the new bluetooth screen

Bug: 77543471
Test: robotests pass
Merged-In: Id6317df4b86def4e0aa095fd3bc1ed544c0f0220
Change-Id: Id6317df4b86def4e0aa095fd3bc1ed544c0f0220

6 years ago[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50...
y [Fri, 13 Apr 2018 20:57:36 +0000 (13:57 -0700)]
[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50 am: 24a89da344 am: d85632ae40 am: 927b3357fa am: 79d0fb2530 am: a509e771ba am: 80e36faa72 am: 76d71fa910
am: 86cfcaa610

Change-Id: I6d37d24fd14271d24595c380ea553cb37948fa9e

6 years agoMerge changes from topic "bumping-api" into pi-dev
Wale Ogunwale [Fri, 13 Apr 2018 20:53:03 +0000 (20:53 +0000)]
Merge changes from topic "bumping-api" into pi-dev

* changes:
  Finalizing P SDK
  Finalizing P SDK

6 years agoReturn "null" cycles for deprecated callers.
Jeff Sharkey [Fri, 13 Apr 2018 20:38:01 +0000 (14:38 -0600)]
Return "null" cycles for deprecated callers.

Callers using the deprecated Pair<ZonedDateTime, ZonedDateTime>
interface don't always check hasNext() before calling next(), so
give them (null, null) results instead of throwing.

Bug: 78020489
Test: builds, boots
Change-Id: Ibaeac646fa4e12e3e748cd7c706524d51dbeaafe

6 years ago[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50...
Android Build Merger (Role) [Fri, 13 Apr 2018 20:35:02 +0000 (20:35 +0000)]
[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50 am: 24a89da344 am: d85632ae40 am: 927b3357fa am: 79d0fb2530 am: a509e771ba am: 80e36faa72 am: 76d71fa910

Change-Id: I971b589190cae708a08dd568290807dff0f75349

6 years ago[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50...
Android Build Merger (Role) [Fri, 13 Apr 2018 20:34:58 +0000 (20:34 +0000)]
[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50 am: 24a89da344 am: d85632ae40 am: 927b3357fa am: 79d0fb2530 am: a509e771ba am: 80e36faa72

Change-Id: Ibeb5d99f477048e8715a0d4b093052f3d88445e2

6 years ago[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50...
Android Build Merger (Role) [Fri, 13 Apr 2018 20:34:53 +0000 (20:34 +0000)]
[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50 am: 24a89da344 am: d85632ae40 am: 927b3357fa am: 79d0fb2530 am: a509e771ba

Change-Id: I48bf9619571a30e6f5ea5bad503a3805e0821a75

6 years ago[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50...
Android Build Merger (Role) [Fri, 13 Apr 2018 20:34:49 +0000 (20:34 +0000)]
[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50 am: 24a89da344 am: d85632ae40 am: 927b3357fa am: 79d0fb2530

Change-Id: I068f51adbb0248db232c50bd89fb25ef0d7273a9

6 years ago[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50...
Android Build Merger (Role) [Fri, 13 Apr 2018 20:34:44 +0000 (20:34 +0000)]
[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50 am: 24a89da344 am: d85632ae40 am: 927b3357fa

Change-Id: I61c158947f3508aab9ef65988267562663c97a21

6 years ago[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50...
Android Build Merger (Role) [Fri, 13 Apr 2018 20:34:34 +0000 (20:34 +0000)]
[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50 am: 24a89da344 am: d85632ae40

Change-Id: I24a1df41eb29a6ac7e6c67368f07c6702dacf071

6 years agoMerge "Reduce disk space limit for incident reports." into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 20:34:31 +0000 (20:34 +0000)]
Merge "Reduce disk space limit for incident reports." into pi-dev

6 years ago[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50...
Android Build Merger (Role) [Fri, 13 Apr 2018 20:34:29 +0000 (20:34 +0000)]
[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50 am: 24a89da344

Change-Id: Ia175db4206119bed5e1a6b1aeeff72ae86489d38

6 years ago[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50
Android Build Merger (Role) [Fri, 13 Apr 2018 20:34:24 +0000 (20:34 +0000)]
[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261 am: 98e2d2ec50

Change-Id: I0a5c57b7a50d9221b3be4d193388ac610ba92f73

6 years ago[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261
Android Build Merger (Role) [Fri, 13 Apr 2018 20:34:20 +0000 (20:34 +0000)]
[automerger] ResStringPool: Fix security vulnerability am: 7e54c3f261

Change-Id: I57e2ea2122d22341c43b9b445291cc4b02ec2b11

6 years agoResStringPool: Fix security vulnerability
y [Fri, 6 Apr 2018 00:57:27 +0000 (17:57 -0700)]
ResStringPool: Fix security vulnerability

Adds detection of attacker-modified size and data fields passed to
ResStringPool::setTo(). These attacks are modified apks that AAPT would
not normally generate. In the rare case this occurs, the installation
cannot be allowed to continue.

Bug: 71361168
Bug: 71360999
Test: run cts -m CtsAppSecurityHostTestCases \
          -t android.appsecurity.cts.CorruptApkTests

Change-Id: If7eb93a9e723b16c8a0556fc4e20006aa0391d57
Merged-In: If7eb93a9e723b16c8a0556fc4e20006aa0391d57

6 years agoMerge "[RTT] Wi-Fi RTT Metrics" into pi-dev
Etan Cohen [Fri, 13 Apr 2018 20:29:22 +0000 (20:29 +0000)]
Merge "[RTT] Wi-Fi RTT Metrics" into pi-dev

6 years agoDon't process broadcasts until really ready.
Jeff Sharkey [Fri, 13 Apr 2018 20:28:30 +0000 (14:28 -0600)]
Don't process broadcasts until really ready.

Someone started setting mSystemReady too early, when we really want
to know SystemServer's real ready state.  Add a variable to track
that, and don't process broadcasts until that's set.

Bug: 78020762
Test: builds, boots
Change-Id: I65213e46044c95fb0a8a4b09b9aa463bb15c1844

6 years agoDO NOT MERGE (O) Revoke permision when group changed
Philip P. Moltmann [Thu, 12 Apr 2018 21:45:14 +0000 (14:45 -0700)]
DO NOT MERGE (O) Revoke permision when group changed

If a run time permission of a group is already granted we grant the
other permission of the group automatically when requested.

Hence if an already granted permission changed its group during an
update suddenly permission of a potentially not approved group will
get auto-granted.

This is undesirable, hence we revoke the permission during the update
process.

Test: atest android.permission.cts.PermissionGroupChange
Change-Id: Ib2165d1ae53b80455ebe02e07775853e37a2e339
Fixes: 72710897

6 years agoMerge "Allow Device Owners/Profile Owners to set the interruption filter." into pi-dev
Jason Parks [Fri, 13 Apr 2018 19:56:20 +0000 (19:56 +0000)]
Merge "Allow Device Owners/Profile Owners to set the interruption filter." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 19:42:18 +0000 (19:42 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoOP_GET_USAGE_STATS should be noted, not checked.
Jeff Sharkey [Fri, 13 Apr 2018 19:29:59 +0000 (13:29 -0600)]
OP_GET_USAGE_STATS should be noted, not checked.

Per email feedback, we should be using "noteOp" instead of "checkOp"
when testing if caller holds OP_GET_USAGE_STATS, so that we record
that caller used the operation.

Bug: 77662908
Test: builds, boots
Exempt-From-Owner-Approval: keep tests passing
Change-Id: I3a60345d590534fdbc2c1248e0d30dc85a5d6772

6 years agoMerge "ViewRoot: Ensure we release surface from setWindowStopped." into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 19:31:52 +0000 (19:31 +0000)]
Merge "ViewRoot: Ensure we release surface from setWindowStopped." into pi-dev

6 years agoAdd HFP/HearingAid set/get action device to greylist
Hansong Zhang [Fri, 13 Apr 2018 19:08:00 +0000 (12:08 -0700)]
Add HFP/HearingAid set/get action device to greylist

Bug: 74238896
Test: compile
Change-Id: If3111b283b84350246db2e9e9380bf0c84c72756

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 18:47:30 +0000 (18:47 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoDon't create recovery snapshot until it contains at least one key.
Dmitry Dementyev [Thu, 12 Apr 2018 19:10:50 +0000 (12:10 -0700)]
Don't create recovery snapshot until it contains at least one key.

Bug: 77931409
Test: atest RecoveryControllerHostTest
Change-Id: Ibd239cbd21a756a00c33e3cd0100b389b88d38b0

6 years agoMerge "Prevents showing Guests in switcher." into pi-dev
Jovana Knezevic [Fri, 13 Apr 2018 17:49:32 +0000 (17:49 +0000)]
Merge "Prevents showing Guests in switcher." into pi-dev

6 years agoMerge "Add optional metadata to specify icon's background color." into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 17:48:22 +0000 (17:48 +0000)]
Merge "Add optional metadata to specify icon's background color." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 17:44:39 +0000 (17:44 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "AAPT2: GetBag infinite recursion fix" into pi-dev
Ryan Mitchell [Fri, 13 Apr 2018 17:44:11 +0000 (17:44 +0000)]
Merge "AAPT2: GetBag infinite recursion fix" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 17:42:03 +0000 (17:42 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 17:41:09 +0000 (17:41 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 17:40:15 +0000 (17:40 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 17:38:13 +0000 (17:38 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 17:36:14 +0000 (17:36 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 17:34:19 +0000 (17:34 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Revert "Fixed power manager CTS test."" into pi-dev
Michael Wright [Fri, 13 Apr 2018 17:33:15 +0000 (17:33 +0000)]
Merge "Revert "Fixed power manager CTS test."" into pi-dev

6 years agoRevert "Fixed power manager CTS test."
Michael Wright [Fri, 13 Apr 2018 17:29:37 +0000 (17:29 +0000)]
Revert "Fixed power manager CTS test."

This reverts commit 48fed61da3f3671850aae3c521a3e6f088169de2.

Reason for revert: m checkbuild failing
Bug: 77907164

Change-Id: I7f75dafc049581a7a5393c3cf0108c488eecaf48

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 17:31:19 +0000 (17:31 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoFix facetbuttons selection
Brad Stenning [Fri, 13 Apr 2018 02:23:39 +0000 (19:23 -0700)]
Fix facetbuttons selection
It didn't work when apps where in a virtual or secondary dispaly

Bug:78011076
Test: Manual, you need to have a content in a virtual display

Change-Id: I9a4fa15e2804b3df0ef7d4b2e523aeff3f69053f

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 13 Apr 2018 17:10:39 +0000 (10:10 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4b4d9e11273bc8d2fa97a86e8f9b71d7c05f6b8c

6 years agoMerge "Fixed power manager CTS test." into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 16:59:28 +0000 (16:59 +0000)]
Merge "Fixed power manager CTS test." into pi-dev

6 years agoDon't update crop WSA when drag resizing so screenshots are correct.
chaviw [Mon, 9 Apr 2018 22:20:06 +0000 (15:20 -0700)]
Don't update crop WSA when drag resizing so screenshots are correct.

When drag resizing, there's no need to recalculate the crop for
the WSA since it will not be affected by the decor frame.
This is needed to prevent incorrect screenshots when drag
resizing. So for example, if the app was in split screen and
then the user dragged the divider to exit split screen, the WSA
would crop the area where the nav bar is and below. This would cause
the screenshot to get cropped, only showing the area that was last
computed by setSurfaceBoundariesLocked. This isn't necessary since
in drag resizing, the WSA hasn't redrawn yet so there's no need to
recalculate the crop for the area under the nav bar.

Bug: 76442549
Test: Enter split screen. Drag divider to exit. Ensure recents
screenshot is correct and not cropped.

Change-Id: If7f2639794a0c3a20353d40fe31ef9bb9a051e41

6 years agoMerge "Initialize the animation leash with the current values" into pi-dev
Winson Chung [Fri, 13 Apr 2018 16:41:18 +0000 (16:41 +0000)]
Merge "Initialize the animation leash with the current values" into pi-dev

6 years agoMerge "Mark location-related PendingIntents as restricted" into pi-dev
Lifu Tang [Fri, 13 Apr 2018 16:30:40 +0000 (16:30 +0000)]
Merge "Mark location-related PendingIntents as restricted" into pi-dev

6 years agoAAPT2: GetBag infinite recursion fix
y [Thu, 12 Apr 2018 21:26:23 +0000 (14:26 -0700)]
AAPT2: GetBag infinite recursion fix

Style resources with circular parental dependencies caused infinite
recursion when calling AssetManager2::GetBag. This fix allows recursion
to cease when a circular dependency is found.

Bug: 77928512
Change-Id: Ib900c36ab1aef5da5b03234a9484c4dad3b63c02
Test: Manual test of b/77928512 and duplicates of 74493983

6 years agoMerge "Don't show ringer status if dnd overrides it" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 15:43:22 +0000 (15:43 +0000)]
Merge "Don't show ringer status if dnd overrides it" into pi-dev

6 years agoMerge "Add more hidden API on light greylist" into pi-dev
David Brazdil [Fri, 13 Apr 2018 14:46:47 +0000 (14:46 +0000)]
Merge "Add more hidden API on light greylist" into pi-dev

6 years agoFixed power manager CTS test.
Dan Gittik [Fri, 13 Apr 2018 14:43:20 +0000 (15:43 +0100)]
Fixed power manager CTS test.

Added an annotation necessary to allow the power manager CTS test to
access the non-public method nap.

Test: adb install -r \
      out/host/linux-x86/cts/android-cts/testcases/CtsOsTestCases.apk
      adb shell am instrument -e class android.os.cts.PowerManagerTest \
      -w android.os.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: I91e591be608f5040bc035a203d7e94c83d50bf15
Fixes: 77907164

6 years agoAdded screen brightness override feedback.
Dan Gittik [Fri, 13 Apr 2018 14:14:36 +0000 (15:14 +0100)]
Added screen brightness override feedback.

Added code to reflect the screen brightness override in the brightness
slider, and reset any user changes to it to communicate that they're
not taking effect.

Test: manual (launch an app that sets the screen brightness override
      and see that it's reflected in the brightness slider, and that
      any user changes to it are reset).

Change-Id: Id6758e6fdfeb80a6c206d08215c1001a437a23c3
Fixes: 78006624

6 years agoMerge "Protect slice permissions text" into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 13:40:10 +0000 (13:40 +0000)]
Merge "Protect slice permissions text" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 13 Apr 2018 13:02:06 +0000 (06:02 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5b400d5bf5084cfdfc40edd2e44f19d5b1b659ac

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 13 Apr 2018 12:55:12 +0000 (05:55 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I1832a5760945374d87d8d01b3289e3b67014da9c

6 years agoMerge "Do not allow QS to collapsed when customizing." into pi-dev
TreeHugger Robot [Fri, 13 Apr 2018 12:54:15 +0000 (12:54 +0000)]
Merge "Do not allow QS to collapsed when customizing." into pi-dev