OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Make some intents public in SubscriptionManager." into oc-dev
Sanket Padawe [Mon, 3 Apr 2017 22:10:24 +0000 (22:10 +0000)]
Merge "Make some intents public in SubscriptionManager." into oc-dev

7 years agoMerge "TIF: Rename COLUMN_APP_LINK_INTENT_URI to COLUMN_INTENT_URI" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 21:46:32 +0000 (21:46 +0000)]
Merge "TIF: Rename COLUMN_APP_LINK_INTENT_URI to COLUMN_INTENT_URI" into oc-dev

7 years agoMerge "Remove workaround for end() not supported in some app" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 21:41:12 +0000 (21:41 +0000)]
Merge "Remove workaround for end() not supported in some app" into oc-dev

7 years agoMerge "Make Color non-final because apps break..." into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 21:21:13 +0000 (21:21 +0000)]
Merge "Make Color non-final because apps break..." into oc-dev

7 years agoMerge "Javadoc fix for View.setTooltipText" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 20:55:11 +0000 (20:55 +0000)]
Merge "Javadoc fix for View.setTooltipText" into oc-dev

7 years agoMerge "Persistent connection to DO/PO service." into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 20:35:14 +0000 (20:35 +0000)]
Merge "Persistent connection to DO/PO service." into oc-dev

7 years agoTIF: Rename COLUMN_APP_LINK_INTENT_URI to COLUMN_INTENT_URI
Dongwon Kang [Fri, 24 Mar 2017 00:05:38 +0000 (17:05 -0700)]
TIF: Rename COLUMN_APP_LINK_INTENT_URI to COLUMN_INTENT_URI

Test: cts-tradefed run cts -m CtsTvTestCases
Bug: 35856179
Change-Id: I284cb1b764203c646e3edb3f105d90d59a7688d1

7 years agoMerge "Revert "Push chooser targets to the shortcut manager."" into oc-dev
Makoto Onuki [Mon, 3 Apr 2017 19:45:08 +0000 (19:45 +0000)]
Merge "Revert "Push chooser targets to the shortcut manager."" into oc-dev

7 years agoMerge "Fix menu visibility while updating dismiss fraction." into oc-dev
Winson Chung [Mon, 3 Apr 2017 19:22:54 +0000 (19:22 +0000)]
Merge "Fix menu visibility while updating dismiss fraction." into oc-dev

7 years agoMerge "Add test API for if the device supports QS" into oc-dev
Jason Monk [Mon, 3 Apr 2017 19:11:36 +0000 (19:11 +0000)]
Merge "Add test API for if the device supports QS" into oc-dev

7 years agoRemove workaround for end() not supported in some app
Doris Liu [Mon, 3 Apr 2017 18:08:11 +0000 (11:08 -0700)]
Remove workaround for end() not supported in some app

BUG: 36241584
Test: Follow repro steps of comment #1 in the bug above

Change-Id: I1bf27a7cc9cc2bd398c372623d7978e838f1d8b2

7 years agoMake Color non-final because apps break...
Romain Guy [Mon, 3 Apr 2017 18:49:20 +0000 (11:49 -0700)]
Make Color non-final because apps break...

Bug: 36858735
Test: Manual run of crashing app
Change-Id: I3eb06260074ee6950bc91731e7093a26d7e32b49

7 years agoJavadoc fix for View.setTooltipText
Vladislav Kaznacheev [Thu, 30 Mar 2017 00:14:37 +0000 (17:14 -0700)]
Javadoc fix for View.setTooltipText

Change "unless is not handled" to "unless it is handled"

Bug: 36668465
Test: read the Javadoc
Change-Id: I432f24e313358b4448aff2ff9de382d4a58652bc

7 years agoMerge "Add friction icon for metered networks." into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 18:23:56 +0000 (18:23 +0000)]
Merge "Add friction icon for metered networks." into oc-dev

7 years agoMerge "Ensuring multi-window callbacks contain new configuration and are in order...
Winson Chung [Mon, 3 Apr 2017 18:23:24 +0000 (18:23 +0000)]
Merge "Ensuring multi-window callbacks contain new configuration and are in order" into oc-dev

