OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Add TvProvider methods to block or unblock package, get blocked packages"...
TreeHugger Robot [Thu, 13 Apr 2017 23:39:03 +0000 (23:39 +0000)]
Merge "Add TvProvider methods to block or unblock package, get blocked packages" into oc-dev

7 years agoMerge "Range check transfer params in float domain" into oc-dev
Romain Guy [Thu, 13 Apr 2017 23:35:22 +0000 (23:35 +0000)]
Merge "Range check transfer params in float domain" into oc-dev

7 years agoMerge "Address review suggestions for sensor direct report related APIs" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 23:24:35 +0000 (23:24 +0000)]
Merge "Address review suggestions for sensor direct report related APIs" into oc-dev

7 years agoMerge "Actually remove the chooser APIs" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 23:08:49 +0000 (23:08 +0000)]
Merge "Actually remove the chooser APIs" into oc-dev

7 years agoMerge "Improve rect-level focus ordering" into oc-dev
Evan Rosky [Thu, 13 Apr 2017 23:06:09 +0000 (23:06 +0000)]
Merge "Improve rect-level focus ordering" into oc-dev

7 years agoMerge "AAPT2: Fix order-of-destruction crash" into oc-dev
Adam Lesinski [Thu, 13 Apr 2017 22:53:56 +0000 (22:53 +0000)]
Merge "AAPT2: Fix order-of-destruction crash" into oc-dev

7 years agoMerge changes Icc9c36f7,I723474e2 into oc-dev
Selim Cinek [Thu, 13 Apr 2017 22:52:10 +0000 (22:52 +0000)]
Merge changes Icc9c36f7,I723474e2 into oc-dev

* changes:
  Fixed a crash when expanding
  Fixed the visual appearance on heads-up notifications

7 years agoMerge "Refine BatteryInfo and battery drawable" into oc-dev
Lei Yu [Thu, 13 Apr 2017 21:43:32 +0000 (21:43 +0000)]
Merge "Refine BatteryInfo and battery drawable" into oc-dev

7 years agoMerge "Fix A11y volume persisting/restore" into oc-dev
Jean-Michel Trivi [Thu, 13 Apr 2017 21:32:03 +0000 (21:32 +0000)]
Merge "Fix A11y volume persisting/restore" into oc-dev

7 years agoMerge "TIF: add helper methods for making a channel browsable." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 21:23:45 +0000 (21:23 +0000)]
Merge "TIF: add helper methods for making a channel browsable." into oc-dev

7 years agoMerge "Collect background stats: syncs" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 21:20:10 +0000 (21:20 +0000)]
Merge "Collect background stats: syncs" into oc-dev

7 years agoAddress review suggestions for sensor direct report related APIs
Peng Xu [Fri, 7 Apr 2017 01:37:56 +0000 (18:37 -0700)]
Address review suggestions for sensor direct report related APIs

Changes inline with bug number

Some improvements about SensorDirectChannel class.
  * Complete the doc about creation of SensorDirectChannel object.
  * Make SensorDirectChannel implements java.nio.channels.Channel.
  * Change isValid() to isOpen().
  * Make close() thread safe.
Bug: 36550285

  * Throw exception on failure of SensorManager.createDirectChannel.
  * Change to use NullPointerException when unexpected null pointer
    is passed in.
Bug: 36555061

  * Move SensorManager.configureDirectChannel() to
    SensorDirectChannel.configure().
  * Format SensorDirectChannel.configure() function doc with
    <pre></pre> to maintain the table structure.
  * Reworded Sensor.isDirectChannelTypeSupported java doc.
Bug: 36555604

Test: pass updated cts SensorDirectReportTest
Change-Id: I447121eaf414cbc94292a109a9d93d2e3c89f8f4

7 years agoMerge "Add more NetworkRecommendationProvider documentation." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 20:55:49 +0000 (20:55 +0000)]
Merge "Add more NetworkRecommendationProvider documentation." into oc-dev

7 years agoMerge "Add example to TypedValue.changingConfigurations JavaDoc" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 20:54:24 +0000 (20:54 +0000)]
Merge "Add example to TypedValue.changingConfigurations JavaDoc" into oc-dev

