OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Fixed an issue where icons could remain white" into pi-dev
Selim Cinek [Thu, 17 May 2018 01:22:41 +0000 (01:22 +0000)]
Merge "Fixed an issue where icons could remain white" into pi-dev

6 years agoMerge "Removing unused invert helpers" into pi-dev
Selim Cinek [Thu, 17 May 2018 01:22:41 +0000 (01:22 +0000)]
Merge "Removing unused invert helpers" into pi-dev

6 years agoMerge "Add new method refreshSummary(Preference)" into pi-dev
TreeHugger Robot [Thu, 17 May 2018 00:43:04 +0000 (00:43 +0000)]
Merge "Add new method refreshSummary(Preference)" into pi-dev

6 years agoMerge "Don't crash apps unfairly under FAS" into pi-dev
TreeHugger Robot [Thu, 17 May 2018 00:41:24 +0000 (00:41 +0000)]
Merge "Don't crash apps unfairly under FAS" into pi-dev

6 years agoMerge "Fix issues starting recents animation when starting a new activity" into pi-dev
TreeHugger Robot [Thu, 17 May 2018 00:40:49 +0000 (00:40 +0000)]
Merge "Fix issues starting recents animation when starting a new activity" into pi-dev

6 years agoMerge "TextSelection.Builder.setId should take null as well" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 23:52:14 +0000 (23:52 +0000)]
Merge "TextSelection.Builder.setId should take null as well" into pi-dev

6 years agoMerge "Moves Swipe Up overlay from Settings app to android.internal" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 23:38:31 +0000 (23:38 +0000)]
Merge "Moves Swipe Up overlay from Settings app to android.internal" into pi-dev

6 years agoMerge "Update service map when application info is updated" into pi-dev
Fyodor Kupolov [Wed, 16 May 2018 23:12:52 +0000 (23:12 +0000)]
Merge "Update service map when application info is updated" into pi-dev

6 years agoMerge "Add constant for PhysicalChannelConfig UNSOL" into pi-dev
Eric Schwarzenbach [Wed, 16 May 2018 22:47:41 +0000 (22:47 +0000)]
Merge "Add constant for PhysicalChannelConfig UNSOL" into pi-dev

6 years agoMerge "Update font chain linter to match latest font file" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 22:11:17 +0000 (22:11 +0000)]
Merge "Update font chain linter to match latest font file" into pi-dev

6 years agoMerge "Fix issue with split screen launch bounds" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 22:02:56 +0000 (22:02 +0000)]
Merge "Fix issue with split screen launch bounds" into pi-dev

6 years agoDon't crash apps unfairly under FAS
Christopher Tate [Wed, 16 May 2018 19:59:43 +0000 (12:59 -0700)]
Don't crash apps unfairly under FAS

When an app calls startForegroundService() from a bg state (e.g. from a
broadcast receiver) but the user has placed it under FAS, it's incorrect
to crash the app:  it hasn't actually violated the fg/bg restrictions
contract.  Fail quietly instead, just like the legacy-app case when O+
restrictions are imposed on it.

Change-Id: I3e8ed2ea6bdbf4167249132ddf9b7c549b9a8062
Fixes: 79235311
Test: ApiDemos [before and after changing target sdk to O+]
Test: atest android.app.cts.ServiceTest

6 years agoMerge "Add contentDescription to status bar alarm" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 21:02:45 +0000 (21:02 +0000)]
Merge "Add contentDescription to status bar alarm" into pi-dev

6 years agoMerge "Fix KeyguardUpdateMonitor test" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 20:50:25 +0000 (20:50 +0000)]
Merge "Fix KeyguardUpdateMonitor test" into pi-dev

6 years agoMerge "Remove total_silence dnd icon" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 20:05:03 +0000 (20:05 +0000)]
Merge "Remove total_silence dnd icon" into pi-dev

6 years agoAdd contentDescription to status bar alarm
Evan Laird [Wed, 16 May 2018 19:58:49 +0000 (15:58 -0400)]
Add contentDescription to status bar alarm

Test: turn on talkback; tap alarm; listen
Bug: 66964503
Change-Id: If416e7f96de0873dd6e920c7dcf6f23f88ce2204

