OSDN Git Service

android-x86/frameworks-base.git
6 years agoMore light grey APIs.
Nicolas Geoffray [Thu, 17 May 2018 09:59:14 +0000 (10:59 +0100)]
More light grey APIs.

bug: 78373177
Test: m
Change-Id: I1ce77829709ca5169876e8cdc360cb2df093c9f4

6 years agoMerge "Add more APIs to light grey." into pi-dev
Nicolas Geoffray [Thu, 17 May 2018 08:44:35 +0000 (08:44 +0000)]
Merge "Add more APIs to light grey." into pi-dev

6 years agoMerge "Adding MANAGE_APP_OPS_MODES to FrameworksServicesTests" into pi-dev
TreeHugger Robot [Thu, 17 May 2018 06:56:40 +0000 (06:56 +0000)]
Merge "Adding MANAGE_APP_OPS_MODES to FrameworksServicesTests" into pi-dev

6 years agoMerge "Change status bar icons upon capability changes in the default network." into...
TreeHugger Robot [Thu, 17 May 2018 06:46:39 +0000 (06:46 +0000)]
Merge "Change status bar icons upon capability changes in the default network." into pi-dev

6 years agoMerge "Trigger action for app ops icon for keyboard navigation" into pi-dev
Dieter Hsu [Thu, 17 May 2018 06:04:13 +0000 (06:04 +0000)]
Merge "Trigger action for app ops icon for keyboard navigation" into pi-dev

6 years agoTrigger action for app ops icon for keyboard navigation
Dieter Hsu [Tue, 15 May 2018 11:02:52 +0000 (19:02 +0800)]
Trigger action for app ops icon for keyboard navigation

Bug: 79671932
Test: manually check talkback, switch access and kb navigation
Change-Id: I8a2ed0fc8e6b565e923954fa87e61a20c83438c0

6 years agoChange status bar icons upon capability changes in the default network.
Anarghya Mitra [Fri, 11 May 2018 21:29:54 +0000 (14:29 -0700)]
Change status bar icons upon capability changes in the default network.

SysUI status bar updates currently happen upon receiving either the
CONNECTIVITY_ACTION broadcast (which is deprecated) and
INET_CONDITION_ACTION broadcast (which is sent upon validation state
change of networks only).

