OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Metrics for hardware reliability reporting" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 01:16:33 +0000 (01:16 +0000)]
Merge "Metrics for hardware reliability reporting" into pi-dev

6 years agoMerge "Autofill: allow switch IME when autofill is showing" into pi-dev
Dake Gu [Tue, 15 May 2018 01:02:41 +0000 (01:02 +0000)]
Merge "Autofill: allow switch IME when autofill is showing" into pi-dev

6 years agoMerge "Simplify Javadoc for easier parsing." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 00:48:52 +0000 (00:48 +0000)]
Merge "Simplify Javadoc for easier parsing." into pi-dev

6 years agoMerge "Decrease the inferred auto-brightness adjustment at the extremes." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 00:37:10 +0000 (00:37 +0000)]
Merge "Decrease the inferred auto-brightness adjustment at the extremes." into pi-dev

6 years agoMerge "Update javadoc for setVisualVoicemailSmsFilterSettings" into pi-dev
Ta-wei Yen [Mon, 14 May 2018 23:48:55 +0000 (23:48 +0000)]
Merge "Update javadoc for setVisualVoicemailSmsFilterSettings" into pi-dev

6 years agoMerge "Reset auto-brightness on new BrightnessConfiguration" into pi-dev
Michael Wright [Mon, 14 May 2018 23:33:02 +0000 (23:33 +0000)]
Merge "Reset auto-brightness on new BrightnessConfiguration" into pi-dev

6 years agoMerge "Fixing user tap on suspended widget" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 23:32:08 +0000 (23:32 +0000)]
Merge "Fixing user tap on suspended widget" into pi-dev

6 years agoMerge "Improve a11y ordering" into pi-dev
Phil Weaver [Mon, 14 May 2018 23:25:07 +0000 (23:25 +0000)]
Merge "Improve a11y ordering" into pi-dev

6 years agoDecrease the inferred auto-brightness adjustment at the extremes.
Michael Wright [Mon, 14 May 2018 22:53:48 +0000 (15:53 -0700)]
Decrease the inferred auto-brightness adjustment at the extremes.

Now that the brightness slider always represents the brightness of the
panel, rather than the auto-brightness adjustments like it did prior to
P, we need to infer the adjustment by comparing the old and new
brightness values. At the extremes, this inferred brightness increases
dramatically towards (+/-) infinity, so we use a different strategy.
Based on dogfood feedback, the current inference seems to have too
strong of an effect, so we're cutting it in half in the hopes that this
is more reasonable.

Change-Id: If6a6c3355f9dcce8588512f1d969c871149ec299
Fixes: 79153846
Test: manual

6 years agoMerge "Allow to create trusted BaseDexClassLoader" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 23:11:33 +0000 (23:11 +0000)]
Merge "Allow to create trusted BaseDexClassLoader" into pi-dev

6 years agoMerge "Mitigating cache corruption in ArrayMap" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 23:03:39 +0000 (23:03 +0000)]
Merge "Mitigating cache corruption in ArrayMap" into pi-dev

6 years agoMetrics for hardware reliability reporting
Andrew Chant [Thu, 10 May 2018 21:16:07 +0000 (14:16 -0700)]
Metrics for hardware reliability reporting

Add event metrics for hardware reliability reporting.

Events include:
 - Battery Health Snapshot
 - Battery Charge cycles
 - Physical Drop
 - Hardware Failed
 - USB Audio Device insertion & removal
 - USB Connector insertion & removal

Bug: 69978775
Test: Logged events from Pixelstats HAL
Change-Id: I9389f71ffe85a430273f33650503f714ea308a78

6 years agoMerge "Configurable data error action in value metric" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 22:46:15 +0000 (22:46 +0000)]
Merge "Configurable data error action in value metric" into pi-dev

6 years agoUpdate javadoc for setVisualVoicemailSmsFilterSettings
Ta-wei Yen [Mon, 30 Apr 2018 18:55:47 +0000 (11:55 -0700)]
Update javadoc for setVisualVoicemailSmsFilterSettings

Test: N/A
Change-Id: I024fa5c2947b562e61e693ecb4d8421fe2507c9e
Fixes: 73829091

6 years agoMitigating cache corruption in ArrayMap
Suprabh Shukla [Mon, 14 May 2018 21:22:11 +0000 (14:22 -0700)]
Mitigating cache corruption in ArrayMap

Before calling freeArrays, storing the array reference into a temporary
pointer so that the main pointer doesn't end up corrupting the static
pool of arrays on concurrent access. An earlier change missed a rare
case when removeAt was called for the last element in the map.

