OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "WindowManager.LayoutParams: Expose privateFlags for CTS" into oc-dev
Rob Carr [Thu, 6 Apr 2017 18:00:50 +0000 (18:00 +0000)]
Merge "WindowManager.LayoutParams: Expose privateFlags for CTS" into oc-dev

7 years agoMerge "Correct animation glitch for pinned stack." into oc-dev
Rob Carr [Thu, 6 Apr 2017 18:00:16 +0000 (18:00 +0000)]
Merge "Correct animation glitch for pinned stack." into oc-dev

7 years agoMerge "Fix StringDef usage in MediaDrm API" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 17:50:18 +0000 (17:50 +0000)]
Merge "Fix StringDef usage in MediaDrm API" into oc-dev

7 years agoMerge "Don't populate a setting instead of defaulting to 0 when not set." into oc-dev
Sudheer Shanka [Thu, 6 Apr 2017 17:40:54 +0000 (17:40 +0000)]
Merge "Don't populate a setting instead of defaulting to 0 when not set." into oc-dev

7 years agoMake sure pending cookie persistence canceled
Svetoslav Ganov [Wed, 5 Apr 2017 01:12:27 +0000 (18:12 -0700)]
Make sure pending cookie persistence canceled

When a full app is uninstalled we delete its instant app
cookie but were not canceling a pending write which ended
up having the written cookie file after the app is uninstalled.

Test: InstantCookieHostTest#testCookieResetOnNonInstantReinstall

bug:36455310

Change-Id: Iec6d1f95f8ff731885241913808daf12ce3a5587

7 years agoMerge "Fix build" into oc-dev
Julia Reynolds [Thu, 6 Apr 2017 16:45:04 +0000 (16:45 +0000)]
Merge "Fix build" into oc-dev

7 years agoMerge "Allow permissions to be runtime-only." into oc-dev
Chad Brubaker [Thu, 6 Apr 2017 16:44:07 +0000 (16:44 +0000)]
Merge "Allow permissions to be runtime-only." into oc-dev

7 years agoFix build
Julia Reynolds [Thu, 6 Apr 2017 16:31:56 +0000 (12:31 -0400)]
Fix build

Test: runtest systemui
Change-Id: I94663b45c8f745c9485cdeb898de5a6bc4f85f0b

7 years agoMerge "Bind with the correct action" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 16:35:30 +0000 (16:35 +0000)]
Merge "Bind with the correct action" into oc-dev

7 years agoMerge "Show a link to app settings in notification guts." into oc-dev
Julia Reynolds [Thu, 6 Apr 2017 15:55:25 +0000 (15:55 +0000)]
Merge "Show a link to app settings in notification guts." into oc-dev

7 years agoMerge "Keep track of protected data dirs in DexManager" into oc-dev
Calin Juravle [Thu, 6 Apr 2017 15:54:58 +0000 (15:54 +0000)]
Merge "Keep track of protected data dirs in DexManager" into oc-dev

7 years agoMerge "Bluetooth Multi Connect" into oc-dev
Joseph Pirozzo [Thu, 6 Apr 2017 15:19:24 +0000 (15:19 +0000)]
Merge "Bluetooth Multi Connect" into oc-dev

7 years agoMerge "Remove unneeded methods" into oc-dev
Julia Reynolds [Thu, 6 Apr 2017 15:13:09 +0000 (15:13 +0000)]
Merge "Remove unneeded methods" into oc-dev

7 years agoMerge "Change flag from -includekeyvalue to -keyvalue/-nokeyvalue" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 14:26:53 +0000 (14:26 +0000)]
Merge "Change flag from -includekeyvalue to -keyvalue/-nokeyvalue" into oc-dev

7 years agoDocument Android Wear usage of KEYCODE_WINDOW. am: 03d4a65865
Julius D'souza [Thu, 6 Apr 2017 14:19:58 +0000 (14:19 +0000)]
Document Android Wear usage of KEYCODE_WINDOW. am: 03d4a65865
am: 137006ff5c

Change-Id: I40ba20230d36bfe7b1f397b822f2122172de9da3

7 years agoDocument Android Wear usage of KEYCODE_WINDOW.
Julius D'souza [Thu, 6 Apr 2017 14:12:46 +0000 (14:12 +0000)]
Document Android Wear usage of KEYCODE_WINDOW.
am: 03d4a65865

