OSDN Git Service

android-x86/frameworks-base.git
6 years agoAvoid NPE in AM.getMyMemoryState()
Makoto Onuki [Tue, 22 May 2018 15:48:23 +0000 (08:48 -0700)]
Avoid NPE in AM.getMyMemoryState()

Test: atest cts/tests/app/src/android/app/cts/ActivityManagerTest.java#testGetMyMemoryState
Change-Id: I974719b80d11b789e8793fdd66ca920281284a8e
Fixes: 79586975

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 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 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 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

6 years agoclone the visibility objects for the handler thread
Chris Wren [Thu, 17 May 2018 22:55:42 +0000 (18:55 -0400)]
clone the visibility objects for the handler thread

The main thread was recycling the objects before the hander could
pack up the binder call.

Change-Id: I4289bdcc5b940a0a8209fdd5d3df47972de0fa4b
Fixes: 72953296
Test: atest com.android.notification.functional.NotificationInteractionTests#testNotificationShadeMetrics

6 years agoSet enabledSurroundFormats as empty string when it is null.
jiabin [Thu, 17 May 2018 17:33:09 +0000 (10:33 -0700)]
Set enabledSurroundFormats as empty string when it is null.

When ENCODED_SURROUND_OUTPUT_ENABLED_FORMATS doesn't exist in settings
DB, enabledSurroundFormats will be null. Set it as empty string to avoid
crash.

Bug: 79923672
Test: Delete ENCODED_SURROUND_OUTPUT_ENABLED_FORMATS and select manual.
Change-Id: I8385bc05733ebd8ca0b64e756cf22fc8e3de09c8

6 years agoMerge "Magnification treats alpha=0 windows as invisible" into pi-dev
Phil Weaver [Fri, 18 May 2018 19:29:47 +0000 (19:29 +0000)]
Merge "Magnification treats alpha=0 windows as invisible" into pi-dev

6 years agoMerge "fix fingerprint condition on sdk level logic" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 19:01:00 +0000 (19:01 +0000)]
Merge "fix fingerprint condition on sdk level logic" into pi-dev

6 years agoMerge "Add config overlay for mcc312-mnc530" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 18:40:48 +0000 (18:40 +0000)]
Merge "Add config overlay for mcc312-mnc530" into pi-dev

6 years agoZen radio button is width 48dp
Beverly [Fri, 18 May 2018 18:28:57 +0000 (14:28 -0400)]
Zen radio button is width 48dp

Test: manual
Change-Id: Ia39be61c3217901145d2e4d7ab7970239b9c5c44
Fixes: 79698561

6 years agoFixes the secondary splitscreen dimensions
Matthew Ng [Mon, 14 May 2018 19:45:08 +0000 (12:45 -0700)]
Fixes the secondary splitscreen dimensions

Fixes the splitscreen bounds of other app introduced in ag/3909876 and
bound issues related to rotation before splitscreen occurs from
landscape to seascape.

Fixes: 73250406
Test: splitscreen in seascape
Change-Id: I14f9512069b674da7d382ede8514545aabe8c5d7

6 years agoMerge "Schedule trimMemory after drawing the frame" into pi-dev
Jorim Jaggi [Fri, 18 May 2018 18:26:03 +0000 (18:26 +0000)]
Merge "Schedule trimMemory after drawing the frame" into pi-dev

6 years agoMake ImportWrappedKey work with real hardware:
Frank Salim [Thu, 12 Apr 2018 10:09:44 +0000 (03:09 -0700)]
Make ImportWrappedKey work with real hardware:
  Get unwrapping params from WrappedKeyEntry

Add @hide API for StrongBox-backed imported keys (as opposed to wrapped or generated)
Enable 3DES conditionally based on a system property.

Bug: b/79986479
Bug: b/79986680
Test: CTS
Change-Id: If6beedc203337027576ecd3555d11ed2874f9768

6 years agoMerge "Add logging to quickstep onboarding tips." into pi-dev
TreeHugger Robot [Fri, 18 May 2018 18:24:39 +0000 (18:24 +0000)]
Merge "Add logging to quickstep onboarding tips." into pi-dev

6 years agoFixed an issue where the clear all expansion wasn't smooth
Selim Cinek [Fri, 18 May 2018 18:11:46 +0000 (11:11 -0700)]
Fixed an issue where the clear all expansion wasn't smooth

Test: add notification that is clearable, observe nice slowing down when expanding
Change-Id: I2fedb78c605fc72eaf3e8204fef1d493ced71eea
Fixes: 78861878

6 years agoMerge "Remove Hearing Aid toggle in Settings" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 18:11:29 +0000 (18:11 +0000)]
Merge "Remove Hearing Aid toggle in Settings" into pi-dev

6 years agoAvoid binder calls when unlocking
Lucas Dupin [Fri, 18 May 2018 01:00:16 +0000 (18:00 -0700)]
Avoid binder calls when unlocking