Test: atest android.util.ArrayMapTest
atest android.util.cts.ArrayMapTest

Bug: 78898947
Change-Id: I454c5b1600eb0a6c690e746df10f6a0ebcd8aa1d

6 years agoMerge "Measuring the content views always at their specified size" into pi-dev
Selim Cinek [Mon, 14 May 2018 21:36:28 +0000 (21:36 +0000)]
Merge "Measuring the content views always at their specified size" into pi-dev

6 years agoMerge "Add 'Snooze' to local context menu for notifications" into pi-dev
Mady Mellor [Mon, 14 May 2018 21:10:49 +0000 (21:10 +0000)]
Merge "Add 'Snooze' to local context menu for notifications" into pi-dev

6 years agoAllow to create trusted BaseDexClassLoader
Philip P. Moltmann [Mon, 14 May 2018 21:00:45 +0000 (14:00 -0700)]
Allow to create trusted BaseDexClassLoader

Currently the API is blacklisted.

Bug: 78235528
Test: Called the API after light-greylisting
Change-Id: I7f094a96262a9c8527b339a175f17f2addc87cda

6 years agoMerge "Add CallAudioState ctor as TestApi" into pi-dev
Hall Liu [Mon, 14 May 2018 20:56:57 +0000 (20:56 +0000)]
Merge "Add CallAudioState ctor as TestApi" into pi-dev

6 years agoConfigurable data error action in value metric
Chenjie Yu [Mon, 14 May 2018 17:14:16 +0000 (10:14 -0700)]
Configurable data error action in value metric

Right now in value metric, if a later pull produces a smaller number
than the previous one, we use absolute value of the current value.
This is not correct for some atoms as listed in the CL, which should
just take 0.
For some other atoms, this is unexpected error and should just dump
stale data.

Test: manual test
Bug: 79265262
Change-Id: I59fbfd96cbb57be22cd8d21cb57a7c60ca6856ee

6 years agoMerge "Allow device/profile owners to change app ops modes." into pi-dev
Dianne Hackborn [Mon, 14 May 2018 20:43:31 +0000 (20:43 +0000)]
Merge "Allow device/profile owners to change app ops modes." into pi-dev

6 years agoMerge "Fix Notification panel flickers comes from ag/4008279" into pi-dev
Selim Cinek [Mon, 14 May 2018 20:25:40 +0000 (20:25 +0000)]
Merge "Fix Notification panel flickers comes from ag/4008279" into pi-dev

6 years agoImprove a11y ordering
Phil Weaver [Fri, 11 May 2018 01:00:18 +0000 (18:00 -0700)]
Improve a11y ordering

We use ids to break ties when sorting views just to
guarantee that we won't break sorting. But we don't
want to have our swipe order determined by arbitrary
ids.

Before resorting to such a crude tie-breaker, look at
a view's children to try to break a tie using their
bounds. That sort is more based on what's on the
screen, and will also produce the same result from
the same ui.

Bug: 78348191
Test: Switch access order is much more sensible on
Recents. Also ran a11y cts.

Change-Id: I918eae3b0d27e889a53d05a6ebe925e38ce5d7b4

6 years agoAdd 'Snooze' to local context menu for notifications
Mady Mellor [Fri, 11 May 2018 20:24:07 +0000 (13:24 -0700)]
Add 'Snooze' to local context menu for notifications

Bug: 34840333
Test: manual - 1. turn talkback on
               2. have a notification focused
               3. invoke local context menu, note that 'snooze' is an option
               4. select snooze, note that notification is snoozed

Change-Id: Id3ea62a0a9e5c2b8893aa5b548e64bb2b341d7a2

6 years agoMerge "Prevent IME from targeting home when closing app is still animating" into...
Chavi Weingarten [Mon, 14 May 2018 19:48:56 +0000 (19:48 +0000)]
Merge "Prevent IME from targeting home when closing app is still animating" into pi-dev

6 years agoMerge "Add user event logging for recents onboarding > Actual logging will happen...
Hyunyoung Song [Mon, 14 May 2018 19:29:20 +0000 (19:29 +0000)]
Merge "Add user event logging for recents onboarding > Actual logging will happen in launcher side" into pi-dev

6 years agoAllow device/profile owners to change app ops modes.
Dianne Hackborn [Sat, 12 May 2018 01:02:58 +0000 (18:02 -0700)]
Allow device/profile owners to change app ops modes.

