OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Skip ConnOnActivityStartTest and CoreSettingsObserverTest." into oc-dev
Sudheer Shanka [Tue, 23 May 2017 00:01:54 +0000 (00:01 +0000)]
Merge "Skip ConnOnActivityStartTest and CoreSettingsObserverTest." into oc-dev

7 years agoMerge "Read cpu freq data only when needed." into oc-dev
Sudheer Shanka [Mon, 22 May 2017 23:51:56 +0000 (23:51 +0000)]
Merge "Read cpu freq data only when needed." into oc-dev

7 years agoMerge "Fixes landscape minimized bounds for launcher hiding widget control" into...
TreeHugger Robot [Mon, 22 May 2017 23:50:06 +0000 (23:50 +0000)]
Merge "Fixes landscape minimized bounds for launcher hiding widget control" into oc-dev

7 years agoMerge "Properly defer entrance animations until after the stack is reloaded." into...
Winson Chung [Mon, 22 May 2017 23:20:09 +0000 (23:20 +0000)]
Merge "Properly defer entrance animations until after the stack is reloaded." into oc-dev

7 years agoMerge "Revert "Upgrade logging for UsbDeviceManager to narrow down bugs."" into oc-dev
Jerry Zhang [Mon, 22 May 2017 23:13:53 +0000 (23:13 +0000)]
Merge "Revert "Upgrade logging for UsbDeviceManager to narrow down bugs."" into oc-dev

7 years agoMerge "Fix Companion UI crash on configuration change" into oc-dev
Eugene Susla [Mon, 22 May 2017 22:54:34 +0000 (22:54 +0000)]
Merge "Fix Companion UI crash on configuration change" into oc-dev

7 years agoMerge "Do not relayout on default focus highlight." into oc-dev
Jiaquan He [Mon, 22 May 2017 22:25:09 +0000 (22:25 +0000)]
Merge "Do not relayout on default focus highlight." into oc-dev

7 years agoMerge "Attempt to fix broken/flaky FadeTransitionTest" into oc-dev
TreeHugger Robot [Mon, 22 May 2017 22:07:11 +0000 (22:07 +0000)]
Merge "Attempt to fix broken/flaky FadeTransitionTest" into oc-dev

7 years agoMerge "Remove all activities that do not successfully launch." into oc-dev
TreeHugger Robot [Mon, 22 May 2017 22:05:54 +0000 (22:05 +0000)]
Merge "Remove all activities that do not successfully launch." into oc-dev

7 years agoMerge "Re-add default channel on app targetsdk downgrade." into oc-dev
TreeHugger Robot [Mon, 22 May 2017 22:03:00 +0000 (22:03 +0000)]
Merge "Re-add default channel on app targetsdk downgrade." into oc-dev

7 years agoMerge "Turn on generic multi-window and multi-display in order to support Activity...
TreeHugger Robot [Mon, 22 May 2017 21:24:24 +0000 (21:24 +0000)]
Merge "Turn on generic multi-window and multi-display in order to support Activity in virtual display" into oc-dev

7 years agoMerge "Do not unminimize after rotate when minimized getting wrong transition" into...
Matthew Ng [Mon, 22 May 2017 20:47:06 +0000 (20:47 +0000)]
Merge "Do not unminimize after rotate when minimized getting wrong transition" into oc-dev

7 years agoDo not relayout on default focus highlight.
Jiaquan He [Thu, 11 May 2017 18:56:43 +0000 (11:56 -0700)]
Do not relayout on default focus highlight.

Test: AdjacentListsWithAdjacentISVsInsideTest.testFocusedRectAndFocusHintWorkWithinListItemHorizontal
Bug: 38195445

Change-Id: I4ba61d1dd6b806bff5305986a086c436c3b05b12

7 years agoFixes landscape minimized bounds for launcher hiding widget control
Matthew Ng [Wed, 17 May 2017 22:03:18 +0000 (15:03 -0700)]
Fixes landscape minimized bounds for launcher hiding widget control

Adds the statusbar height to the left bound of the launcher when in
minimized mode forgotten when added to the docked app in ag/2126615.
That bug requested to add the statusbar height to the docked stack
making it larger.

Test: manual, go into minimized state, drag a widget from launcher
Change-Id: I11e6f5b9154bc7ade026f230849adc2c722a9626
Fixes: 38301371