Change-Id: If938e79a9eddcf3cec97274ad305834c2d58386e

7 years agoMerge "Camera: Initial support for vendor tag caches" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 14:02:06 +0000 (14:02 +0000)]
Merge "Camera: Initial support for vendor tag caches" into oc-dev

7 years agoMerge "Do not stop lock task if it is starting background user" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 13:24:45 +0000 (13:24 +0000)]
Merge "Do not stop lock task if it is starting background user" into oc-dev

7 years agoCanonicalize tz IDs when finding exemplar location
Neil Fuller [Wed, 5 Apr 2017 12:58:26 +0000 (13:58 +0100)]
Canonicalize tz IDs when finding exemplar location

Canonicalize time zone IDs when looking up exemplar location.

ICU's canonical IDs are not guaranteed the same as IANA's.
Various data files (e.g. timezones.xml, tzdata,
time_zones_by_country.xml) are using IANA IDs. ICU's IDs
are often the same, but because they are guaranteed not to
change and IANAs are not there is some drift.

This fixes an issue with the settings picker for ICU IDs:

America/Buenos_Aires
Asia/Rangoon
Asia/Katmandu
Asia/Calcutta

Which are IANA's:

America/Argentina/Buenos_Aires
Asia/Yangon
Asia/Kathmandu
Asia/Kolkata

introduced by commit b4d003da66.

It could also influence some display names for
automatically-selected time zones outside of this list.

The issues was particularly noticeable in locales that
use non-ASCII scripts; ICU performs a fallback if the ID
isn't canonical and would transform and return the last
part of the ID (e.g. Buenos Aires, Yangon, Kathmandu,
Kolkata).

Bug: 36469833
Test: Manual testing in Japanese
Change-Id: I2febdbee58e474d251d0a33f2c8335664a74581f
(cherry picked from commit f92ad8a0190add07779ed454a0908dd3df83f4bd)

7 years agoMerge "Pass FillResponse bundle on subsequent onFillRequest() calls." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 06:23:59 +0000 (06:23 +0000)]
Merge "Pass FillResponse bundle on subsequent onFillRequest() calls." into oc-dev

7 years agoMerge "Overlay a highlight over autofilled views" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 06:22:08 +0000 (06:22 +0000)]
Merge "Overlay a highlight over autofilled views" into oc-dev

7 years agoMerge "Clarify MediaDrm#getKeyRequest docs: init and mimeType" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 06:21:03 +0000 (06:21 +0000)]
Merge "Clarify MediaDrm#getKeyRequest docs: init and mimeType" into oc-dev

7 years agoMerge "Update MediaDrm documentation for provideKeyResponse" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 06:06:48 +0000 (06:06 +0000)]
Merge "Update MediaDrm documentation for provideKeyResponse" into oc-dev

7 years agoMerge "Fix anchor overlap handling in ListPopupWindow" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 05:20:11 +0000 (05:20 +0000)]
Merge "Fix anchor overlap handling in ListPopupWindow" into oc-dev

7 years agoMerge "Partially revert "Add blocking and retrying wrappers for INetd uses."" into...
TreeHugger Robot [Thu, 6 Apr 2017 04:54:44 +0000 (04:54 +0000)]
Merge "Partially revert "Add blocking and retrying wrappers for INetd uses."" into oc-dev

7 years agoMerge "Set AccessPoint metered bit using ScoredNetwork, WifiInfo, and WifiConfigurati...
TreeHugger Robot [Thu, 6 Apr 2017 04:23:02 +0000 (04:23 +0000)]
Merge "Set AccessPoint metered bit using ScoredNetwork, WifiInfo, and WifiConfiguration." into oc-dev

7 years agoOverlay a highlight over autofilled views
Philip P. Moltmann [Mon, 27 Mar 2017 16:55:30 +0000 (09:55 -0700)]
Overlay a highlight over autofilled views

Also clear this overlay once the data changes. Some views call
notifyValueUpdated even if the value did not change. Hence remeber the
data that was autofilled and check if the data really changed.

Make the autofilledDrawable publicly accessible so that virtual views
can use the same UI.

As the activity is not aware that the views were autofilled the state
has to be explicitly persisted over activity lifecycle events as part
of the view. The lifecyle does not work yet as the AutofillIds are not
stable over activity lifecycle events.

