OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Check VintfObject compatibility on boot" into oc-dev
Michael Schwartz [Wed, 24 May 2017 21:34:03 +0000 (21:34 +0000)]
Merge "Check VintfObject compatibility on boot" into oc-dev

7 years agoMerge "Fixed assertions on bugreport share notification." into oc-dev
TreeHugger Robot [Wed, 24 May 2017 21:32:56 +0000 (21:32 +0000)]
Merge "Fixed assertions on bugreport share notification." into oc-dev

7 years agoMerge "Consider the last inserted SIM for EmergencyAffordance" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 21:28:05 +0000 (21:28 +0000)]
Merge "Consider the last inserted SIM for EmergencyAffordance" into oc-dev

7 years agoMerge "Add documentation about 0 scale matrix to Shader" into oc-dev
Tenghui Zhu [Wed, 24 May 2017 21:06:52 +0000 (21:06 +0000)]
Merge "Add documentation about 0 scale matrix to Shader" into oc-dev

7 years agoMerge "Correctly save retained fragments in the backstack" into oc-dev
Sergey Vasilinets [Wed, 24 May 2017 21:05:34 +0000 (21:05 +0000)]
Merge "Correctly save retained fragments in the backstack" into oc-dev

7 years agoMerge "Keyguard: Update clock size" into oc-dev
Adrian Roos [Wed, 24 May 2017 21:01:39 +0000 (21:01 +0000)]
Merge "Keyguard: Update clock size" into oc-dev

7 years agoMerge "Keyguard: Remove all caps from keyguard status view" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 20:50:57 +0000 (20:50 +0000)]
Merge "Keyguard: Remove all caps from keyguard status view" into oc-dev

7 years agoMerge "Regression test: Menu item title updates." into oc-dev
Abodunrinwa Toki [Wed, 24 May 2017 20:48:02 +0000 (20:48 +0000)]
Merge "Regression test: Menu item title updates." into oc-dev

7 years agoMerge "Fixed that pinned huns could become clipped" into oc-dev
Selim Cinek [Wed, 24 May 2017 20:44:56 +0000 (20:44 +0000)]
Merge "Fixed that pinned huns could become clipped" into oc-dev

7 years agoMerge "System installed launcher can see instant apps" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 20:38:51 +0000 (20:38 +0000)]
Merge "System installed launcher can see instant apps" into oc-dev

7 years agoMerge "WifiMetrics: Add metrics for HAL/wificond crashes" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 20:20:58 +0000 (20:20 +0000)]
Merge "WifiMetrics: Add metrics for HAL/wificond crashes" into oc-dev

7 years agoMerge "Zygote: Allow arbitrary-length wrap property names" into oc-dev
Christopher Ferris [Wed, 24 May 2017 20:20:38 +0000 (20:20 +0000)]
Merge "Zygote: Allow arbitrary-length wrap property names" into oc-dev

7 years agoMerge "Fixed an issue where the panel could be stuck expanding" into oc-dev
Selim Cinek [Wed, 24 May 2017 20:13:18 +0000 (20:13 +0000)]
Merge "Fixed an issue where the panel could be stuck expanding" into oc-dev

7 years agoMerge "Disable state save/restore for inflated date/time picker views" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 19:50:51 +0000 (19:50 +0000)]
Merge "Disable state save/restore for inflated date/time picker views" into oc-dev

7 years agoMerge "Filter instant <--> full app" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 19:45:27 +0000 (19:45 +0000)]
Merge "Filter instant <--> full app" into oc-dev

7 years agoMerge "Fix cast tile crash" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 19:29:54 +0000 (19:29 +0000)]
Merge "Fix cast tile crash" into oc-dev

7 years agoCheck VintfObject compatibility on boot
Michael Schwartz [Mon, 15 May 2017 18:40:40 +0000 (11:40 -0700)]
Check VintfObject compatibility on boot

Bug: 36814984
Test: Build, flash boot sailfish and shared system image.
Change-Id: Ibd6694079d9e2641a7b77d774a2df085e9a8545a

7 years agoMerge "Notifications: Fix janky group expansion animation" into oc-dev
Adrian Roos [Wed, 24 May 2017 19:03:24 +0000 (19:03 +0000)]
Merge "Notifications: Fix janky group expansion animation" into oc-dev