This allows them to continue to have this capability the
same as before we locked down access to it.

Bug: 78480444
Test: manual
Change-Id: If2b0722945235eb67676ace3f54efaa71a64bcde

6 years agoPrevent IME from targeting home when closing app is still animating
Chavi Weingarten [Mon, 14 May 2018 17:32:42 +0000 (17:32 +0000)]
Prevent IME from targeting home when closing app is still animating

There were a few issues that caused the IME target to get set to home.
1. Home is considered above the other apps since it's getting launched.
However, the visual representation is actually below the closing app.
IME tries to target the highest app, but it's not necessarily the
highest visual app
2. computeIme was called before all apps were set up. This caused the
IME target to get recomputed before adding the closing apps
3. The condition for a WS.isClosing was based on previous versions so
it was incorrect

Test: IME closes on top of current target when going home with IME open
Change-Id: Ia9b0cc913eeb76a4af20f9ac7b667c5a3d1eafc7
Fixes: 78214125

6 years agoMerge "Update boot image profile and preloaded classes" into pi-dev
Mathieu Chartier [Mon, 14 May 2018 17:36:19 +0000 (17:36 +0000)]
Merge "Update boot image profile and preloaded classes" into pi-dev

6 years agoMerge "Revert "Prevent IME from targeting home when closing app is still animating...
TreeHugger Robot [Mon, 14 May 2018 17:22:34 +0000 (17:22 +0000)]
Merge "Revert "Prevent IME from targeting home when closing app is still animating"" into pi-dev

6 years agoRevert "Prevent IME from targeting home when closing app is still animating"
Chavi Weingarten [Mon, 14 May 2018 16:10:59 +0000 (16:10 +0000)]
Revert "Prevent IME from targeting home when closing app is still animating"

This reverts commit 5e004f2798c81a0d24d4416afc5680ac0d6f4fe1.

Reason for revert: NPE crash
Fixes: 79672031
Fixes: 79670207

Change-Id: I0620d7ce182b6ee85d8c474e67ea8a899adde2b8

6 years agoMerge "Rework battery saver synchronization logic" into pi-dev
Makoto Onuki [Mon, 14 May 2018 15:42:14 +0000 (15:42 +0000)]
Merge "Rework battery saver synchronization logic" into pi-dev

6 years agoMerge "Add some Settings APIs to light grey." into pi-dev
Nicolas Geoffray [Mon, 14 May 2018 14:43:43 +0000 (14:43 +0000)]
Merge "Add some Settings APIs to light grey." into pi-dev

6 years agoMerge "Add some related NetworkStatsService APIs in light grey." into pi-dev
Nicolas Geoffray [Mon, 14 May 2018 14:43:26 +0000 (14:43 +0000)]
Merge "Add some related NetworkStatsService APIs in light grey." into pi-dev

6 years agoMerge "Bugreport greylist updates." into pi-dev
Nicolas Geoffray [Mon, 14 May 2018 14:43:06 +0000 (14:43 +0000)]
Merge "Bugreport greylist updates." into pi-dev

6 years agoMerge "Fix QS secondary text color." into pi-dev
TreeHugger Robot [Mon, 14 May 2018 13:54:24 +0000 (13:54 +0000)]
Merge "Fix QS secondary text color." into pi-dev

6 years agoMerge "Fix height of keyguard status bar" into pi-dev
TreeHugger Robot [Mon, 14 May 2018 13:48:34 +0000 (13:48 +0000)]
Merge "Fix height of keyguard status bar" into pi-dev

6 years agoAdd some Settings APIs to light grey.
Nicolas Geoffray [Mon, 14 May 2018 12:03:22 +0000 (13:03 +0100)]
Add some Settings APIs to light grey.

bug: 79509209
Test: m
Change-Id: I7ca846623baa1b72fc45dd4a79c886bed8177e21

6 years agoAdd some related NetworkStatsService APIs in light grey.
Nicolas Geoffray [Mon, 14 May 2018 12:00:15 +0000 (13:00 +0100)]
Add some related NetworkStatsService APIs in light grey.

bug: 74474835
Test: m
Change-Id: I37f53663d0d5fdb11f9d366e17072ac4506266ac

6 years agoBugreport greylist updates.
Nicolas Geoffray [Mon, 14 May 2018 10:29:56 +0000 (11:29 +0100)]
Bugreport greylist updates.

Monday edition.
Manual as it looks the tables haven't been populated yet.

