OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Move CaptivePortalProbeResult to its own file" into pi-dev
Remi NGUYEN VAN [Tue, 22 May 2018 08:00:56 +0000 (08:00 +0000)]
Merge "Move CaptivePortalProbeResult to its own file" into pi-dev

6 years agoMerge "Fix setCapabilities." into pi-dev
Chalard Jean [Tue, 22 May 2018 07:51:09 +0000 (07:51 +0000)]
Merge "Fix setCapabilities." into pi-dev

6 years agoMerge "Add new hidden-for-now AppOpsManager APIs to greylist." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 07:18:27 +0000 (07:18 +0000)]
Merge "Add new hidden-for-now AppOpsManager APIs to greylist." into pi-dev

6 years agoClock notification text was cut off
felkachang [Fri, 18 May 2018 12:11:38 +0000 (20:11 +0800)]
Clock notification text was cut off

The root cause is that HeadsUpStatusBarView doesn't considerate the
Cut Out situation. The Cut Out situation can use
getRootWindowInsets().getDisplayCutout().getSafeInsetLeft() to get
the the value.

There are two parts need to handle Cut out.
The one part is to handle the padding. It needs to considerate both of
mLeftInset and mLeftCutOutInset because it use getLocationOnScreen to
count the location.

The other part is to handle the HeadsUpStatusBarView.translationX.
It only needs to considerate mLeftCutOutInset because landscape
degree 90 has the left side cut out and translationX by the distance
between screen left boundary and scroller's left boundary. The
distance include Cut Out so it need minus mCutOutInsetLeft in the
setPanelTranslation.

Cut Out has 4 mode: Disable, Corner, Double, and Tall. Disable and
Double are handled by the same way. Corner and Tall are handled
by the same way.

Bug: 78113562
Test: atest SystemUITests
Change-Id: Ic2a272c43f65eed8c4b3749787637f5fb848bb8a
Fix: 78113562

6 years agoMerge "Add content description to zenmode" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 05:44:33 +0000 (05:44 +0000)]
Merge "Add content description to zenmode" into pi-dev

6 years agoMerge "Bugfix: PIN keyguard is clipped in Car" into pi-dev
Jian Jin [Tue, 22 May 2018 04:43:21 +0000 (04:43 +0000)]
Merge "Bugfix: PIN keyguard is clipped in Car" into pi-dev

6 years agoMerge "Show swipe-up tip with exponential backoff" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 03:28:13 +0000 (03:28 +0000)]
Merge "Show swipe-up tip with exponential backoff" into pi-dev

6 years agoShow swipe-up tip with exponential backoff
Tracy Zhou [Mon, 21 May 2018 22:30:31 +0000 (15:30 -0700)]
Show swipe-up tip with exponential backoff

Change-Id: Icd32c0bd98623173322e5e33bd5400e679a01a10
Fixes: 79985309
Test: Manual test

6 years agoBugfix: PIN keyguard is clipped in Car
Jian Jin [Mon, 21 May 2018 22:20:40 +0000 (15:20 -0700)]
Bugfix: PIN keyguard is clipped in Car

  Car is a multi-user system.  There's a cancel button on the Keyguard
  that allows the user to cancel the Keyguard to go back to user
  switcher.  Because different user may have different security mode,
  the container must be resized when the security mode changes.  The fix
  is to destroy the old bouncer view on cancel.

  Screenshot of clipped view: https://screenshot.googleplex.com/0VWdDtrLkAr

Fix: 79202566
Test: In the head unit
Change-Id: Ife33c53785ed96778f08c8f5886885e2b9d29749

6 years agoMove CaptivePortalProbeResult to its own file
Remi NGUYEN VAN [Tue, 22 May 2018 00:58:19 +0000 (09:58 +0900)]
Move CaptivePortalProbeResult to its own file

This is necessary to resolve visibility issues for the next change.

Bug: b/79499239
Test: runtest frameworks-net
Change-Id: I50bc96afe6ae88c8f58a693f0a4e821f1f9b3299