Fixes: 34946006
Test: Autofilled and changed all supported views.
      cts-tradefed run cts-dev -m CtsUiRenderingTestCases
Change-Id: I58b105bb221f1b6466dd136dfe5062d3babb5aa8

7 years agoMerge "Move MediaMetrics into its own library" into oc-dev
Ray Essick [Thu, 6 Apr 2017 03:09:18 +0000 (03:09 +0000)]
Merge "Move MediaMetrics into its own library" into oc-dev

7 years agoPartially revert "Add blocking and retrying wrappers for INetd uses."
Joel Scherpelz [Thu, 30 Mar 2017 01:13:03 +0000 (01:13 +0000)]
Partially revert "Add blocking and retrying wrappers for INetd uses."

Direct access to Netd from the bluetooth process is disallowed by
SELinux policy. This change reverts to the old behavior where IpManager
interacts with NetdService indirectly via NetworkManagementService.

Test: as follows:
    - built (sailfish)
    - flashed
    - booted
    - established bluetooth tethering to another device, ping'd 8.8.8.8
Bug: 36492299

This partially reverts commit af39244a34f4449c12a5f925222c9bc8d8049320.

Change-Id: Icf20b1e24abf7dd3123760f8637928bde7afe06b

7 years agoMerge "BatteryStats: Remove too-verbose logging" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 02:38:52 +0000 (02:38 +0000)]
Merge "BatteryStats: Remove too-verbose logging" into oc-dev

7 years agoPass FillResponse bundle on subsequent onFillRequest() calls.
Felipe Leme [Tue, 4 Apr 2017 20:10:58 +0000 (13:10 -0700)]
Pass FillResponse bundle on subsequent onFillRequest() calls.

BUG: 35707731

Test: existing CtsAutoFillServiceTestCases pass
Test: more tests on PartitionedActivityTest

Change-Id: I510aff54d0d9d7e0cce90f9786e3e1f6cab180f9

7 years agoMerge "Improvements on ViewNodes received on partitioned requests:" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 02:26:32 +0000 (02:26 +0000)]
Merge "Improvements on ViewNodes received on partitioned requests:" into oc-dev

7 years agoSet AccessPoint metered bit using ScoredNetwork, WifiInfo, and WifiConfiguration.
Stephen Chen [Tue, 4 Apr 2017 20:23:31 +0000 (13:23 -0700)]
Set AccessPoint metered bit using ScoredNetwork, WifiInfo, and WifiConfiguration.

Bug: 36888471
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: I5228512a832665916520658acddc9bf93d78a1a1

7 years agoMerge "Make print failure notifications important" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:53:53 +0000 (01:53 +0000)]
Merge "Make print failure notifications important" into oc-dev

7 years agoMerge "Remove SystemProperty gating-flag for virtual displays." into oc-dev
Santos Cordon [Thu, 6 Apr 2017 01:48:06 +0000 (01:48 +0000)]
Merge "Remove SystemProperty gating-flag for virtual displays." into oc-dev

7 years agoMerge "Don't call the Package Manager when holding the settings lock" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:41:47 +0000 (01:41 +0000)]
Merge "Don't call the Package Manager when holding the settings lock" into oc-dev

7 years agoMerge changes from topic 'ipsec-svc-pick' into oc-dev
Nathan Harold [Thu, 6 Apr 2017 01:34:32 +0000 (01:34 +0000)]
Merge changes from topic 'ipsec-svc-pick' into oc-dev

* changes:
  Fix Log Traces for IpSecService
  SystemServer: fix StartIpSecService trace and log
  Add Initial IPsec APIs to IpSecService
  IpSecManager and IpSecTransform API Cleanup
  Change reserveSecurityParameterIndex() to take a remoteAddress
  Add a Skeleton IpSecService

7 years agoMerge "Save FragmentManagerNonConfig during onSaveInstanceState()" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:13:06 +0000 (01:13 +0000)]
Merge "Save FragmentManagerNonConfig during onSaveInstanceState()" into oc-dev

7 years agoMerge "Fixed the obsolete logging" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:05:01 +0000 (01:05 +0000)]
Merge "Fixed the obsolete logging" into oc-dev

7 years agoBatteryStats: Remove too-verbose logging
Adam Lesinski [Thu, 6 Apr 2017 00:54:13 +0000 (17:54 -0700)]
BatteryStats: Remove too-verbose logging