7 years agoMerge "Fixing regression in PiP TV." into oc-dev
Winson Chung [Mon, 3 Apr 2017 18:22:35 +0000 (18:22 +0000)]
Merge "Fixing regression in PiP TV." into oc-dev

7 years agoMerge "Move CALL_PRIVILEGED/EMERGENCY to @SystemApi" into oc-dev
Brad Ebinger [Mon, 3 Apr 2017 18:12:37 +0000 (18:12 +0000)]
Merge "Move CALL_PRIVILEGED/EMERGENCY to @SystemApi" into oc-dev

7 years agoFix menu visibility while updating dismiss fraction.
Winson Chung [Mon, 3 Apr 2017 17:44:57 +0000 (10:44 -0700)]
Fix menu visibility while updating dismiss fraction.

Bug: 36225602
Test: Enter PIP, move, tap field to show IME
Change-Id: Idf47728a2fa40703e4e68b2cc0925167b8e80c0c

7 years agoMerge "Rename READ_PHONE_NUMBER to READ_PHONE_NUMBERS" into oc-dev
Chad Brubaker [Mon, 3 Apr 2017 17:34:03 +0000 (17:34 +0000)]
Merge "Rename READ_PHONE_NUMBER to READ_PHONE_NUMBERS" into oc-dev

7 years agoMerge "Fix some WM unit tests" into oc-dev
Andrii Kulian [Mon, 3 Apr 2017 17:33:56 +0000 (17:33 +0000)]
Merge "Fix some WM unit tests" into oc-dev

7 years agoMerge "Use KB instead of kB." into oc-dev
Daniel Nishi [Mon, 3 Apr 2017 17:25:09 +0000 (17:25 +0000)]
Merge "Use KB instead of kB." into oc-dev

7 years agoMake some intents public in SubscriptionManager.
Sanket Padawe [Fri, 31 Mar 2017 19:39:50 +0000 (12:39 -0700)]
Make some intents public in SubscriptionManager.

+ As per https://docs.google.com/document/d/1K8C7Ly8YVu032FQlwEdkv3ovcTYQCTvy0PaMax5PmZI/edit#heading=h.g6rt8vhyfjj1

Bug: 36572866
Test: Builds successfully.
Change-Id: Ibb1d1faae9a002ccb530446e24897955c12076e1

7 years agoMerge "Fix deleting Misc channel for o-aps" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 16:53:49 +0000 (16:53 +0000)]
Merge "Fix deleting Misc channel for o-aps" into oc-dev

7 years agoMerge "Expose instant app to exposed providers" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 16:43:02 +0000 (16:43 +0000)]
Merge "Expose instant app to exposed providers" into oc-dev

7 years agoMerge "Disable sounds on menu button" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 16:37:44 +0000 (16:37 +0000)]
Merge "Disable sounds on menu button" into oc-dev

7 years agoMerge "Fix battery icon dark initialization" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 16:37:07 +0000 (16:37 +0000)]
Merge "Fix battery icon dark initialization" into oc-dev

7 years agoMerge "Allow committing allowing state loss on detached FragmentManager." into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 16:34:12 +0000 (16:34 +0000)]
Merge "Allow committing allowing state loss on detached FragmentManager." into oc-dev

7 years agoFixing regression in PiP TV.
Winson Chung [Sat, 1 Apr 2017 02:42:32 +0000 (19:42 -0700)]
Fixing regression in PiP TV.

- Don't clobber the state if we are deferring resizing due to finishing
  activities.
- Fix issue with PiP tasks being visible after the stack is removed, due
  to it being put below a non-fullscreen task in the fullscreen stack.
  Instead just move it to the back of the stack.

Bug: 36592307
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: Ia18fe155b8a045a8ffea84612fd08af3ef3982d8

7 years agoMerge "Fix broken perf tests" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 15:57:34 +0000 (15:57 +0000)]
Merge "Fix broken perf tests" into oc-dev

7 years agoMerge "QS: Add transient animations for bluetooth and wifi" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 15:37:13 +0000 (15:37 +0000)]
Merge "QS: Add transient animations for bluetooth and wifi" into oc-dev

7 years agoMerge "Fix losing status bar icons on config changes" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 15:05:34 +0000 (15:05 +0000)]
Merge "Fix losing status bar icons on config changes" into oc-dev