7 years agoMerge "Reset mHiddenSetFromTransferredStartingWindow when app set visibility" into...
TreeHugger Robot [Wed, 24 May 2017 19:00:56 +0000 (19:00 +0000)]
Merge "Reset mHiddenSetFromTransferredStartingWindow when app set visibility" into oc-dev

7 years agoFixed assertions on bugreport share notification.
Felipe Leme [Wed, 24 May 2017 18:51:10 +0000 (11:51 -0700)]
Fixed assertions on bugreport share notification.

Fixes: 36698286
Test: mmm -j32 frameworks/base/packages/Shell && adb install -r -g ${OUT}/data/app/ShellTests/ShellTests.apk && adb shell am instrument -e class com.android.shell.BugreportReceiverTest$1 -w com.android.shell.tests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I0f3586309103a07afca5be3d1e3073d8a5dd04ec

7 years agoZygote: Allow arbitrary-length wrap property names
Andreas Gampe [Thu, 11 May 2017 01:53:02 +0000 (18:53 -0700)]
Zygote: Allow arbitrary-length wrap property names

The restriction on system property key length has been lifted.
Update the invoke-with code to first check the full-length property.
Then fall back to the truncated version for backwards-compatibility.

Bug: 37276041

Test: m
Test: manual with long package name (Maps)
(cherry picked from commit 4c88a8c6848609333fa6058fcfc22ac58ed94dac)

Change-Id: Ic27a26a676f7ac5a998a9bea14259725e89b7e37

7 years agoKeyguard: Update clock size
Adrian Roos [Wed, 10 May 2017 22:48:01 +0000 (15:48 -0700)]
Keyguard: Update clock size

Bug: 38138115
Test: Observe that clock on lockscreen is smaller
Change-Id: I3360d2f234a47947321e05fb96253bbb808919a8

7 years agoMerge "docs: Fixing malformatted HTML escape" into oc-dev
Andrew Solovay [Wed, 24 May 2017 17:56:23 +0000 (17:56 +0000)]
Merge "docs: Fixing malformatted HTML escape" into oc-dev

7 years agoFix cast tile crash
Jason Monk [Wed, 24 May 2017 17:29:19 +0000 (13:29 -0400)]
Fix cast tile crash

Switch from support library to internal implementation of cast
dialog.

Test: send menu event to dialog
Change-Id: If9c8bf0f544e712f3835977dd45a5adeeaac0c77
Fixes: 37216170

7 years agoMerge "reduce flunctuation in boot animation start / stopping time" into oc-dev
Keun-young Park [Wed, 24 May 2017 17:28:35 +0000 (17:28 +0000)]
Merge "reduce flunctuation in boot animation start / stopping time" into oc-dev

7 years agoMerge "Set the decay timer for all forked apps." into oc-dev
Christopher Ferris [Wed, 24 May 2017 17:17:27 +0000 (17:17 +0000)]
Merge "Set the decay timer for all forked apps." into oc-dev

7 years agoWifiMetrics: Add metrics for HAL/wificond crashes
Roshan Pius [Thu, 11 May 2017 16:05:58 +0000 (09:05 -0700)]
WifiMetrics: Add metrics for HAL/wificond crashes

New metrics added:
1. Number of times HAL crashed during operation.
2. Number of times wificond crashed during operation.
3. Number of times wifi start failed because of a native issue.
Basically the number of times calls to WifiNative.setupForClientMode() &
WifiNative.setupForSoftApMode() fails.

Bug: 36586897
Test: Compiles
Change-Id: Ie9683fd8bfea6b0c64605e407559ff561898c11b
(cherry picked from commit 3607a39bbf99889d964f985727d14bcbdbecfac6)

7 years agoMerge "TRON: Smart selection events that don't change the selection." into oc-dev
TreeHugger Robot [Wed, 24 May 2017 15:44:32 +0000 (15:44 +0000)]
Merge "TRON: Smart selection events that don't change the selection." into oc-dev

7 years agoMerge "Fixing crash when checking for home task resizeability." into oc-dev
Winson Chung [Wed, 24 May 2017 15:43:54 +0000 (15:43 +0000)]
Merge "Fixing crash when checking for home task resizeability." into oc-dev

7 years agoSystem installed launcher can see instant apps
Todd Kennedy [Tue, 23 May 2017 22:54:18 +0000 (15:54 -0700)]
System installed launcher can see instant apps

Change-Id: I97f791b61f9b4f7ed33305345bf3d92394b40ae4
Fixes: 38202759
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Test: Manual. Create sample app that replaces the launcher to test ability to see ephemeral apps.