6 years agoMerge "Adding utility method to dump encoded view hierarchy" into pi-dev
Sunny Goyal [Wed, 16 May 2018 19:56:45 +0000 (19:56 +0000)]
Merge "Adding utility method to dump encoded view hierarchy" into pi-dev

6 years agoMerge "Check mStatusBarWindowHidden bit when deciding to hide status bar" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 19:49:48 +0000 (19:49 +0000)]
Merge "Check mStatusBarWindowHidden bit when deciding to hide status bar" into pi-dev

6 years agoMerge "More app ops fg/bg tuning" into pi-dev
Dianne Hackborn [Wed, 16 May 2018 19:48:54 +0000 (19:48 +0000)]
Merge "More app ops fg/bg tuning" into pi-dev

6 years agoFix KeyguardUpdateMonitor test
Lucas Dupin [Wed, 16 May 2018 19:14:10 +0000 (12:14 -0700)]
Fix KeyguardUpdateMonitor test

KeyguardUpdateMonitor's Handler runs on the main looper by design,
we need to ensure that whenever we're processing messages, that
they will also be received on the main looper.

Also unregistered a broadcast listener to avoid a possible race
condition

Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java
Bug: 79550837
Change-Id: I14a319da5c6bc46fd32675ae205e14a6228efaa4

6 years agoFix issues starting recents animation when starting a new activity
Winson Chung [Wed, 16 May 2018 16:40:16 +0000 (09:40 -0700)]
Fix issues starting recents animation when starting a new activity

- When avoiding moving the stack to the front, skip resuming as well (since
  the recents activity is starting in the back, and this prevents having
  to add more checks to skip moving the task to the front).

  The avoid-move-to-front option is only used for the recents animation,
  and only used when starting a new activity, so the effects of this change
  should only be limited to that logic.
- Also execute the app transition explicitly since it isn't triggered when
  we aren't resuming the newly started activity, which was causing the
  app-transition timeout to occur before launcher was next made visible
  and good to go).

Bug: 77154670
Test: Open app, install launcher in the background to kill the activity,
      then swipe up and ensure that it actually works instead of running
      the normal task-dismiss transition

Change-Id: I8c39d95e7a6ca65a099aba7285e852b2480804ca

6 years agoAdd new method refreshSummary(Preference)
hjchangliao [Mon, 14 May 2018 07:11:11 +0000 (15:11 +0800)]
Add new method refreshSummary(Preference)

Refactor code which update summary in updateState,
Move them into new method refreshSummary.

Fixes: 67997698
Fixes: 67997726
Test: make RunSettingsLibRoboTests
Change-Id: Icbcedcd08efa2103042ba40a756e8d4b615e1352
Merged-In: Icbcedcd08efa2103042ba40a756e8d4b615e1352

6 years agoRemoving unused invert helpers
Selim Cinek [Sat, 5 May 2018 01:05:33 +0000 (18:05 -0700)]
Removing unused invert helpers

In AOD the notifications aren't actually inverted
anymore and it was creating problems as in bordercases
it would still be invoked.

Test: add group, normal notification on aod, normal layout
Merged-In: Id01b7624162ff17d0e4cad6479d486683f7e5b33
Change-Id: Id01b7624162ff17d0e4cad6479d486683f7e5b33
Fixes: 77024183

6 years agoMerge "Remove SCO devices if Bluetooth process is dead" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 18:06:46 +0000 (18:06 +0000)]
Merge "Remove SCO devices if Bluetooth process is dead" into pi-dev

6 years agoMerge "ScreenDecor: Set touchable region in windows coordinate space" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 17:19:46 +0000 (17:19 +0000)]
Merge "ScreenDecor: Set touchable region in windows coordinate space" into pi-dev

6 years agoAdding utility method to dump encoded view hierarchy
Sunny Goyal [Wed, 16 May 2018 17:13:13 +0000 (10:13 -0700)]
Adding utility method to dump encoded view hierarchy

Test: Verified the library change with launcher (after generating a bug report)
Bug: 79861035
Change-Id: Id1eabbfd293ee43c46cbecae82442fc77b661744