bug:79630776
bug:79577968
bug:79604623
Test: m
Change-Id: I569b827821ed5651afab409a66704ba61a572a7c
Merged-in: I569b827821ed5651afab409a66704ba61a572a7c

6 years agoMerge "Remove custom schema parsing in favor of Uri" into pi-dev
Jan Althaus [Mon, 14 May 2018 08:21:40 +0000 (08:21 +0000)]
Merge "Remove custom schema parsing in favor of Uri" into pi-dev

6 years agoUpdate boot image profile and preloaded classes
Mathieu Chartier [Sun, 13 May 2018 18:45:58 +0000 (11:45 -0700)]
Update boot image profile and preloaded classes

Data obtained from dogfood device.

Also updated system server profile.

Bug: 73313191
Test: make and flash sailfish

Change-Id: I9cf059f177a10e940e7cda1d12a8ed7429019c3c

6 years agoFix Notification panel flickers comes from ag/4008279
felkachang [Mon, 14 May 2018 04:22:40 +0000 (12:22 +0800)]
Fix Notification panel flickers comes from ag/4008279

The flickr is come from the quick setting panel appear. The root
cause is ag/4008279. Because FingerprintUnlockController.showBouncer
will be called after fingerprint authentication, to show the bouncer
without considerating the mode is the problem.

The solution is to use FingerprintUnlockController.calculateMode()
to get whether the mode is MODE_SHOW_BOUNCER or not. The program call
mStatusBarKeyguardViewManager.showBouncer in
FingerprintUnlockController.showBouncer when the mode is
MODE_SHOW_BOUNCER.

Bug: 79614864
Test: atest SystemUITests
Change-Id: I9dc031628d51eb80a05e16f5520c75a74b81d9dc
Fix: 79614864

6 years agoMerge "Do not parcel legacy TextClassification fields" into pi-dev
TreeHugger Robot [Sun, 13 May 2018 21:32:20 +0000 (21:32 +0000)]
Merge "Do not parcel legacy TextClassification fields" into pi-dev

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

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 12 May 2018 17:29:46 +0000 (10:29 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I8b4031e16a8aaf7ae199721f134c90a023a5e563

6 years agoMerge "Guardrail the max gauge atoms per dimension in one bucket." into pi-dev
TreeHugger Robot [Sat, 12 May 2018 03:03:01 +0000 (03:03 +0000)]
Merge "Guardrail the max gauge atoms per dimension in one bucket." into pi-dev

6 years agoMerge "Fixes statsd reports missing strings and SCS." into pi-dev
TreeHugger Robot [Sat, 12 May 2018 02:42:40 +0000 (02:42 +0000)]
Merge "Fixes statsd reports missing strings and SCS." into pi-dev

6 years agoMerge "autofill save: do not focus on custom sub title for TV" into pi-dev
Dake Gu [Sat, 12 May 2018 01:50:03 +0000 (01:50 +0000)]
Merge "autofill save: do not focus on custom sub title for TV" into pi-dev

6 years agoMerge "Fixes splitscreen when executed from fullscreen app" into pi-dev
Matthew Ng [Sat, 12 May 2018 00:27:28 +0000 (00:27 +0000)]
Merge "Fixes splitscreen when executed from fullscreen app" into pi-dev

6 years agoMerge "Prevent IME from targeting home when closing app is still animating" into...
TreeHugger Robot [Sat, 12 May 2018 00:25:43 +0000 (00:25 +0000)]
Merge "Prevent IME from targeting home when closing app is still animating" into pi-dev

6 years agoGuardrail the max gauge atoms per dimension in one bucket.
Yangster-mac [Fri, 11 May 2018 00:13:12 +0000 (17:13 -0700)]
Guardrail the max gauge atoms per dimension in one bucket.

Test: statsd
BUG: b/78603347
Change-Id: Ide77cc8ff0cde6cf6cc9e56034727ed27dd7be88

6 years agoAdd CallAudioState ctor as TestApi
Hall Liu [Sat, 12 May 2018 00:14:08 +0000 (17:14 -0700)]
Add CallAudioState ctor as TestApi

Needed for CTS testing

Bug: 79528185
Test: CTS
Change-Id: Iad154257a93cc776d5800527e46e777fd6c88220

6 years agoFilter instant app resolution based on logical UID
Svet Ganov [Fri, 11 May 2018 00:25:29 +0000 (17:25 -0700)]
Filter instant app resolution based on logical UID

Test: cts-tradefed run cts-dev -m CtsAppSecurityHostTestCases
          -t android.appsecurity.cts.EphemeralTest
      cts-tradefed run cts-dev -m CtsActivityManagerDeviceTestCases

bug: 79487366

Change-Id: I51157410d944bc3252de29b4143bb2c7fe7fcefe

6 years agoFixes statsd reports missing strings and SCS.
David Chen [Fri, 11 May 2018 23:00:22 +0000 (16:00 -0700)]
Fixes statsd reports missing strings and SCS.

Reports written to disk don't contain the strings used, which will
make this report unusable if there are strings that don't show up
again. We should always include the strings, so this option is
removed entirely.

Also, we hard-coded the wrong number of fields when pulling
ModemActivityInfo. There are actually 10 fields, not 6.

Bug: 79601503
Test: Tested unit-tests pass on marlin-eng.
Change-Id: I6834b096ced77418a9cc2ddd79b08d1c9c447fae

6 years agoAdd user event logging for recents onboarding
Hyunyoung Song [Thu, 10 May 2018 17:45:25 +0000 (10:45 -0700)]
Add user event logging for recents onboarding
> Actual logging will happen in launcher side

Bug: 73784423
Test: Builds

Change-Id: I99ae31a74c2e5921915dc3bbf6d08669b5c98584

6 years agoautofill save: do not focus on custom sub title for TV
Dake Gu [Fri, 11 May 2018 23:46:30 +0000 (16:46 -0700)]
autofill save: do not focus on custom sub title for TV

Custom sub title is put in a ScrollView, which steals the
initial focus from Yes/No button when lauching save dialog.

The ScrollView is focusable so it can scroll large views.
But it's quite useless at this point because layout use
"wrap_content" in height, unless the custom subtitle is
higher than fullscreen, we never uses the ScrollView's scroll
feature.

The problem for using ScrollView is:
- TV UX does not allow custom sub title to be focusable or
  scrollable.
- If changes TV UX to allow scrollable custom title view,
  focus indicator of ScrollView is missing, needs to be fixed.

Based on these reasons, disable scrollable feature for TV.

Bug: 79591730
Test: manually tested on AndroidTV
Change-Id: Ib6022daf822b8b977e9a2d4a831a8ba714fb321c

6 years agoMerge "Wait for the user to fully stop before starting" into pi-dev
Fyodor Kupolov [Fri, 11 May 2018 23:57:14 +0000 (23:57 +0000)]
Merge "Wait for the user to fully stop before starting" into pi-dev

6 years agoMerge "BluetoothManager: Continue when BLE not supported" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 23:30:34 +0000 (23:30 +0000)]
Merge "BluetoothManager: Continue when BLE not supported" into pi-dev