Bug: 36972594
Test: manual
Change-Id: I02976ed924550f73010a453d207d199b13307cfa

7 years agoImprovements on ViewNodes received on partitioned requests:
Felipe Leme [Sat, 1 Apr 2017 00:26:34 +0000 (17:26 -0700)]
Improvements on ViewNodes received on partitioned requests:

- Fixed focus
- Added autofillValue for nodes previously autofilled

BUG: 35707731

Test: existing CtsAutoFillServiceTestCases pass
Test: more tests on PartitionedActivityTest

Change-Id: If4390d002d44c82e3de0339a634041f3998e804e

7 years agoMerge "Created SaveInfo types for email and username." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 00:15:23 +0000 (00:15 +0000)]
Merge "Created SaveInfo types for email and username." into oc-dev

7 years agoMerge "Change getFragments() to return a List." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 00:13:22 +0000 (00:13 +0000)]
Merge "Change getFragments() to return a List." into oc-dev

7 years agoDon't call the Package Manager when holding the settings lock
Christopher Tate [Wed, 5 Apr 2017 23:34:07 +0000 (16:34 -0700)]
Don't call the Package Manager when holding the settings lock

The package manager sometimes has to call into the settings provider with
its own lock held in the course of processing queries, so it's vitally
important not to call into it with the settings provider's internal lock
already held.

In this case, the SSAID lazy-generation path was fetching the signatures
of the calling package from inside the settings lock.  Now it doesn't.

Bug 36863412
Test: manual

Change-Id: Ic9d53397b5bddb883c5d73aff253ca280a5e93c0

7 years agoMerge "Local geomagnetic field update to sensor" into oc-dev
Peng Xu [Thu, 6 Apr 2017 00:00:07 +0000 (00:00 +0000)]
Merge "Local geomagnetic field update to sensor" into oc-dev

7 years agoMerge "Change wifiScanActualTime csv from usec to msec" into oc-dev
Adam Bookatz [Wed, 5 Apr 2017 23:56:56 +0000 (23:56 +0000)]
Merge "Change wifiScanActualTime csv from usec to msec" into oc-dev

7 years agoMerge "Dump autofill service component from settings." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:56:21 +0000 (23:56 +0000)]
Merge "Dump autofill service component from settings." into oc-dev

7 years agoMake print failure notifications important
Philip P. Moltmann [Wed, 5 Apr 2017 23:46:50 +0000 (16:46 -0700)]
Make print failure notifications important

Before failures and progress was similar important. Both were not shown.
Now both are shown and the failures alert.

Removed the notification grouping as autogrouping is good enough.

Test: Created failed and running print jobs
Change-Id: I6dfca583d69aa9713d45a2bc52d05e95f06b376f

7 years agoMerge "Serialize visibleToInstantApps" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:44:56 +0000 (23:44 +0000)]
Merge "Serialize visibleToInstantApps" into oc-dev

7 years agoMerge "Workaround for input ANR, always finish PiP menu activity." into oc-dev
Winson Chung [Wed, 5 Apr 2017 23:36:30 +0000 (23:36 +0000)]
Merge "Workaround for input ANR, always finish PiP menu activity." into oc-dev

7 years agoMerge "Fixed that the icon could dissappear" into oc-dev
Selim Cinek [Wed, 5 Apr 2017 23:35:54 +0000 (23:35 +0000)]
Merge "Fixed that the icon could dissappear" into oc-dev

7 years agoMerge "Use text input for various internationalized listeners" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:32:50 +0000 (23:32 +0000)]
Merge "Use text input for various internationalized listeners" into oc-dev

7 years agoMerge "Don't show empty account list in account chooser." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:29:22 +0000 (23:29 +0000)]
Merge "Don't show empty account list in account chooser." into oc-dev

7 years agoMerge "Call noteStateNotSaved on child fragment managers." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:23:50 +0000 (23:23 +0000)]
Merge "Call noteStateNotSaved on child fragment managers." into oc-dev

7 years agoCorrect animation glitch for pinned stack.
Robert Carr [Wed, 5 Apr 2017 23:11:45 +0000 (16:11 -0700)]
Correct animation glitch for pinned stack.

