OSDN Git Service

android-x86/frameworks-base.git
6 years agoFixes primary stack being visible when minimizing 3rd party launcher
Matthew Ng [Tue, 1 May 2018 21:24:38 +0000 (14:24 -0700)]
Fixes primary stack being visible when minimizing 3rd party launcher

When using 3rd party launcher, the home stack is not merged with
overview then when minimizing, it will not be secondary split screen
stack. Then the primary stack will be presumed invisible even though
it is on the screen. The added check will make sure that the docked
stack is visible when minimizing.

Test: use 3rd party launcher, minimize
Change-Id: I5837ac6339352cae926c970f7453f5564abafb70
Fixes: 77818300

6 years agoMerge "Detach children when stopping app." into pi-dev
Rob Carr [Mon, 30 Apr 2018 20:00:39 +0000 (20:00 +0000)]
Merge "Detach children when stopping app." into pi-dev

6 years agoMerge "Truncate newline and tab characters in BluetoothDevice name" into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 18:54:34 +0000 (18:54 +0000)]
Merge "Truncate newline and tab characters in BluetoothDevice name" into pi-dev

6 years agoMerge "Unbind autofill service when the service package is updated." into pi-dev
Hongming Jin [Mon, 30 Apr 2018 18:50:25 +0000 (18:50 +0000)]
Merge "Unbind autofill service when the service package is updated." into pi-dev

6 years agoMerge "Choose a matching record in split-screen stack" into pi-dev
Andrii Kulian [Mon, 30 Apr 2018 18:31:27 +0000 (18:31 +0000)]
Merge "Choose a matching record in split-screen stack" into pi-dev

6 years agoMerge "Remove package code path for all parsing failure" into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 18:12:54 +0000 (18:12 +0000)]
Merge "Remove package code path for all parsing failure" into pi-dev

6 years agoMerge "Make system dialogs' a11y events like Activity's" into pi-dev
Phil Weaver [Mon, 30 Apr 2018 18:12:37 +0000 (18:12 +0000)]
Merge "Make system dialogs' a11y events like Activity's" into pi-dev

6 years agoMerge "Update clock format when locale list changes" into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 18:12:16 +0000 (18:12 +0000)]
Merge "Update clock format when locale list changes" into pi-dev

6 years agoMerge "Adjust future charge start time." into pi-dev
Makoto Onuki [Mon, 30 Apr 2018 18:11:28 +0000 (18:11 +0000)]
Merge "Adjust future charge start time." into pi-dev

6 years agoMerge "OMS: ensure framework overlays affect newly installed apps" into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 18:02:29 +0000 (18:02 +0000)]
Merge "OMS: ensure framework overlays affect newly installed apps" into pi-dev

6 years agoMerge "Add documentation for what to use for SS changes" into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 17:59:04 +0000 (17:59 +0000)]
Merge "Add documentation for what to use for SS changes" into pi-dev

6 years agoMerge "Revert "RRO: Update target overlays after install"" into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 17:53:42 +0000 (17:53 +0000)]
Merge "Revert "RRO: Update target overlays after install"" into pi-dev

6 years agoMerge "Use dedicated thread for sync manager" into pi-dev
Makoto Onuki [Mon, 30 Apr 2018 17:52:05 +0000 (17:52 +0000)]
Merge "Use dedicated thread for sync manager" into pi-dev

6 years agoMerge "Log slow message delivery on Looper" into pi-dev
Makoto Onuki [Mon, 30 Apr 2018 17:50:58 +0000 (17:50 +0000)]
Merge "Log slow message delivery on Looper" into pi-dev

6 years agoMerge "Allow the assistant activity types to be snapshotted" into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 17:33:30 +0000 (17:33 +0000)]
Merge "Allow the assistant activity types to be snapshotted" into pi-dev

6 years agoMerge "Pointing the low ram right icon size to the normal size" into pi-dev
Selim Cinek [Mon, 30 Apr 2018 16:30:37 +0000 (16:30 +0000)]
Merge "Pointing the low ram right icon size to the normal size" into pi-dev