7 years agoMerge "Add ConnectionService callback invoked when connection creation complete....
Tyler Gunn [Wed, 24 May 2017 14:07:54 +0000 (14:07 +0000)]
Merge "Add ConnectionService callback invoked when connection creation complete." into oc-dev

7 years agoFilter instant <--> full app
Todd Kennedy [Tue, 23 May 2017 20:37:30 +0000 (13:37 -0700)]
Filter instant <--> full app

Last in the series for protecting full apps from instant apps. Still
need to make another pass at the opposite direction.

Bug: 35871369
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Test: Manual; install instant app and ensure it runs
Change-Id: I3734cb154e7b952f3a9cf7c5415dffcd4de02aba

7 years agoTRON: Smart selection events that don't change the selection.
Abodunrinwa Toki [Tue, 23 May 2017 13:51:22 +0000 (14:51 +0100)]
TRON: Smart selection events that don't change the selection.

See Ia9081d92ae9aea50d863455be770eecd0c73be1a for multi-selection
counts.

Test: Manually checked logging happens as per go/tron-howto and verified
nothing is broken in related classes by running:
bit FrameworksCoreTests:android.widget.TextViewActivityTest
bit CtsWidgetTestCases:android.widget.cts.TextViewTest

Bug: 32572232
Change-Id: I4ceab136ab73a20c6bc56732f7606ed103fe64d3

7 years agoMerge "Change Ignores to FlakyTest so we can check if they're fixed" into oc-dev
Geoffrey Pitsch [Wed, 24 May 2017 13:44:07 +0000 (13:44 +0000)]
Merge "Change Ignores to FlakyTest so we can check if they're fixed" into oc-dev

7 years agoMerge "Fixed CTS failure due to selecting wrong transition." into oc-dev
Wale Ogunwale [Wed, 24 May 2017 12:28:41 +0000 (12:28 +0000)]
Merge "Fixed CTS failure due to selecting wrong transition." into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 11:22:43 +0000 (11:22 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 11:22:04 +0000 (11:22 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "AutoSize TextView - correct pixel transformations" into oc-dev
Andrei Stingaceanu [Wed, 24 May 2017 09:16:42 +0000 (09:16 +0000)]
Merge "AutoSize TextView - correct pixel transformations" into oc-dev

7 years agoMerge "Fix crash due to bad maxLines defined for dialog titles on watch type devices...
TreeHugger Robot [Wed, 24 May 2017 08:07:29 +0000 (08:07 +0000)]
Merge "Fix crash due to bad maxLines defined for dialog titles on watch type devices." into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 24 May 2017 06:34:39 +0000 (23:34 -0700)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 24 May 2017 04:43:45 +0000 (21:43 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "TV PIP: Dismiss notification when the PIP is over" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 04:08:57 +0000 (04:08 +0000)]
Merge "TV PIP: Dismiss notification when the PIP is over" into oc-dev

7 years agoMerge "Re-pin camera odex/vdex files only if they have changed" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 02:49:04 +0000 (02:49 +0000)]
Merge "Re-pin camera odex/vdex files only if they have changed" into oc-dev

7 years agoReset mHiddenSetFromTransferredStartingWindow when app set visibility
Wale Ogunwale [Wed, 24 May 2017 02:37:30 +0000 (19:37 -0700)]
Reset mHiddenSetFromTransferredStartingWindow when app set visibility

ag/2276103 fixed an issue where an app token was left in the visible state
due to it getting a tranferred starting window that is later transferred out.
However, we were not resetting the state of the variable we use to track this
when the app actually sets a visibility state which can cause the app to
remain in an hidden state.

Fixes: 62011969
Bug: 38317227
Test: Cold launch Docs apps and change the orientation and make sure the app
is still displayed.
Test: Launch Audible app music player and verify the LibraryActivity
token isn't in the visible state.

Change-Id: I9ff434efe8d29b32021b9881bf36e69de700e70e

7 years agoMerge "Make TextClassifier.getLinks(...) a default method." into oc-dev
Abodunrinwa Toki [Wed, 24 May 2017 01:57:46 +0000 (01:57 +0000)]
Merge "Make TextClassifier.getLinks(...) a default method." into oc-dev

7 years agoMerge "Allow media apps to receive media key events after the phone call" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 01:20:52 +0000 (01:20 +0000)]
Merge "Allow media apps to receive media key events after the phone call" into oc-dev