During an auto-PiP operation it can be
such that the pipped activity "isWaitingForOpening".
This is due to the visibility toggling to hiddenRequested,
and then back to visible, which causes it to enter mOpeningApps.
Logic in display content, prevents updating the surface boundaries
while we are in this waiting for opening state. This causes the animation
to jank as the top left corner will not move. The claim made
by the comment is that certain animations may have not "processed
their initial transformation".  So we ignore this "waiting for opening"
state if the app transition is a dummy animation, in which case we have
no transformation anyway.

Bug: 36821017
Bug: 35396882
Test: Enter PiP from YouTube, make sure top left corner moves smoothly.
Change-Id: Ia8519fe3c955f2ac80151b851c219d6ddbd26fed

7 years agoMerge "don't honour domain verification for browsers" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 23:11:38 +0000 (23:11 +0000)]
Merge "don't honour domain verification for browsers" into oc-dev

7 years agoShow a link to app settings in notification guts.
Julia Reynolds [Fri, 31 Mar 2017 18:42:09 +0000 (14:42 -0400)]
Show a link to app settings in notification guts.

Test: runtest systemui, cts
Change-Id: I7204102d5c83d589af5d3da57f72068491c12daa

7 years agoRemove unneeded methods
Julia Reynolds [Tue, 4 Apr 2017 18:29:07 +0000 (14:29 -0400)]
Remove unneeded methods

Test: make, make cts, make cts-verifier, runtest systemui-notification
Change-Id: I25b559cfcc30f2d85f468adf840f9124e80f00b0

7 years agoMerge "Changed FillResponse.setAuthentication() to require field ids." into oc-dev
Felipe Leme [Wed, 5 Apr 2017 22:25:08 +0000 (22:25 +0000)]
Merge "Changed FillResponse.setAuthentication() to require field ids." into oc-dev

7 years agoFix anchor overlap handling in ListPopupWindow
Vladislav Kaznacheev [Wed, 5 Apr 2017 22:22:10 +0000 (15:22 -0700)]
Fix anchor overlap handling in ListPopupWindow

Do not change anchor overlap on the underlying
PopupWindow unless ListPopupWindow.setOverlapAnchor
has been called explicitly.

Bug: 36714649
Test: ApiDemos > Views > Spinner
Change-Id: I5e66d4409a1f04cdc0fbe64e255609836c2b0e95

7 years agoMerge "Collect background stats: scheduled jobs" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 22:13:05 +0000 (22:13 +0000)]
Merge "Collect background stats: scheduled jobs" into oc-dev

7 years agoMerge "Fix dex flags for secondary dex files" into oc-dev
Calin Juravle [Wed, 5 Apr 2017 22:07:48 +0000 (22:07 +0000)]
Merge "Fix dex flags for secondary dex files" into oc-dev

7 years agoFixed the obsolete logging
Jack Yu [Wed, 5 Apr 2017 21:12:09 +0000 (14:12 -0700)]
Fixed the obsolete logging

Added missing logging messages and removed legacy codes.

Test: adb bugreport
bug: 33041058
Change-Id: I38ec1aeb14ba4bf5b0e7df2aea45dcbd1bb3ff7f

7 years agoMerge "Remove accidental debugger wait." into oc-dev
Bryce Lee [Wed, 5 Apr 2017 21:55:12 +0000 (21:55 +0000)]
Merge "Remove accidental debugger wait." into oc-dev

7 years agoBluetooth Multi Connect
Joseph Pirozzo [Thu, 30 Mar 2017 22:42:01 +0000 (15:42 -0700)]
Bluetooth Multi Connect

Allow automotive bluetooth profiles to connect to issue multiple connect
calls without disconnecting other devices.  These client side profiles
either support multiple connections or handle multiple connection
requests gracefully.

Bug: 36789202
Test: Manual, Connect to one paired device then attempt to connect to a
second paired device, observe that HFP and PBAP are both connected on
both devices.

Change-Id: I8bd6aea2b8411ba5585b34292d8c6ec62c5c2f96
(cherry picked from commit 43eba0836d89c21c4bec20bd251f4e82310b7cf1)

7 years agoDump autofill service component from settings.
Felipe Leme [Wed, 5 Apr 2017 21:46:50 +0000 (14:46 -0700)]
Dump autofill service component from settings.

Bug: 36978445
Test: manual verification

Change-Id: I30992452c94a78c05a5a98e94d5ffc5325151a76