7 years agoMerge "Fix location status bar icon" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 20:26:12 +0000 (20:26 +0000)]
Merge "Fix location status bar icon" into oc-dev

7 years agoMerge "Update docs for obtainStyledAttribute" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 20:15:47 +0000 (20:15 +0000)]
Merge "Update docs for obtainStyledAttribute" into oc-dev

7 years agoMerge "Remove window container from empty task when destroying." into oc-dev
Bryce Lee [Thu, 13 Apr 2017 20:10:39 +0000 (20:10 +0000)]
Merge "Remove window container from empty task when destroying." into oc-dev

7 years agoMerge "BatteryStats: Remove reading of cpu power" into oc-dev
Adam Lesinski [Thu, 13 Apr 2017 20:09:41 +0000 (20:09 +0000)]
Merge "BatteryStats: Remove reading of cpu power" into oc-dev

7 years agoMerge "Add uncached and perspective shadows to Skia renderer" into oc-dev
Jim Van Verth [Thu, 13 Apr 2017 20:01:43 +0000 (20:01 +0000)]
Merge "Add uncached and perspective shadows to Skia renderer" into oc-dev

7 years agoMerge "Add new facility to find out when a PendingIntent is canceled." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 20:01:28 +0000 (20:01 +0000)]
Merge "Add new facility to find out when a PendingIntent is canceled." into oc-dev

7 years agoRange check transfer params in float domain
Romain Guy [Thu, 13 Apr 2017 19:53:15 +0000 (12:53 -0700)]
Range check transfer params in float domain

Our native code uses floats for transfer parameters, the range
check was too small (using the next representable double instead
of the next representable float).

Bug: 37013532
Test: Manual run of broken app, CtsGraphicsTestCases
Change-Id: Id91a3e62068be0abf13ee75e39c758eb106a5f24

7 years agoAAPT2: Fix order-of-destruction crash
Adam Lesinski [Thu, 13 Apr 2017 19:55:19 +0000 (12:55 -0700)]
AAPT2: Fix order-of-destruction crash

Make sure that users of StringPool are destroyed before
the StringPool itself.

Test: valgrind aapt2 optimize -o opt.apk out/target/common/obj/APPS/framework-res_intermediates/package-export.apk
Change-Id: I140c2d32f8449028976795d5d6865d83e1409b53

7 years agoMerge "Fix leak in nav bar" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:55:47 +0000 (19:55 +0000)]
Merge "Fix leak in nav bar" into oc-dev

7 years agoMerge "ECBM SystemProperty cleanup" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:53:09 +0000 (19:53 +0000)]
Merge "ECBM SystemProperty cleanup" into oc-dev

7 years agoMerge "Ensure removeForegroundService checks both lists under lock" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:49:55 +0000 (19:49 +0000)]
Merge "Ensure removeForegroundService checks both lists under lock" into oc-dev

7 years agoMerge "Add developer setting and system API for inband ringing support" into oc-dev
Jack He [Thu, 13 Apr 2017 19:43:49 +0000 (19:43 +0000)]
Merge "Add developer setting and system API for inband ringing support" into oc-dev

7 years agoMerge "Filter instant app content providers" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:43:25 +0000 (19:43 +0000)]
Merge "Filter instant app content providers" into oc-dev

7 years agoMerge "Update mobile data icon" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:37:31 +0000 (19:37 +0000)]
Merge "Update mobile data icon" into oc-dev

7 years agoMerge "Introduce PACKAGE_FIRST_ADDED broadcast" into oc-dev
Chris Tate [Thu, 13 Apr 2017 19:24:08 +0000 (19:24 +0000)]
Merge "Introduce PACKAGE_FIRST_ADDED broadcast" into oc-dev

7 years agoMerge "Introduce setFallbackTypeface" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 19:21:21 +0000 (19:21 +0000)]
Merge "Introduce setFallbackTypeface" into oc-dev

7 years agoMerge "Fix some issues came up from the reviews of the newly added APIs Test: Existin...
Yu Liu [Thu, 13 Apr 2017 19:20:58 +0000 (19:20 +0000)]
Merge "Fix some issues came up from the reviews of the newly added APIs Test: Existing unit tests still pass. BUG: 36554361 Change-Id: I6c2dab2e0df7f8578f92c70907f45aa69909892c" into oc-dev