6 years agoMerge "Bouncer shouldn't be translated when occluded" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 00:59:29 +0000 (00:59 +0000)]
Merge "Bouncer shouldn't be translated when occluded" into pi-dev

6 years agoAdd content description to zenmode
Lucas Dupin [Tue, 22 May 2018 00:58:05 +0000 (17:58 -0700)]
Add content description to zenmode

Test: manual
Change-Id: Ic478e8a6fcd2088d198b2cee2e70ab8376b4709d
Fixes: 79686343

6 years agoMerge "Measure text in 1 pass" into pi-dev
Lucas Dupin [Tue, 22 May 2018 00:16:36 +0000 (00:16 +0000)]
Merge "Measure text in 1 pass" into pi-dev

6 years agoMerge "Differentiate MediaController in a process for MediaSession" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 00:11:49 +0000 (00:11 +0000)]
Merge "Differentiate MediaController in a process for MediaSession" into pi-dev

6 years agoBouncer shouldn't be translated when occluded
Lucas Dupin [Mon, 21 May 2018 23:44:28 +0000 (16:44 -0700)]
Bouncer shouldn't be translated when occluded

Only checking if the bouncer should be scrimmed isn't enough
since it might have been initialized for performance reasons,
but is hidden at the bottom of the keyguard.

Change-Id: If92083e2c385d51febe0ec3a5e5d3484476caf81
Fixes: 80101176
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java
Test: manual

6 years agoMerge "Add utility methods to AmbientDisplayConfig" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 23:37:24 +0000 (23:37 +0000)]
Merge "Add utility methods to AmbientDisplayConfig" into pi-dev

6 years agoMerge "Pulse state should always show ambient wallpaper" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 22:18:47 +0000 (22:18 +0000)]
Merge "Pulse state should always show ambient wallpaper" into pi-dev

6 years agoMerge "FingerprintService: requires ro.product.first_api_level" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 22:18:42 +0000 (22:18 +0000)]
Merge "FingerprintService: requires ro.product.first_api_level" into pi-dev

6 years agoMerge "Setup mAreChannelsBypassingDnd from notifPolicy" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 22:17:52 +0000 (22:17 +0000)]
Merge "Setup mAreChannelsBypassingDnd from notifPolicy" into pi-dev

6 years agoAdd new hidden-for-now AppOpsManager APIs to greylist.
Dianne Hackborn [Mon, 21 May 2018 19:31:51 +0000 (12:31 -0700)]
Add new hidden-for-now AppOpsManager APIs to greylist.

Bug: 78480444
Test: manual
Change-Id: I2a9c2040279df3d875b96edb4a686006f5114a76
Merged-In: I2a9c2040279df3d875b96edb4a686006f5114a76

6 years agoMeasure text in 1 pass
Lucas Dupin [Mon, 21 May 2018 21:41:52 +0000 (14:41 -0700)]
Measure text in 1 pass

Before we were setting the text again using setText, and this
would trigger a second measure/layout pass, which is unnecessary.

Now we're using the same mesure pass to calculate the view's
best line break.

Fixes: 79714443
Test: manual. set various meeting names animated or static
Change-Id: Ia911fae8f820b703ca385a10211073bae37f3258

6 years agoFingerprintService: requires ro.product.first_api_level
Yifan Hong [Mon, 21 May 2018 19:38:10 +0000 (12:38 -0700)]
FingerprintService: requires ro.product.first_api_level

Test: fingerprint registration works
Bug: 79950359
Change-Id: I1c75b9258a5c63b23fa2c546f002a596c9d55dc3

6 years agoPulse state should always show ambient wallpaper
Lucas Dupin [Fri, 18 May 2018 19:57:47 +0000 (12:57 -0700)]
Pulse state should always show ambient wallpaper

Otherwise wallpaper wouldn't be set to AOD when the device pulses
and always on is off.

Bug: 78606979
Test: manual
Test: atest packages/SystemUI/tests/src/com/android/systemui/doze/DozeWallpaperStateTest.java
Change-Id: Ic40c18252cd6cb06ff6fd0d79ec3f1de16a1add5