6 years agoScreenDecor: Set touchable region in windows coordinate space
Adrian Roos [Wed, 16 May 2018 15:04:29 +0000 (17:04 +0200)]
ScreenDecor: Set touchable region in windows coordinate space

Also restricts the region to the frame of the view. This
is important for double cutouts, would go to the wrong view,
and having a touchable region spanning the entire screen
breaks some a11y services.

Change-Id: I824e5fb9b2f2e765ee9b6da4fcaf2c6840d8f51d
Fixes: 79533418
Test: turn on double cutout emulation; adb shell dumpsys window ScreenDecor, verify touchable region for each decor looks right.

6 years agoRemove total_silence dnd icon
Evan Laird [Wed, 16 May 2018 15:32:08 +0000 (11:32 -0400)]
Remove total_silence dnd icon

It's not cool anymore

Test: "shush, phone" -> look at status bar -> see wireframe dnd icon
Change-Id: I5ffbb6ae97dfc321c2404caeabd5e201fde7f4c3
Fixes: 79853559

6 years agoMerge "Fix testable looper threading" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 15:22:37 +0000 (15:22 +0000)]
Merge "Fix testable looper threading" into pi-dev

6 years agoMerge "Add metric to log use of hush gesture" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 15:00:31 +0000 (15:00 +0000)]
Merge "Add metric to log use of hush gesture" into pi-dev

6 years agoMerge "Add some null checks to slices" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 14:27:42 +0000 (14:27 +0000)]
Merge "Add some null checks to slices" into pi-dev

6 years agoMerge "Improved notification interruptiveness calculation." into pi-dev
Daniel Sandler [Wed, 16 May 2018 14:23:38 +0000 (14:23 +0000)]
Merge "Improved notification interruptiveness calculation." into pi-dev

6 years agoFix testable looper threading
Jason Monk [Wed, 16 May 2018 14:15:33 +0000 (10:15 -0400)]
Fix testable looper threading

In the case where an annotation was not used and the TestableLooper
was manually created, then the messages would be executed on the wrong
thread.

Also switch some handlers over to async, might save us a little time.

Test: runtest --path frameworks/base/tests/testables
Bug: 79550837
Change-Id: I70a36449ae08eb5799e2dad41a5d258bb51a3fd3

6 years agoMerge "Make clock and battery clickable in QS status bar." into pi-dev
TreeHugger Robot [Wed, 16 May 2018 13:44:13 +0000 (13:44 +0000)]
Merge "Make clock and battery clickable in QS status bar." into pi-dev

6 years agoMerge "Do not dismiss QS toggling mobile data." into pi-dev
TreeHugger Robot [Wed, 16 May 2018 13:29:15 +0000 (13:29 +0000)]
Merge "Do not dismiss QS toggling mobile data." into pi-dev

6 years agoAdd metric to log use of hush gesture
Beverly [Tue, 15 May 2018 20:16:54 +0000 (16:16 -0400)]
Add metric to log use of hush gesture

Change-Id: I14578149a79b1455267cb6efc6493c596129032d
Bug: 79537757
Bug: 78665512
Test: manual, builds

6 years agoMerge "Avoid calling updateOomAdj an extra time" into pi-dev
Amith Yamasani [Wed, 16 May 2018 12:54:14 +0000 (12:54 +0000)]
Merge "Avoid calling updateOomAdj an extra time" into pi-dev

6 years agoImproved notification interruptiveness calculation.
Dan Sandler [Tue, 15 May 2018 18:06:38 +0000 (14:06 -0400)]
Improved notification interruptiveness calculation.

Apparently comparing Spannables is dangerous because
the various Span classes do not implement .equals() in any
meaningful way, so all CharSequences must be converted to
flat Strings before being compared.

Lots of additional debug code remains, for the next time we
don't understand why an innocuous notification update
appears to be interruptive.

Test: atest com.android.server.notification.NotificationManagerServiceTest
      atest com.android.server.notification.NotificationTest
Bug: 78643290
Change-Id: I1c282238687f28b5b197e28a4b878dc697049f4d

6 years agoFixed regression on jank test of changeBrightness
shawnlin [Fri, 11 May 2018 08:44:42 +0000 (16:44 +0800)]
Fixed regression on jank test of changeBrightness