7 years agoMerge "Quick fix to lockscreen text color." into oc-dev
Daniel Sandler [Thu, 13 Apr 2017 19:06:24 +0000 (19:06 +0000)]
Merge "Quick fix to lockscreen text color." into oc-dev

7 years agoFix A11y volume persisting/restore
Jean-Michel Trivi [Thu, 13 Apr 2017 01:27:01 +0000 (18:27 -0700)]
Fix A11y volume persisting/restore

When the accessibility volume is enabled, its value wasn't persisted
  when changed because it was still using the persisting name from
  its alias (music).
When enabled, notiify the volume controller that a11y volume has
  changed so the UI also reflects the new value, now updated from
  the persisted settings.
Do not persist volumes for streams that don't have a setting name.

Test: enable Talkback, set a11y volume at a different level than media \
  then disable Talkback. Reboot and enable Talkback, verify a11y is \
  restored.
Bug: 36286073

Change-Id: Ic6c30364e164b856fc10fbf6b22c09a7b5561be1

7 years agoCollect background stats: syncs
Bookatz [Thu, 13 Apr 2017 18:59:33 +0000 (11:59 -0700)]
Collect background stats: syncs

Added background times and counts for an app's sync usage.

Bug: 35669746
Test: runtest -x
frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java

Change-Id: I1c01c5044064277b97e8d330386454da3e8204da

7 years agoQuick fix to lockscreen text color.
Dan Sandler [Thu, 13 Apr 2017 18:38:40 +0000 (14:38 -0400)]
Quick fix to lockscreen text color.

Bug: 37299706
Test: visual
Change-Id: Ide48186f0f1cb4a50c77b45ae8b80a79781d7b0d

7 years agoMerge changes from topic 'cp-movies' into oc-dev
Daniel Nishi [Thu, 13 Apr 2017 18:39:53 +0000 (18:39 +0000)]
Merge changes from topic 'cp-movies' into oc-dev

* changes:
  Use the real filters when determining Other Apps.
  Add support for movies & tv apps querying.

7 years agoAdd example to TypedValue.changingConfigurations JavaDoc
Adam Lesinski [Wed, 12 Apr 2017 22:05:53 +0000 (15:05 -0700)]
Add example to TypedValue.changingConfigurations JavaDoc

Also includes a list of possible bits that can be set.

Bug: 36676115
Change-Id: I84fd374a00debb4647719e62cf5a1ef22bb6071c
Test: builds

7 years agoAdd TvProvider methods to block or unblock package, get blocked packages
jiabin [Fri, 31 Mar 2017 20:56:36 +0000 (13:56 -0700)]
Add TvProvider methods to block or unblock package, get blocked packages

Test: gts-tradefed run gts -m GtsTvTestCases
Bug: 36697660
Change-Id: I6464542820a4b56e3145eecdf28ebd422a567040

7 years agoMerge "Switch i18n listeners to use IME hint locales" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 18:23:01 +0000 (18:23 +0000)]
Merge "Switch i18n listeners to use IME hint locales" into oc-dev

7 years agoMerge "don't interpret milliseconds as nanoseconds" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 18:18:23 +0000 (18:18 +0000)]
Merge "don't interpret milliseconds as nanoseconds" into oc-dev

7 years agoMerge "Remove support for auto-paging of cursors." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 18:12:08 +0000 (18:12 +0000)]
Merge "Remove support for auto-paging of cursors." into oc-dev

7 years agoMerge "Address API review for ProxyFileDescriptorCallback" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 18:11:45 +0000 (18:11 +0000)]
Merge "Address API review for ProxyFileDescriptorCallback" into oc-dev

7 years agoFix location status bar icon
Jason Monk [Thu, 13 Apr 2017 14:40:40 +0000 (10:40 -0400)]
Fix location status bar icon

It should have been in PhoneStatusBarPolicy, since it wasn't it
wouldn't listen until something else touched the LocationController
like QS.

Test: Open app that uses location
Change-Id: I70d1aff2a1c9bf7be53aeb72ba285b49d98c5362
Fixes: 36747248

7 years agoAdd new facility to find out when a PendingIntent is canceled.
Dianne Hackborn [Thu, 13 Apr 2017 18:01:48 +0000 (11:01 -0700)]
Add new facility to find out when a PendingIntent is canceled.