6 years agoOMS: ensure framework overlays affect newly installed apps
Mårten Kongstad [Tue, 20 Feb 2018 09:02:17 +0000 (10:02 +0100)]
OMS: ensure framework overlays affect newly installed apps

Make sure to tell the package manager about an application's overlay
paths if there is at least one enabled overlay affecting the
application. This includes looking at framework overlays (which affect
all applications).

Also, add a test to verify the following flow:

  - Enable an overlay targeting "android"
  - Install an app
  - Launch the newly installed app
  - Assert that the newly installed app uses the framework overlay

Also, update InstallOverlayTests#installPlatformSignedFrameworkOverlay\
AndUpdate to assert the correct resource (framework instead of app
resource).

Bug: 78808367
Test: atest 'OverlayHostTests:InstallOverlayTests#enabledFrameworkOverlayMustAffectNewlyInstalledPackage'
Change-Id: Ic3450af6c2e827efce056874606caf1d853359eb

6 years agoRevert "RRO: Update target overlays after install"
Mårten Kongstad [Fri, 27 Apr 2018 07:56:13 +0000 (09:56 +0200)]
Revert "RRO: Update target overlays after install"

This reverts commit 3bd55593058778ccac13ec4a9086b248004fa0bd.

Reason for revert: clashes with "OMS: ensure framework overlays affect
newly installed apps".

Bug: 78808367
Test: atest 'OverlayHostTests:InstallOverlayTests#enabledFrameworkOverlayMustAffectNewlyInstalledPackage'
Change-Id: I05b7cd3cecf63b28cd7ff15aca73b6b5ec74ce1a

6 years agoMerge "More greylist additions from bugreports." into pi-dev
Mathew Inwood [Mon, 30 Apr 2018 15:54:39 +0000 (15:54 +0000)]
Merge "More greylist additions from bugreports." into pi-dev

6 years agoMerge "Fix incorrect width of right most action button in notification" into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 15:42:41 +0000 (15:42 +0000)]
Merge "Fix incorrect width of right most action button in notification" into pi-dev

6 years agoMerge "Fix showing a cut off notification when QS is expanded" into pi-dev
Selim Cinek [Mon, 30 Apr 2018 15:05:20 +0000 (15:05 +0000)]
Merge "Fix showing a cut off notification when QS is expanded" into pi-dev

6 years agoMerge "PIP: Partial fix to wrong insets during bounds animation" into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 14:15:27 +0000 (14:15 +0000)]
Merge "PIP: Partial fix to wrong insets during bounds animation" into pi-dev

6 years agoMerge "Use the @Nullable annotations for choosePrivateKeyAlias." into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 11:52:41 +0000 (11:52 +0000)]
Merge "Use the @Nullable annotations for choosePrivateKeyAlias." into pi-dev

6 years agoMerge "Fix another issue with constructing SafeActivityOptions" into pi-dev
Jorim Jaggi [Mon, 30 Apr 2018 11:47:40 +0000 (11:47 +0000)]
Merge "Fix another issue with constructing SafeActivityOptions" into pi-dev

6 years agoMerge "Keyguard: Fix threading issues in KeyguardUpdateMonitor" into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 11:29:56 +0000 (11:29 +0000)]
Merge "Keyguard: Fix threading issues in KeyguardUpdateMonitor" into pi-dev

6 years agoPIP: Partial fix to wrong insets during bounds animation
Adrian Roos [Mon, 30 Apr 2018 10:42:36 +0000 (12:42 +0200)]
PIP: Partial fix to wrong insets during bounds animation

Partially fixes an issue where the bounds animation when
expanding / collapsing the PIP menu would case the insets
to get wrongly applied.

The same thing still happens when animating from collapsed
to fullscreen, which requires a larger fix.

Bug: 77802617
Test: Enable cutout, enter PIP, tap on PIP window, verify transition is not jumpy.
Change-Id: I3edb4f8dec10ed85963853fa7e69812dfb198273

6 years agoUse the @Nullable annotations for choosePrivateKeyAlias.
Mike Harris [Thu, 26 Apr 2018 22:20:10 +0000 (15:20 -0700)]
Use the @Nullable annotations for choosePrivateKeyAlias.

Both the code and docstring support this, but the parameters weren't
annotated.

Test: it builds locally