Replace using hardware layer for alpha animation with drawing
transparent color with MULTIPLY mode.

Test: atest google/perf/jank/SystemUI/UbSystemUIJankTests-Trace:android.platform.systemui.tests.jank.SystemUiJankTests#testChangeBrightness
Change-Id: I9615af89c4418dd90ccc86e9e7c71d88e7121826
Fixes: 79266233

6 years agoMerge "Add connection state summary for android auto" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 06:52:20 +0000 (06:52 +0000)]
Merge "Add connection state summary for android auto" into pi-dev

6 years agoMerge "Allow recents component to launch non-exported activities" into pi-dev
Winson Chung [Wed, 16 May 2018 04:40:35 +0000 (04:40 +0000)]
Merge "Allow recents component to launch non-exported activities" into pi-dev

6 years agoFix issue with split screen launch bounds
Winson Chung [Wed, 2 May 2018 01:17:19 +0000 (18:17 -0700)]
Fix issue with split screen launch bounds

- In O, the fullscreen stack was resized once we enter splitscreen (and
  is updated with the tempOtherTaskBounds as we resize for minimized
  state). However, in P, since we are creating a new stack for each task,
  the launch of a task while in splitscreen now falls into
  TaskStack.updateBoundsForWindowModeChange() which incorrectly calculates
  the bounds of the secondary stack using the minimized bounds of the
  primary stack. Subsequent launches are fine because the stack already
  exists and is just being brought forward.

Bug: 73745166
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerSplitScreenTests
Test: Enter split screen, launch an app from scratch and ensure it
      animates to the right place

Change-Id: I7da856b9bb88db0db9616d56bb9fefdce918d7c3

6 years agoMake clock and battery clickable in QS status bar.
Amin Shaikh [Wed, 16 May 2018 03:43:34 +0000 (23:43 -0400)]
Make clock and battery clickable in QS status bar.

Change-Id: Id96253cb034305337cb2e34b45ca032e5cf8c7ac
Fixes: 79472358
Test: manual

6 years agoDo not dismiss QS toggling mobile data.
Amin Shaikh [Wed, 16 May 2018 03:07:57 +0000 (23:07 -0400)]
Do not dismiss QS toggling mobile data.

Change-Id: I2691b95b182fa16b943338d86b6e49a1b2362fca
Fixes: 79371609
Test: visual

6 years agoMerge "Update misc settingslib icons" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 02:46:53 +0000 (02:46 +0000)]
Merge "Update misc settingslib icons" into pi-dev

6 years agoMerge "Fixes Value metrics in statsd and app upgrades." into pi-dev
TreeHugger Robot [Wed, 16 May 2018 02:27:37 +0000 (02:27 +0000)]
Merge "Fixes Value metrics in statsd and app upgrades." into pi-dev

6 years agoMerge "Fix issue where panel wouldn't collapse" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 02:24:42 +0000 (02:24 +0000)]
Merge "Fix issue where panel wouldn't collapse" into pi-dev

6 years agoUpdate misc settingslib icons
Fan Zhang [Wed, 16 May 2018 01:15:27 +0000 (18:15 -0700)]
Update misc settingslib icons

- new icon size for edit pencil
- removed home.xml, it's not needed by anything except test

Bug: 77982107
Test: visual
Change-Id: I451bc12c4a57e5f61e7c561c394b00bd95e7228d

6 years agoAdd some null checks to slices
Jason Monk [Wed, 16 May 2018 01:13:16 +0000 (21:13 -0400)]
Add some null checks to slices

It'll make developer debugging experience sooo much nicer.

Test: manual
Bug: 79773776
Change-Id: Ie0a826c5572752e2bb50db7669374a1698333770

6 years agoAdd connection state summary for android auto
ryanywlin [Tue, 15 May 2018 06:20:50 +0000 (14:20 +0800)]
Add connection state summary for android auto

Androd auto still need the summaries with "Connected*" strings,
use separate method for android auto.

Bug: 78936284
Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=CachedBluetoothDeviceTest -j28
Change-Id: I0a5dff4ae231108f528f1cd2e2a25b2f4633ac99