7 years agoRemove accidental debugger wait.
Bryce Lee [Wed, 5 Apr 2017 21:49:44 +0000 (14:49 -0700)]
Remove accidental debugger wait.

Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackSupervisorTests
Change-Id: I129b139a14d925221f2c9b614f45aedac1f153b5

7 years agoMerge "Restore @VisibleForTesting on NetworkScorerAppManager." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 21:48:06 +0000 (21:48 +0000)]
Merge "Restore @VisibleForTesting on NetworkScorerAppManager." into oc-dev

7 years agoMerge "Consolidate a11y unit tests and get them working" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 21:41:24 +0000 (21:41 +0000)]
Merge "Consolidate a11y unit tests and get them working" into oc-dev

7 years agoMerge "Revert "Use KB instead of kB."" into oc-dev
Roozbeh Pournader [Wed, 5 Apr 2017 21:39:10 +0000 (21:39 +0000)]
Merge "Revert "Use KB instead of kB."" into oc-dev

7 years agoMerge "don't log non-instant app resolutions" into oc-dev
Todd Kennedy [Wed, 5 Apr 2017 21:36:37 +0000 (21:36 +0000)]
Merge "don't log non-instant app resolutions" into oc-dev

7 years agoMerge "Check for null when updating header" into oc-dev
Jorim Jaggi [Wed, 5 Apr 2017 21:29:55 +0000 (21:29 +0000)]
Merge "Check for null when updating header" into oc-dev

7 years agoMerge "Create Espresso test for WifiSettings." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 21:27:36 +0000 (21:27 +0000)]
Merge "Create Espresso test for WifiSettings." into oc-dev

7 years agoBind with the correct action
Todd Kennedy [Wed, 5 Apr 2017 21:24:58 +0000 (14:24 -0700)]
Bind with the correct action

While services themselves don't need an action when an explicit
component is specified, services in GMS may be different. In
the case of instant apps, the resolver service is hidden behind
a proxy that uses the action to route to the actual, implementing
service.

Bug: 36594944
Test: see that ephemeral resolution occurs
Change-Id: Id8c352614f780dc63f36c65be2ddb2d480b6846b

7 years agodon't honour domain verification for browsers
Todd Kennedy [Wed, 5 Apr 2017 21:15:00 +0000 (14:15 -0700)]
don't honour domain verification for browsers

When a default browser is set, we change its domain verification status
to "INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS". This change is
global and permanent; it affects all URLs and won't be cleared by
resetting the browser's domain handling in settings.

To properly handle this, we don't pay attention to the domain verification
status for "browser" applications when we determine whether or not to
offer an instant app.

Change-Id: I1e2766e9856b0c9d3276e33a8db10195c72ae6ea
Fixes: 36978307
Test: Install firefox, start a browser intent [from command line], select chrome and choose "use always", start another browser intent that resolves to an instant app, see that ephemeral apps still resolve

7 years agoRevert "Use KB instead of kB."
Roozbeh Pournader [Wed, 5 Apr 2017 21:13:22 +0000 (21:13 +0000)]
Revert "Use KB instead of kB."

This reverts commit 8ebf40498f00cdb789b92b9394e69844f5df4e3a.

Bug: 27672362
Bug: 36496960
Change-Id: Id04623a400c30f3c9b218806c118c5e4ffada020

7 years agoUse text input for various internationalized listeners
Roozbeh Pournader [Thu, 16 Feb 2017 02:19:09 +0000 (18:19 -0800)]
Use text input for various internationalized listeners

Since the characters that need to be entered for an internationalized
input type may not be available on the old non-internationalized
layouts, switch to the full text layout if there are any such
characters.

TextView is also modified to call the locale-aware listeners if
the target SDK is set to O or later.

Test: Manual
Bug: https://code.google.com/p/android/issues/detail?id=2626
Bug: https://code.google.com/p/android/issues/detail?id=82993
Bug: 8319249
Bug: 33276673
Bug: 34394455
Change-Id: I544bf0cc893a475ab5bf88cbad01cb981c6fef91

7 years agoMove MediaMetrics into its own library
Ray Essick [Wed, 5 Apr 2017 21:01:00 +0000 (14:01 -0700)]
Move MediaMetrics into its own library