This leads to status bar showing stale connectivity state. The correct
fix for this is to listen to changes in network state by registering
NetworkCallbacks (see more details in http://b/79286300#comment9).

In the P timeframe, not listening to the broadcasts completely is out of
scope. So this CL just listens for changing network capabilities of the
default data network, which should fix all the cases where the
broadcasts are not getting sent.

Later, when we stop relying on the broadcasts, we will also have to
override onAvailable and onLost (and perhaps the other callbacks too).

Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
Bug: 71904788
Change-Id: I2e58b9cfceb9937a0b54874dee116ead5339b37b

6 years agoMerge "Add contentDescription to close button of recents onboarding tip view." into...
TreeHugger Robot [Thu, 17 May 2018 05:04:38 +0000 (05:04 +0000)]
Merge "Add contentDescription to close button of recents onboarding tip view." into pi-dev

6 years agoMerge "Adde back check to make sure Activity.recreate() is called on main thread...
TreeHugger Robot [Thu, 17 May 2018 05:01:33 +0000 (05:01 +0000)]
Merge "Adde back check to make sure Activity.recreate() is called on main thread." into pi-dev

6 years agoMerge "Add toString() method to PhysicalChannelConfig" into pi-dev
TreeHugger Robot [Thu, 17 May 2018 04:45:41 +0000 (04:45 +0000)]
Merge "Add toString() method to PhysicalChannelConfig" into pi-dev

6 years agoAdd contentDescription to close button of recents onboarding tip view.
Tracy Zhou [Thu, 17 May 2018 03:50:23 +0000 (20:50 -0700)]
Add contentDescription to close button of recents onboarding tip view.

Change-Id: I4fe8a7fce78ca7d572a5fc4259c0329963a0e461
Fixes: 79689820
Test: N/A

6 years agoMerge "[IdleController] Support dock scenario on idle or active judgement" into pi-dev
TreeHugger Robot [Thu, 17 May 2018 02:56:42 +0000 (02:56 +0000)]
Merge "[IdleController] Support dock scenario on idle or active judgement" into pi-dev

6 years agoMerge "Add config config_smart_battery_available" into pi-dev
TreeHugger Robot [Thu, 17 May 2018 02:43:22 +0000 (02:43 +0000)]
Merge "Add config config_smart_battery_available" into pi-dev

6 years ago[IdleController] Support dock scenario on idle or active judgement
lpeter [Fri, 4 May 2018 08:13:14 +0000 (16:13 +0800)]
[IdleController] Support dock scenario on idle or active judgement

In the current design, IdleController of Job service considers devices as ‘idle’ after 71 minutes of screen off. But under docking use scenario, devices screen might remain on for a very long time and it’s not necessary implying the device being interactive with users.
So create a mechanism for device to enter the ‘idle’ state that JobScheduler can kick off idle tasks.

Bug: 79183658
Test: atest DeviceStatesTest
Change-Id: I5b307ca51e28ffca63f79a9c43984c3b76e51629

6 years agoMerge "Count app launch correctly." into pi-dev
TreeHugger Robot [Thu, 17 May 2018 02:12:23 +0000 (02:12 +0000)]
Merge "Count app launch correctly." into pi-dev

6 years agoMerge "Track launch time per windowingMode" into pi-dev
Jorim Jaggi [Thu, 17 May 2018 01:59:17 +0000 (01:59 +0000)]
Merge "Track launch time per windowingMode" into pi-dev

6 years agoOnly WTF when trying to use remote animation in ActivityOptions
Jorim Jaggi [Wed, 16 May 2018 22:52:26 +0000 (15:52 -0700)]
Only WTF when trying to use remote animation in ActivityOptions

There is a legitimate use case when sending a PendingIntent from
within system_server, for example AlarmManager. However, we used
to WTF always in this case.

To fix this, we only WTF when trying to use a remote animation
that originates from within system_server.

Test: Boots, open apps
Change-Id: I7bafae9f899cbb8966cf22166270000ce887baba
Fixes: 79417917

6 years agoMerge "Hide overlay windows when requesting media projection permission." into pi-dev
TreeHugger Robot [Thu, 17 May 2018 01:56:42 +0000 (01:56 +0000)]
Merge "Hide overlay windows when requesting media projection permission." into pi-dev

6 years agoMerge "Removing notifications that were kept around longer on click" into pi-dev
Selim Cinek [Thu, 17 May 2018 01:35:27 +0000 (01:35 +0000)]
Merge "Removing notifications that were kept around longer on click" into pi-dev

6 years agoMerge "Do not reset security message when pattern resumes" into pi-dev
TreeHugger Robot [Thu, 17 May 2018 01:28:36 +0000 (01:28 +0000)]
Merge "Do not reset security message when pattern resumes" into pi-dev

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 agoAdd config config_smart_battery_available
Lei Yu [Wed, 16 May 2018 01:17:15 +0000 (18:17 -0700)]
Add config config_smart_battery_available

The default value is false, we can override it in overlay.

Bug: 79698191
Test: Build
Change-Id: I177e1c144f222ee32acce483f52d33910692ac3b

6 years agoAdding MANAGE_APP_OPS_MODES to FrameworksServicesTests
Suprabh Shukla [Thu, 17 May 2018 00:54:45 +0000 (17:54 -0700)]
Adding MANAGE_APP_OPS_MODES to FrameworksServicesTests

UPDATE_APP_OPS_STATS lost the privilege to change app ops modes, so we
need to add this permission to the tests.

Test: atest com.android.server.job.BackgroundRestrictionsTest

Fixes: 79887147
Change-Id: I085c522cf3969a4cd7de7c47209eb83225b34254

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 agoCount app launch correctly.
Tracy Zhou [Wed, 16 May 2018 23:06:17 +0000 (16:06 -0700)]
Count app launch correctly.

Previously we mis-count each different activity, regardless of the app
it belongs, as one app launch. We should instead count each different
app open, either created, or brought front as a different app launch,
but different tasks created from the same app is considered one launch.

Fixes: 79885137
Test: Manual test
Change-Id: I5b4b8bee9b0ed4aa23a4ea9eefdfa112b6442455

6 years agoAdde back check to make sure Activity.recreate() is called on main thread.
Wale Ogunwale [Thu, 17 May 2018 00:23:48 +0000 (17:23 -0700)]
Adde back check to make sure Activity.recreate() is called on main thread.

Change-Id: Id8fa7e1c17ee3d42a19c82dc8cc1fec2de1757d1
Fixes: 79703568
Test: Existing test pass.

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 agoHide overlay windows when requesting media projection permission.
Wale Ogunwale [Wed, 16 May 2018 23:42:29 +0000 (16:42 -0700)]
Hide overlay windows when requesting media projection permission.

Done by setting PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS

Bug: 34170870
Test: manual
Change-Id: I57cb0f390d9a78e721c5ddce49a377d385002753

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 agoDo not reset security message when pattern resumes
Lucas Dupin [Wed, 16 May 2018 23:24:20 +0000 (16:24 -0700)]
Do not reset security message when pattern resumes

Change-Id: Ia18b98c97612a4998eda52356ef9eafd1c3ad48d
Fixes: 78235570
Test: manual

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 agoTrack launch time per windowingMode
Jorim Jaggi [Tue, 15 May 2018 19:06:35 +0000 (12:06 -0700)]
Track launch time per windowingMode

Some app launches go through different stacks. However, in P we
have one stack per task, which broke launch time tracking for
certain apps.

We fix this by tracking launch time per windowingMode, like we
do in ActivityMetricsLogger.

Test: Delete Chrome app data (to ensure FirstRunActivity gets
invoked, am start -n com.android.chrome/com.google.android.apps.chrome.Main -W
Fixes: 78302265
Change-Id: I739e63aeaf04d6336621e3d61f065259e518d9b4

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 agoAdd toString() method to PhysicalChannelConfig
Nathan Harold [Tue, 24 Apr 2018 22:41:17 +0000 (15:41 -0700)]
Add toString() method to PhysicalChannelConfig

We need to be able to print the PhysicalChannelConfig
for debugging/dumping, so adding a toString() method
to print in a format that we can easily digest and
is consistent with other Telephony log formatting.

Bug: 78791811
Test: manual / TelephonyDebugMenu
Change-Id: Ieb12f78a821369072ca9f03d28b28759836f84b4

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 agoAdd more APIs to light grey.
Nicolas Geoffray [Wed, 16 May 2018 12:35:18 +0000 (13:35 +0100)]
Add more APIs to light grey.

Also blacklist Ljava/lang/invoke/MethodHandles$Lookup;->IMPL_LOOKUP.

bug: 64382372
Test: m
Change-Id: I0c605ca03ce11f51bca806a9bb997df8f1ac6de3
Merged-in: I0c605ca03ce11f51bca806a9bb997df8f1ac6de3

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