6 years agoTextSelection.Builder.setId should take null as well
Tony Mak [Tue, 15 May 2018 08:43:44 +0000 (16:43 +0800)]
TextSelection.Builder.setId should take null as well

TextSelection#Id is nullable, so the builder should take null as well.

Bug: 79779551
Test: Build
Change-Id: Iacabcab2befcbd4cb1c8674c253fe9a26cb877bf

6 years agoMerge "Revert "When ringer changes to vibrate, phone vibrates" Fixes: 79773317 Bug...
TreeHugger Robot [Wed, 16 May 2018 01:03:33 +0000 (01:03 +0000)]
Merge "Revert "When ringer changes to vibrate, phone vibrates" Fixes: 79773317 Bug: 78665512" into pi-dev

6 years agoMoves Swipe Up overlay from Settings app to android.internal
Mehdi Alizadeh [Wed, 16 May 2018 01:03:20 +0000 (18:03 -0700)]
Moves Swipe Up overlay from Settings app to android.internal

Bug: 79778025
Test: Manual tests
Change-Id: Ib22af26f388dfc5ae2098165e560ae65a4e7127a

6 years agoMerge "Add summaries for Bluetooth audio active device status" into pi-dev
Ryan Lin [Wed, 16 May 2018 00:52:44 +0000 (00:52 +0000)]
Merge "Add summaries for Bluetooth audio active device status" into pi-dev

6 years agoFixes Value metrics in statsd and app upgrades.
David Chen [Wed, 16 May 2018 00:50:32 +0000 (17:50 -0700)]
Fixes Value metrics in statsd and app upgrades.

Pulled value metrics with conditions had a subtle bug that caused
us to leave the condition on even if it should've been false.

Bug: 79778783
Test: Added unit-test and verified on marlin-eng.
Change-Id: I31f34791118319b3471f7a6ea8a024e2d511cfe7

6 years agoAllow recents component to launch non-exported activities
Winson Chung [Tue, 15 May 2018 18:01:44 +0000 (11:01 -0700)]
Allow recents component to launch non-exported activities

- When relaunching an activity in an existing task, allow the recents
  component to launch all activity including those that are not exported
  (since the recents component can not have START_ANY_ACTIVITY).

Bug: 73068266
Test: Open facebook, hit back to end the task, and try and relaunch from
      Overview

Change-Id: I45e7ce339f83aadfb5a7faf5af51df97dd1414a5

6 years agoMerge "Set DEBUG to false for BrightnessMappingStrategy." into pi-dev
TreeHugger Robot [Wed, 16 May 2018 00:36:59 +0000 (00:36 +0000)]
Merge "Set DEBUG to false for BrightnessMappingStrategy." into pi-dev

6 years agoMerge "Fix odd avatar when message sender is a number" into pi-dev
Sanry Huang [Wed, 16 May 2018 00:27:56 +0000 (00:27 +0000)]
Merge "Fix odd avatar when message sender is a number" into pi-dev

6 years agoMerge "Add shell command to get slice permissions" into pi-dev
TreeHugger Robot [Wed, 16 May 2018 00:12:32 +0000 (00:12 +0000)]
Merge "Add shell command to get slice permissions" into pi-dev

6 years agoMerge "Add SCREEN_BRIGHTNESS_FOR_VR to set of public settings." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 23:53:02 +0000 (23:53 +0000)]
Merge "Add SCREEN_BRIGHTNESS_FOR_VR to set of public settings." into pi-dev

6 years agoRevert "When ringer changes to vibrate, phone vibrates"
Beverly Tai [Tue, 15 May 2018 23:49:05 +0000 (23:49 +0000)]
Revert "When ringer changes to vibrate, phone vibrates"
Fixes: 79773317
Bug: 78665512

This reverts commit d253f98c0e2357307e5ae352d26e077ed7259b9b.

Reason for revert: b/79773317

Change-Id: I6f3eebd64b94436748986422906006686351cc4b

6 years agoFix issue where panel wouldn't collapse
Lucas Dupin [Tue, 15 May 2018 23:43:38 +0000 (16:43 -0700)]
Fix issue where panel wouldn't collapse