6 years agoFix QS secondary text color.
Amin Shaikh [Fri, 11 May 2018 23:10:35 +0000 (19:10 -0400)]
Fix QS secondary text color.

Should be 54% black.

Change-Id: Ie9dafe2f185b201b4d4d8670518c6197ea1febb3
Fixes: 79582302
Test: visual

6 years agoMerge "Make right nav button container unselectable" into pi-dev
Mike Digman [Fri, 11 May 2018 22:24:21 +0000 (22:24 +0000)]
Merge "Make right nav button container unselectable" into pi-dev

6 years agoPrevent IME from targeting home when closing app is still animating
chaviw [Fri, 11 May 2018 16:32:22 +0000 (09:32 -0700)]
Prevent IME from targeting home when closing app is still animating

There were a few issues that caused the IME target to get set to home.
1. Home is considered above the other apps since it's getting launched.
However, the visual representation is actually below the closing app.
IME tries to target the highest app, but it's not necessarily the
highest visual app
2. computeIme was called before all apps were set up. This caused the
IME target to get recomputed before adding the closing apps
3. The condition for a WS.isClosing was based on previous versions so
it was incorrect

Test: IME closes on top of current target when going home with IME open
Change-Id: Id3bee8b8b6c0fba98159b65784b4b8c5b66c27fb
Fixes: 78214125

6 years agoMerge changes from topic "sysui_flags_drop" into pi-dev
Winson Chung [Fri, 11 May 2018 22:18:37 +0000 (22:18 +0000)]
Merge changes from topic "sysui_flags_drop" into pi-dev

* changes:
  Clean up Recents animation api
  Expose the system ui visibility flags and translucent state with snapshot

6 years agoMerge "Pass Uri in SliceBroadcastRelay" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 22:05:36 +0000 (22:05 +0000)]
Merge "Pass Uri in SliceBroadcastRelay" into pi-dev