7 years agoMerge "Implement service filtering" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 14:45:52 +0000 (14:45 +0000)]
Merge "Implement service filtering" into oc-dev

7 years agoMerge "Add app bounds to configuration." into oc-dev
Bryce Lee [Mon, 3 Apr 2017 14:30:42 +0000 (14:30 +0000)]
Merge "Add app bounds to configuration." into oc-dev

7 years agoFix deleting Misc channel for o-aps
Geoffrey Pitsch [Mon, 3 Apr 2017 14:19:11 +0000 (10:19 -0400)]
Fix deleting Misc channel for o-aps

Change-Id: If5ebebcd1b983e12dee860801db578dfe882bd9c
Fixes: 36816111
Test: runtest systemui-notification

7 years agoFix broken perf tests
Diego Perez [Mon, 27 Mar 2017 15:49:17 +0000 (16:49 +0100)]
Fix broken perf tests

Do not dispose Bridge on tearDown. The concept of disposing the Bridge
only made sense when we were loading it dynamically. Some classes have
static initializers that will fail after the dispose (like Typeface).

Test: N/A
Change-Id: I9c934432232bda02a4d26425587096fb6dc957b0
(cherry picked from commit f1532e36e16e2b55f175a24f11df91cf344833ff)

7 years agoMerge "standardize network policy notification IDs" into oc-dev
Chris Wren [Mon, 3 Apr 2017 13:42:38 +0000 (13:42 +0000)]
Merge "standardize network policy notification IDs" into oc-dev

7 years agoMerge "Switch cast over to support library dialog" into oc-dev
Jason Monk [Mon, 3 Apr 2017 13:34:13 +0000 (13:34 +0000)]
Merge "Switch cast over to support library dialog" into oc-dev

7 years agoRevert "Temporarily bg-whitelist the default container package-cleaning service"
Jorim Jaggi [Mon, 3 Apr 2017 12:40:39 +0000 (14:40 +0200)]
Revert "Temporarily bg-whitelist the default container package-cleaning service"

Causes bootloop.

This reverts commit f16e7423c79c4ccccf43265a5b1966eb8e7f7be7.

7 years agoMerge "Revert "Whitelist ManagedProvisioning from bg check"" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 11:06:53 +0000 (11:06 +0000)]
Merge "Revert "Whitelist ManagedProvisioning from bg check"" into oc-dev

7 years agoMerge "Prevent NPE when draw is called without bounds being set Test: unit test insid...
TreeHugger Robot [Mon, 3 Apr 2017 09:52:13 +0000 (09:52 +0000)]
Merge "Prevent NPE when draw is called without bounds being set Test: unit test inside AdaptiveIconDrawableTest.java" into oc-dev

7 years agoMerge "Lower-level user enumeration; fix disabled bug." into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 08:36:04 +0000 (08:36 +0000)]
Merge "Lower-level user enumeration; fix disabled bug." into oc-dev

7 years agoMerge "We really want f_frsize and f_bavail." into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 07:37:44 +0000 (07:37 +0000)]
Merge "We really want f_frsize and f_bavail." into oc-dev

7 years agoMerge "Camera: add batching support to HAL1 recording path" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 07:34:01 +0000 (07:34 +0000)]
Merge "Camera: add batching support to HAL1 recording path" into oc-dev

7 years agoPrevent NPE when draw is called without bounds being set
Hyunyoung Song [Mon, 3 Apr 2017 07:23:49 +0000 (00:23 -0700)]
Prevent NPE when draw is called without bounds being set
Test: unit test inside AdaptiveIconDrawableTest.java

Change-Id: Ic3260ce9c6bae595c7eba7be1cd7ae249939a1cf

7 years agoMerge "Process FuseAppLoop messages in Handler.Callback" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 06:54:59 +0000 (06:54 +0000)]
Merge "Process FuseAppLoop messages in Handler.Callback" into oc-dev

7 years agoLower-level user enumeration; fix disabled bug.
Jeff Sharkey [Mon, 3 Apr 2017 05:42:17 +0000 (23:42 -0600)]
Lower-level user enumeration; fix disabled bug.

UserManager may not have been started yet, so discover users by
looking at filesystem.