Notification panel would not collapse after clicking on a notification
when the keyguard is occluded.

Collapsing is necessary because otherwise the afterKeyguardGoneRunnable
would not be reached.

Test: manual
Change-Id: I15f997e0181e9af0c322834ad3357d26f9c38c1b
Fixes: 78907161

6 years agoMerge "Keep detailed job-ended reasons in the history ring" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 23:34:56 +0000 (23:34 +0000)]
Merge "Keep detailed job-ended reasons in the history ring" into pi-dev

6 years agoSet DEBUG to false for BrightnessMappingStrategy.
Michael Wright [Tue, 15 May 2018 23:19:08 +0000 (16:19 -0700)]
Set DEBUG to false for BrightnessMappingStrategy.

Accidentally enabled when checking in other code.

Bug: 78909876
Test: manual
Change-Id: Ic1341bcb14c9e9a29b75a598aeb735aa36bd657e

6 years agoMerge "Added a debug flag to turn on the AOD animation" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 22:59:56 +0000 (22:59 +0000)]
Merge "Added a debug flag to turn on the AOD animation" into pi-dev

6 years agoAdd shell command to get slice permissions
Jason Monk [Tue, 15 May 2018 19:46:26 +0000 (15:46 -0400)]
Add shell command to get slice permissions

Lets shell/root get a list of pkgs that have access to any slices
within an authority.

Test: manual
Bug: 78136892
Change-Id: Id33fd458ed5ad73b30f69b3a464676428344e446

6 years agoMerge "Center QS icons (wifi, invert colors, night light)" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 22:44:36 +0000 (22:44 +0000)]
Merge "Center QS icons (wifi, invert colors, night light)" into pi-dev

6 years agoFixed an issue where icons could remain white
Selim Cinek [Tue, 15 May 2018 20:02:42 +0000 (13:02 -0700)]
Fixed an issue where icons could remain white

Test: code inspection
Change-Id: Ib2d2e5f5a638bd86fcd17e8c3dfe28501de75bad
Fixes: 77024183

6 years agoMerge "Generally improve brightness dumpsys." into pi-dev
Michael Wright [Tue, 15 May 2018 22:22:06 +0000 (22:22 +0000)]
Merge "Generally improve brightness dumpsys." into pi-dev

6 years agoAdd constant for PhysicalChannelConfig UNSOL
Eric Schwarzenbach [Tue, 15 May 2018 19:53:53 +0000 (12:53 -0700)]
Add constant for PhysicalChannelConfig UNSOL

Bug: 78791811
Test: compilation

Change-Id: I48404342daaaf74d81386aa64cac99ae1a5dfa8b

6 years agoMerge "Call access(2) on all files/dirs modified by Mtp" into pi-dev
Jerry Zhang [Tue, 15 May 2018 21:35:43 +0000 (21:35 +0000)]
Merge "Call access(2) on all files/dirs modified by Mtp" into pi-dev

6 years agoMerge "Access removable volumes through /mnt/media_rw" into pi-dev
Jerry Zhang [Tue, 15 May 2018 21:35:43 +0000 (21:35 +0000)]
Merge "Access removable volumes through /mnt/media_rw" into pi-dev

6 years agoCheck mStatusBarWindowHidden bit when deciding to hide status bar
Evan Laird [Tue, 15 May 2018 21:32:15 +0000 (17:32 -0400)]
Check mStatusBarWindowHidden bit when deciding to hide status bar

Ensures that we unhide status bar icons when (for instance), showing the
status bar in the camera from the keyguard

Change-Id: Ica1b622dd9e0a913575664b98825bc67809e5e72
Fixes: 79511463
Bug: 79700037 (possibly related)
Test: launch camera from keyguard, swipe status bar down, see icons

6 years agoKeep detailed job-ended reasons in the history ring
Christopher Tate [Tue, 15 May 2018 19:49:17 +0000 (12:49 -0700)]
Keep detailed job-ended reasons in the history ring

These are all static strings, so the RAM impact is minimal, and it's
quite useful for dumpsys to distinguish between cancel, clean finish,
reschedule, etc.