This is just an internal API in the platform, not (yet?) available
in the SDK.  But it will be useful for system services that want to
clean up state if a pending intent that has been registered with them
is canceled (either explicitly by the app, through the app being
uninstalled, etc).

Also improve the activity manager's dump of pending intents to
organize them by package, making it much easier to read (now that
we have so many active pending intents these days).

Test: ran and booted.  no CTS, since no API.

Change-Id: Iad029cfedcd77e87357eca7da1b6ae94451dd981

7 years agoActually remove the chooser APIs
Makoto Onuki [Mon, 3 Apr 2017 20:59:39 +0000 (13:59 -0700)]
Actually remove the chooser APIs

Test: build
Bug: 36186790
Change-Id: Ib03bb482c266f4c4f1080ca776c738d11a175219

7 years agoMerge "doc: Add note to Context.bindService()" into oc-dev
Andrew Solovay [Thu, 13 Apr 2017 17:46:13 +0000 (17:46 +0000)]
Merge "doc: Add note to Context.bindService()" into oc-dev

7 years agoEnsure removeForegroundService checks both lists under lock
Geoffrey Pitsch [Thu, 13 Apr 2017 17:44:09 +0000 (13:44 -0400)]
Ensure removeForegroundService checks both lists under lock

Prior CL didn't lock properly and would still fail if a
notification was both enqueued and posted at the same time.

Test: runtest systemui-notification
Change-Id: I1bdd779ecb872f1a02ffc38b6007239eb522b521
Fixes: 36550043

7 years agoFix leak in nav bar
Jason Monk [Thu, 13 Apr 2017 17:41:23 +0000 (13:41 -0400)]
Fix leak in nav bar

Test: runtest systemui
Change-Id: Ib082ef216f1541911acbed84942ddfd5dd065a7f
Fixes: 37220220

7 years agoAdd more NetworkRecommendationProvider documentation.
Jeremy Joslin [Thu, 13 Apr 2017 17:33:26 +0000 (10:33 -0700)]
Add more NetworkRecommendationProvider documentation.

Documented the requirements for becoming a network recommendation
provider.

Test: Built
Bug: 33632378
Change-Id: I8ec037c8688b250514cbe25a13434c7b8bef8327

7 years agoMerge "Docs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8...
Android Build Merger (Role) [Thu, 13 Apr 2017 17:29:09 +0000 (17:29 +0000)]
Merge "Docs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8cb am: 2d642f9e2d am: f125662db1" into oc-dev

7 years agoMerge "Add SkiaCanvas::captureCanvasState()" into oc-dev
Matt Sarett [Thu, 13 Apr 2017 17:28:55 +0000 (17:28 +0000)]
Merge "Add SkiaCanvas::captureCanvasState()" into oc-dev

7 years agoMerge "Always call unbind." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 17:28:47 +0000 (17:28 +0000)]
Merge "Always call unbind." into oc-dev

7 years agoDocs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8cb...
Dave Friedman [Thu, 13 Apr 2017 17:28:18 +0000 (17:28 +0000)]
Docs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8cb am: 2d642f9e2d
am: f125662db1

Change-Id: Ic69e95f68255e5e0bea646cdce2c56881586d24d

7 years agoDocs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8cb
Dave Friedman [Thu, 13 Apr 2017 17:19:36 +0000 (17:19 +0000)]
Docs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb am: 4eff74f8cb
am: 2d642f9e2d

Change-Id: I5257f51a37e6e45a928befea94b2ecdb0cf01f45

7 years agoRemove window container from empty task when destroying.
Bryce Lee [Thu, 13 Apr 2017 17:02:51 +0000 (10:02 -0700)]
Remove window container from empty task when destroying.

Previously, the window container was being removed whenever we were
removing the task in a destroy mode. However, this caused issues
where an activity may still be present in the task record, leading to
a subequent change to limit this to tasks with overlays. This led to
the situation where the window container would not be destroyed when
it was supposed to, such as moving an activity to recents, but
otherwise destroying.

This changelist addresses the issue by always removing the window
container from tasks when removed from their parent stack in a
destroy mode and empty. In the recents flow, this will fire and
cleanup when the activity is destroyed.