7 years agoMerge "Fix issue #38393543: Not allowed to start service Intent" into oc-dev
Dianne Hackborn [Mon, 22 May 2017 20:03:29 +0000 (20:03 +0000)]
Merge "Fix issue #38393543: Not allowed to start service Intent" into oc-dev

7 years agoRe-add default channel on app targetsdk downgrade.
Julia Reynolds [Mon, 22 May 2017 19:47:06 +0000 (15:47 -0400)]
Re-add default channel on app targetsdk downgrade.

Test: runtest systemui-notification, and manual: adb install the
apk pulled off dogfood device, verify that sending an email
results in a toast pre change and no toast + notification
post change.
Change-Id: Ia3db55959906f38a5dc34cb38a33072c1f2dd64f
Fixes: 38437227

7 years agoMerge "Fix AppOps exception for notification channel toasts" into oc-dev
TreeHugger Robot [Mon, 22 May 2017 19:10:06 +0000 (19:10 +0000)]
Merge "Fix AppOps exception for notification channel toasts" into oc-dev

7 years agoMerge "Wait on activity brought to front for trampoline activities." into oc-dev
TreeHugger Robot [Mon, 22 May 2017 18:02:16 +0000 (18:02 +0000)]
Merge "Wait on activity brought to front for trampoline activities." into oc-dev

7 years agoRevert "Upgrade logging for UsbDeviceManager to narrow down bugs."
Jerry Zhang [Thu, 4 May 2017 23:30:12 +0000 (16:30 -0700)]
Revert "Upgrade logging for UsbDeviceManager to narrow down bugs."

This reverts commit c889b4f4eb62ae7ad8de3ff3d98768e71cb3ad5a.

Merged-In: I74306bacad2a61471a9b8c9fd881229b22b6975e
Change-Id: I74306bacad2a61471a9b8c9fd881229b22b6975e

7 years agoMerge "WifiManager: get startLOHS packageName" into oc-dev
Rebecca Silberstein [Mon, 22 May 2017 16:57:52 +0000 (16:57 +0000)]
Merge "WifiManager: get startLOHS packageName" into oc-dev

7 years agoAttempt to fix broken/flaky FadeTransitionTest
George Mount [Tue, 16 May 2017 22:12:06 +0000 (15:12 -0700)]
Attempt to fix broken/flaky FadeTransitionTest

Bug 38349552

This is a blind fix for the test, but it should reduce flakiness
by removing the use of Thread.sleep().

Test: ran FadeTransitionTest
Change-Id: I3156c354b370c34885dfbfd7ecd1b5908a9dab44

7 years agoMerge "Fix bad merge causing Recents to be started twice in succession." into oc-dev
Winson Chung [Mon, 22 May 2017 16:11:24 +0000 (16:11 +0000)]
Merge "Fix bad merge causing Recents to be started twice in succession." into oc-dev

7 years agoFix AppOps exception for notification channel toasts
Geoffrey Pitsch [Mon, 22 May 2017 14:53:44 +0000 (10:53 -0400)]
Fix AppOps exception for notification channel toasts

Check isSystemToast before noteNotifcationOp

Test: manual
Change-Id: Ie65b57365389b083a14c030642d79e98f686c303
Fixes: 38474090

7 years agoMerge "Disallow starting activities without new task from non-activity context."...
Bryce Lee [Mon, 22 May 2017 14:30:59 +0000 (14:30 +0000)]
Merge "Disallow starting activities without new task from non-activity context." into oc-dev

7 years agoMerge "Revert "NumberPicker a11y (and a11y-inspired) fixes"" into oc-dev
Phil Weaver [Mon, 22 May 2017 13:03:39 +0000 (13:03 +0000)]
Merge "Revert "NumberPicker a11y (and a11y-inspired) fixes"" into oc-dev

7 years agoMerge "Revert the system clock in the debug oc-dev" into oc-dev
TreeHugger Robot [Mon, 22 May 2017 10:36:34 +0000 (10:36 +0000)]
Merge "Revert the system clock in the debug oc-dev" into oc-dev

7 years agoRead cpu freq data only when needed.
Sudheer Shanka [Fri, 19 May 2017 18:33:42 +0000 (11:33 -0700)]
Read cpu freq data only when needed.

Bug: 34133340
Test: cts-tradefed run singleCommand cts-dev -m ctsIncidentHostTestCases -t \
      com.android.server.cts.BatteryStatsValidationTest

Change-Id: Ib235e166820b95b5cd0a496b6146ea353abdf844