Change-Id: I16beddcd74a86047ce9aaf37007d96f3e8e0d4e0
Merged-In: I16beddcd74a86047ce9aaf37007d96f3e8e0d4e0
Fix: 78868934
(cherry picked from commit b7c5eddc53c3872b661222ae30270d95cfe63b4e)

6 years agoUpdate connected device summary
timhypeng [Thu, 29 Mar 2018 06:23:21 +0000 (14:23 +0800)]
Update connected device summary

* Add dispatchAudioModeChanged() in CachedBluetoothDeviceManager for notify
  CacheBluetoothDevice to update their summary
* Add 5 combination that used to show the summary of CacheBluetoothDevice
  case 1: device battery not unknown and is a active device
          ex: show summary as "Active, 100% battery"
  case 2: device battery unkonwn and is a active device
          ex: show summary as "Active"
  case 3: device battery not unknown and not a active device
          ex: show summary as "100% battery"
  case 4: device battery unkonwn and not a active device
          ex: not show the summary
  case 5: device is in bonding state
          ex: show summary as "Pairing..."

Bug: 78318415
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I70bf5386ff045ef4f07fb86fbdc8b943befc634c

6 years agoAdd isAudioModeOngoingCall function to check call status
timhypeng [Mon, 23 Apr 2018 10:08:47 +0000 (18:08 +0800)]
Add isAudioModeOngoingCall function to check call status

*return true if it is in ringing/call/communication(VoIP) status