Fix disabled bug where default should be "false."

Test: builds, boots
Bug: 36794413
Change-Id: If91fd27b955175072228a93aab4b8ac3b27df0bf

7 years agoWe really want f_frsize and f_bavail.
Jeff Sharkey [Mon, 3 Apr 2017 05:24:40 +0000 (23:24 -0600)]
We really want f_frsize and f_bavail.

It's confusing, but f_bsize is not the value you're looking for; the
real block size is f_frsize.  Fix all those bugs.

Also, the vast majority of clients are interested in the usable
disk space, not including reserved space.

Test: builds, boots
Bug: 36840579
Change-Id: Ib1470389afd49c14cab62282ec1e978ebb2c4791

7 years agoProcess FuseAppLoop messages in Handler.Callback
Daichi Hirono [Mon, 3 Apr 2017 04:18:40 +0000 (13:18 +0900)]
Process FuseAppLoop messages in Handler.Callback

Previously FuseAppLoop instantiates Runnable for each command, which
causes lots of instantiation and GC.

Test: CTS
Bug: 35229514
Change-Id: Ifea098e5ade044b1a954c0b714c5b3270a95cd1a

7 years agoEnforce PACKAGE_USAGE_STATS for usage data.
Jeff Sharkey [Fri, 31 Mar 2017 20:08:23 +0000 (14:08 -0600)]
Enforce PACKAGE_USAGE_STATS for usage data.

Some system services are offering package usage data through both
public/system APIs and through dump() calls.  In principle, usage
data hould always be protected with PACKAGE_USAGE_STATS, so start
enforcing that.  (Otherwise if a user blocked PACKAGE_USAGE_STATS
access to an app, that app could still obtain the data via dump()
if they held the DUMP permission.)

Bottom line, let's respect the user's wishes.

Protecting the entire output like this is pretty blunt, but future
CLs can add more nuance to the output if desired.

Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest
Bug: 32806790
Change-Id: I46173562713bea7d89e12a4313c78eb52ea8d77d

7 years agoConsistent dump() permission checking.
Jeff Sharkey [Fri, 31 Mar 2017 20:08:23 +0000 (14:08 -0600)]
Consistent dump() permission checking.

This change introduces new methods on DumpUtils that can check if the
caller has DUMP and/or PACKAGE_USAGE_STATS access.  It then moves all
existing dump() methods to use these checks so that we emit
consistent error messages.

Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest
Bug: 32806790
Change-Id: Iaff6b9506818ee082b1e169c89ebe1001b3bfeca

7 years agoMerge "Override bidi property of new emojis" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 00:21:50 +0000 (00:21 +0000)]
Merge "Override bidi property of new emojis" into oc-dev

7 years agoCamera: add batching support to HAL1 recording path
Yin-Chia Yeh [Wed, 22 Mar 2017 01:48:44 +0000 (18:48 -0700)]
Camera: add batching support to HAL1 recording path

Test: Angler HAL1 + batching normal recording mode
Bug: 35997432
Change-Id: Ibe82e7fed8d6e57291e0c009fb26ce156e66eee7

7 years agoMerge "move network notification IDs to central registry" into oc-dev
Chris Wren [Sat, 1 Apr 2017 16:15:30 +0000 (16:15 +0000)]
Merge "move network notification IDs to central registry" into oc-dev

7 years agoMerge changes from topic 'bt5-cherry-pickery-1' into oc-dev
Jakub Pawlowski [Sat, 1 Apr 2017 15:28:29 +0000 (15:28 +0000)]
Merge changes from topic 'bt5-cherry-pickery-1' into oc-dev

* changes:
  Bluetooth 5 advertising duration refactoring (4/4)
  Bluetooth LE Advertising minor improvements
  Fix advertise data size estimation
  Hide periodic scanning
  Bluetooth API spelling fixes ("wether" -> "whether")

7 years agoBluetooth 5 advertising duration refactoring (4/4)
Jakub Pawlowski [Fri, 31 Mar 2017 02:10:08 +0000 (19:10 -0700)]
Bluetooth 5 advertising duration refactoring (4/4)

Expose both duration and maximum extended advertising events to limit
advertising time.