7 years agoFix issue #38393543: Not allowed to start service Intent
Dianne Hackborn [Fri, 19 May 2017 23:12:08 +0000 (16:12 -0700)]
Fix issue #38393543: Not allowed to start service Intent

Turns out there was another path in to the activity manager
to trigger a PendingIntent, which needs to be modified to
now also pass in the whitelist token of that pending intent.

Test: manual
Change-Id: I755ff87db1b782fa6974d404dcb490786053c5e0

7 years agoFix bad merge causing Recents to be started twice in succession.
Winson Chung [Fri, 19 May 2017 23:05:54 +0000 (16:05 -0700)]
Fix bad merge causing Recents to be started twice in succession.

Bug: 38449257
Test: Launch Recents, ensure it's not started twice...
Change-Id: I0da85ef53742981fd67e8f1d1b733060d8098498

7 years agoMerge "P2P: update WifiP2pServiceResponse creator" into oc-dev
Glen Kuhne [Fri, 19 May 2017 22:35:54 +0000 (22:35 +0000)]
Merge "P2P: update WifiP2pServiceResponse creator" into oc-dev

7 years agoMerge "Update PackageSettingBase.usesStaticLibraries correctly." into oc-dev
Sudheer Shanka [Fri, 19 May 2017 20:54:50 +0000 (20:54 +0000)]
Merge "Update PackageSettingBase.usesStaticLibraries correctly." into oc-dev

7 years agoMerge "Missed a break statement. very sorry" into oc-dev
Evan Rosky [Fri, 19 May 2017 20:25:50 +0000 (20:25 +0000)]
Merge "Missed a break statement. very sorry" into oc-dev

7 years agoMerge "Wait for keyguard draw before stopping boot animation" into oc-dev
Keun-young Park [Fri, 19 May 2017 20:07:10 +0000 (20:07 +0000)]
Merge "Wait for keyguard draw before stopping boot animation" into oc-dev

7 years agoTurn on generic multi-window and multi-display in order to support Activity in virtua...
Erik Wolsheimer [Wed, 10 May 2017 22:21:46 +0000 (15:21 -0700)]
Turn on generic multi-window and multi-display in order to support Activity in virtual display

Bug: 37482466
Change-Id: I9f84e0313668339d16b1ff6f14df20d2911f4d3e

7 years agoMerge "Fix NPE in usage stats manager (recent regression)" into oc-dev
Makoto Onuki [Fri, 19 May 2017 19:24:21 +0000 (19:24 +0000)]
Merge "Fix NPE in usage stats manager (recent regression)" into oc-dev

7 years agoMerge changes I28f7ac47,If075675e into oc-dev
Winson Chung [Fri, 19 May 2017 19:18:50 +0000 (19:18 +0000)]
Merge changes I28f7ac47,If075675e into oc-dev

* changes:
  Fixing regression in Recents preloading.
  Adding cached value for current user for per-SysUI process components.

7 years agoMerge "DO NOT MERGE Revert "WTF Logging for catching memory issue in Parcel"" into...
Michael Wachenschwanz [Fri, 19 May 2017 18:27:10 +0000 (18:27 +0000)]
Merge "DO NOT MERGE Revert "WTF Logging for catching memory issue in Parcel"" into oc-dev

7 years agoMerge "Cumulative wakelock time per uid" into oc-dev
Adam Bookatz [Fri, 19 May 2017 18:24:31 +0000 (18:24 +0000)]
Merge "Cumulative wakelock time per uid" into oc-dev

7 years agoMerge "Fix "launcher starting on work profile"" into oc-dev
Makoto Onuki [Fri, 19 May 2017 17:43:54 +0000 (17:43 +0000)]
Merge "Fix "launcher starting on work profile"" into oc-dev

7 years agoFix NPE in usage stats manager (recent regression)
Makoto Onuki [Fri, 19 May 2017 17:31:52 +0000 (10:31 -0700)]
Fix NPE in usage stats manager (recent regression)

Change-Id: I305bb64b11c9240dc0df5d7b08a9a970660157c8
Fix: 38430177
Test: build and boot

7 years agoProperly defer entrance animations until after the stack is reloaded.
Winson Chung [Fri, 19 May 2017 06:12:27 +0000 (23:12 -0700)]
Properly defer entrance animations until after the stack is reloaded.

- Change the enter animation animated event to a normal event (no
  animations were being choreographed on the event animation trigger
  anyways)
- Remove the code in RecentsActivity, which poorly tried to schedule
  the animation after the first layout.  Instead, properly defer the
  start animation until both the first layout _after stack reload_
  and enter animation callback happens (regardless of which one comes
  first).