Changes for the new HAL structure have brought about a build time
circular dependency between libmedia and libmediadrm. This set of
changes the media metrics code into its own library and arranges
for the relevant consumers of the media metrics code to link
to this new library (where they had previously picked it up by
including libmedia).

Bug: 36990807
Test: build, boot.

7 years agoChange getFragments() to return a List.
George Mount [Wed, 5 Apr 2017 20:56:37 +0000 (13:56 -0700)]
Change getFragments() to return a List.

Bug 36762718
Bug 36982279

Changes getFragments() to return a List instead of a Collection.
The order is the order in which the fragment is added or attached.

Test: ran fragment cts tests
Change-Id: I10bbeef13e9154bbe052127cfa0e160b2e500b4d

7 years agoWorkaround for input ANR, always finish PiP menu activity.
Winson Chung [Wed, 5 Apr 2017 18:49:38 +0000 (11:49 -0700)]
Workaround for input ANR, always finish PiP menu activity.

- Always finish the PiP menu activity when the interaction is complete
  (either the menu is hidden after showing, or when the user stops
  interacting with it and it was shown for the dismiss overlay)
- Fix issue with bounds animation callback not working due to the app
  window being removed and not updating the app transition that its
  animation "finished"
- Add additional logging throughout to trace PiP animation

Bug: 36877782
Test: Enter PIP, tap to show menu, wait for it to hide, and then use
      wired headset button

Change-Id: Ie88ba107d7fffdd182a4063ef4f324b58669d0ad

7 years agoMerge "Make sure we handle the matrix separately for non-invertable matrix" into...
Tenghui Zhu [Wed, 5 Apr 2017 20:44:28 +0000 (20:44 +0000)]
Merge "Make sure we handle the matrix separately for non-invertable matrix" into oc-dev

7 years agoMerge "Allow background default container service in a less crashy way" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:43:38 +0000 (20:43 +0000)]
Merge "Allow background default container service in a less crashy way" into oc-dev

7 years agoMerge "AAPT2: Fix pseudolocalization (again)" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:43:19 +0000 (20:43 +0000)]
Merge "AAPT2: Fix pseudolocalization (again)" into oc-dev

7 years agoMerge "Fix NPE when adding WebView to ResourcesManager" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:41:56 +0000 (20:41 +0000)]
Merge "Fix NPE when adding WebView to ResourcesManager" into oc-dev

7 years agoMerge "Work on issue #36869295: com.qti.qualcomm.datastatusnotification..." into...
TreeHugger Robot [Wed, 5 Apr 2017 20:40:53 +0000 (20:40 +0000)]
Merge "Work on issue #36869295: com.qti.qualcomm.datastatusnotification..." into oc-dev

7 years agoWork on issue #36869295: com.qti.qualcomm.datastatusnotification...
Dianne Hackborn [Wed, 5 Apr 2017 00:23:14 +0000 (17:23 -0700)]
Work on issue #36869295: com.qti.qualcomm.datastatusnotification...

...is not Bg Check compliant

Make the exception message include the state of the app's
UidRecord to help debug what is going on.

Test: boot and ran

Change-Id: Ie829265c7979ccabf8bae0bc6521bd9a7357d77f

7 years agoMerge "Deliver start service args with ParcelledListSlice." into oc-dev
Dianne Hackborn [Wed, 5 Apr 2017 20:37:31 +0000 (20:37 +0000)]
Merge "Deliver start service args with ParcelledListSlice." into oc-dev

7 years agoMerge changes Ibdf9cf90,I3a6dd476,Id4008fc7,Iede88d1e into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:30:15 +0000 (20:30 +0000)]
Merge changes Ibdf9cf90,I3a6dd476,Id4008fc7,Iede88d1e into oc-dev

* changes:
  NotificationViewWrapper: Fix crash for custom views
  Revert "Revert "AOD: Use color filter to invert icons for AOD""
  Revert "Revert "NotificationWrappers: Factor out doze treatment""
  AOD: prevent clicking shelf when dark

7 years agoMerge "Removed deprecated auto(F)ill classes." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:25:36 +0000 (20:25 +0000)]
Merge "Removed deprecated auto(F)ill classes." into oc-dev

7 years agoMerge "Clear calling identity before getUserAccounts in AccountManagerService" into...
TreeHugger Robot [Wed, 5 Apr 2017 20:18:38 +0000 (20:18 +0000)]
Merge "Clear calling identity before getUserAccounts in AccountManagerService" into oc-dev