Change-Id: I87548d6ff8e4d77b6294504d7cc78370cd5d31fa
Fixes: 37301159
Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackTests

7 years agoMerge "Introduce FontsContract.requestFont and deprecate Typeface.create" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 17:13:31 +0000 (17:13 +0000)]
Merge "Introduce FontsContract.requestFont and deprecate Typeface.create" into oc-dev

7 years agoUpdate mobile data icon
Jason Monk [Thu, 13 Apr 2017 17:13:19 +0000 (13:13 -0400)]
Update mobile data icon

Test: visual
Change-Id: I21be005b0f4c4371b616377be77025412c2b58e6
Fixes: 35996345

7 years agoFixed a crash when expanding
Selim Cinek [Fri, 7 Apr 2017 00:38:27 +0000 (17:38 -0700)]
Fixed a crash when expanding

When expanding another notification while one was finishing
the animation, the system would crash.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/ExpandHelperTest.java
Change-Id: Icc9c36f7e3bc93ff80f974d400efd3194fa8ed09
Fixes: 36531729

7 years agoIntroduce setFallbackTypeface
Seigo Nonaka [Fri, 31 Mar 2017 21:30:05 +0000 (14:30 -0700)]
Introduce setFallbackTypeface

setFallbackTypeface is returned by Builder.build() method when the
provided font is not loaded due to some reasons.
The fallback family is resolved with width/italic passed to Builder.

Bug: 36794225
Test: android.graphics.cts.TypefaceTest passes
Change-Id: I65e220aca823fd815a52437b11c8e6dc952de8e2

7 years agoMerge "Fix the issue of voice interactor getting reset after reboot." into oc-dev
Sudheer Shanka [Thu, 13 Apr 2017 17:09:55 +0000 (17:09 +0000)]
Merge "Fix the issue of voice interactor getting reset after reboot." into oc-dev

7 years agoMerge "Listen to RSSI_CHANGED_ACTION broadcasts in WifiTracker." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 17:08:00 +0000 (17:08 +0000)]
Merge "Listen to RSSI_CHANGED_ACTION broadcasts in WifiTracker." into oc-dev

7 years agoMerge "Allow notification channels to be silent." into oc-dev
Julia Reynolds [Thu, 13 Apr 2017 17:07:41 +0000 (17:07 +0000)]
Merge "Allow notification channels to be silent." into oc-dev

7 years agoDocs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb
Dave Friedman [Thu, 13 Apr 2017 17:06:11 +0000 (17:06 +0000)]
Docs: Fixes broken link in Javadoc. am: df0fd34d50 am: 506a8b39fb
am: 4eff74f8cb

Change-Id: Id237b5c6ead732111feb29e1dc0dcd8a444366ee

7 years agoDocs: Fixes broken link in Javadoc. am: df0fd34d50
Dave Friedman [Thu, 13 Apr 2017 17:00:44 +0000 (17:00 +0000)]
Docs: Fixes broken link in Javadoc. am: df0fd34d50
am: 506a8b39fb

Change-Id: If60b7db71fe92508daaec1255c637927432d7b55

7 years agoMerge "Update API, add more documentation on AdaptiveIconDrawable" into oc-dev
Hyunyoung Song [Thu, 13 Apr 2017 16:53:37 +0000 (16:53 +0000)]
Merge "Update API, add more documentation on AdaptiveIconDrawable" into oc-dev

7 years agoMerge "Add persistentFeature application attribute." into oc-dev
Martijn Coenen [Thu, 13 Apr 2017 16:53:18 +0000 (16:53 +0000)]
Merge "Add persistentFeature application attribute." into oc-dev

7 years agoMerge "Add transfer mode support to ShapeDrawable" into oc-dev
Lucas Dupin [Thu, 13 Apr 2017 16:51:58 +0000 (16:51 +0000)]
Merge "Add transfer mode support to ShapeDrawable" into oc-dev

7 years agoMerge "Companion device mgr doesn't always exist" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 16:50:47 +0000 (16:50 +0000)]
Merge "Companion device mgr doesn't always exist" into oc-dev