Bug: 77958513
Test: atest CtsJobSchedulerTestCases
Change-Id: I1e9d918b19b38c458ab24c2e9fb8af856326e1d6

6 years agoMerge "Update RemoteInput#setChoices documentation" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 21:07:35 +0000 (21:07 +0000)]
Merge "Update RemoteInput#setChoices documentation" into pi-dev

6 years agoMerge "Switch the setting for Off Body Radios Off to User Absent Radios Off" into...
Damien Bargiacchi [Tue, 15 May 2018 20:58:31 +0000 (20:58 +0000)]
Merge "Switch the setting for Off Body Radios Off to User Absent Radios Off" into pi-dev

6 years agoMerge "Add support for manually set surround formats." into pi-dev
Jiabin Huang [Tue, 15 May 2018 20:54:27 +0000 (20:54 +0000)]
Merge "Add support for manually set surround formats." into pi-dev

6 years agoMerge "Report touchable region changes to Accessibility." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 20:51:16 +0000 (20:51 +0000)]
Merge "Report touchable region changes to Accessibility." into pi-dev

6 years agoAdded a debug flag to turn on the AOD animation
Selim Cinek [Tue, 15 May 2018 20:15:42 +0000 (13:15 -0700)]
Added a debug flag to turn on the AOD animation

Test: adb shell setprop debug.force_no_blanking true
Bug: 78205990
Change-Id: I372770e9ee40c221d4d2db8d8c4e5644b04ce9fc

6 years agoMerge "Update a11y when alpha changes" into pi-dev
Phil Weaver [Tue, 15 May 2018 19:49:09 +0000 (19:49 +0000)]
Merge "Update a11y when alpha changes" into pi-dev

6 years agoUpdate RemoteInput#setChoices documentation
Kodlee Yin [Wed, 9 May 2018 23:19:56 +0000 (16:19 -0700)]
Update RemoteInput#setChoices documentation

The behavior that #setChoices didn't render on mobile devices from apps
that target SDK < P went undocumented. Because this is changing in P and
above, this documentation needs to point out this behavior.

Also updated formatting and style of docs to improve interop with
kotlin.

Test: none
Bug: 79244189
Change-Id: Iabfe3b2ddcc369e5ec15f9773481468cbc48dabb

6 years agoMerge "Made sure that the ambient single line view remains invisible" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 19:42:39 +0000 (19:42 +0000)]
Merge "Made sure that the ambient single line view remains invisible" into pi-dev

6 years agoCall access(2) on all files/dirs modified by Mtp
Jerry Zhang [Mon, 14 May 2018 19:19:08 +0000 (12:19 -0700)]
Call access(2) on all files/dirs modified by Mtp

External sdcards are accessed through /mnt/media_rw,
so access() each touched file for sdcardfs to update
its metadata.

Java handles single object renames directly so that
is the only place where it is needed.

Bug: 77849654
Test: use mtp with emulated sdcard
Change-Id: Ie460398010f1fe74d8084808a6333b121674362c

6 years agoMerge "Fixed autofill compat mode so it works on secondary user." into pi-dev
TreeHugger Robot [Tue, 15 May 2018 19:20:19 +0000 (19:20 +0000)]
Merge "Fixed autofill compat mode so it works on secondary user." into pi-dev

6 years agoMerge "[Notif] Safeguard animation start" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 19:12:38 +0000 (19:12 +0000)]
Merge "[Notif] Safeguard animation start" into pi-dev

6 years agoMerge "Prevent instant apps to host app widgets" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 19:05:08 +0000 (19:05 +0000)]
Merge "Prevent instant apps to host app widgets" into pi-dev

6 years agoMerge "Fixed an issue where the wrong notification would be heads upped" into pi-dev
Selim Cinek [Tue, 15 May 2018 19:04:01 +0000 (19:04 +0000)]
Merge "Fixed an issue where the wrong notification would be heads upped" into pi-dev

6 years agoMerge "Blacklist doze setting from tuner reset" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 18:38:36 +0000 (18:38 +0000)]
Merge "Blacklist doze setting from tuner reset" into pi-dev

6 years agoMade sure that the ambient single line view remains invisible
Selim Cinek [Tue, 15 May 2018 18:17:07 +0000 (11:17 -0700)]
Made sure that the ambient single line view remains invisible