Bug: 38391395
Test: Launch Chrome, dock, and ensure there are tasks visible
Change-Id: I4c2823fe25adbd3c200a0f786c478155541ccf26

7 years agoMerge "Also pin vdex file for camera" into oc-dev
Calin Juravle [Fri, 19 May 2017 16:56:37 +0000 (16:56 +0000)]
Merge "Also pin vdex file for camera" into oc-dev

7 years agoWifiManager: get startLOHS packageName
Rebecca Silberstein [Thu, 18 May 2017 08:27:57 +0000 (01:27 -0700)]
WifiManager: get startLOHS packageName

When an application calls startLocalOnlyHotspot, we need to send the
package name from the manager-side of the call.  This CL updates the
call to WifiServiceImpl.startLocalOnlyHotspot and the relevant aidl
file.

Bug: 31466854
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I1dd0142dc58c767336c9323986d20e38bf11220d

7 years agoWait for keyguard draw before stopping boot animation
Keun-young Park [Mon, 8 May 2017 21:51:59 +0000 (14:51 -0700)]
Wait for keyguard draw before stopping boot animation

- Add check for keyguard drawn before stopping boot animation.
  Otherwise blank screen can happen.
- Bind to keyguard service when sysui is launched to reduce waiting
  time later.
- Increase keyguard timeout to 5 secs if it is not boot completed.
  Otherwise (= normal screen on), keep the current 1 sec.
  This timeout can still lead into blank screen so use bigger timeout
  during boot-up to prevent such case.

bug: 37867510
Test: many reboots

Change-Id: Ibfdc42d295bb1d3f5b4ea316fe5aca9ab875e4be

7 years agoMerge "Fix underdraw during resizing" into oc-dev
Jorim Jaggi [Fri, 19 May 2017 15:42:46 +0000 (15:42 +0000)]
Merge "Fix underdraw during resizing" into oc-dev

7 years agoFix underdraw during resizing
Jorim Jaggi [Fri, 19 May 2017 12:53:55 +0000 (14:53 +0200)]
Fix underdraw during resizing

Since we hide the navigation bar background during resizing, we
need to fill it with the fallback background.

This was always an issue but somehow in OC we are displaying
garbage instead of black.

Test: Open Contacts/Dialer, resize, make sure no underdraw is
happening. Also test a couple of other apps.
Fixes: 36206155

Change-Id: I6b02060ef4acf36c2529d49063a61034f9261696

7 years agoMerge "Take snapshot when screen is turning off" into oc-dev
Jorim Jaggi [Fri, 19 May 2017 12:29:49 +0000 (12:29 +0000)]
Merge "Take snapshot when screen is turning off" into oc-dev

7 years agoMerge "Purge StoreWriteQueue items to avoid system health issues" into oc-dev
Jorim Jaggi [Fri, 19 May 2017 12:26:43 +0000 (12:26 +0000)]
Merge "Purge StoreWriteQueue items to avoid system health issues" into oc-dev

7 years agoRevert the system clock in the debug oc-dev
Yipeng Cao [Thu, 18 May 2017 20:27:30 +0000 (13:27 -0700)]
Revert the system clock in the debug oc-dev

System.currentTimeMillis does not guarantee to be monotonically
increasing, changed to SystemClock.elapsedRealtime

Bug: 38317243
Fixes: 38317243
Test: make -j 32; flash the angler device using local build
Change-Id: I775e6251f780679d639418a260c6d44c363a0c0f

7 years agoSkip ConnOnActivityStartTest and CoreSettingsObserverTest.
Sudheer Shanka [Fri, 19 May 2017 00:07:16 +0000 (17:07 -0700)]
Skip ConnOnActivityStartTest and CoreSettingsObserverTest.

- ConnOnActivityStartTest is consistently failing because the device
doesn't have network connectivity. This test probably needs to be moved to a
different test suite but for now just skipping the tests.
- CoreSettingsObserverTest is failing because the test depends on a mock
settings provider but since the Settings class caches the provider
object, the test will end up using real settings provider and fails.

Bug: 38432755
Bug: 38433611
Test: N/A
Change-Id: I0504d9f0df14a0f952e32c8572eefe9ccfebfd2c