7 years agoSerialize visibleToInstantApps
Chad Brubaker [Wed, 5 Apr 2017 20:08:21 +0000 (13:08 -0700)]
Serialize visibleToInstantApps

Bug: 36972663
Test: Webview continues working
Change-Id: I680797f0a7edc71917aaf2e0bc56972a39847f8f

7 years agoMerge "Tweak javadoc of setResetPasswordToken" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 20:01:59 +0000 (20:01 +0000)]
Merge "Tweak javadoc of setResetPasswordToken" into oc-dev

7 years agoMerge "Add storage fullness methods to volume provider." into oc-dev
Daniel Nishi [Wed, 5 Apr 2017 19:59:12 +0000 (19:59 +0000)]
Merge "Add storage fullness methods to volume provider." into oc-dev

7 years agoCamera: Initial support for vendor tag caches
Emilian Peev [Thu, 23 Mar 2017 19:20:40 +0000 (19:20 +0000)]
Camera: Initial support for vendor tag caches

Vendor tag cache will be used alternatively to the regular
Vendor tag descriptor. The caches can support multiple vendor
tag providers at the same time. The native metadata along with
the requests/results/characteristics will store vendor specific
information that will be used to indentify the respective
descriptor.

Bug: 34275821
Test: Complete Camera/Camera2 CTS tests
Change-Id: I50b7cf9aa5575944fde7673a1728869690b2ce0d

7 years agoMerge "Revert "Add a service to rank apps for ResolverActivity."" into oc-dev
Kang Li [Wed, 5 Apr 2017 19:50:06 +0000 (19:50 +0000)]
Merge "Revert "Add a service to rank apps for ResolverActivity."" into oc-dev

7 years agoChange flag from -includekeyvalue to -keyvalue/-nokeyvalue
Johan Toras Halseth [Wed, 5 Apr 2017 19:37:52 +0000 (20:37 +0100)]
Change flag from -includekeyvalue to -keyvalue/-nokeyvalue

The original flag was added in ag/1946677. As pointed out
in ag/2065837 we ought to stick to the syntax used for
other flags.

Test: adb backup -keyvalue -all
Change-Id: Ie2c7ee3d85740abadaa4119d23470cd9470bd981

7 years agoRevert "Add a service to rank apps for ResolverActivity."
Kang Li [Wed, 5 Apr 2017 16:13:12 +0000 (16:13 +0000)]
Revert "Add a service to rank apps for ResolverActivity."

This reverts commit 90370e0b2497deba9382ab7ff1539b6849df8139.

b: 36952725

Change-Id: Ifa8f182c707cdbbc989b1f61630f7a8fa856d32d

7 years agoMerge "look for old intent values" into oc-dev
Todd Kennedy [Wed, 5 Apr 2017 19:32:23 +0000 (19:32 +0000)]
Merge "look for old intent values" into oc-dev

7 years agoSave FragmentManagerNonConfig during onSaveInstanceState()
George Mount [Wed, 5 Apr 2017 19:30:17 +0000 (12:30 -0700)]
Save FragmentManagerNonConfig during onSaveInstanceState()

Bug 36815706

onSaveInstanceState() is called prior to onStop(), but
onRetainNonConfigInstance() is called after. When a
retained instance fragment is added during onStop(),
the state of the two configurations won't match. This
CL moves the non-configuration save to happen immediately
after the save instance state.

Support Lib Change: Ib41cbe02d060d3411e32d1494525e119d0c23dd7
Test: I30e598abf7faceac3294aef1ee0ee3b07d3aa7c6

Change-Id: I861629e2c6da2d8b0e075e8283b631fdf80670c0

7 years agoDo not stop lock task if it is starting background user
Tony Mak [Mon, 3 Apr 2017 17:38:23 +0000 (18:38 +0100)]
Do not stop lock task if it is starting background user

We do not switch user when starting background user, so no need to
stop lock task.

Refactor a bit to make unit test possible.

Test: runtest -x frameworks/base/services/tests/servicestests/src/com/android/server/am/UserControllerTest.java
Test: Lock an app using TestDPC, creating work profile, lock task is not dismissed

Bug: 35591838

Change-Id: I52c1f6ba07860df9266462750bf953a002f69026