6 years agoBluetoothManager: Continue when BLE not supported
Myles Watson [Fri, 11 May 2018 15:47:24 +0000 (08:47 -0700)]
BluetoothManager: Continue when BLE not supported

Bluetooth should turn on completely (without GATT) when the chip
does not support Bluetooth Low Energy.

Bug: 77495521
Test: Remove vendor/etc/permissions/android.hardware.bluetooth_le.xml
      Reboot
      Toggle Bluetooth
Change-Id: I9314ee473b4a5a158196bab3037b1452247ba466
(cherry picked from commit 5123ebd75647d3e67487de69cd0381f325a0adc9)

6 years agoMerge "GM2 icon updates" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 21:38:21 +0000 (21:38 +0000)]
Merge "GM2 icon updates" into pi-dev

6 years agoFixing user tap on suspended widget
Suprabh Shukla [Thu, 10 May 2018 22:54:08 +0000 (15:54 -0700)]
Fixing user tap on suspended widget

Widgets get masked with separate remove views when suspended. Need to
update them with the correct pending intent. Moved around the logic
creating the suspended alert activity to make it reusable.

Test: Manually, "pm suspend <app-with-widget>", followed by tap on
widget
Existing tests pass:
atest GtsSuspendAppsTestCases
atest com.android.server.am.ActivityStartInterceptorTest

Bug: 79474038
Change-Id: Ic75ee762434bf92c54bda307e9cb6018f94a914c

6 years agoFix height of keyguard status bar
Evan Laird [Fri, 11 May 2018 21:16:17 +0000 (17:16 -0400)]
Fix height of keyguard status bar

The keyguard status bar was getting set to the height of the regular
status bar, and aligning itself with the top of the screen, causing
alignment issues

Test: visual
Change-Id: I5d75f89585010dc73bdedb133246412704706c64
Fixes: 77563515

6 years agoMerge "Show settings suggestion" into pi-dev
Beverly Tai [Fri, 11 May 2018 20:59:49 +0000 (20:59 +0000)]
Merge "Show settings suggestion" into pi-dev

6 years agoMerge "[Notif] Fix a11y when guts is open" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 20:54:34 +0000 (20:54 +0000)]
Merge "[Notif] Fix a11y when guts is open" into pi-dev

6 years agoMerge "Rename settings category." into pi-dev
TreeHugger Robot [Fri, 11 May 2018 20:49:35 +0000 (20:49 +0000)]
Merge "Rename settings category." into pi-dev

6 years agoFixes splitscreen when executed from fullscreen app
Matthew Ng [Fri, 13 Apr 2018 18:36:34 +0000 (11:36 -0700)]
Fixes splitscreen when executed from fullscreen app

Fixes splitscreen from the right for launching splitscreen from
fullscreen app including pixel launcher and 3rd party launchers. With
3rd party launchers, the experience is the same as Android O. With pixel
launcher since launcher and recents are merged, it will split to
minimized mode. When pixel launcher is used, the recents stack is
ignored.

Fixes: 73250406
Fixes: 78247419
Test: use split screen; invoke command with supportapp.apk in b/78247419
adb shell am broadcast -a launcher-acc --ei cmd 1
Change-Id: I70b0551c517465b3a059ff7d0641c27f71e8114e

6 years agoRework battery saver synchronization logic
Makoto Onuki [Thu, 10 May 2018 20:41:39 +0000 (13:41 -0700)]
Rework battery saver synchronization logic

- Stop using individual lock instances and use use the power manager lock.
- Make sure not to access external components with the lock held,
*except for settings provider*, which is already touched by the power manager
and the battery service