7 years agoMerge "Optimize latency when closing panel with animation" into oc-dev
Jorim Jaggi [Fri, 19 May 2017 00:24:12 +0000 (00:24 +0000)]
Merge "Optimize latency when closing panel with animation" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Thu, 18 May 2017 23:47:31 +0000 (23:47 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Thu, 18 May 2017 23:46:42 +0000 (23:46 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Introduce early exit path for non resource path." into oc-dev
TreeHugger Robot [Thu, 18 May 2017 23:30:08 +0000 (23:30 +0000)]
Merge "Introduce early exit path for non resource path." into oc-dev

7 years agoMerge "Workaround issue with pip overlay not hiding cleanly." into oc-dev
Winson Chung [Thu, 18 May 2017 23:15:27 +0000 (23:15 +0000)]
Merge "Workaround issue with pip overlay not hiding cleanly." into oc-dev

7 years agoMerge "Fixing issue with double tapping PiP." into oc-dev
Winson Chung [Thu, 18 May 2017 23:14:54 +0000 (23:14 +0000)]
Merge "Fixing issue with double tapping PiP." into oc-dev

7 years agoFixing regression in Recents preloading.
Winson Chung [Thu, 18 May 2017 22:47:14 +0000 (15:47 -0700)]
Fixing regression in Recents preloading.

- Changes in the CommandQueue callbacks resulted in the default
  implementation of preloadRecentApps() to be called instead of the
  actual implementation in the Recents component.
- Removing extraneous methods in the interface called from other parts of
  SystemUI.

Bug: 38390446
Test: Launch Recents, ensure that preloading is hit first on touch down on
      the button

Change-Id: I28f7ac47eafa76a53343505f3352760e6510c213

7 years agoAdding cached value for current user for per-SysUI process components.
Winson Chung [Thu, 18 May 2017 21:29:43 +0000 (14:29 -0700)]
Adding cached value for current user for per-SysUI process components.

- Also ensuring that we don't do additional work for non-current users when
  the task stack changes.

Bug: 38390446
Test: Launch Recents in multiple users, ensure that it works and does not
      make a binder call to get the current user id

Change-Id: If075675edc3874d809bad30d0aa564a8e59771d3

7 years agoTake snapshot when screen is turning off
Jorim Jaggi [Wed, 17 May 2017 15:25:32 +0000 (17:25 +0200)]
Take snapshot when screen is turning off

Since we can't take a snapshot when screen is turned off, we need
to snapshot before we are turning the screen off. For this, we
- Add a callback from DisplayPowerController to give policy a
chance to do something before display will be turned off.
- Implement this callback by taking snapshots of all visible
tasks.

Test: Inspect logs/traces about screen off blocking to make sure
callback is working correctly.
Test: Insert artificial 500ms delay in onScreenTurningOff and make
sure we are unblocking screen off when turning on screen in the
meantime.
Test: Open Maps, go to recents, open maps again, scroll to another
location, toggle power button, make sure the old location isn't
shown during unlock.

Change-Id: I489f31358f838d418f894f996495946084f136a4
Fixes: 37107783

7 years agoDo not unminimize after rotate when minimized getting wrong transition
Matthew Ng [Thu, 18 May 2017 21:42:51 +0000 (14:42 -0700)]
Do not unminimize after rotate when minimized getting wrong transition

Docked divider was launching recents (which would unminimize) after
rotation if there was more than 1 app window token in
WindowManagerService.mOpeningApps and therefore this occurred
intermittently. Also the app transition was incorrect
WindowSurfacePlacer.handleAppTransitionReadyLocked() taking TRANSIT_NONE
and converting it to something else (maybeUpdateTransitToWallpaper).
Therefore pass through TRANSIT_NONE to prevent recents to run after
rotating the screen even if more than 1 app window token is in
mOpeningApps.

Test: manual - play around with split screen then minimize and rotate
Fixes: 38393264
Change-Id: Ifd536a8ce19f27c9244d68e3a63cad31e0b5d775

7 years agoMerge "Fix ordering of notifying dismiss callback" into oc-dev
Jorim Jaggi [Thu, 18 May 2017 22:25:46 +0000 (22:25 +0000)]
Merge "Fix ordering of notifying dismiss callback" into oc-dev

7 years agoDO NOT MERGE Revert "WTF Logging for catching memory issue in Parcel"
Michael Wachenschwanz [Thu, 18 May 2017 22:09:18 +0000 (22:09 +0000)]
DO NOT MERGE Revert "WTF Logging for catching memory issue in Parcel"

This reverts commit 101e38cbeceb0e1c0a27f1917d9ab0aabed26e49.

Bug: 37298089
Change-Id: Ia468d50fd1e4ca2ffa6145967bf3c847ed1929b8

7 years agoOptimize latency when closing panel with animation
Jorim Jaggi [Tue, 16 May 2017 12:23:19 +0000 (14:23 +0200)]
Optimize latency when closing panel with animation

The interpolator we chose had a very slow easy out where it
generated out frame with mExpandedHeight=0.3 pixels. We add a
check there and stop the animation immediately if this happens.

Furthermore, we just use a simple post when closing the panel
to not add to much latency. The frame will be shown in any case
since we are already in animation/input callback, such that a post
will be executed after the frame has been sent to RT.

Test: Capture trace, unlock phone, make sure no delays
Change-Id: I9fc45f4b081bd6143da1ba99e9bc652a9f64e4a7
Fixes: 38294347

7 years agoPurge StoreWriteQueue items to avoid system health issues
Jorim Jaggi [Thu, 18 May 2017 21:58:09 +0000 (23:58 +0200)]
Purge StoreWriteQueue items to avoid system health issues

If queue gets too deep we may run out of memory or cause other
system health issues.

Test: TaskSnapshotPersisterLoaderTest
Bug: 38416992
Bug: 37631016
Change-Id: I725c9a458f78af2e625f2451bb0030176035f596

7 years agoAlso pin vdex file for camera
Calin Juravle [Tue, 16 May 2017 03:20:50 +0000 (20:20 -0700)]
Also pin vdex file for camera

Test: device boots, manually confirming the pinning is successful
Bug: 33168521

(cherry picked from commit 8e0f959f76a9661fd10178ce9be44dbe1bc0c74f)

Change-Id: Ib3f36a1ae7f756993a0daa6868e2e2134d3a7578

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 18 May 2017 21:05:59 +0000 (14:05 -0700)]
Import translations. DO NOT MERGE

Change-Id: I50fea21ca95688f8c59dba0ffda049f7551b8c5e
Auto-generated-cl: translation import

7 years agoFix "launcher starting on work profile"
Makoto Onuki [Thu, 18 May 2017 20:56:30 +0000 (13:56 -0700)]
Fix "launcher starting on work profile"

Test: Repeat "adb install -r Velvet.apk" on 5x
Fix 37893215

Change-Id: I1a932fdc7c168542e8b71ca8daffbca9ee534b30

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Thu, 18 May 2017 20:10:29 +0000 (20:10 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "don't dex when installing an instant app" into oc-dev
Todd Kennedy [Thu, 18 May 2017 19:36:11 +0000 (19:36 +0000)]
Merge "don't dex when installing an instant app" into oc-dev

7 years agoMerge "Filter package related info" into oc-dev
TreeHugger Robot [Thu, 18 May 2017 19:34:58 +0000 (19:34 +0000)]
Merge "Filter package related info" into oc-dev

7 years agoMerge "Change currentTimeMillis to elapsedRealtime" into oc-dev
TreeHugger Robot [Thu, 18 May 2017 19:25:53 +0000 (19:25 +0000)]
Merge "Change currentTimeMillis to elapsedRealtime" into oc-dev

7 years agoMerge "In onDragEvent(), don't assume text is Spannable" into oc-dev
TreeHugger Robot [Thu, 18 May 2017 19:21:46 +0000 (19:21 +0000)]
Merge "In onDragEvent(), don't assume text is Spannable" into oc-dev

7 years agoMerge "Audio focus: start players in ducked state when focus is already lost" into...
Jean-Michel Trivi [Thu, 18 May 2017 19:06:38 +0000 (19:06 +0000)]
Merge "Audio focus: start players in ducked state when focus is already lost" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 18 May 2017 18:28:39 +0000 (11:28 -0700)]
Import translations. DO NOT MERGE

Change-Id: I50bc1abebf8ed3ffa604de1b2e0c707522e9be9a
Auto-generated-cl: translation import

7 years agoMissed a break statement. very sorry
Evan Rosky [Thu, 18 May 2017 18:18:18 +0000 (11:18 -0700)]
Missed a break statement. very sorry

Change-Id: Ifbc6c60a3fa2cf296a34836c890a10d50c0f14c1

7 years agoP2P: update WifiP2pServiceResponse creator
Glen Kuhne [Sat, 13 May 2017 01:20:15 +0000 (18:20 -0700)]
P2P: update WifiP2pServiceResponse creator

WifiP2pServiceResponse.newInstance now receives the srcAddr and tlvs
binary data directory directly from the hal iface callback.
This fixes a bug introduced in O that broke serviceDiscoveryRequests.

Bug: 38174469
Test: CtsVerifier Service Discovery Requester
Test: frameworks/opt/net/wifi unit test
Change-Id: I66739713292a19ec399358a1033fccb35e76b9cf

7 years agoMerge "More unit tests for classes needed in reading uid times per cpu freq." into...
Sudheer Shanka [Thu, 18 May 2017 17:42:10 +0000 (17:42 +0000)]
Merge "More unit tests for classes needed in reading uid times per cpu freq." into oc-dev

7 years agoMerge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev
Dianne Hackborn [Thu, 18 May 2017 17:35:08 +0000 (17:35 +0000)]
Merge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev

7 years agoMerge "Add action to launch intent" into oc-dev
TreeHugger Robot [Thu, 18 May 2017 17:31:04 +0000 (17:31 +0000)]
Merge "Add action to launch intent" into oc-dev

7 years agoMerge "AAPT2: Ignore trailing data after IEND chunk in PNG" into oc-dev
TreeHugger Robot [Thu, 18 May 2017 17:30:21 +0000 (17:30 +0000)]
Merge "AAPT2: Ignore trailing data after IEND chunk in PNG" into oc-dev

7 years agoMerge "Fix issue with deferred start of the background loader." into oc-dev
Winson Chung [Thu, 18 May 2017 17:18:52 +0000 (17:18 +0000)]
Merge "Fix issue with deferred start of the background loader." into oc-dev

7 years agoChange currentTimeMillis to elapsedRealtime
Yipeng Cao [Tue, 16 May 2017 03:23:12 +0000 (20:23 -0700)]
Change currentTimeMillis to elapsedRealtime

System.currentTimeMillis does not gauntness to be monotonically
increasing, changed to SystemClock.elapsedRealtime

Bug: 38317243
Fixes: 38317243
Test: make -j 32; flash the angler device using local build

Change-Id: I3fd8f8b03655183d257d69412bc1c17cc38ccead
Merged-In: I75a70d43028e901d9f3459d6b525cac58e8e64af

7 years agoFixing issue with double tapping PiP.
Winson Chung [Mon, 15 May 2017 21:20:46 +0000 (14:20 -0700)]
Fixing issue with double tapping PiP.

- If a user taps the PiP quickly multiple times, you can hit a case where
  you expand the PIP, which triggers the re-registration of the
  InputConsumer, but doesn't disable touches until the pinned stack
  animation starts.  If the user taps in between that time, it can trigger
  a resizing of the stack what aborts the expand animation
- Also adding additional debugging logs

Bug: 37657050
Test: Quickly tap the PiP

Change-Id: Ib0088a3aa8e917aca3214c289a0787bdf7e66199

7 years agoAudio focus: start players in ducked state when focus is already lost
Jean-Michel Trivi [Wed, 17 May 2017 00:59:54 +0000 (17:59 -0700)]
Audio focus: start players in ducked state when focus is already lost

The volume ramp for ducking is only to be heard when a player is
  playing while focus is lost. When a player is starting when
  focus is already lost (and ducking is applicable), it should
  play at the same level as that reached after a duck. This is
  implemented using the VolumeShaper.Operation time offset
  (a.k.a. XOffset), set to 1, i.e. the end of the duck.

Test: see bug
Bug: 38353147
Change-Id: Iec36fbe002b183d6d70c258d9ab26b577dc1d2ce

7 years agoMerge "Fix a race condition in the A2dpProfile constructor" into oc-dev
Antony Sargent [Thu, 18 May 2017 16:37:28 +0000 (16:37 +0000)]
Merge "Fix a race condition in the A2dpProfile constructor" into oc-dev

7 years agoRevert "NumberPicker a11y (and a11y-inspired) fixes"
Phil Weaver [Thu, 18 May 2017 16:19:23 +0000 (16:19 +0000)]
Revert "NumberPicker a11y (and a11y-inspired) fixes"

This reverts commit 1d359a6d3179b7e793fc4082237b001d7260c423.

Bug: 38301562
Change-Id: I7a04f3068a8ecb0de63efcb82205b41916138a89

7 years agoMerge "VolumeShaper: Enable xOffset from Java" into oc-dev
Andy Hung [Thu, 18 May 2017 16:15:44 +0000 (16:15 +0000)]
Merge "VolumeShaper: Enable xOffset from Java" into oc-dev

7 years agoMerge "Unbreak APK 26 apps running on "O" preview/beta builds." into oc-dev
Jeff Sharkey [Thu, 18 May 2017 15:59:34 +0000 (15:59 +0000)]
Merge "Unbreak APK 26 apps running on "O" preview/beta builds." into oc-dev

7 years agoMerge "Unbreak even more APK 26 apps running on "O" preview/beta builds." into oc-dev
TreeHugger Robot [Thu, 18 May 2017 15:52:37 +0000 (15:52 +0000)]
Merge "Unbreak even more APK 26 apps running on "O" preview/beta builds." into oc-dev

7 years agoMerge "Enable starting window logging" into oc-dev
Jorim Jaggi [Thu, 18 May 2017 14:51:44 +0000 (14:51 +0000)]
Merge "Enable starting window logging" into oc-dev

7 years agodon't dex when installing an instant app
Todd Kennedy [Wed, 17 May 2017 22:16:04 +0000 (15:16 -0700)]
don't dex when installing an instant app

Bug: 38259387
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Test: install an instant app, see that it doesn't dex
Test: install a full app, see that it does dex
Change-Id: Id7dc749954d0be24bbd80da2ef0f43e39f77993e

7 years agoEnable starting window logging
Jorim Jaggi [Wed, 17 May 2017 13:10:29 +0000 (15:10 +0200)]
Enable starting window logging

Also extend it to make sure we catch the bug!

Test: Open a couple of cold/hot apps, make sure logs look accurate
Bug: 37888853
Change-Id: Ied394969748d4d2d40359af15e0b491a2dc2b078

7 years agoMerge "Fix refactoring typo" into oc-dev
Jorim Jaggi [Thu, 18 May 2017 12:41:18 +0000 (12:41 +0000)]
Merge "Fix refactoring typo" into oc-dev

7 years agoMerge "Captive portals: reinspect http result after fallback probe" into oc-dev
Hugo Benichi [Thu, 18 May 2017 05:39:24 +0000 (05:39 +0000)]
Merge "Captive portals: reinspect http result after fallback probe" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 18 May 2017 04:18:52 +0000 (21:18 -0700)]
Import translations. DO NOT MERGE