Test: manual
Bug: 30622771
Change-Id: I44df300995ef985526b93f8c24389775720b3432
(cherry picked from commit 5a355610fe6ac0460f7130375de97b4d7bae7ba4)

7 years agoBluetooth LE Advertising minor improvements
Jakub Pawlowski [Thu, 30 Mar 2017 18:19:24 +0000 (11:19 -0700)]
Bluetooth LE Advertising minor improvements

This patch adds some additional error checking for the advertising set
parameters, and some more comments.

Test: manual
Bug: 30622771
Change-Id: I87bd44f4179ef63694ad3ed656dc2acc52e40f1e
(cherry picked from commit f4ed33f5fa6ffa3bda6faff773a3fb90b16a760c)

7 years agoFix advertise data size estimation
Jakub Pawlowski [Fri, 31 Mar 2017 23:49:13 +0000 (16:49 -0700)]
Fix advertise data size estimation

UUID in service data field can be 2, 4, or 16 bytes long.

Test: manual
Bug: 36553478
Change-Id: Ib5ba2d16065496ca311e8642a15a7ea6bc84d4c1
(cherry picked from commit 72e9e9f81504559ca18b71358203b1b39d9f0581)

7 years agoHide periodic scanning
Jakub Pawlowski [Thu, 30 Mar 2017 00:00:44 +0000 (17:00 -0700)]
Hide periodic scanning

Bug: 30622771
Test: manual
Change-Id: I5d786b13cf99287732e16769e2563ac7c4fe715c
(cherry picked from commit 63fad69a19bbfe78e64d56c9d775ddf6d7cd84c9)

7 years agoBluetooth API spelling fixes ("wether" -> "whether")
Jakub Pawlowski [Thu, 23 Mar 2017 05:44:09 +0000 (22:44 -0700)]
Bluetooth API spelling fixes ("wether" -> "whether")

Bug: 30622771
Test: manual
Change-Id: I01c8b18d0057f2fd6e477ce2ca0b779321b6c0e6
(cherry picked from commit 08ed924d8922eec0555f6a860d80e6e2770c8a2d)

7 years agoMerge "Revert "Layoutlib changes to support the new ResourceUrl"" into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 05:31:01 +0000 (05:31 +0000)]
Merge "Revert "Layoutlib changes to support the new ResourceUrl"" into oc-dev

7 years agoAdd app bounds to configuration.
Bryce Lee [Thu, 30 Mar 2017 16:34:15 +0000 (09:34 -0700)]
Add app bounds to configuration.

The system previously overrode the display size for a specific scope
(task/activity/etc.) by setting the associated Configuration's
screenWidthDp/screenHeightDp. This leads to two issues. First, the
conversion of screen size from pixels to display independent pixels
and then upconverting later on leads to rounding errors. Secondly,
the screenWidthDp and screenHeightDp values account for insets, such
as the status bar. These however are not reflected in the display
size when returned from Display#getMetrics/getSize.

This changelist addresses the issue by adding a Rect value to
Configuration which stores the app display bounds. This is always set
at the display level and overridden as appropriate. As the proper
app insets are accounted for at the root configuration, all overrides
(outside of specific exceptions) are the result of the intersection
between the requested bound and the parent bound.

Change-Id: I2c4fcd0bee92af12aabbca258de05b4ec061d0e1
Fixes: 34338931
Bug: 36812336
Bug: 36676979
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsAppTestCases android.app.cts.AspectRatioTests
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerDisplayTests
Test: bit FrameworksServicesTests:com.android.server.wm.AppBoundsTests

7 years agoMerge changes from topic 'bitmapfactory-options-outdecodecolorspace' into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 04:17:41 +0000 (04:17 +0000)]
Merge changes from topic 'bitmapfactory-options-outdecodecolorspace' into oc-dev

* changes:
  Documentation for PorterDuffXfermode
  Query color space before decoding a bitmap

7 years agoMerge "Fix tuner sub-screens attach" into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 04:16:36 +0000 (04:16 +0000)]
Merge "Fix tuner sub-screens attach" into oc-dev

7 years agoMerge "Bluetooth: Add additional BluetoothSocket logging to root cause errors" into...
TreeHugger Robot [Sat, 1 Apr 2017 03:38:07 +0000 (03:38 +0000)]
Merge "Bluetooth: Add additional BluetoothSocket logging to root cause errors" into oc-dev