(I'm planning to re-organize things for Q: b/79580230)

Fixes: 79486713

Test: atest /android/pi-dev/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/Battery*Test.java /android/pi-dev/frameworks/base/services/tests/servicestests/src/com/android/server/power/*Test.java
Test: Manual test with ./development/scripts/battery_simulator.py with toggling
battery saver on and off and then watch
adb logcat -b all | grep -P '(battery_saving_stats|battery_saver_mode)'

Change-Id: I8ecdfefe978de348ee979d765c82e3d8f0280082

6 years agoMerge "Fix issue #79541100: [Blueline][PI][SPT]: Watchdog killing process and SIGSEGV...
Makoto Onuki [Fri, 11 May 2018 20:08:16 +0000 (20:08 +0000)]
Merge "Fix issue #79541100: [Blueline][PI][SPT]: Watchdog killing process and SIGSEGV" into pi-dev

6 years agoMake right nav button container unselectable
Mike Digman [Fri, 11 May 2018 19:27:32 +0000 (12:27 -0700)]
Make right nav button container unselectable

Container can be selected via Talkback with no visible children.
Ensure container will never be selected.

Change-Id: I09d2f0a587fe4ecc71f73bb7f8be098abfbb11d5
Fixes: 79488376
Test: manual: empty and visible a11y, rotate, IME button

6 years agoMerge "Add Bluetooth callback for device connection state changed" into pi-dev
Ryan Lin [Fri, 11 May 2018 19:53:19 +0000 (19:53 +0000)]
Merge "Add Bluetooth callback for device connection state changed" into pi-dev

6 years agoMerge "Fix first-time slice permission grants" into pi-dev
Jason Monk [Fri, 11 May 2018 19:40:10 +0000 (19:40 +0000)]
Merge "Fix first-time slice permission grants" into pi-dev

6 years agoMerge "Detach children in transaction." into pi-dev
TreeHugger Robot [Fri, 11 May 2018 19:37:00 +0000 (19:37 +0000)]
Merge "Detach children in transaction." into pi-dev

6 years agoMeasuring the content views always at their specified size
Selim Cinek [Fri, 11 May 2018 19:29:52 +0000 (12:29 -0700)]
Measuring the content views always at their specified size

Before we were limiting the height of the contentViews with
the height of the size that was given to us. When the
shade is collapsed, this actually made them measure
with size 0 in cases where we had a notch.
In rare cases, the measuring caching could lead to oddities
where content would be invisible.
We're now measuring them uniformly.
As a side effect, this measuring might also fix another bug,
where the notification is the full height of the view.

Test: add all sorts of notifications with notch, observe normal layout
Change-Id: I714f34f1564549952423ca51751cfe37ed45d991
Fixes: 73952748
Fixes: 78144261

6 years agoMerge "Add charging metrics" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 19:14:31 +0000 (19:14 +0000)]
Merge "Add charging metrics" into pi-dev

6 years agoMerge "Add limits to App Usage Observer Api" into pi-dev
Amith Yamasani [Fri, 11 May 2018 19:03:11 +0000 (19:03 +0000)]
Merge "Add limits to App Usage Observer Api" into pi-dev

6 years agoMerge "Fix TextClassifier logging." into pi-dev
TreeHugger Robot [Fri, 11 May 2018 18:29:31 +0000 (18:29 +0000)]
Merge "Fix TextClassifier logging." into pi-dev

6 years agoGM2 icon updates
Evan Laird [Fri, 20 Apr 2018 16:55:46 +0000 (12:55 -0400)]
GM2 icon updates

(2nd of many)

Pushing this up to close out a few bugs and get these into rotation

- ic_qs_cancel (x icon)
- ic_delete & ic_screenshot_delete (trash cans)
- stat_sys_dnd, ic_qs_dnd, ic_dnd (dnd obviously)
- ic_mode_edit & ic_screenshot_edit (pencil)
- ic_feedback (feedback for app-crashing dialog)
- ic_signal_flashlight (qs flashlight)
- ic_headset & ic_headset_mic
- ic_help_actionbar (question mark in settings)
- ic_info_outline_24dp (SettingsLib info icon)
- ic_volume* (volume rocker icons)
- ringer + vibrate (volume rocker, status bar, qs)
- Global actions menu (restart, power, screenshot)
- settings icons

Test: visual
Bug: 74344964
Bug: 74418623
Fixes: 76150662
Fixes: 76150721
Change-Id: I4cd9959de0156074b0d1e2978163984f7b761671

6 years agoSimplify Javadoc for easier parsing.
Wyatt Riley [Fri, 11 May 2018 18:21:05 +0000 (11:21 -0700)]
Simplify Javadoc for easier parsing.

Change-Id: I48abfa8eb8ccfd031d2364ef9acfa39d4bec4cb4
Fixes: 76874150
Test: Builds & comment-only

6 years agoMerge "Fall back to checking packages if one is not provided" into pi-dev
Chad Brubaker [Fri, 11 May 2018 18:13:35 +0000 (18:13 +0000)]
Merge "Fall back to checking packages if one is not provided" into pi-dev

6 years agoRename settings category.
Doris Ling [Fri, 11 May 2018 17:53:57 +0000 (10:53 -0700)]
Rename settings category.

- from night light to night display.

Change-Id: Ib09e1b9299478dc4e8dcee935e29c6886d9dc7b8
Fixes: 79530682
Test: make RunSettingsLibRoboTests

6 years agoMerge "Don't crash if SoundTriggerDetectionService client is gone or if there is...
Michael Dooley [Fri, 11 May 2018 17:46:41 +0000 (17:46 +0000)]
Merge "Don't crash if SoundTriggerDetectionService client is gone or if there is a remote exception while finishing an opperation" into pi-dev

6 years agoMerge changes from topic "b_78809704" into pi-dev
Todd Kennedy [Fri, 11 May 2018 17:44:53 +0000 (17:44 +0000)]
Merge changes from topic "b_78809704" into pi-dev

* changes:
  OMS: teach the OMS about static RROs
  OMS: rebase settings when overlays update

6 years agoMerge "Don't allow non-showOnLock activity to be next on finish." into pi-dev
TreeHugger Robot [Fri, 11 May 2018 17:39:36 +0000 (17:39 +0000)]
Merge "Don't allow non-showOnLock activity to be next on finish." into pi-dev

6 years agoMerge "Fix active permission touch target too small" into pi-dev
Dieter Hsu [Fri, 11 May 2018 17:37:35 +0000 (17:37 +0000)]
Merge "Fix active permission touch target too small" into pi-dev

6 years ago[Notif] Fix a11y when guts is open
Rohan Shah [Fri, 11 May 2018 04:49:04 +0000 (21:49 -0700)]
[Notif] Fix a11y when guts is open

The content in the back is showing while guts is up since we never make
the content invisible. To avoid making a semi-risky change before the
GAR cutoff, we're listening to guts open/close and toggling the content
views' important for accessibility values.

After guts is closed, this will also re-focus the notification that the
user had long-pressed instead of leaving them without a target/making
them lose track.

Fixes: 75284298
Test: Manually with single and group notif
Change-Id: I57c3ac27e0c134ce04b681717b185eceba19a7a8

6 years agoMerge "Do not hide keyguard message when fp" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 17:31:24 +0000 (17:31 +0000)]
Merge "Do not hide keyguard message when fp" into pi-dev

6 years agoMerge "Allow onGetSliceDescendants to be slow" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 17:21:28 +0000 (17:21 +0000)]
Merge "Allow onGetSliceDescendants to be slow" into pi-dev

6 years agoMerge "Support generic filters when EXTERNAL flag is set" into pi-dev
TreeHugger Robot [Fri, 11 May 2018 17:16:37 +0000 (17:16 +0000)]
Merge "Support generic filters when EXTERNAL flag is set" into pi-dev

6 years agoFall back to checking packages if one is not provided
Chad Brubaker [Wed, 9 May 2018 21:05:57 +0000 (14:05 -0700)]
Fall back to checking packages if one is not provided

Test: atest GsmCdmaPhoneTest.java
Change-Id: I81df49fd2f751ce28d834fc5d9cd254623930770
Fixes: 75450505

6 years agoAdd charging metrics
Beverly [Thu, 10 May 2018 19:46:03 +0000 (15:46 -0400)]
Add charging metrics

Change-Id: Icef477c99cb9e53faff852cf6003f912ab8b10c3
Fixes: 78463707
Test: manual

6 years agoFix issue #79541100: [Blueline][PI][SPT]: Watchdog killing process and SIGSEGV
Dianne Hackborn [Fri, 11 May 2018 16:46:13 +0000 (09:46 -0700)]
Fix issue #79541100: [Blueline][PI][SPT]: Watchdog killing process and SIGSEGV

Bug: 79541100
Test: manual
Change-Id: I1456d27938d99d8ee56e5cde843f505a46c9fc72

6 years agoMerge "Revert "Revert "Change the root of trust for CryptAuth Vault Service""" into...
Bo Zhu [Fri, 11 May 2018 16:46:16 +0000 (16:46 +0000)]
Merge "Revert "Revert "Change the root of trust for CryptAuth Vault Service""" into pi-dev

6 years agoMerge "Fix focusable on entire notification area if QS is expanded" into pi-dev
Riddle Hsu [Fri, 11 May 2018 16:36:29 +0000 (16:36 +0000)]
Merge "Fix focusable on entire notification area if QS is expanded" into pi-dev

6 years agoFix first-time slice permission grants
Jason Monk [Fri, 11 May 2018 16:26:51 +0000 (09:26 -0700)]
Fix first-time slice permission grants

Test: Added a test
Change-Id: Ib4c0b65c6fec6fcb97bccb2f3d35f5c35ede3786
Fixes: 79567935