7 years agoTV PIP: Dismiss notification when the PIP is over
Jaewan Kim [Tue, 23 May 2017 09:34:07 +0000 (18:34 +0900)]
TV PIP: Dismiss notification when the PIP is over

This fixes the regression caused by the previous commit
bad26692d05 Set notification TAG and style in TV PIP notification

Bug: 37249867
Test: Manual test (PIP notification UI was dismissed after closing th
    PIP by notification UI, or PIP controller dialog. Also checked that
    the notification UI was dismissed after the the PIPed activity
    becomes fullscreen.)
Change-Id: I4dc6d1ee8035f89583a5fb49aa6c8fdc40bb49a0

7 years agoRe-pin camera odex/vdex files only if they have changed
Calin Juravle [Tue, 23 May 2017 00:49:01 +0000 (17:49 -0700)]
Re-pin camera odex/vdex files only if they have changed

Test: Camera is re-pinned after
adb shell cmd package compile -f -m extract
com.google.android.GoogleCamera
adb shell cmd package bg-dexopt-job

Bug: 33168521
Change-Id: I5c5e76d1e40b6d433c9a0beba463c86f79ad437e

7 years agoFixing crash when checking for home task resizeability.
Winson Chung [Wed, 24 May 2017 00:47:05 +0000 (17:47 -0700)]
Fixing crash when checking for home task resizeability.

- If there is no home task, assume non-resizeable until user goes
  home.

Bug: 62033711
Test: Reboot phone, launch settings from QS, dock and ensure no
      crash.  Go home and ensure that launcher is still resizeable
      and bounds are correct.

Change-Id: Id7ccd6f54cc4dc248f90a1acb54509713c69b11b

7 years agoMerge "Fix null deref crash" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 00:41:17 +0000 (00:41 +0000)]
Merge "Fix null deref crash" into oc-dev

7 years agoMerge "Don't keep a reference to Service object" into oc-dev
TreeHugger Robot [Wed, 24 May 2017 00:31:37 +0000 (00:31 +0000)]
Merge "Don't keep a reference to Service object" into oc-dev

7 years agoMerge "audio service: fix rapid succession of A2DP devices connections" into oc-dev
Eric Laurent [Wed, 24 May 2017 00:11:33 +0000 (00:11 +0000)]
Merge "audio service: fix rapid succession of A2DP devices connections" into oc-dev

7 years agoNotifications: Fix janky group expansion animation
Adrian Roos [Thu, 18 May 2017 23:10:21 +0000 (16:10 -0700)]
Notifications: Fix janky group expansion animation

Fixes an issue with the group expansion animation
by reverting a change introduced in I9dd91b85432e3d4309e0eb78a7b03ada87c3554e

Change-Id: Ia1e118a14ca2e420d0b0a23723676cf65d72f85b
Merged-In: Ia1e118a14ca2e420d0b0a23723676cf65d72f85b
Fixes: 38355658
Test: add notification group, test that clicking on the expansion icon shows a smooth animation

7 years agoMerge "Fix creating of app theme snapshots" into oc-dev
TreeHugger Robot [Tue, 23 May 2017 23:35:36 +0000 (23:35 +0000)]
Merge "Fix creating of app theme snapshots" into oc-dev

7 years agoMerge "Hide Autofill UI when non-savable id is gone." into oc-dev
TreeHugger Robot [Tue, 23 May 2017 23:28:29 +0000 (23:28 +0000)]
Merge "Hide Autofill UI when non-savable id is gone." into oc-dev

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

7 years agoMerge "Resources: fix race with creating theme" into oc-dev
Adam Lesinski [Tue, 23 May 2017 23:14:11 +0000 (23:14 +0000)]
Merge "Resources: fix race with creating theme" into oc-dev

7 years agoFixed CTS failure due to selecting wrong transition.
Wale Ogunwale [Tue, 23 May 2017 17:34:48 +0000 (10:34 -0700)]
Fixed CTS failure due to selecting wrong transition.

ag/2253646 fixed an issue where a starting window can be displayed prematurely.
However, it also prevented an app from being added to the opening apps list if
it was already visible. This caused wrong transition animation to be selected
for the closing app. We now always set the visibility to true even if the app
is already visible so that the app can be added to the opening apps list and
the right transition animation selected. We don't set visibility to false if
the app isn't visible so it isn't added to the closing apps list which covers
the case ag/2253646 attempted to fix.