7 years agoMerge "Handle disabled packages as removed." into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 03:16:35 +0000 (03:16 +0000)]
Merge "Handle disabled packages as removed." into oc-dev

7 years agoMerge "Add TYPE_PREVIEW in the javadoc of Channels.COLUMN_TYPE" into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 03:01:00 +0000 (03:01 +0000)]
Merge "Add TYPE_PREVIEW in the javadoc of Channels.COLUMN_TYPE" into oc-dev

7 years agoMerge changes from topic 'fix_activity_changed_cb-oc-dev_style_things' into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 02:52:08 +0000 (02:52 +0000)]
Merge changes from topic 'fix_activity_changed_cb-oc-dev_style_things' into oc-dev

* changes:
  Switch ActivityRecord to use static imports.
  Fix configuration change state transitions.

7 years agoMerge "Created an HtmlInfo object on ViewStructure." into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 02:33:56 +0000 (02:33 +0000)]
Merge "Created an HtmlInfo object on ViewStructure." into oc-dev

7 years agoMerge "Add documentation about Android TV devices may not support the alarm intents...
TreeHugger Robot [Sat, 1 Apr 2017 02:28:45 +0000 (02:28 +0000)]
Merge "Add documentation about Android TV devices may not support the alarm intents." into oc-dev

7 years agoFix some WM unit tests
Andrii Kulian [Fri, 31 Mar 2017 02:00:41 +0000 (19:00 -0700)]
Fix some WM unit tests

WindowFrameTests#testLayoutNonfullscreenTask and
sizes because test assumed that frame for window was always
bigger than screen size. Now we calculate all frames relative
to real display size.

TestWindowManagerPolicy used in WM unit tests reported incorrect
value from rotationHasCompatibleMetricsLw(), which lead to
DisplayContent#mAltOrientation set to "true" after any rotation
and resulted in shrinked display metrics.

DisplayContentTests#testDefaultDisplayOverrideConfigUpdate was
not restoring the config applied to default display because
it was trying update values in config from non-empty to empty,
which is considered a no-diff.

Test: com.android.server.wm.WindowFrameTests
Test: #testCalculatePolicyCrop
Test: #testLayoutNonfullscreenTask
Test: com.android.server.wm.AppWindowTokenTests
Test: #testLandscapeSeascapeRotationByApp
Test: com.android.server.wm.DisplayContentTests
Test: #testDefaultDisplayOverrideConfigUpdate
Change-Id: Ia0ed46307f67f6b47859209ebcf13253b59b8002

7 years agoDocumentation for PorterDuffXfermode
Romain Guy [Sat, 1 Apr 2017 01:56:37 +0000 (18:56 -0700)]
Documentation for PorterDuffXfermode

It tooks 10 years, but better late than never!

Bug: 32984164
Test: Compiled documentation and checked in Chrome
Change-Id: I6dfd7fba6d3077f8c774b203589083bdbc15f9d2

7 years agoMerge "CTS doesn't like swiping." into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 01:44:24 +0000 (01:44 +0000)]
Merge "CTS doesn't like swiping." into oc-dev

7 years agoOverride bidi property of new emojis
Roozbeh Pournader [Sat, 1 Apr 2017 01:30:28 +0000 (18:30 -0700)]
Override bidi property of new emojis

In BidiFormatter and AndroidBidi, treat emojis new to
Unicode 10.0/Emoji 5 as bidi class ON.

Test: Manual
Bug: 32952475
Change-Id: I1a40c6ee2b6e9d91c9d1e5b64faca6d16301fe93