Change-Id: I87ad71bcf1a9095723341ee3140f7307b5df61fb
Auto-generated-cl: translation import

7 years agoCaptive portals: reinspect http result after fallback probe
Hugo Benichi [Wed, 17 May 2017 01:30:40 +0000 (10:30 +0900)]
Captive portals: reinspect http result after fallback probe

When DNS queries that precede the http and https probe take a long time
to complete, it is possible that the fallback probe fires earlier than
either the http and https probes.

This causes the detection logic to ignore the result of the http probe,
which may cause the system to miss captive portals advertising
themselves on the url used by the http probe but not on the url used by
the fallback probe.

This patch fixes that issue by forcing the detection to wait on the
result of the http probe if the fallback probe does not find a portal.

Bug: 38259299
Bug: 36532213
Test: manually tested with nearby captive portal networks
Merged-In: I07ea23a2b5f694c5ada9633169af98409efedff1
Change-Id: Ie016cad52719d07167acf026f738d31000c78cd2

(cherry picked from commit fc47442b31761e64e188c51c3dd2a782ecbd9c62)

7 years agoMerge "Optimize latency when unlocking phone" into oc-dev
TreeHugger Robot [Thu, 18 May 2017 01:55:42 +0000 (01:55 +0000)]
Merge "Optimize latency when unlocking phone" into oc-dev

7 years agoMerge "WifiManager: add unspecified ip mode" into oc-dev
TreeHugger Robot [Thu, 18 May 2017 01:44:30 +0000 (01:44 +0000)]
Merge "WifiManager: add unspecified ip mode" into oc-dev

7 years agoMerge "Don't report displays that are going to be removed" into oc-dev
Andrii Kulian [Thu, 18 May 2017 01:36:12 +0000 (01:36 +0000)]
Merge "Don't report displays that are going to be removed" into oc-dev

7 years agoVolumeShaper: Enable xOffset from Java
Andy Hung [Mon, 15 May 2017 22:41:14 +0000 (15:41 -0700)]
VolumeShaper: Enable xOffset from Java

Previously only accessible from native.
Also improve documentation and comments.

Test: CTS VolumeShaperTest, Ducking
Bug: 38353147
Change-Id: I27bb34f0a5d28f80d138111bbeeb92653b5195c5