Bug: 34545029
Change-Id: I06363beb0c524146a8b871eff8157678452c3d1d
Fixes: 38505794
Test: cts/.../run-test android.server.cts.ActivityManagerTransitionSelectionTests

7 years agoMerge "Fix race condition triggered by quick stop/start of Dream" into cw-f-dev am...
Erik Wolsheimer [Tue, 23 May 2017 23:00:03 +0000 (23:00 +0000)]
Merge "Fix race condition triggered by quick stop/start of Dream" into cw-f-dev am: 90a6054805
am: 94b497bccc

Change-Id: I62ab41ed83aa92b12e7fa3c9111a6f97e6ef13ef

7 years agoDisable state save/restore for inflated date/time picker views
Adam Powell [Tue, 23 May 2017 22:56:59 +0000 (15:56 -0700)]
Disable state save/restore for inflated date/time picker views

Fix a bug where the internal date/time picker views reused view IDs
causing state save/restore bugs when placed within AlertDialogs and
other places. Since the pickers already save/restore their state at a
higher level leaving this enabled was redundant.

Bug 32654446
Test: manual

Change-Id: I3df2fc932ac5296ab6eb0a5013dddef8d1117635

7 years agoMerge "Fix race condition triggered by quick stop/start of Dream" into cw-f-dev
Erik Wolsheimer [Tue, 23 May 2017 22:51:25 +0000 (22:51 +0000)]
Merge "Fix race condition triggered by quick stop/start of Dream" into cw-f-dev
am: 90a6054805

Change-Id: I708fda61e866a891238d6dbbfc6a9b901e6da6b3

7 years agoMerge "Respect one-shot click effect config in VibratorService" into oc-dev
TreeHugger Robot [Tue, 23 May 2017 22:46:43 +0000 (22:46 +0000)]
Merge "Respect one-shot click effect config in VibratorService" into oc-dev

7 years agoMerge "Fix race condition triggered by quick stop/start of Dream" into cw-f-dev
TreeHugger Robot [Tue, 23 May 2017 22:44:37 +0000 (22:44 +0000)]
Merge "Fix race condition triggered by quick stop/start of Dream" into cw-f-dev

7 years agoFix null deref crash
John Reck [Tue, 23 May 2017 22:32:08 +0000 (15:32 -0700)]
Fix null deref crash

Change-Id: Ic1a64e926b5faa2f4cf8d079a2b67e0261dcecd7
Fixes: 62035692
Test: manual

7 years agoCorrectly save retained fragments in the backstack
sergeyv [Tue, 23 May 2017 22:24:37 +0000 (15:24 -0700)]
Correctly save retained fragments in the backstack

Test: FragmentLifecycleTest#retainedFragmentsInBackstack
bug:62027280
Change-Id: I4ba20c5138f957107422c46d67095c7c8db2c608

7 years agoFixed that pinned huns could become clipped
Selim Cinek [Tue, 23 May 2017 03:00:56 +0000 (20:00 -0700)]
Fixed that pinned huns could become clipped

Huns could become clipped and their actions hidden
after they were posted the first time.
They are now only pushed in if they are above the shelf

Test: manual, add huns, observe correct clipping
Change-Id: I3277da30397e7424c000098b822e571620dd1e08
Fixes:  38017936

7 years agoFix creating of app theme snapshots
Jorim Jaggi [Tue, 23 May 2017 13:07:44 +0000 (15:07 +0200)]
Fix creating of app theme snapshots

Apparently locking a HW bitmap makes it super slow to draw.
Instead, draw it into a bitmap, copy it into a hw bitmap, and then
extract the GraphicBuffer.

Test: Open Camera, go home, reopen camera (and maybe go to recents)
Change-Id: Id2371dcdad95f07a680e6c56c0403b3ad815a3f3
Fixes: 38510859

7 years agoFix crash due to bad maxLines defined for dialog titles on watch type devices.
Michael Kwan [Tue, 23 May 2017 01:13:13 +0000 (18:13 -0700)]
Fix crash due to bad maxLines defined for dialog titles on watch type devices.

Misuse of @empty which explicitly sets the value to null, and should only be used
for objects. Replaced with @null which more accurately means undefined value.

Bug: 38431435
Change-Id: I6a59fc52c2ef9626c561f5bc344c588d22111f6e

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

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