- User StrongAuthTracker instead of LockPatternUtils.
- Do not call NotificationViewHierarchyManager#updateRowStates twice,
  because mEntryManager will do it.
- Do not apply doze state and it doesn't change.

Bug: 77823972
Test: ./external/chromium-trace/systrace.py power gfx  freq am wm sched binder_driver view -a com.android.systemui -o ~/Desktop/sysui_unlock.html
Change-Id: I0a92bab79ea47db1885f5dab5c87962e465ccdfe

6 years agoMerge "Check the return values after updating Recoverable KeyStore Database." into...
Dmitry Dementyev [Fri, 18 May 2018 17:56:25 +0000 (17:56 +0000)]
Merge "Check the return values after updating Recoverable KeyStore Database." into pi-dev

6 years agoAdd a field in config to disable/enable the string hashing in metric report.
Yangster-mac [Thu, 17 May 2018 22:52:51 +0000 (15:52 -0700)]
Add a field in config to disable/enable the string hashing in metric report.

Statsd hashes (using its own hashing function) raw strings to reduce the
upload data size when there are duplicate strings in the report. And in cloud,
the clearcut translator would backfill the strings.

In a few droidfood users, we find the translator was unable to do that. While
debugging the root cause, we first decided to provide an option to disable
the hashing from the cloud.

Test: statsd unit test, CTS test, tested manually

BUG: b/79943763
Change-Id: If0359c8cf3f3cf83a2938db9ebf95ea7906f0b0c

6 years agoMerge "wifi.proto: Add metrics for softap band preference unsatisfied" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 17:34:51 +0000 (17:34 +0000)]
Merge "wifi.proto: Add metrics for softap band preference unsatisfied" into pi-dev

6 years agoMerge "Fixes for SyncRtSurfaceTransactionApplier" into pi-dev
Jorim Jaggi [Fri, 18 May 2018 17:24:43 +0000 (17:24 +0000)]
Merge "Fixes for SyncRtSurfaceTransactionApplier" into pi-dev

6 years agoMerge "Add a hidden flag to indicate exif data block." into pi-dev
TreeHugger Robot [Fri, 18 May 2018 17:09:36 +0000 (17:09 +0000)]
Merge "Add a hidden flag to indicate exif data block." into pi-dev

6 years agoMagnification treats alpha=0 windows as invisible
Phil Weaver [Fri, 18 May 2018 16:48:01 +0000 (09:48 -0700)]
Magnification treats alpha=0 windows as invisible

Bug: 79705072
Test: Start magnification when typing to change launcher
folder title. Typing now works, and magnification boundary
is correct.

Change-Id: I7d45c49f15cb7295d38be2c1ba7386e74f52d7bc

6 years agoSchedule trimMemory after drawing the frame
Jorim Jaggi [Mon, 30 Apr 2018 16:51:56 +0000 (18:51 +0200)]
Schedule trimMemory after drawing the frame

Fixes jank issues where trimMemory gets scheduled during an
animation. trimMemory likely hits code that is not in the
page cache anymore, leading to high execution time because of page
misses. Scheduling it after the next frame has been drawn
minimizes the risk that this page miss actually causes jank.

Test: Boot, switch between a couple of apps.
Bug: 78611607
Change-Id: Ia1fc411fbe6ca07861183ae484124406681118e5

6 years agoFixes for SyncRtSurfaceTransactionApplier
Jorim Jaggi [Fri, 18 May 2018 16:23:08 +0000 (18:23 +0200)]
Fixes for SyncRtSurfaceTransactionApplier

Such that launcher can use it.

Test: Open/close app
Bug: 78611607
Change-Id: I8e66b983035eb8da9dd8349e2a5b57d3631df74f

6 years agoMerge "Keep notification when sending smart reply." into pi-dev
Selim Cinek [Fri, 18 May 2018 16:20:40 +0000 (16:20 +0000)]
Merge "Keep notification when sending smart reply." into pi-dev

6 years agoMerge "Suppress service start timeout for services within system server," into pi-dev
Makoto Onuki [Fri, 18 May 2018 15:13:27 +0000 (15:13 +0000)]
Merge "Suppress service start timeout for services within system server," into pi-dev

6 years agoMerge "More light grey APIs." into pi-dev
Nicolas Geoffray [Fri, 18 May 2018 14:28:46 +0000 (14:28 +0000)]
Merge "More light grey APIs." into pi-dev

6 years agoMerge "WM: Perform layout based on the requested flags" into pi-dev
Adrian Roos [Fri, 18 May 2018 14:22:11 +0000 (14:22 +0000)]
Merge "WM: Perform layout based on the requested flags" into pi-dev

6 years agoMerge "Don't always set the clock to View.GONE" into pi-dev
TreeHugger Robot [Fri, 18 May 2018 14:21:48 +0000 (14:21 +0000)]
Merge "Don't always set the clock to View.GONE" into pi-dev