6 years agoSetup mAreChannelsBypassingDnd from notifPolicy
Beverly [Mon, 21 May 2018 20:14:15 +0000 (16:14 -0400)]
Setup mAreChannelsBypassingDnd from notifPolicy

Test: atest RankingHelperTest
Change-Id: I34d9c8dfb5924bab0e496e37d5b93715c48b78ad
Fixes: 80078295

6 years agoMerge "DO NOT MERGE - Switch user picker/switcher to use CarUserManagerHelper." into...
Ying Zheng [Mon, 21 May 2018 20:44:23 +0000 (20:44 +0000)]
Merge "DO NOT MERGE - Switch user picker/switcher to use CarUserManagerHelper." into pi-dev

6 years agoMerge "Fix the Hearing Aids connected state in Settings App" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 20:20:31 +0000 (20:20 +0000)]
Merge "Fix the Hearing Aids connected state in Settings App" into pi-dev

6 years agoAdd utility methods to AmbientDisplayConfig
Matthew Fritze [Mon, 21 May 2018 20:12:36 +0000 (13:12 -0700)]
Add utility methods to AmbientDisplayConfig

The added utility methods are to enable increased
granularity in determinining the availability of gesture
settings dependant on Always on Display.

Bug: 79779562
Test: robotests
Change-Id: Ib54a867ca554d44ee4190706805fa8545aec9fa0

6 years agoMerge "Extend rotation button timeout duration" into pi-dev
Mike Digman [Mon, 21 May 2018 20:09:24 +0000 (20:09 +0000)]
Merge "Extend rotation button timeout duration" into pi-dev

6 years agoMerge "Allow UiAutomation being used off the main thread" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 20:03:10 +0000 (20:03 +0000)]
Merge "Allow UiAutomation being used off the main thread" into pi-dev

6 years agoMerge "Remove MANAGE_USERS from setPackagesSuspended" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 20:01:36 +0000 (20:01 +0000)]
Merge "Remove MANAGE_USERS from setPackagesSuspended" into pi-dev

6 years agoMerge "Make RemoteCallback test API" into pi-dev
Svetoslav Ganov [Mon, 21 May 2018 19:55:12 +0000 (19:55 +0000)]
Merge "Make RemoteCallback test API" into pi-dev

6 years agoMerge "Check for bpf support at NetworkStatsService start" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 19:19:59 +0000 (19:19 +0000)]
Merge "Check for bpf support at NetworkStatsService start" into pi-dev

6 years agoMerge "Keep scrim black when "always on" is off" into pi-dev
Lucas Dupin [Mon, 21 May 2018 18:23:59 +0000 (18:23 +0000)]
Merge "Keep scrim black when "always on" is off" into pi-dev

6 years agoExtend rotation button timeout duration
Mike Digman [Mon, 21 May 2018 18:23:56 +0000 (11:23 -0700)]
Extend rotation button timeout duration

Moving from 6s to 10s timeout when navbar is visible.

Change-Id: I3a7067c37f254698ae53fdb9208576f3e486c8ce
Fixes: 79981820
Test: manual

6 years agoDO NOT MERGE - Switch user picker/switcher to use CarUserManagerHelper.
Ying Zheng [Thu, 10 May 2018 20:02:07 +0000 (13:02 -0700)]
DO NOT MERGE - Switch user picker/switcher to use CarUserManagerHelper.

Test: Build
Bug: 79417730
Change-Id: I52c9b0f5ba01b85e36242b112ef9bbcc54a08e48

6 years agoMerge "Add a shell command for IMMS to test instant apps" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 18:15:43 +0000 (18:15 +0000)]
Merge "Add a shell command for IMMS to test instant apps" into pi-dev

6 years agoMerge "Add a field in config to disable/enable the string hashing in metric report...
TreeHugger Robot [Mon, 21 May 2018 18:05:00 +0000 (18:05 +0000)]
Merge "Add a field in config to disable/enable the string hashing in metric report." into pi-dev