7 years agoChange Ignores to FlakyTest so we can check if they're fixed
Geoffrey Pitsch [Tue, 23 May 2017 21:13:38 +0000 (17:13 -0400)]
Change Ignores to FlakyTest so we can check if they're fixed

Test: runtest systemui
Bug: 38500852
Change-Id: I84fd8178086dbd4e35c72e7ef2780248a00791e8

7 years agoConsider the last inserted SIM for EmergencyAffordance
Ruthwar Kumar Ambeer [Tue, 4 Apr 2017 15:58:25 +0000 (21:28 +0530)]
Consider the last inserted SIM for EmergencyAffordance

If India Sim is inserted and removed in Airplane mode
and reboot, The device is supposed to consider the
previous status based on the last inserted SIM as
there wont be any cell info update in Airplane mode.

Rootcause is when there are no active subscription
list right from the bootup, EmergencyAffordance global
variable is not updated with the settings based on
previous boot.

Fix is to update the EmergencyAffordance even when
there are no active subscriptions available from
bootup.

Test: manual, see repro steps on bug
Fixes: 36978415
Merged-In: I072cb635eb57c63dd94bf8f0a0b6222e22fdfbb7
Change-Id: I072cb635eb57c63dd94bf8f0a0b6222e22fdfbb7

7 years agoSet the decay timer for all forked apps.
Christopher Ferris [Mon, 15 May 2017 23:50:29 +0000 (16:50 -0700)]
Set the decay timer for all forked apps.

This will cause native memory frees to be less expensive, but it will cost
a bit of PSS that might hang around.

Bug: 36401135

Test: Built and booted bullhead.
Test: Ran jemalloc unit tests.
Test: Ran bionic unit tests.
Test: Ran a test that allocated and free'd a large piece of memory,
Test: and verified that after changing the parameter, the PSS
Test: sticks around (decay timer set to 1), the PSS is purged (decay
Test: timer set to 0).
(cherry picked from commit ab16dd10f148e1bd49e62ffd88d95bf6d39d5201)

Change-Id: If614a1dd82f0f2e3a9b7080017d82f749a3bc57b

7 years agoMerge "Fix up upstream interface types for case DUN_UNSPECIFIED" into oc-dev
Jayachandran Chinnakkannu [Tue, 23 May 2017 20:42:41 +0000 (20:42 +0000)]
Merge "Fix up upstream interface types for case DUN_UNSPECIFIED" into oc-dev

7 years agoRegression test: Menu item title updates.
Abodunrinwa Toki [Tue, 23 May 2017 18:01:56 +0000 (19:01 +0100)]
Regression test: Menu item title updates.

Confirms that Ie87cc256b77b3ec5732f49c000ce4845130fc91c
fixes the bug.

Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Bug: 38465735
Change-Id: I72dbc0a7ded106d1dfc53580d0d4dd31d8e8261d

7 years agoMerge "Fix starting window leak when adding/removing quickly" into oc-dev
TreeHugger Robot [Tue, 23 May 2017 20:32:26 +0000 (20:32 +0000)]
Merge "Fix starting window leak when adding/removing quickly" into oc-dev

7 years agoMake TextClassifier.getLinks(...) a default method.
Abodunrinwa Toki [Tue, 23 May 2017 20:29:39 +0000 (21:29 +0100)]
Make TextClassifier.getLinks(...) a default method.

Fixes: 37907518
Test: cts-tradefed run cts-dev -o -m CtsSignatureTestCases -t
android.signature.cts.SignatureTest

Change-Id: I876781eccb2574ea01b6b460e14afd4e970a01b4

7 years agoResources: fix race with creating theme
Adam Lesinski [Tue, 23 May 2017 20:14:54 +0000 (13:14 -0700)]
Resources: fix race with creating theme

Bug: 38353957
Test: none
Change-Id: Id78770b475b979635da6a4067db6269e3a1b04d6

7 years agoMerge "Revert "Disallow starting activities without new task from non-activity contex...
Bryce Lee [Tue, 23 May 2017 19:50:21 +0000 (19:50 +0000)]
Merge "Revert "Disallow starting activities without new task from non-activity context."" into oc-dev

7 years agoRevert "Disallow starting activities without new task from non-activity context."
Bryce Lee [Tue, 23 May 2017 19:46:59 +0000 (19:46 +0000)]
Revert "Disallow starting activities without new task from non-activity context."