The single line views are visible by default when they are inflated
and not all calls to it actually ensure that the visibility is
updated. We therefore make sure that the view is appropriately
hidden.

Change-Id: Ied7641347d910fff5c8f1f0b38d349e7f3b56b76
Fixes: 77290485
Test: add second notification to group, observe no overlapping text

6 years agoFixed autofill compat mode so it works on secondary user.
Felipe Leme [Tue, 15 May 2018 17:38:13 +0000 (10:38 -0700)]
Fixed autofill compat mode so it works on secondary user.

Test: manual verification using Chrome and sample service
Test: atest CtsAutoFillServiceTestCases

Fixes: 79747293

Change-Id: I83b6fa23e9e7307e9eb44720942f55dc58820ed7

6 years agoMerge "When ringer changes to vibrate, phone vibrates" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 18:00:11 +0000 (18:00 +0000)]
Merge "When ringer changes to vibrate, phone vibrates" into pi-dev

6 years agoMerge "The argument type is bool, the current bug passes a "true" or "false" string...
TreeHugger Robot [Tue, 15 May 2018 17:47:16 +0000 (17:47 +0000)]
Merge "The argument type is bool, the current bug passes a "true" or "false" string." into pi-dev

6 years agoMerge "Rethrow SecurityExceptions in UsageStatsManager" into pi-dev
TreeHugger Robot [Tue, 15 May 2018 17:40:32 +0000 (17:40 +0000)]
Merge "Rethrow SecurityExceptions in UsageStatsManager" into pi-dev

6 years agoMerge "Hiding all views when the notification shade is collapsed" into pi-dev
Selim Cinek [Tue, 15 May 2018 17:38:31 +0000 (17:38 +0000)]
Merge "Hiding all views when the notification shade is collapsed" into pi-dev

6 years agoMore app ops fg/bg tuning
Dianne Hackborn [Tue, 15 May 2018 00:52:30 +0000 (17:52 -0700)]
More app ops fg/bg tuning

- Only report that something has changed when a uid changes between
  the restricted and unrestricted states.  (Adds new constant that
  defines this important division point.)

- Have different settle times for different key transitions: (a)
  out of the top state, (b) out of any other unrestricted state,
  (c) down to a lower background state.

- But, don't apply any settle time when transitioning from top to
  another unrestricted state...  there is no need to.

Bug: 78480444
Test: manual
Change-Id: Ife772858009a6da5c286e285a4059aea3ad3f6c7

6 years agoAdd support for manually set surround formats.
jiabin [Tue, 3 Apr 2018 01:18:45 +0000 (18:18 -0700)]
Add support for manually set surround formats.

To make surround sound setting more clear to users, we are changing
surround setting from ALWAYS to MANUAL. With MANUAL, users could enable
surround formats according to their need.

Bug: 67479735
Test: Try creating AudioTrack with enable/disable surround formats.
Change-Id: I79e610f6c43d7003daf13da3bee4e03ba9b6ea87

6 years agoMerge "Fixed notification shelf not fully visible on lockscreen" into pi-dev
Selim Cinek [Tue, 15 May 2018 17:07:56 +0000 (17:07 +0000)]
Merge "Fixed notification shelf not fully visible on lockscreen" into pi-dev

6 years agoBlacklist doze setting from tuner reset
Jason Monk [Tue, 15 May 2018 16:50:57 +0000 (12:50 -0400)]
Blacklist doze setting from tuner reset

Test: manual
Change-Id: I934cfcd65552c9998eb95ecfed65670ec73dde8d
Fixes: 78512759

6 years agoMerge "Keeping the header hidden while the hun is going away" into pi-dev
Selim Cinek [Tue, 15 May 2018 16:47:44 +0000 (16:47 +0000)]
Merge "Keeping the header hidden while the hun is going away" into pi-dev

6 years agoMerge "Fixed that views could be stuck transiently at times" into pi-dev
Selim Cinek [Tue, 15 May 2018 16:47:17 +0000 (16:47 +0000)]
Merge "Fixed that views could be stuck transiently at times" into pi-dev