7 years agoMerge "Be more lenient about live wallpaper unavailability" into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 01:01:51 +0000 (01:01 +0000)]
Merge "Be more lenient about live wallpaper unavailability" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 00:56:36 +0000 (00:56 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Add SUBSTITUTE_NOTIFICATION_APP_NAME pregrant for Telecom." into oc-dev
Tyler Gunn [Sat, 1 Apr 2017 00:54:21 +0000 (00:54 +0000)]
Merge "Add SUBSTITUTE_NOTIFICATION_APP_NAME pregrant for Telecom." into oc-dev

7 years agoAdd SUBSTITUTE_NOTIFICATION_APP_NAME pregrant for Telecom.
Tyler Gunn [Sat, 1 Apr 2017 00:50:56 +0000 (17:50 -0700)]
Add SUBSTITUTE_NOTIFICATION_APP_NAME pregrant for Telecom.

Test: Manual
Bug: 36817809
Change-Id: I2d7439e3d0040b617a842812b6ae8bda3c32f1ee

7 years agoMerge "Removing unnecessary permission." into oc-dev
Winson Chung [Sat, 1 Apr 2017 00:42:51 +0000 (00:42 +0000)]
Merge "Removing unnecessary permission." into oc-dev

7 years agoMerge "Fixing rotation issues." into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 00:41:21 +0000 (00:41 +0000)]
Merge "Fixing rotation issues." into oc-dev

7 years agoMerge "Use correct binding flags when reconnecting to IME" into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 00:06:57 +0000 (00:06 +0000)]
Merge "Use correct binding flags when reconnecting to IME" into oc-dev

7 years agoEnsuring multi-window callbacks contain new configuration and are in order
Winson Chung [Sat, 25 Mar 2017 00:11:33 +0000 (17:11 -0700)]
Ensuring multi-window callbacks contain new configuration and are in order

- This CL has two main changes:
  1) It modifies the activity multi-window and picture-in-picture mode
     changed callbacks to provide the configuration of the activity with
     the mode applied.
  2) It modifies the order in which the multi-window and picture-in-picture
     mode callbacks are made, to ensure that when going in and out of
     picture-in-picture: first PiP, then MW, and then the config change.
- Previously, the ordering of the two callbacks was inconsistent.  When
  calling moveActivityToPinnedStack(), we reparent the task into the pinned
  stack (triggering the picture-in-picture mode change), followed by the
  resize animation (causes configuration changes).  Inversely, when we
  expand the task to fullscreen (and not just remove it), we run the
  animation first, which resizes the task to the final size (causes
  configuration changes) then reparent after the animation completes
  (triggering the picture-in-picture mode change).

  In this CL, we ensure that for both the transition in and out of PiP, we
  defer to the bounds animation to trigger the PiP mode change.  Normal
  calls to reparent or adding a new task are unchanged.  When the PiP
  mode change is called from the animation, it provides the final target
  bounds which we use to calculate the target configuration of the activity
  for the callback.  If the bounds animation is interrupted, an update will
  also be scheduled if we change the fullscreen state we are animating to.

  To work around the issue where we are scheduling MW/PiP mode changes in
  both the animation and the configuration change, we also now keep track
  of each state internally in the ActivityRecord.

Bug: 36099777
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testConfigurationChangeOrderDuringTransition

Change-Id: I03513bc3a4d4a72c250983f22f079ce9d7a2cb40
Signed-off-by: Winson Chung <winsonc@google.com>
7 years agoMerge "Use variable fonts for Noto Sans Khmer" into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 00:00:48 +0000 (00:00 +0000)]
Merge "Use variable fonts for Noto Sans Khmer" into oc-dev

7 years agoAdd friction icon for metered networks.
Stephen Chen [Fri, 31 Mar 2017 23:58:38 +0000 (16:58 -0700)]
Add friction icon for metered networks.

Bug:36100548
Test: manual inspection.
Change-Id: If7bad4028879a5cc6176cfe189b91f4756114612

7 years agoHandle disabled packages as removed.
Makoto Onuki [Fri, 31 Mar 2017 23:58:26 +0000 (16:58 -0700)]
Handle disabled packages as removed.

Bug 36600272
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

Change-Id: I272334cef00337d5ba01ce4b878c799d9476432f

7 years agoMerge "Moar pre-partitioning refactoring." into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 23:51:58 +0000 (23:51 +0000)]
Merge "Moar pre-partitioning refactoring." into oc-dev

7 years agoMerge changes from topic 'launch-2d-activities-vr' into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 23:48:18 +0000 (23:48 +0000)]
Merge changes from topic 'launch-2d-activities-vr' into oc-dev

* changes:
  Allow shell uid to access Vr APIs
  Add vr persistent mode enable/disable
  Launch 2D activities in VR mode