6 years agoMerge "ResXMLTree: Clone DynamicRefTable on creation" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 17:59:35 +0000 (17:59 +0000)]
Merge "ResXMLTree: Clone DynamicRefTable on creation" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 17:57:26 +0000 (17:57 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 17:56:41 +0000 (17:56 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 17:54:35 +0000 (17:54 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 17:54:31 +0000 (17:54 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 17:53:32 +0000 (17:53 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 17:51:35 +0000 (17:51 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge changes from topic "am-d326b840-2575-4e69-8ec2-5cfa14046328" into oc-dev am...
Bill Yi [Mon, 21 May 2018 17:41:15 +0000 (10:41 -0700)]
Merge changes from topic "am-d326b840-2575-4e69-8ec2-5cfa14046328" into oc-dev am: 99e6aa1b1e am: d88c6877da
am: aa55d5db76

Change-Id: If6e65aa957489e085d1a96be0367e158c43ebc5b

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: f72be588eb skipped...
Bill Yi [Mon, 21 May 2018 17:34:57 +0000 (10:34 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: f72be588eb skipped: ea0127f477 am: 4f1f428661  -s ours am: a53d91e485  -s ours
am: 5e1f17a880  -s ours

Change-Id: I5fdb579286d6ddce6f6a20b2fab243b33840bf93

6 years agoMerge changes from topic "am-d326b840-2575-4e69-8ec2-5cfa14046328" into oc-dev am...
Bill Yi [Mon, 21 May 2018 17:28:44 +0000 (10:28 -0700)]
Merge changes from topic "am-d326b840-2575-4e69-8ec2-5cfa14046328" into oc-dev am: 99e6aa1b1e
am: d88c6877da

Change-Id: I0acd60a59fcb928752ce7bf952bbfe9f65b68ff4

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: f72be588eb skipped...
Bill Yi [Mon, 21 May 2018 17:24:41 +0000 (10:24 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: f72be588eb skipped: ea0127f477 am: 4f1f428661  -s ours
am: a53d91e485  -s ours

Change-Id: Ife13f7c8262521ddc28deb4ceaf5b27b9765c792

6 years agoFix the Hearing Aids connected state in Settings App
Stanley Tng [Sun, 13 May 2018 22:08:33 +0000 (15:08 -0700)]
Fix the Hearing Aids connected state in Settings App

When two Hearing Aids devices are bonded, we should only show one device
in the Settings App and at the correct location based on the connected
state of the HA devices. When at least one HA device is connected, then
the Settings App should show it as connected. Otherwise, the Settings
App should show it as disconnected when both devices are disconnected.

Bug: 79760469
Test: Run the robotests for Settings and SettingsLib
Change-Id: I33e19af054b686b3d71b00dcbd6ff16febde6099

6 years agoMerge changes from topic "am-d326b840-2575-4e69-8ec2-5cfa14046328" into oc-dev
Bill Yi [Mon, 21 May 2018 17:19:31 +0000 (10:19 -0700)]
Merge changes from topic "am-d326b840-2575-4e69-8ec2-5cfa14046328" into oc-dev
am: 99e6aa1b1e

Change-Id: Id35ca83236112898b4e39b3cb173be70c435168f

6 years ago[automerger skipped] Import translations. DO NOT MERGE skipped: f72be588eb skipped...
Bill Yi [Mon, 21 May 2018 17:17:56 +0000 (10:17 -0700)]
[automerger skipped] Import translations. DO NOT MERGE skipped: f72be588eb skipped: ea0127f477
am: 4f1f428661  -s ours

Change-Id: Iac8c22f36859d6648ae856236c9a97080238cae5

6 years agoKeep scrim black when "always on" is off
Lucas Dupin [Sat, 19 May 2018 00:24:52 +0000 (17:24 -0700)]
Keep scrim black when "always on" is off

The first frame when waking up is expensive and we
need a black scrim hiding what was left behind.

Bug: 78022321
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Change-Id: I99e2b7960daf2cbe51bec6aee4b15c74d532078c

6 years agoMerge "WifiConfiguration: New temp disable network status for no internet" into pi-dev
Roshan Pius [Mon, 21 May 2018 17:04:10 +0000 (17:04 +0000)]
Merge "WifiConfiguration: New temp disable network status for no internet" into pi-dev

6 years agoMerge changes from topic "am-d326b840-2575-4e69-8ec2-5cfa14046328" into oc-dev
TreeHugger Robot [Mon, 21 May 2018 17:03:49 +0000 (17:03 +0000)]
Merge changes from topic "am-d326b840-2575-4e69-8ec2-5cfa14046328" into oc-dev

* changes:
  [automerger skipped] Import translations. DO NOT MERGE skipped: f72be588eb skipped: ea0127f477
  [automerger skipped] Import translations. DO NOT MERGE skipped: f72be588eb
  Import translations. DO NOT MERGE

6 years agoAllow UiAutomation being used off the main thread
Svet Ganov [Sun, 20 May 2018 01:52:40 +0000 (18:52 -0700)]
Allow UiAutomation being used off the main thread

Test: cts-tradefed run cts -m CtsUiAutomationTestCases
      cts-tradefed run cts -m CtsAccessibilityServiceTestCases
      cts-tradefed run cts-instant -m CtsAccessibilityServiceTestCases

bug:80024164

Change-Id: I72c565d28f4cbcf6775535fb846b268b785a6b34

6 years agoAdd a shell command for IMMS to test instant apps
Yohei Yukawa [Mon, 21 May 2018 16:47:53 +0000 (09:47 -0700)]
Add a shell command for IMMS to test instant apps

This change adds a shell command to allow InputMethodManagerService
(IMMS) to bind to InputMethodService provided by instant apps, like we
did so for AccessibilityManagerService [1].  Note that binding to an
InputMethodService provided by instant apps is not a supported
scenario.  In theory we can avoid doing this by having a separate APK
for MockIme instead of putting everything into
CtsInputMethodTestCases.apk but that configuration is not yet
supported by our test harness hence it doesn't work right now hence
having this special mode for testing is the only way we have right
now.

 [1]: Ifced735a9a6e495747372dd8b00fdd64933a09c7
      d223db316d11a625a73f86392e7055d5c6f26e7d

Bug: 79484568
Test: Manually verified as follows:
  1. Build a test IME that has android:targetSandboxVersion="2" in its
     AndroidManifest.xml.
  2. Install the test IME APK with 'adb install --instant <APK>'
  3. adb shell ime list -a -s
  4. Make sure that the test IME is not in the list.
  5. adb shell cmd input_method set-bind-instant-service-allowed true
  6. adb shell ime list -a -s
  7. Make sure that the test IME is now in the list.
  8. Select that test IME.
  9. Make sure that the test IME is working.
 10. adb shell cmd input_method set-bind-instant-service-allowed false
 11. Make sure that the test IME is no longer the current IME.
 12. adb shell ime list -a -s
 13. Make sure that the test IME is no longer in the list.
Test: cts-tradefed run cts-instant -m CtsInputMethodTestCases
Change-Id: I4383129fd9e229a849282e874aff5d4eef1f49f8

6 years agoMake RemoteCallback test API
Svet Ganov [Wed, 16 May 2018 04:39:20 +0000 (21:39 -0700)]
Make RemoteCallback test API

Test: manual

bug:79782915

Change-Id: I61343573428333c0d4a9ee2523c444753280186c

6 years agoMerge "Status bar icons 15 dp" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 14:55:11 +0000 (14:55 +0000)]
Merge "Status bar icons 15 dp" into pi-dev

6 years agoMerge "Allow user to change AiAi's permissions." into pi-dev
Ye Wen [Mon, 21 May 2018 14:19:55 +0000 (14:19 +0000)]
Merge "Allow user to change AiAi's permissions." into pi-dev

6 years agoFix setCapabilities.
Chalard Jean [Fri, 18 May 2018 14:48:49 +0000 (23:48 +0900)]
Fix setCapabilities.

P introduced setSSID, UIDs and unwanted capabilities.
None of these exhibit commutative behavior through combineCapabilities
because their semantics don't allow it. Therefore
NetworkRequest.setCapabilities() is badly broken around any of
these. Look at the comments in the new tests to realize the
extent of the damage.

Bug: 79748782
Test: new tests written, old tests pass
Change-Id: Ie46581bdaf9ecc2f14aab44788bbdb27a3fec8c1

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 21 May 2018 00:01:33 +0000 (17:01 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I99ed00eac259f67c341c1a82a547221bb7082e1f

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 May 2018 22:13:14 +0000 (15:13 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Id52e0cc164ebb1c62710dfc81b4bf70d231e08fb

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 May 2018 22:06:11 +0000 (15:06 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I11a29c0ab563be1a3a6bdf96fc82e719ce98e9c4

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 May 2018 20:11:33 +0000 (13:11 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5e753540af680ab9f8514066a9b164cd51a149ce

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 May 2018 20:04:20 +0000 (13:04 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Icd1296a26d4c15ad5886b8cf1a7e0d438253b1cd

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 May 2018 19:49:57 +0000 (12:49 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia968369bf14114aab85aa2aaa60050936585d5d6

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

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 May 2018 07:45:08 +0000 (00:45 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Id6f7b7b77a60fc3d42cd583a6d7e77f75b6b6bc4

6 years agoAdd new metrics constant for Bluetooth A2DP hardware offload
Petri Gynther [Sat, 19 May 2018 05:59:50 +0000 (22:59 -0700)]
Add new metrics constant for Bluetooth A2DP hardware offload

Bug: 63932139
Bug: 79568680
Test: Settings app compiles without errors
Change-Id: I535f9cd819787f6c8d24facb5824dbf7472d5231
Merged-In: I535f9cd819787f6c8d24facb5824dbf7472d5231

6 years agoMerge "IMPORTANCE_FOREGROUND_SERVICE process can access fingerprint" into pi-dev
TreeHugger Robot [Sun, 20 May 2018 04:53:24 +0000 (04:53 +0000)]
Merge "IMPORTANCE_FOREGROUND_SERVICE process can access fingerprint" into pi-dev

6 years agoMerge "Fade back button in and out tied with the overview/shelf (1/2)" into pi-dev
Winson Chung [Sat, 19 May 2018 04:36:16 +0000 (04:36 +0000)]
Merge "Fade back button in and out tied with the overview/shelf (1/2)" into pi-dev

6 years agoIMPORTANCE_FOREGROUND_SERVICE process can access fingerprint
Svet Ganov [Sat, 19 May 2018 02:59:25 +0000 (19:59 -0700)]
IMPORTANCE_FOREGROUND_SERVICE process can access fingerprint

We added a new priority IMPORTANCE_FOREGROUND_SERVICE
for foreground services and the services to  which the
system is bound fall into this bucket while before they
were falling into IMPORTANCE_FOREGROUND.

Test: manual

bug:79775649

Change-Id: I1626e78c5b7365985c5b4152637ab99aa0dea5f2

6 years agoMerge "Update auto-rotate and print icons" into pi-dev
TreeHugger Robot [Sat, 19 May 2018 01:20:52 +0000 (01:20 +0000)]
Merge "Update auto-rotate and print icons" into pi-dev

6 years agoCheck for bpf support at NetworkStatsService start
Chenbo Feng [Sat, 19 May 2018 00:10:07 +0000 (17:10 -0700)]
Check for bpf support at NetworkStatsService start

The current implementation check for bpf map existance whenever a
NetworkStats request comes in. The check is not efficient and may
require additional permission for threads. So a member variable is added
to NetworkStatsService to store the bpf configuration status and is
initialized when NetworkStatsService start.

Test: -m CtsNetTestCases -t android.net.cts.TrafficStatsTest
      -m CtsUsageStatsTestCases -t android.app.usage.cts.NetworkUsageStatsTest
Bug: 79994577

Change-Id: I872ae18fb3e9631a4e6c4d773fefbba32e60a03b

6 years agoMerge "clone the visibility objects for the handler thread" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 23:59:37 +0000 (23:59 +0000)]
Merge "clone the visibility objects for the handler thread" into pi-dev

6 years agoMerge "Reset wallpaper state during startup" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 23:54:41 +0000 (23:54 +0000)]
Merge "Reset wallpaper state during startup" into pi-dev

6 years agoStatus bar icons 15 dp
Evan Laird [Fri, 18 May 2018 23:49:07 +0000 (19:49 -0400)]
Status bar icons 15 dp

Shrink all status bar icons by 2dp. This means setting a scale factor on
anything that is a StatusBarIconView, and manually scaling down wifi and
mobile data groups.

Also fix the padding between the mobile data view and the battery

Also snuck in a fix for the battery saver icon clipping on QS

Change-Id: I5f5430d9e9c66f5c2794dcf4974cf18aa3bff061
Test: visual
Fixes: 74985733
Fixes: 79967193
Bug: 77822905

6 years agoMerge "Set enabledSurroundFormats as empty string when it is null." into pi-dev
TreeHugger Robot [Fri, 18 May 2018 23:46:39 +0000 (23:46 +0000)]
Merge "Set enabledSurroundFormats as empty string when it is null." into pi-dev

6 years agoDifferentiate MediaController in a process for MediaSession
Jaewan Kim [Thu, 17 May 2018 07:47:31 +0000 (16:47 +0900)]
Differentiate MediaController in a process for MediaSession

MediaSession#getCurrentControllerInfo() can have more fine grained
differentiation for multiple MediaController in a package/process

Bug: 79728675
Test: Run CtsMediaTestCases
Change-Id: I81e94736e795ee5e7fbd28cb6cd834cc3a3b8f98

6 years agoMerge changes Id4feeefa,Ie0a501b8 into pi-dev
TreeHugger Robot [Fri, 18 May 2018 23:08:19 +0000 (23:08 +0000)]
Merge changes Id4feeefa,Ie0a501b8 into pi-dev

* changes:
  Add counter for predictive info for hush gesture
  Update DND strings

6 years agoMerge "Make ImportWrappedKey work with real hardware: Get unwrapping params from...
Frank Salim [Fri, 18 May 2018 22:49:00 +0000 (22:49 +0000)]
Merge "Make ImportWrappedKey work with real hardware:   Get unwrapping params from WrappedKeyEntry" into pi-dev

6 years agoUpdate auto-rotate and print icons
Antony Sargent [Fri, 18 May 2018 22:47:26 +0000 (15:47 -0700)]
Update auto-rotate and print icons

Bug: 77982107
Test: manual
Change-Id: I7c5183c7e12819204ce5ecda1017b968ef4a9957

6 years agoMerge "Autofill: fix missing focus/ripple effect for authentication view" into pi-dev
Dake Gu [Fri, 18 May 2018 22:44:25 +0000 (22:44 +0000)]
Merge "Autofill: fix missing focus/ripple effect for authentication view" into pi-dev

6 years agoReset wallpaper state during startup
Lucas Dupin [Fri, 18 May 2018 22:35:36 +0000 (15:35 -0700)]
Reset wallpaper state during startup

Test: adb shell am crash com.android.systemui
Change-Id: Ia8a75bfe9384f088efc23f12336404ece05eb885
Fixes: 79343585

6 years agoMerge "Fixed an issue where a notification could become empty" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 22:13:22 +0000 (22:13 +0000)]
Merge "Fixed an issue where a notification could become empty" into pi-dev

6 years agoMerge "Display Cutout: Fix ActionBarOverlayLayout to properly dispatch cutout" into...
TreeHugger Robot [Fri, 18 May 2018 22:12:30 +0000 (22:12 +0000)]
Merge "Display Cutout: Fix ActionBarOverlayLayout to properly dispatch cutout" into pi-dev

6 years agoMerge changes I281c748a,Ia5b68d59 into pi-dev
Chavi Weingarten [Fri, 18 May 2018 21:48:54 +0000 (21:48 +0000)]
Merge changes I281c748a,Ia5b68d59 into pi-dev

* changes:
  Remove preserve surface block when detaching children.
  Reparent children when hiding preserved surface.

6 years agoAdd counter for predictive info for hush gesture
Beverly [Fri, 18 May 2018 21:33:40 +0000 (17:33 -0400)]
Add counter for predictive info for hush gesture

Test: adb shell settings get secure hush_gesture_used
Test: adb shell settings get secure manual_ringer_toggle_count
Change-Id: Id4feeefa03a5951c03b09ab466a6c399d8aadd0e
Fixes: 79537757

6 years agoUpdate DND strings
Beverly [Fri, 18 May 2018 21:09:45 +0000 (17:09 -0400)]
Update DND strings

Test: manual
Bug: 79525632
Change-Id: Ie0a501b8bec964b760c7f686d93ee83ec3454897

6 years agoAutofill: fix missing focus/ripple effect for authentication view
Dake Gu [Fri, 18 May 2018 16:34:46 +0000 (09:34 -0700)]
Autofill: fix missing focus/ripple effect for authentication view

When there is authentication view, autofill does not use ListView, so
it's missing the focus/ripple effect. This CL let the parent of
authentication view use the same ripple drawable as ListView.

Test: manual test on phone and TV
      atest CtsAutoFillServiceTestCases
Bug: b/79980365
Change-Id: Ief15304a3e533dbd6f45b7925db0b0c39977fd04

6 years agoDisplay Cutout: Fix ActionBarOverlayLayout to properly dispatch cutout
Adrian Roos [Wed, 22 Nov 2017 13:21:01 +0000 (14:21 +0100)]
Display Cutout: Fix ActionBarOverlayLayout to properly dispatch cutout

ActionBarOverlayLayout used to drop WindowInsets, extract the content insets
as a rect, and then dispatch a modified rect to the content view; this because
there was no way to retarget the WindowInsets to the content view, and the
WindowInsets were not truly immutable. That means however, that other kinds of
insets than the content insets do not get dispatched, such as the display cutout.

To fix this, we add APIs to inset WindowInsets, make them immutable. Note that
a similar change is needed for the support lib.

Bug: 79733300
Test: atest ActionBarOverlayLayoutTest
Change-Id: I6a69d8462163ca5e66fdb53f83def6bc4063f8aa

6 years agoMerge "(Behind flag) Wireless charging vibration feedback" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 20:57:21 +0000 (20:57 +0000)]
Merge "(Behind flag) Wireless charging vibration feedback" into pi-dev

6 years agoMerge "Avoid binder calls when unlocking" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 20:51:22 +0000 (20:51 +0000)]
Merge "Avoid binder calls when unlocking" into pi-dev

6 years agoMerge "Add 195dp bucket for Wear device support." into pi-dev
TreeHugger Robot [Fri, 18 May 2018 20:50:50 +0000 (20:50 +0000)]
Merge "Add 195dp bucket for Wear device support." into pi-dev

6 years agoMerge "Remap PS key to BUTTON_MODE on DS4 joystick" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 20:44:13 +0000 (20:44 +0000)]
Merge "Remap PS key to BUTTON_MODE on DS4 joystick" into pi-dev

6 years agoMerge "MediaFormat: fix javadoc for AAC-related keys" into pi-dev
Jean-Michel Trivi [Fri, 18 May 2018 20:34:47 +0000 (20:34 +0000)]
Merge "MediaFormat: fix javadoc for AAC-related keys" into pi-dev

6 years agoMerge "Zen radio button is width 48dp" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 20:19:00 +0000 (20:19 +0000)]
Merge "Zen radio button is width 48dp" into pi-dev

6 years agoMerge "Fixes the secondary splitscreen dimensions" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 19:42:18 +0000 (19:42 +0000)]
Merge "Fixes the secondary splitscreen dimensions" into pi-dev

6 years agoMerge "Fixed an issue where the clear all expansion wasn't smooth" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 19:34:13 +0000 (19:34 +0000)]
Merge "Fixed an issue where the clear all expansion wasn't smooth" into pi-dev

6 years agoFixed an issue where a notification could become empty
Selim Cinek [Fri, 18 May 2018 19:06:10 +0000 (12:06 -0700)]
Fixed an issue where a notification could become empty

Test: add min priority notification from lockscreen, observe no blank notification
Change-Id: Ib08e6d7372fe921f0f59074c35504e234ecc0215
Fixes:  72717838