Bug: 78318415
Test: make -j50 RunSettingsLibRoboTests
Change-Id: Ifb84da386fcd5bf03eaccf78fc264fbad86a9707

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Mon, 30 Apr 2018 05:19:57 +0000 (05:19 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoFix showing a cut off notification when QS is expanded
shawnlin [Thu, 12 Apr 2018 10:47:24 +0000 (18:47 +0800)]
Fix showing a cut off notification when QS is expanded

Collapse Notification shade to shelf size when QS is expanded

Test: runtest systemui
Test: go/sysui-stackscroll-test
Change-Id: I5fe0f4d615488f528d17388174915c0a0f5a2917
Fixes: 62202313

6 years agoFix incorrect width of right most action button in notification
shawnlin [Fri, 27 Apr 2018 10:23:13 +0000 (18:23 +0800)]
Fix incorrect width of right most action button in notification

Measure the last action view normally instead of measuring it full width.

Test: enable show layout bounds and check the bounds of it.
Change-Id: I38f234928f7214baf2b532ecae63c3f4514b3247
Fixes: 78032480

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 28 Apr 2018 22:01:05 +0000 (15:01 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I81f44608957ac56ad790ce277c26fbe0f69791de

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Sat, 28 Apr 2018 19:44:34 +0000 (19:44 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Sat, 28 Apr 2018 19:41:05 +0000 (19:41 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Sat, 28 Apr 2018 19:39:42 +0000 (19:39 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Sat, 28 Apr 2018 19:27:39 +0000 (19:27 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Sat, 28 Apr 2018 19:19:06 +0000 (19:19 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Sat, 28 Apr 2018 18:56:00 +0000 (18:56 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 28 Apr 2018 17:09:35 +0000 (10:09 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I93c1f5a7bcdb05be8123310c32667809f1dfac42

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 28 Apr 2018 17:02:21 +0000 (10:02 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ie0ca8213849a52e208752532b0efd886d4e96192

6 years agoMerge "FalsingManager: Only use for touchscreen input" into pi-dev
Selim Cinek [Sat, 28 Apr 2018 16:24:48 +0000 (16:24 +0000)]
Merge "FalsingManager: Only use for touchscreen input" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 28 Apr 2018 15:18:48 +0000 (08:18 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I1c78c4dfe25ed25844f66e04ed962551f253fd3b

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 28 Apr 2018 15:12:10 +0000 (08:12 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I25f803bf3c2167073862922fb50cf3098d4d14a0

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Sat, 28 Apr 2018 14:56:58 +0000 (14:56 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Sat, 28 Apr 2018 14:49:27 +0000 (14:49 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
android-build-team Robot [Sat, 28 Apr 2018 14:41:41 +0000 (14:41 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 28 Apr 2018 13:46:09 +0000 (06:46 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I7018c0d3019b33617f99b73ff26c568f68fb684b

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 28 Apr 2018 13:39:12 +0000 (06:39 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5667995328f5af50be5272b6e5de1b35b8060905

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 28 Apr 2018 13:18:51 +0000 (06:18 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ibb89bafbc3b3232359ac3d7847a883e2f3a608cf

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 28 Apr 2018 13:05:01 +0000 (06:05 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I272fb01200f73c6a0f79cae9e4521d3b52133e41

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 28 Apr 2018 12:57:43 +0000 (05:57 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ie4bfaa1bf8b251d49a0ed6cbdd17cc70b11c191a

6 years agoMerge "AOD clock and notification animation" into pi-dev
Lucas Dupin [Sat, 28 Apr 2018 08:53:37 +0000 (08:53 +0000)]
Merge "AOD clock and notification animation" into pi-dev

6 years agoMerge "Log audio recording and dynamic policy registration history" into pi-dev
android-build-team Robot [Sat, 28 Apr 2018 07:03:22 +0000 (07:03 +0000)]
Merge "Log audio recording and dynamic policy registration history" into pi-dev

6 years agoUpdate clock format when locale list changes
Lucas Dupin [Fri, 27 Apr 2018 00:45:14 +0000 (17:45 -0700)]
Update clock format when locale list changes

Isolated clock refresh logic into refreshTime() and refreshFormat().

refreshFormat() makes 2 binder calls and should only called when
necessary: switching users, updating locale list or initialization.

Test: manual
Change-Id: Ia8a3a7655479d44b02c636c3c84ce8cc84e6f210
Fixes: 78535670

6 years agoAOD clock and notification animation
Lucas Dupin [Tue, 3 Apr 2018 04:19:23 +0000 (21:19 -0700)]
AOD clock and notification animation

Better transitions for pulsing notifications and other keyguard
messages.

Fixes: 77601057
Fixes: 67641732
Test: visual
Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardSliceViewTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/util/wakelock/KeepAwakeAnimationListenerTest.java
Merged-In: I3e3ec844834bf7f5d9ab341f308e78a002248a87
Change-Id: I1e6d95c62dc7463e8084a64f04c6dee3173967a6

6 years agoAllow the assistant activity types to be snapshotted
Winson Chung [Fri, 27 Apr 2018 23:12:54 +0000 (16:12 -0700)]
Allow the assistant activity types to be snapshotted

Bug: 78229855
Test: Swipe up with fullscreen assistant (ensure that retain_in_recents
      is enabled in AGSA first), see that there is a snapshot

Change-Id: I6aee209add9838971c9476ef1ae1c88369291216

6 years agoLog slow message delivery on Looper
Makoto Onuki [Fri, 27 Apr 2018 22:22:50 +0000 (15:22 -0700)]
Log slow message delivery on Looper

Sample log:
04-27 15:30:17.306  1000   942   942 W Looper  : Dispatch took 222ms on main, h=Handler (com.android.server.job.JobSchedulerService$JobHandler) {42042fc} cb=null msg=7 start=48162 end=48384
04-27 15:30:17.306  1000   942   942 W Looper  : Delivery took 235ms on main, h=Handler (com.android.server.job.JobSchedulerService$JobHandler) {42042fc} cb=null msg=4 start=48149 end=48384
04-27 15:30:17.773  1000   942   942 W Looper  : Dispatch took 445ms on main, h=Handler (android.app.ActivityThread$H) {5df4c77} cb=android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA@badd538 msg=0 start=48406 end=48851
04-27 15:30:17.828  1000   942   942 W Looper  : Drained
04-27 15:30:24.389  1000   942   942 W Looper  : Dispatch took 718ms on main, h=Handler (android.hardware.soundtrigger.SoundTriggerModule$NativeEventHandlerDelegate$1) {d7e9947} cb=null msg=4 start=54749 end=55467
04-27 15:30:24.389  1000   942   942 W Looper  : Delivery took 621ms on main, h=Handler (com.android.server.media.MediaSessionRecord$MessageHandler) {5851574} cb=null msg=7 start=54846 end=55467
04-27 15:30:24.499  1000   942   942 W Looper  : Drained

Bug: 78590632
Test: Boot and check log
Test: setprop log.looper.1000.android.bg 1 and runtime-restart and check log
Change-Id: Ief1fc65b40b8a3d583879f55a76288e3dba6be7d

6 years agoMerge "Revert "Revert "WifiManager: Return status from startScan()""" into pi-dev
Roshan Pius [Sat, 28 Apr 2018 00:09:03 +0000 (00:09 +0000)]
Merge "Revert "Revert "WifiManager: Return status from startScan()""" into pi-dev

6 years agoMerge "Don't set Bluetooth volume when the Bluetooth stream changes" into pi-dev
Ajay Panicker [Sat, 28 Apr 2018 00:01:22 +0000 (00:01 +0000)]
Merge "Don't set Bluetooth volume when the Bluetooth stream changes" into pi-dev

6 years agoMerge "Fix documentation bug that breaks generation" into pi-dev
android-build-team Robot [Fri, 27 Apr 2018 23:46:07 +0000 (23:46 +0000)]
Merge "Fix documentation bug that breaks generation" into pi-dev

6 years agoMake system dialogs' a11y events like Activity's
Phil Weaver [Fri, 27 Apr 2018 23:28:50 +0000 (16:28 -0700)]
Make system dialogs' a11y events like Activity's

The window_state_changed events are populated by
Activity with the Activity title. Replicating that
behavior for volume and power dialogs.

Bug: 78775496
Test: Used a test a11y service to observe events,
and started TalkBack, which was less consistent
about announcing them.

Change-Id: Icd4cd8317544c127e44e403162512e2385ff4176

6 years agoChoose a matching record in split-screen stack
Andrii Kulian [Fri, 27 Apr 2018 01:31:58 +0000 (18:31 -0700)]
Choose a matching record in split-screen stack

The split-screen primary stack should be chosen if activity is
launched that targets split-screen secondary, but a matching existing
instance is found on top of split-screen primary stack.

Bug: 77215248
Test: ActivityStackSupervisorTests#testSplitScreenPrimaryChosenWhenTopActivityLaunchedToSecondary
Change-Id: If3a47f793be2b9b84f822eacaa0befb28cc21d2e

6 years agoMerge "Don't exit doze-light on motion event" into pi-dev
Amith Yamasani [Fri, 27 Apr 2018 22:50:42 +0000 (22:50 +0000)]
Merge "Don't exit doze-light on motion event" into pi-dev

6 years agoRemove package code path for all parsing failure
Victor Hsieh [Fri, 27 Apr 2018 22:04:34 +0000 (15:04 -0700)]
Remove package code path for all parsing failure

Instead of only remove for INSTALL_FAILED_INVALID_APK reason, remove if
it is not a success.

This was introduced at 679bba33 in 2010.

Test: adb shell stop, tamper with an apk in /data, start
      # see bad apk being removed
Bug: 30972906
Change-Id: I8b468958a7547ce2ed030e78356b2ce3ddd3641d

6 years agoUnbind autofill service when the service package is updated.
Hongming Jin [Tue, 24 Apr 2018 21:20:11 +0000 (14:20 -0700)]
Unbind autofill service when the service package is updated.

Test: atest FieldsClassificationTest
adb shell cmd autofill get fc_score half kale
m -j50 ExtServices && adb install -r
${OUT}/system/priv-app/ExtServices/ExtServices.apk
adb shell cmd autofill get fc_score half kale

Bug: 77596771
Change-Id: I29f6f5593dbe0155437d01ef73d07a354abe687d

6 years agoMerge "Expose MetricLogger to support AOSP logging in Launcher Bug: 77920179 Test...
Hyunyoung Song [Fri, 27 Apr 2018 21:48:39 +0000 (21:48 +0000)]
Merge "Expose MetricLogger to support AOSP logging in Launcher Bug: 77920179 Test: builds. This is also only a library that is yet used anywhere" into pi-dev

6 years agoMerge "Don't treat failed scans as valid media files" into pi-dev
Marco Nelissen [Fri, 27 Apr 2018 21:35:33 +0000 (21:35 +0000)]
Merge "Don't treat failed scans as valid media files" into pi-dev

6 years agoUse dedicated thread for sync manager
Makoto Onuki [Fri, 27 Apr 2018 20:28:46 +0000 (13:28 -0700)]
Use dedicated thread for sync manager

We get WTF indicating that a message posted onto the BG handler thread wasn't
processed in 10 minutes...

It's either there's some race in SyncJobService, or sometimes the BG thread
is actually very crowded and a message won't be delivered in 10 minutes.

Both are hard to think but let's assign a different thread to exclude the
later hypothesis.

Bug: 78590632
Test: boot and make sure various syncs run.
Change-Id: If63d03885ba0d126a5aac196d3b8a2bc7bd2525d

6 years agoMerge "Support arrow down animation" into pi-dev
android-build-team Robot [Fri, 27 Apr 2018 20:18:36 +0000 (20:18 +0000)]
Merge "Support arrow down animation" into pi-dev

6 years agoExpose MetricLogger to support AOSP logging in Launcher
Hyunyoung Song [Thu, 26 Apr 2018 18:26:22 +0000 (11:26 -0700)]
Expose MetricLogger to support AOSP logging in Launcher
Bug: 77920179
Test: builds. This is also only a library that is yet used anywhere

Change-Id: Ia4aec76eb31236081b16d6ec59db1d11ce7fde7b

6 years agoMerge "FloatingActionMode.setOutsideTouchable" into pi-dev
Abodunrinwa Toki [Fri, 27 Apr 2018 19:46:10 +0000 (19:46 +0000)]
Merge "FloatingActionMode.setOutsideTouchable" into pi-dev

6 years agoMerge "TC: Fix null PendingIntent being passed to RemoteAction" into pi-dev
Abodunrinwa Toki [Fri, 27 Apr 2018 19:44:48 +0000 (19:44 +0000)]
Merge "TC: Fix null PendingIntent being passed to RemoteAction" into pi-dev

6 years agoMerge "Fix issue with swipe up canceling recents animation." into pi-dev
android-build-team Robot [Fri, 27 Apr 2018 19:35:14 +0000 (19:35 +0000)]
Merge "Fix issue with swipe up canceling recents animation." into pi-dev

6 years agoRevert "Revert "WifiManager: Return status from startScan()""
Roshan Pius [Thu, 26 Apr 2018 23:28:35 +0000 (23:28 +0000)]
Revert "Revert "WifiManager: Return status from startScan()""

This reverts commit 4c36c2903d85a829efcc0ecaf2a67d0d05fcb967.

Reason for revert: Compilation failure in Arc++ fixed.
Bug: 77297012
Change-Id: Ic707f7256e8d7430c28e58085c6c2208f88042f2

6 years agoDetach children when stopping app.
Robert Carr [Fri, 27 Apr 2018 18:56:48 +0000 (11:56 -0700)]
Detach children when stopping app.

Prior to the implementation of detachChildren we handled this
case via the "mWindowStopped" codepath in SurfaceView.java which this
CL deletes. That codepath however causes confusion due to it's failure
to set null the SurfaceControl, meaning we may not necessarily
recreate it when resuming if we didn't hit any other code-path
to do such as happens in linked bug 78588930. Anyway it seems clearest
to handle all these preserve-child-surfaces-on-tear-down cases via
one mechanism (detachChildren).

Bug: 78588930
Test: Manual.
Change-Id: Iac7c0bc0c6b4da0d405bdc2b57d13d5c881611b0

6 years agoMerge "Disable Hearing Aid Profile for all platforms except Pixels" into pi-dev
Stanley Tng [Fri, 27 Apr 2018 18:27:38 +0000 (18:27 +0000)]
Merge "Disable Hearing Aid Profile for all platforms except Pixels" into pi-dev

6 years agoMerge "camera2/legacy: Fix expected errors on eglSwapBuffers" into pi-dev
android-build-team Robot [Fri, 27 Apr 2018 18:24:00 +0000 (18:24 +0000)]
Merge "camera2/legacy: Fix expected errors on eglSwapBuffers" into pi-dev

6 years agoFix issue with swipe up canceling recents animation.
Winson Chung [Fri, 27 Apr 2018 18:07:35 +0000 (11:07 -0700)]
Fix issue with swipe up canceling recents animation.

- Only cancel the animation if handling the button, in that case,
  FLAG_CANCELED is not set (we were previously also only falling into this
  block to cancel the animatino in KeyButtonView)

Bug: 78660363
Test: Swipe up over back button, ensure we still enter quickstep
Change-Id: I038adcbd6c4b4ffda28dd86151c855eed04f5e0d

6 years agoMerge "Defer ensuring visibility on enter/exit split-screen" into pi-dev
Andrii Kulian [Fri, 27 Apr 2018 18:04:10 +0000 (18:04 +0000)]
Merge "Defer ensuring visibility on enter/exit split-screen" into pi-dev

6 years agoMerge "Assign relative layer respecting cache." into pi-dev
Rob Carr [Fri, 27 Apr 2018 18:00:09 +0000 (18:00 +0000)]
Merge "Assign relative layer respecting cache." into pi-dev

6 years agoDon't exit doze-light on motion event
Amith Yamasani [Fri, 27 Apr 2018 17:02:57 +0000 (10:02 -0700)]
Don't exit doze-light on motion event

This fixes an unintended exit from doze-light when a motion
event occurs. This happens when the device is sensing for
motion when waiting to enter doze-full.

The fix avoids exiting doze-light on a motion event, but
does continue to reset the doze-full state.

Bug: 78454609
Test: cmd deviceidle step light (once or twice to get to IDLE)
      cmd deviceidle step
      cmd deviceidle motion
      Check batterystats history for device_idle. Should
        stay in "light"

Change-Id: If4daca349f48d54482d679b2854184e5a6780647

6 years agoMerge "Lockdown icon tint should adapt to light/dark theme." into pi-dev
Alison Cichowlas [Fri, 27 Apr 2018 17:25:06 +0000 (17:25 +0000)]
Merge "Lockdown icon tint should adapt to light/dark theme." into pi-dev

6 years agoMerge "Use correct windowingMode when computing override config" into pi-dev
Evan Rosky [Fri, 27 Apr 2018 17:16:36 +0000 (17:16 +0000)]
Merge "Use correct windowingMode when computing override config" into pi-dev

6 years agoMerge "apf: Add counters for dropped / passed packets" into pi-dev
Bernie Innocenti [Fri, 27 Apr 2018 17:01:40 +0000 (17:01 +0000)]
Merge "apf: Add counters for dropped / passed packets" into pi-dev

6 years agoMerge "Add COLOR_MODE_AUTOMATIC" into pi-dev
Chia-I Wu [Fri, 27 Apr 2018 15:47:41 +0000 (15:47 +0000)]
Merge "Add COLOR_MODE_AUTOMATIC" into pi-dev

6 years agoMerge "Hide low-power mode black frame" into pi-dev
Lucas Dupin [Fri, 27 Apr 2018 15:37:11 +0000 (15:37 +0000)]
Merge "Hide low-power mode black frame" into pi-dev

6 years agoLockdown icon tint should adapt to light/dark theme.
Alison Cichowlas [Fri, 27 Apr 2018 15:26:41 +0000 (11:26 -0400)]
Lockdown icon tint should adapt to light/dark theme.

Bug: 78619585
Test: Manual
Change-Id: I1eab4fae02bd212d2c90f596ad7eaa4d762e92c3

6 years agoapf: Add counters for dropped / passed packets
Bernie Innocenti [Mon, 23 Apr 2018 16:25:42 +0000 (01:25 +0900)]
apf: Add counters for dropped / passed packets

ApfFilter maintains separate counters for each reason why a packet was
passed or dropped by the filter logic.

There's also a total which should match the individual counters,
*unless* the APF interpreter aborted execution early due to an illegal
instruction or an out-of-bounds access.

Test: both on APFv2 and APFv4-capable device:
runtest -x tests/net/java/android/net/ip/IpClientTest.java
runtest -x tests/net/java/android/net/apf/ApfTest.java
manual tests connected to an AP
Bug: 73804303
Change-Id: I54b17fcbb95dfaea5db975d282314ce73d79d6ec

6 years agoDon't set Bluetooth volume when the Bluetooth stream changes
Ajay Panicker [Fri, 27 Apr 2018 14:13:23 +0000 (07:13 -0700)]
Don't set Bluetooth volume when the Bluetooth stream changes

Don't restore the remembered volume whenever an Bluetooth A2DP stream
comes up or whenever Bluetooth AVRCP reports absolute volume support.
All Bluetooth volume memory will now be handled by Bluetooth.

Bug: 30602783
Test: See that AudioService doesn't try to change the volume when a
Bluetooth device connects.

Change-Id: I683062c1a0565591ae33cbbb0381730b86ad17c2
(cherry picked from commit 085ecc32a40d4cf578d6c4379ff1045430ec72b0)

6 years agoMerge "Use the briefcase icon with the circle" into pi-dev
android-build-team Robot [Fri, 27 Apr 2018 13:00:59 +0000 (13:00 +0000)]
Merge "Use the briefcase icon with the circle" into pi-dev

6 years agoKeyguard: Fix threading issues in KeyguardUpdateMonitor
Adrian Roos [Wed, 25 Apr 2018 17:09:50 +0000 (19:09 +0200)]
Keyguard: Fix threading issues in KeyguardUpdateMonitor

Fixes a bug where KeyguardViewMediator called into KeyguardUpdateMonitor
on the wrong thread. Also adds assertions to make sure we only touch
mCallbacks on the right thread.

Change-Id: I9524b6c182cb70134fbc9a28df8148043fec8c1e
Fixes: 78128789
Test: Device boots successfully.

6 years agoFix another issue with constructing SafeActivityOptions
Jorim Jaggi [Thu, 26 Apr 2018 16:51:16 +0000 (18:51 +0200)]
Fix another issue with constructing SafeActivityOptions

Also log the wtf earlier as well so we know where potential
issues are coming from

Test: Launch notififcation
Bug: 78591617
Change-Id: I99557670fd3805dbeac9042f7db13e28fa00fc21

6 years agoMerge "Enable Notifications on AndroidTV" into pi-dev
android-build-team Robot [Fri, 27 Apr 2018 12:47:42 +0000 (12:47 +0000)]
Merge "Enable Notifications on AndroidTV" into pi-dev

6 years agoMerge "PIP: Fix potential stuck state" into pi-dev
android-build-team Robot [Fri, 27 Apr 2018 12:46:29 +0000 (12:46 +0000)]
Merge "PIP: Fix potential stuck state" into pi-dev

6 years agoMore greylist additions from bugreports.
Mathew Inwood [Fri, 27 Apr 2018 11:48:44 +0000 (12:48 +0100)]
More greylist additions from bugreports.

Bug: 74081083
Bug: 77762858
Bug: 78369578
Bug: 78576150
Bug: 78576770
Bug: 78587096
Test: m
Change-Id: I4147c898d7cada9ea8352223b0d932e190fd743e

6 years agoUse the briefcase icon with the circle
Tony Mak [Fri, 27 Apr 2018 10:01:10 +0000 (11:01 +0100)]
Use the briefcase icon with the circle

Thus, it is now consistent with the personal one, which also comes
with the circle.

Test: Observe the animation.

Change-Id: I482f629f30f7c9ca943da86902a1627b81072859
Fixes: 78684075

6 years agoMerge "apf: Add immediate encoding tests for LI" into pi-dev
TreeHugger Robot [Fri, 27 Apr 2018 08:59:07 +0000 (08:59 +0000)]
Merge "apf: Add immediate encoding tests for LI" into pi-dev

6 years agoMerge "Refactor GnssNavigationMessageProvider" into pi-dev
Yu-Han Yang [Fri, 27 Apr 2018 05:15:29 +0000 (05:15 +0000)]
Merge "Refactor GnssNavigationMessageProvider" into pi-dev

6 years agoMerge "Adjusted the lineHeight for notification texts" into pi-dev
TreeHugger Robot [Fri, 27 Apr 2018 04:30:44 +0000 (04:30 +0000)]
Merge "Adjusted the lineHeight for notification texts" into pi-dev