7 years agoAdd documentation about Android TV devices may not support the alarm
Daniel Cardenas [Fri, 31 Mar 2017 23:29:11 +0000 (16:29 -0700)]
Add documentation about Android TV devices may not support the alarm
intents.

Bug: 36003137

Test: Build
Change-Id: Ia469f6e066c7aa9ed1ebcda3ea12fb3254654fb6

7 years agoMerge "Implement issue #36590595: Add ability to associated a ClipData with JobInfo...
TreeHugger Robot [Fri, 31 Mar 2017 23:21:07 +0000 (23:21 +0000)]
Merge "Implement issue #36590595: Add ability to associated a ClipData with JobInfo" into oc-dev

7 years agoMerge "QS: Add transient icon for hotspot" into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 23:18:40 +0000 (23:18 +0000)]
Merge "QS: Add transient icon for hotspot" into oc-dev

7 years agoMerge "Ensure we show the PiP menu in response to KEYCODE_WINDOW." into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 23:07:20 +0000 (23:07 +0000)]
Merge "Ensure we show the PiP menu in response to KEYCODE_WINDOW." into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 23:06:55 +0000 (23:06 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoSwitch ActivityRecord to use static imports.
Ruben Brunk [Tue, 28 Mar 2017 03:26:17 +0000 (20:26 -0700)]
Switch ActivityRecord to use static imports.

- Per comments from ogunwale,jjaggi on ag/2016938, static imports
  are preferred when possible, and are part of Android's tacit style guide.

Bug: 36662390
Test: Covered by existing unit tests.

Change-Id: Ic3897dd7a4a9cb665fc3d8c7a171f74494f02a2e

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

7 years agoFix configuration change state transitions.
Ruben Brunk [Thu, 23 Mar 2017 05:03:25 +0000 (22:03 -0700)]
Fix configuration change state transitions.

- Do not ever do onDestroy/onCreate cycle for VR activities when
  configuration is changed due to VR mode UI change.
- Do not gate on global configuration change check, as updates
  to the global UI mode configuration can race with activity
  lifecycle changes.

Bug: 36491752
Bug: 36515684

Test: Manually checked activity lifecycle for pre-O, O VR apks.

Change-Id: Ic2739c6e78c1bdfe876bf1302cd0adeaadece15c

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 23:01:28 +0000 (23:01 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoBluetooth: Add additional BluetoothSocket logging to root cause errors
Ajay Panicker [Tue, 28 Mar 2017 21:28:27 +0000 (14:28 -0700)]
Bluetooth: Add additional BluetoothSocket logging to root cause errors

Bug: 34780400
Test: Code still compiles
Change-Id: I166842ecc6889f9ea403e7aa3678ed818cd80968

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

7 years agoRevert "Push chooser targets to the shortcut manager."
Makoto Onuki [Wed, 29 Mar 2017 19:42:26 +0000 (12:42 -0700)]
Revert "Push chooser targets to the shortcut manager."

This reverts commit 58fc95dc578244b7beb687a48184045dcce788b8.

Bug 36186790
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsShortcutHostTestCases
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsShortcutManagerTestCases

Also all unit tests, except for the known failrues.
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

Change-Id: I733ee7e12a419ee7ea17ca67c56afe7b039d189a

7 years agoMove CALL_PRIVILEGED/EMERGENCY to @SystemApi
Brad Ebinger [Fri, 31 Mar 2017 17:21:09 +0000 (10:21 -0700)]
Move CALL_PRIVILEGED/EMERGENCY to @SystemApi

CALL_PRIVILEGED and CALL_EMERGENCY APIs are used
by vendors and Android Wear and should be moved
to @SystemApi to pass CTS tests.

Bug: 36566521
Test: CTS tests
Change-Id: I73a0b2c4e551b4738c4c322d9822a85ee19d269b

7 years agoPersistent connection to DO/PO service.
Makoto Onuki [Wed, 22 Mar 2017 21:22:35 +0000 (14:22 -0700)]
Persistent connection to DO/PO service.

Test: Manual test with customize API tests; CTS coming.
Change-Id: I1d7eaa4b1fdd20726c1832c736d32f934c6a82f9