This reverts commit 8b49a5c0aa18f70bc59b972e888d5ad455e4d7ca.

Change-Id: I7d2da4ac72ca578942b38fccf8b151f3a2ed081f

7 years agoMerge "Filter package manager calls" into oc-dev
TreeHugger Robot [Tue, 23 May 2017 19:26:11 +0000 (19:26 +0000)]
Merge "Filter package manager calls" into oc-dev

7 years agodocs: Fixing malformatted HTML escape
Andrew Solovay [Tue, 23 May 2017 19:08:23 +0000 (12:08 -0700)]
docs: Fixing malformatted HTML escape

Through the file's javadoc comments, the less-than character is
improperly coded as "&lt" instead of "&lt;" (it's missing the
terminating semicolon). Chrome is clever enough to render that as <
, but I don't know if other browsers do, and in any event we
shouldn't count on that behavior.

Doc is staged to:

http://go/dac-stage/reference/android/graphics/drawable/RippleDrawable.html

Test: make ds-docs
Bug: 62028102
Change-Id: I81813fcb758349300f56ce10ccb0d03046ab4736

7 years agoMerge "Add new task flag when starting chooser activity in bug report." into oc-dev
Bryce Lee [Tue, 23 May 2017 19:21:07 +0000 (19:21 +0000)]
Merge "Add new task flag when starting chooser activity in bug report." into oc-dev

7 years agoMerge "Fix recent apps in system UI for Skia pipeline" into oc-dev
TreeHugger Robot [Tue, 23 May 2017 19:19:34 +0000 (19:19 +0000)]
Merge "Fix recent apps in system UI for Skia pipeline" into oc-dev

7 years agoHide Autofill UI when non-savable id is gone.
Felipe Leme [Thu, 18 May 2017 22:24:11 +0000 (15:24 -0700)]
Hide Autofill UI when non-savable id is gone.

AutofillManager keeps track of which views the AutofillServiec is interested to
save, so when these views are gone, the session is finished.

But when the AutofillService returns a dataset whose views it can not save,
the FillUi for these views are not hiding when the views are gone. This CL
fixes this issue by:

- Keeping track which non-savable views should be tracked.
- Pass the view (instead of it's id) when the UI on such views should be hid.

This CL also optimized some AIDL and internal calls by avoiding the creating of
unnecessary Lists.

Test: manual verification with Snapchat
Test: existing CtsAutoFillServiceTestCases pass
Test: new tests on MultipleFragmentLoginTest pass

Fixes: 38199452
Change-Id: I78fa357962dbc6667146d8e08cd6bacb63e0f337

7 years agoMerge "Fixed unminimizing during battery saving mode" into oc-dev
TreeHugger Robot [Tue, 23 May 2017 17:44:04 +0000 (17:44 +0000)]
Merge "Fixed unminimizing during battery saving mode" into oc-dev

7 years agoFix recent apps in system UI for Skia pipeline
Stan Iliev [Mon, 22 May 2017 19:02:25 +0000 (15:02 -0400)]
Fix recent apps in system UI for Skia pipeline

Enable HW Bitmaps for Skia pipelines by using a readback to
convert GraphicBuffer into a raster SkImage. Both BitmapShader
and drawing HW bitmaps into a canvas are supported.

Test: recent apps work, no memory leaks, CTS graphics and
UiRendering tests passed, HWUI unit test passed
bug: 38136140
Change-Id: I23fed5febad3b1009e0417fb7e21a347a8d11b0d
Merged-In: I23fed5febad3b1009e0417fb7e21a347a8d11b0d

7 years agoaudio service: fix rapid succession of A2DP devices connections
Eric Laurent [Tue, 23 May 2017 17:39:38 +0000 (10:39 -0700)]
audio service: fix rapid succession of A2DP devices connections

commit dae476f7330 introduced a potential problem when a different BT A2DP
device is connected just after disconnecting one.

Bug: 37499793
Test: check connection to new BT A2DP device when one is already connected.
Change-Id: I8055844822fcc1640cca67fab2cba629c93f7cfa

7 years agoMerge "Improve time to texture destruction" into oc-dev
John Reck [Tue, 23 May 2017 17:38:36 +0000 (17:38 +0000)]
Merge "Improve time to texture destruction" into oc-dev

7 years agoDon't keep a reference to Service object
Amith Yamasani [Mon, 22 May 2017 22:10:47 +0000 (15:10 -0700)]
Don't keep a reference to Service object

This is a potential fix for a global reference leak in the
system process by a JobService in an app.

Bug: 38467796
Test: manual
Change-Id: I8756c39ac77bead068c88fce750c4024f9ac1c03

7 years agoMerge "batterymeter -> just meter." into oc-dev
Daniel Nishi [Tue, 23 May 2017 17:35:14 +0000 (17:35 +0000)]
Merge "batterymeter -> just meter." into oc-dev

7 years agoMerge "Fix window affecting SysUi visibility for once and all" into oc-dev
TreeHugger Robot [Tue, 23 May 2017 16:58:38 +0000 (16:58 +0000)]
Merge "Fix window affecting SysUi visibility for once and all" into oc-dev

7 years agoMerge "Fix issue with TV PIP clobbering resize on orientation change." into oc-dev
TreeHugger Robot [Tue, 23 May 2017 16:54:44 +0000 (16:54 +0000)]
Merge "Fix issue with TV PIP clobbering resize on orientation change." into oc-dev

7 years agoMerge "Convert Shader to NativeAllocationRegistry" into oc-dev
John Reck [Tue, 23 May 2017 16:43:37 +0000 (16:43 +0000)]
Merge "Convert Shader to NativeAllocationRegistry" into oc-dev

7 years agoreduce flunctuation in boot animation start / stopping time
Keun-young Park [Sat, 20 May 2017 00:13:04 +0000 (17:13 -0700)]
reduce flunctuation in boot animation start / stopping time

- Add separate 100ms interval polling for SurfaceFlinger. Otherwise,
  it can be blocked with 1 sec polling and cause 1 sec of additional
  delay frequently.

bug: 38450031
bug: 35253872
Test: many reboots and check time to finish boot animation, python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 100 -f -e 15 -w 30 -v

Change-Id: I353ca04183cbe59b82da99dc3fecfce63314cd2f

7 years agoMerge "SurfaceView: Wait to gather transparent region." into oc-dev
Rob Carr [Tue, 23 May 2017 16:30:57 +0000 (16:30 +0000)]
Merge "SurfaceView: Wait to gather transparent region." into oc-dev

7 years agoFix starting window leak when adding/removing quickly
Jorim Jaggi [Tue, 23 May 2017 16:00:48 +0000 (18:00 +0200)]
Fix starting window leak when adding/removing quickly

The following race condition may happen when transferring starting
windows:
- Add thread (android.anim) calls Snapshot.create
- Remove thread (android.display!) checks that yes there is a
starting window, but no surface yet. Thus, it nulls out everything.
- Add thread returns from Snapshot.create: container.startingData
is null but startingWindow is also null. Thus, we never set
abort=true and we never set the starting window properly or remove
it properly.

Test: Some basic starting window sanity testing. Otherwise, pray
to the race condition gods.
Test: AppWindowContainerControllerTests#testAddRemoveRace
Fixes: 37888853

Change-Id: Ia287bfa52f708b36ff93ef7cd45a0d080bd4dd9c

7 years agoAdd new task flag when starting chooser activity in bug report.
Bryce Lee [Tue, 23 May 2017 16:02:09 +0000 (09:02 -0700)]
Add new task flag when starting chooser activity in bug report.

This flag is required whenever starting an activity from a
non-activity context.

Change-Id: Ia77e6e7801d712a20d407bc2ac92e543bc287010
Fixes: 62016780
Test: Click on generated bug report notification

7 years agoMerge "Fix FloatingToolbar refresh on menu changes." into oc-dev
TreeHugger Robot [Tue, 23 May 2017 16:01:31 +0000 (16:01 +0000)]
Merge "Fix FloatingToolbar refresh on menu changes." into oc-dev

7 years agoMerge "Ensure FloatingActionMode has a non-null FloatingToolbar." into oc-dev
TreeHugger Robot [Tue, 23 May 2017 15:57:44 +0000 (15:57 +0000)]
Merge "Ensure FloatingActionMode has a non-null FloatingToolbar." into oc-dev

7 years agoUse channel warning development setting.
Geoffrey Pitsch [Thu, 11 May 2017 16:57:22 +0000 (12:57 -0400)]
Use channel warning development setting.

Defaults to enabled for debuggable builds.

Bug: 37945054
Bug: 38380608
Test: manual
Change-Id: I1b67f55d507e31349908953abbf04ac764835915