7 years agoDocs: Fixes broken link in Javadoc.
Dave Friedman [Thu, 13 Apr 2017 16:48:41 +0000 (16:48 +0000)]
Docs: Fixes broken link in Javadoc.
am: df0fd34d50

Change-Id: I76ed5361426065d5e532c5a11c2d11f28ba8c2d7

7 years agoMerge "Fix issue with non-focusable PiP activities being resumed." into oc-dev
Winson Chung [Thu, 13 Apr 2017 16:01:48 +0000 (16:01 +0000)]
Merge "Fix issue with non-focusable PiP activities being resumed." into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 15:54:59 +0000 (15:54 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 15:42:26 +0000 (15:42 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 15:27:22 +0000 (15:27 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 15:26:24 +0000 (15:26 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge changes I33ac2b52,I5ab8bb11 into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 15:26:00 +0000 (15:26 +0000)]
Merge changes I33ac2b52,I5ab8bb11 into oc-dev

* changes:
  Captive portal: fix probe urls at network creation
  NetworkMonitor: improve captive portal validation logs

7 years agoAdd SkiaCanvas::captureCanvasState()
Matt Sarett [Thu, 13 Apr 2017 13:33:18 +0000 (09:33 -0400)]
Add SkiaCanvas::captureCanvasState()

Test: Verified bug is fixed.  Wrote unit test.

Bug: 37268771

Change-Id: I9deb7db353cd2129ad245e7f65419670463bb717

7 years agoCompanion device mgr doesn't always exist
Julia Reynolds [Thu, 13 Apr 2017 14:54:01 +0000 (10:54 -0400)]
Companion device mgr doesn't always exist

E.g. on tvs.

Test: runtest systemui-notification
Change-Id: I1f1fd3cc5d361d3854eef5e5726816b50f5d7eb6
Fixes: 37276184

7 years agoAllow notification channels to be silent.
Julia Reynolds [Wed, 12 Apr 2017 17:27:58 +0000 (13:27 -0400)]
Allow notification channels to be silent.

This better accomodates those apps that play their own sounds.
Since most apps don't play their own sounds, update the documentation
on notificationchannel to add guidance about when they should add a
sound.

Fixes: 37237013
Test: runtest systemui-notification
Change-Id: If00b15b1b44da66d24dacb2895e9a6c0a06d1890

7 years agoOnly foreground notis should be sorted higher
Julia Reynolds [Wed, 12 Apr 2017 16:27:00 +0000 (12:27 -0400)]
Only foreground notis should be sorted higher

Having the ongoing flag is not enough.

Test: runtest systemui-notification
Change-Id: I8a6c15af819f2bb4ad3937ae45d33361663fbe13

7 years agoMerge "Document examples where a developer might use the APIs." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 14:41:55 +0000 (14:41 +0000)]
Merge "Document examples where a developer might use the APIs." into oc-dev

7 years agoMerge "Debugging issue #37272284: ActivityManager: SELinux tag not defined" into...
TreeHugger Robot [Thu, 13 Apr 2017 14:32:37 +0000 (14:32 +0000)]
Merge "Debugging issue #37272284: ActivityManager: SELinux tag not defined" into oc-dev

7 years agoIntroduce FontsContract.requestFont and deprecate Typeface.create
Seigo Nonaka [Tue, 11 Apr 2017 22:59:58 +0000 (15:59 -0700)]
Introduce FontsContract.requestFont and deprecate Typeface.create

Since background fetch should be synchronized with life cycle of
Activities, so should not create new background thread inside this
method. Not to break existing apps, mark as deprecated and will be
removed from public API untile next release.

New API accepts Handler so that the developer can pass their own thread
.

Test: TBD
Bug: 37253785
Change-Id: I87fdc6a354a829db679253824f42489f25698fa0

7 years agoMerge "Introduce FontsContract.fetchFonts and expose URI for watching." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 13:22:06 +0000 (13:22 +0000)]
Merge "Introduce FontsContract.fetchFonts and expose URI for watching." into oc-dev

7 years agoAdd uncached and perspective shadows to Skia renderer
Jim Van Verth [Wed, 12 Apr 2017 18:08:46 +0000 (14:08 -0400)]
Add uncached and perspective shadows to Skia renderer

Test: manual - looked at FrameworkShadow app

Bug: 37300468
Change-Id: I72d820479141db2d83363747d9f76abbaca70d98

7 years agoDocument examples where a developer might use the APIs.
Niels Egberts [Wed, 12 Apr 2017 14:03:10 +0000 (15:03 +0100)]
Document examples where a developer might use the APIs.

Test: mmma frameworks/base/
Bug: 35767714

Change-Id: I845db36869b84a18e79d7fe28f10031cfe836617

7 years agoMerge "Add hidden API startActivityForResultAsUser" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 12:13:00 +0000 (12:13 +0000)]
Merge "Add hidden API startActivityForResultAsUser" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 13 Apr 2017 11:43:14 +0000 (04:43 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "ViewRoot: More surgically fix child-life time." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 08:25:05 +0000 (08:25 +0000)]
Merge "ViewRoot: More surgically fix child-life time." into oc-dev

7 years agoMerge "Binder: Be forceful about a forceful exit." into oc-dev
Narayan Kamath [Thu, 13 Apr 2017 08:16:45 +0000 (08:16 +0000)]
Merge "Binder: Be forceful about a forceful exit." into oc-dev

7 years agoMerge "Remove supportsDismissingSelfWindow attribute of IME" into oc-dev
Tadashi G. Takaoka [Thu, 13 Apr 2017 07:41:29 +0000 (07:41 +0000)]
Merge "Remove supportsDismissingSelfWindow attribute of IME" into oc-dev

7 years agoMerge "Stack APPLICATION_MEDIA_OVERLAY windows with relative layering." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 07:12:51 +0000 (07:12 +0000)]
Merge "Stack APPLICATION_MEDIA_OVERLAY windows with relative layering." into oc-dev

7 years agoMerge "Minor text fixes." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 07:00:54 +0000 (07:00 +0000)]
Merge "Minor text fixes." into oc-dev

7 years agoMerge "AAPT2: Generate R.txt" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 06:54:18 +0000 (06:54 +0000)]
Merge "AAPT2: Generate R.txt" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 13 Apr 2017 06:53:10 +0000 (23:53 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Catch exceptions in Vibrator to maintain compatibility" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 06:48:25 +0000 (06:48 +0000)]
Merge "Catch exceptions in Vibrator to maintain compatibility" into oc-dev

7 years agoMerge "OMS: Fix bug where overlay settings wouldn't persist" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 06:42:48 +0000 (06:42 +0000)]
Merge "OMS: Fix bug where overlay settings wouldn't persist" into oc-dev

7 years agoMerge changes from topic 'api-review' into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 06:23:45 +0000 (06:23 +0000)]
Merge changes from topic 'api-review' into oc-dev

* changes:
  MediaCas: combine openSession methods
  MediaCas: address comments for API reviews

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 13 Apr 2017 05:38:20 +0000 (22:38 -0700)]
Import translations. DO NOT MERGE

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

7 years agoFix issue with non-focusable PiP activities being resumed.
Winson Chung [Thu, 13 Apr 2017 04:53:59 +0000 (21:53 -0700)]
Fix issue with non-focusable PiP activities being resumed.

- When the change to finish activities was made in ag/2067154, it exposed
  an issue in pinned stacks where we would resume the next top activity
  once the top activity finished pausing. Normally, the pinned stack is
  not focusable, but since it has an alwaysFocusable menu activity it
  becomes the focused stack and falls into this case.

  Instead of finding the next top activity, we need to find the next top
  focusable activity to resume, and fall through to focusing the top
  activity in the next focusable stack if there is none.

Bug: 37199067
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testNoResumeAfterTaskOverlayFinishes
Change-Id: Ib79826ff38bb3beb38a40183ddc6819e5040bb27

7 years agoStack APPLICATION_MEDIA_OVERLAY windows with relative layering.
Robert Carr [Tue, 11 Apr 2017 01:34:33 +0000 (18:34 -0700)]
Stack APPLICATION_MEDIA_OVERLAY windows with relative layering.

See accompanying frameworks/native commit
 "SurfaceFlinger: Add parent-less relative layering" for a full explanation.

Test: Manual of bug repro steps. Plus tests for new SurfaceControl functionality included in frameworks/native.
Bug: 36693738
Change-Id: Ic54598117c1f44a206d33f03d0cc463fbef43fcc