OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Intern Sensor object string using java String.intern()" into oc-dev
Peng Xu [Thu, 20 Apr 2017 02:01:28 +0000 (02:01 +0000)]
Merge "Intern Sensor object string using java String.intern()" into oc-dev

7 years agoMerge "Delay PiP transition to fullscreen until activities draw." into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 01:23:19 +0000 (01:23 +0000)]
Merge "Delay PiP transition to fullscreen until activities draw." into oc-dev

7 years agoMerge "Validate incoming data properly." into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 01:12:30 +0000 (01:12 +0000)]
Merge "Validate incoming data properly." into oc-dev

7 years agoMerge "Add a null check for visibleFile." into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 01:01:03 +0000 (01:01 +0000)]
Merge "Add a null check for visibleFile." into oc-dev

7 years agoMerge "Move expensive TextClock operations to onAttach" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 00:26:47 +0000 (00:26 +0000)]
Merge "Move expensive TextClock operations to onAttach" into oc-dev

7 years agoMerge changes Ic76d996f,Ib9eefacb,If1b63340,I399c66af into oc-dev
Selim Cinek [Thu, 20 Apr 2017 00:08:51 +0000 (00:08 +0000)]
Merge changes Ic76d996f,Ib9eefacb,If1b63340,I399c66af into oc-dev

* changes:
  Changed the documentation of the colorization
  Fixed the appearance of colorized fullscreenintent notifications
  Adapted the interpolator when using fingerprint
  The row is now labeling the expand button

7 years agoMerge "Fix issue #37470038: API Review: ServiceConnection.onBindingDead()" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 23:55:36 +0000 (23:55 +0000)]
Merge "Fix issue #37470038: API Review: ServiceConnection.onBindingDead()" into oc-dev

7 years agoMerge "Prevent settings from crashing when ContentProvider crashes" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 23:53:34 +0000 (23:53 +0000)]
Merge "Prevent settings from crashing when ContentProvider crashes" into oc-dev

7 years agoMerge "Treat the intent filter verifier app as foreground" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 23:49:37 +0000 (23:49 +0000)]
Merge "Treat the intent filter verifier app as foreground" into oc-dev

7 years agoMerge "Package installer related changes to javadoc" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 23:34:22 +0000 (23:34 +0000)]
Merge "Package installer related changes to javadoc" into oc-dev

7 years agoMerge "Adjust the bind timeout" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 23:07:34 +0000 (23:07 +0000)]
Merge "Adjust the bind timeout" into oc-dev

7 years agoMerge "don't blindly reuse content providers" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 23:07:07 +0000 (23:07 +0000)]
Merge "don't blindly reuse content providers" into oc-dev

7 years agoMerge "Opt out default focus highlight for TV." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 22:57:46 +0000 (22:57 +0000)]
Merge "Opt out default focus highlight for TV." into oc-dev

7 years agoMerge "Fix tint on accessibility stream" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 22:56:21 +0000 (22:56 +0000)]
Merge "Fix tint on accessibility stream" into oc-dev

7 years agoMerge "Fix issue #37306208: CTS: ServiceTest#testForegroundService..." into oc-dev
Dianne Hackborn [Wed, 19 Apr 2017 22:20:52 +0000 (22:20 +0000)]
Merge "Fix issue #37306208: CTS: ServiceTest#testForegroundService..." into oc-dev

7 years agoAdd a null check for visibleFile.
Garfield Tan [Mon, 17 Apr 2017 21:22:32 +0000 (14:22 -0700)]
Add a null check for visibleFile.

It's null if we're operating on an external thumbdrive/sd card etc. Add
a null check as we do in moveInMediaStore().

Test: Manual tests.
Bug: 37412897
Change-Id: Idd2c1d67a36893f980a239a9999c32369da27abd

7 years agoValidate incoming data properly.
Martijn Coenen [Tue, 18 Apr 2017 22:54:43 +0000 (15:54 -0700)]
Validate incoming data properly.

Make sure calls to readBuffer() and readEmbeddedBuffer()
get the correct size, parent and offset passed in, so
these can be validated by libhwbinder.

Modified HwBlob to take a length argument as well,
so it can be validated.

Bug: 30498700
Test: hidl_test, hidl_test_java, Youtube, Maps, Netflix, Camera
Change-Id: I28712db97ae29b46acfe952d3d92d1ce5f666a4d

7 years agoChanged the documentation of the colorization
Selim Cinek [Wed, 19 Apr 2017 21:59:34 +0000 (14:59 -0700)]
Changed the documentation of the colorization

There was still a reference to ongoing, which wasn't needed

Test: non, documentation change
Fixes: 34469375
Change-Id: Ic76d996f92f339db869f25d7696313eefc0c07bb

7 years agoFixed the appearance of colorized fullscreenintent notifications
Selim Cinek [Tue, 18 Apr 2017 00:10:05 +0000 (17:10 -0700)]
Fixed the appearance of colorized fullscreenintent notifications

Previously the background would stay grey.

Test: manual, add fullscreen intent colorized notification
Change-Id: Ib9eefacba58256d2cb0c6f0d70cf0e9b5afdaf06
Fixes: 35968024

7 years agoFix issue #37470038: API Review: ServiceConnection.onBindingDead()
Dianne Hackborn [Wed, 19 Apr 2017 21:53:18 +0000 (14:53 -0700)]
Fix issue #37470038: API Review: ServiceConnection.onBindingDead()

Renamed.

Test: booted and ran.

Change-Id: Ic21f7ef66d43fb6db9f7ebbc833f28c09474ea59

7 years agoMerge "Allow verifier to be optional" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 21:51:21 +0000 (21:51 +0000)]
Merge "Allow verifier to be optional" into oc-dev

7 years agoMerge "Change mask path to only use cubicTo notation so that isConvex is always true...
TreeHugger Robot [Wed, 19 Apr 2017 21:36:03 +0000 (21:36 +0000)]
Merge "Change mask path to only use cubicTo notation so that isConvex is always true. Bug: 37100106" into oc-dev

7 years agoOpt out default focus highlight for TV.
Jiaquan He [Tue, 18 Apr 2017 22:39:59 +0000 (15:39 -0700)]
Opt out default focus highlight for TV.

Test: Checked that the default focus highlight doesn't show on TV.
Bug: 37160940
Change-Id: Id3719ce1aa602ba6792cc94c9fa034670509cda0

7 years agoAdjust the bind timeout
Todd Kennedy [Wed, 19 Apr 2017 21:12:34 +0000 (14:12 -0700)]
Adjust the bind timeout

We were using a timeout of 5s when it should have always
been in the hundreds of ms. Setting the timeout to 300ms
for 'eng' build and 200ms for all other builds.

Change-Id: I31e17457e7bfdb3bf703be430074b718cae8c17a
Fixes: 37474581
Test: Manual; still resolve instant apps

7 years agoMerge "Log when an app targeting O does not specify a channel" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 21:10:09 +0000 (21:10 +0000)]
Merge "Log when an app targeting O does not specify a channel" into oc-dev

7 years agoMerge "Set the color space as nullptr on native bitmaps when sRGB is requested" into...
TreeHugger Robot [Wed, 19 Apr 2017 21:09:41 +0000 (21:09 +0000)]
Merge "Set the color space as nullptr on native bitmaps when sRGB is requested" into oc-dev

7 years agoMerge changes from topic 'chooser' into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 21:04:21 +0000 (21:04 +0000)]
Merge changes from topic 'chooser' into oc-dev

* changes:
  Rely on view animations for ResolverActivity
  Create a valid ActivityOptions Bundle even for default animations
  Remove scale up animation for startActivity from RemoteViews

7 years agoMerge "Change ANDROID_ID for Instant Apps" into oc-dev
Chad Brubaker [Wed, 19 Apr 2017 21:00:50 +0000 (21:00 +0000)]
Merge "Change ANDROID_ID for Instant Apps" into oc-dev

7 years agodon't blindly reuse content providers
Todd Kennedy [Wed, 19 Apr 2017 21:00:48 +0000 (14:00 -0700)]
don't blindly reuse content providers

when a provider is already running, we would automatically
give it out to other processes that request it. for instant
apps, don't do that.

Change-Id: I159913adc599e88dac6253104776589592b251fd
Fixes: 37501319
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest

7 years agoMerge "Fix issue with unresolved IDs in adaptive icons" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 20:54:06 +0000 (20:54 +0000)]
Merge "Fix issue with unresolved IDs in adaptive icons" into oc-dev

7 years agoMerge "QS BluetoothTile proiritizes connected device" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 20:44:21 +0000 (20:44 +0000)]
Merge "QS BluetoothTile proiritizes connected device" into oc-dev

7 years agoMerge "Move CompanionDeviceManagerService to a place of its own" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 20:42:31 +0000 (20:42 +0000)]
Merge "Move CompanionDeviceManagerService to a place of its own" into oc-dev

7 years agoMerge "Fix compose shader child local matrix mutation" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 20:41:02 +0000 (20:41 +0000)]
Merge "Fix compose shader child local matrix mutation" into oc-dev

7 years agoMerge "Don't show starting window for overlay activities" into oc-dev
Wale Ogunwale [Wed, 19 Apr 2017 20:36:36 +0000 (20:36 +0000)]
Merge "Don't show starting window for overlay activities" into oc-dev

7 years agoMerge "Flesh out more API docs." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 20:31:01 +0000 (20:31 +0000)]
Merge "Flesh out more API docs." into oc-dev

7 years agoFix tint on accessibility stream
Jason Monk [Wed, 19 Apr 2017 20:30:40 +0000 (16:30 -0400)]
Fix tint on accessibility stream

Test: make
Change-Id: I91daf405c85490ed0cb9d3909cd96d03884ce191
Fixes: 37485060

7 years agoMerge "Only send HOST_STATE intents when host mode is used." into oc-dev
Jerry Zhang [Wed, 19 Apr 2017 20:28:03 +0000 (20:28 +0000)]
Merge "Only send HOST_STATE intents when host mode is used." into oc-dev

7 years agoMerge "Up the character limit for thermal strings" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 20:24:14 +0000 (20:24 +0000)]
Merge "Up the character limit for thermal strings" into oc-dev

7 years agoMerge "Handle shared libraries for split apks." into oc-dev
Jeff Hao [Wed, 19 Apr 2017 20:16:18 +0000 (20:16 +0000)]
Merge "Handle shared libraries for split apks." into oc-dev

7 years agoMerge "Make javadoc of companion service name more like others" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 20:14:59 +0000 (20:14 +0000)]
Merge "Make javadoc of companion service name more like others" into oc-dev

7 years agoMerge "Some folks like sending null fields." into oc-dev
Jeff Sharkey [Wed, 19 Apr 2017 20:11:23 +0000 (20:11 +0000)]
Merge "Some folks like sending null fields." into oc-dev

7 years agoMerge "Add comment to Typeface.Builder about file descriptor." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 20:08:53 +0000 (20:08 +0000)]
Merge "Add comment to Typeface.Builder about file descriptor." into oc-dev

7 years agoMerge "Add unit test for Skia path behavior" into oc-dev
Matt Sarett [Wed, 19 Apr 2017 20:03:49 +0000 (20:03 +0000)]
Merge "Add unit test for Skia path behavior" into oc-dev

7 years agoMerge "Improve ViewDebug reporting for focus properties" into oc-dev
Evan Rosky [Wed, 19 Apr 2017 19:50:24 +0000 (19:50 +0000)]
Merge "Improve ViewDebug reporting for focus properties" into oc-dev

7 years agoMerge "Force data usage bottom label to be LTR." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 19:43:53 +0000 (19:43 +0000)]
Merge "Force data usage bottom label to be LTR." into oc-dev

7 years agoMerge "Bring up the QS state colors to increase contrast" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 19:43:02 +0000 (19:43 +0000)]
Merge "Bring up the QS state colors to increase contrast" into oc-dev

7 years agoAdapted the interpolator when using fingerprint
Selim Cinek [Sat, 15 Apr 2017 03:01:27 +0000 (20:01 -0700)]
Adapted the interpolator when using fingerprint

When using fingerprint and when launching without touch
we are now using a different interpolator.

Test: unlock with fingerprint, unlock after double-tap, observe different interpolator
Change-Id: If1b63340759089cdf55820d59b6dcce2ca8bed6d
Fixes: 37311479

7 years agoForce data usage bottom label to be LTR.
Fan Zhang [Tue, 18 Apr 2017 22:15:21 +0000 (15:15 -0700)]
Force data usage bottom label to be LTR.

The bottom label has to be LTR to be in sync with the main view above
it, which does not support RTL.

Change-Id: Ib5cccd1cccb249dad0badd36f4d491faf0bbb562
Fix: 37222561
Test: visual

7 years agoLog when an app targeting O does not specify a channel
Geoffrey Pitsch [Wed, 19 Apr 2017 19:21:56 +0000 (15:21 -0400)]
Log when an app targeting O does not specify a channel

Bug: 37485692
Test: runtest systemui-notification
Change-Id: Iffe6a016dfd399c39e0acb281f454271ef13f7fd

7 years agoMerge "TextClassifierImpl: Fix empty locale list issue." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 19:20:39 +0000 (19:20 +0000)]
Merge "TextClassifierImpl: Fix empty locale list issue." into oc-dev

7 years agoAllow verifier to be optional
Todd Kennedy [Wed, 19 Apr 2017 19:13:51 +0000 (12:13 -0700)]
Allow verifier to be optional

Change-Id: Ibf01e5283b744f7745e92523787abb3d31a2c813
Fixes: 37412895
Test: Manual; disable verifier and notice that the device doesn't boot loop

7 years agoMerge "Fix FragmentTransaction.show() to show the fragment." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 19:06:04 +0000 (19:06 +0000)]
Merge "Fix FragmentTransaction.show() to show the fragment." into oc-dev

7 years agoMerge "Add a wakelock timeout when downloading xtra data for GNSS." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 19:00:54 +0000 (19:00 +0000)]
Merge "Add a wakelock timeout when downloading xtra data for GNSS." into oc-dev

7 years agoSet the color space as nullptr on native bitmaps when sRGB is requested
Romain Guy [Wed, 19 Apr 2017 18:58:05 +0000 (11:58 -0700)]
Set the color space as nullptr on native bitmaps when sRGB is requested

This regression is a fallout from the recent API council feedback
fallout. The default color space used to be always set to null but
it's now the named SRGB instance. This change passes null to native
when the specified color space is known to be sRGB.

Bug: 37496760
Test: runtest managed-provisioning
Change-Id: Ie933c84e429a682a58ee253b57b77bd61b88ee5e

7 years agoDelay PiP transition to fullscreen until activities draw.
Robert Carr [Tue, 18 Apr 2017 21:25:10 +0000 (14:25 -0700)]
Delay PiP transition to fullscreen until activities draw.

To avoid awful stretching.

Bug: 37473110
Test: Transition app fullscreen verify no awful video stretching.
Change-Id: I810a72207e45b8f83a63c9f0b3cc9a433569852c

7 years agoTreat the intent filter verifier app as foreground
Christopher Tate [Wed, 19 Apr 2017 18:32:35 +0000 (11:32 -0700)]
Treat the intent filter verifier app as foreground

Similarly to other install-time validation, its work is a direct
extension of the OS's processing of a user-initiated install action,
so it's appropriately modeled as being "foreground" work.

Bug 37502027
Test: manual

Change-Id: Ib6426fa3c7cb05c4e758ddad3356011e4753629e

7 years agoMerge "Fix issue where the notification could snap to the menu while its invisible...
TreeHugger Robot [Wed, 19 Apr 2017 18:42:31 +0000 (18:42 +0000)]
Merge "Fix issue where the notification could snap to the menu while its invisible" into oc-dev

7 years agoMerge "Update snooze visuals to match latest design" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 18:41:44 +0000 (18:41 +0000)]
Merge "Update snooze visuals to match latest design" into oc-dev

7 years agoMerge "DO NOT MERGE ANYWHERE: Move content from verison 123 to 122, and skip verison...
Zheng Zhang [Wed, 19 Apr 2017 18:32:55 +0000 (18:32 +0000)]
Merge "DO NOT MERGE ANYWHERE: Move content from verison 123 to 122, and skip verison 123." into cw-f-dev am: 5b84ba3b15  -s ours
am: 74b8c15d2b  -s ours

Change-Id: I4e023353faf1cbded69661da7013785bd130297c

7 years agoMerge "DO NOT MERGE ANYWHERE: Move content from verison 123 to 122, and skip verison...
Zheng Zhang [Wed, 19 Apr 2017 18:26:33 +0000 (18:26 +0000)]
Merge "DO NOT MERGE ANYWHERE: Move content from verison 123 to 122, and skip verison 123." into cw-f-dev
am: 5b84ba3b15  -s ours

Change-Id: Ic447d9ee4910f467e8ca6dad7d02693846e4fab8

7 years agoMerge "DO NOT MERGE ANYWHERE: Move content from verison 123 to 122, and skip verison...
TreeHugger Robot [Wed, 19 Apr 2017 18:21:43 +0000 (18:21 +0000)]
Merge "DO NOT MERGE ANYWHERE: Move content from verison 123 to 122, and skip verison 123." into cw-f-dev

7 years agoMerge "Adds getLayoutInflater() to return a cached value." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 18:15:31 +0000 (18:15 +0000)]
Merge "Adds getLayoutInflater() to return a cached value." into oc-dev

7 years agoChange ANDROID_ID for Instant Apps
Chad Brubaker [Wed, 12 Apr 2017 23:56:53 +0000 (16:56 -0700)]
Change ANDROID_ID for Instant Apps

ANDROID_ID for Instant Apps now has the following properties:
1) per-app scoped
2) reset if the user clears the Instant App
3) remains the same if the Instant App gets upgraded to an installed
app.

Note that if the user goes instant -> installed_1 -> uninstall ->
installed_2 the ANDROID_ID at installed_1 will not be the same as
installed_2. This was deemed better than the id changing on the upgrade
step.

Test: manual
Change-Id: I532975c50049c94ff80902a897e001dd35a69f9f

7 years agoMerge "Adding consistent platform PiP action asset." into oc-dev
Winson Chung [Wed, 19 Apr 2017 18:10:16 +0000 (18:10 +0000)]
Merge "Adding consistent platform PiP action asset." into oc-dev

7 years agoMerge "Handle edge-case where no focusables exist" into oc-dev
Evan Rosky [Wed, 19 Apr 2017 18:08:23 +0000 (18:08 +0000)]
Merge "Handle edge-case where no focusables exist" into oc-dev

7 years agoMerge "Swap back content alphas for light and dark." into oc-dev
Jason Monk [Wed, 19 Apr 2017 18:07:04 +0000 (18:07 +0000)]
Merge "Swap back content alphas for light and dark." into oc-dev

7 years agoHandle shared libraries for split apks.
Jeff Hao [Thu, 6 Apr 2017 00:09:59 +0000 (17:09 -0700)]
Handle shared libraries for split apks.

As we dexopt all the code paths of a package, we now append the code
paths to the list of shared libraries. These paths are passed as
relative paths since the apks are staged during installation, and are
not where they will be at runtime.

Part of a multi-project change.

Bug: 34169257
Test: cts-tradefed run singleCommand cts -d --module
CtsAppSecurityHostTestCases -t android.appsecurity.cts.SplitTests

(cherry-picked from commit 832641bb7205126829d425401a5262ab2e26fa80)

Change-Id: I28b1f8db6035ec62a5947679ed09013b1f9523a2

7 years agoFix compose shader child local matrix mutation
Chris Craik [Wed, 19 Apr 2017 17:38:14 +0000 (10:38 -0700)]
Fix compose shader child local matrix mutation

Bug: 37495696
Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases --test android.graphics.cts.ComposeShaderTest

Adds back the verify step that discards a stale native ComposeShader if a child
changes.

Change-Id: I44f40c1edfdb7633994a69efb583cf28ee2c26b2

7 years agoFlesh out more API docs.
Jeff Sharkey [Wed, 19 Apr 2017 00:19:16 +0000 (18:19 -0600)]
Flesh out more API docs.

Flesh out docs for Context.getCacheDir(), Intent.addFlags(),
Intent.removeFlags(), and PackageManager.setApplicationCategoryHint().

Test: builds, boots
Bug: 374704733732777435812899
Change-Id: Ided031185258a89c3e275d65c162d537065ad49e

7 years agoRely on view animations for ResolverActivity
Ian Lake [Tue, 18 Apr 2017 17:45:37 +0000 (10:45 -0700)]
Rely on view animations for ResolverActivity

The ResolverActivity (and its subclass ChooserActivity)
already have view animations for animating the share
sheet. Disable the windowEnter/ExitTransition to ensure
that there's just a single animation running.

Test: visual inspection of the transition

BUG: 34234073
Change-Id: I51f6d4d6388e965a4f7efb532f936c207623f938

7 years agoMerge "Avoid acquiring a lock on the InputReader thread" into oc-dev
Yohei Yukawa [Wed, 19 Apr 2017 17:37:13 +0000 (17:37 +0000)]
Merge "Avoid acquiring a lock on the InputReader thread" into oc-dev

7 years agoMerge "Add missing services to incident_report" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 17:33:55 +0000 (17:33 +0000)]
Merge "Add missing services to incident_report" into oc-dev

7 years agoMerge "Fix issue with fontScale changes not taking effect" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 17:32:25 +0000 (17:32 +0000)]
Merge "Fix issue with fontScale changes not taking effect" into oc-dev

7 years agoMerge "AAPT: Auto-alias application adaptive-icon" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 17:32:02 +0000 (17:32 +0000)]
Merge "AAPT: Auto-alias application adaptive-icon" into oc-dev

7 years agoFix issue #37306208: CTS: ServiceTest#testForegroundService...
Dianne Hackborn [Wed, 19 Apr 2017 17:26:01 +0000 (10:26 -0700)]
Fix issue #37306208: CTS: ServiceTest#testForegroundService...

..._removeNotificationOnStop failure

We weren't removing the foreground timeout when a service is
brought down and still waiting for the app to make it foreground.
Instead, turn this in to an immediate crash of the app when we
detect it while bringing down the service.  Also make various
paths more robust against trying to do things with a ServiceRecord
that isn't currently in ActiveServices.

Test: bit CtsAppTestCases:ServiceTest

Change-Id: I06f4ac48fb983483569677ab1ac6e5b0b681c4ae

7 years agoSome folks like sending null fields.
Jeff Sharkey [Wed, 19 Apr 2017 17:22:02 +0000 (11:22 -0600)]
Some folks like sending null fields.

Test: cts-tradefed run commandAndExit cts-dev -m CtsContentTestCases -t android.content.pm.cts.ComponentInfoTest
Bug: 37495524
Change-Id: I9040534d717ac70d580bd2a7f5488369ab7c3a47

7 years agoMerge "Internal copy of Palette API." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 17:24:02 +0000 (17:24 +0000)]
Merge "Internal copy of Palette API." into oc-dev

7 years agoBring up the QS state colors to increase contrast
Jason Monk [Wed, 19 Apr 2017 17:11:11 +0000 (13:11 -0400)]
Bring up the QS state colors to increase contrast

Test: visual
Change-Id: I5182e3dae7be89bf38d0ed33e3cbefedc664c718
Fixes: 37443237

7 years agoMerge "Adding API AppWidgetHost.getAppWidgetIds() to get active widgets of the host...
Sunny Goyal [Wed, 19 Apr 2017 17:10:37 +0000 (17:10 +0000)]
Merge "Adding API AppWidgetHost.getAppWidgetIds() to get active widgets of the host" into oc-dev

7 years agoMerge "Mark Restricted APN connections as restricted." into oc-dev
Robert Greenwalt [Wed, 19 Apr 2017 17:09:30 +0000 (17:09 +0000)]
Merge "Mark Restricted APN connections as restricted." into oc-dev

7 years agoDO NOT MERGE ANYWHERE: Move content from verison 123 to 122, and skip verison 123.
Zheng Zhang [Wed, 19 Apr 2017 01:16:33 +0000 (18:16 -0700)]
DO NOT MERGE ANYWHERE: Move content from verison 123 to 122, and skip verison 123.

HFP profile config landed late in Emerald development, and was committed
as version 122 there.
When it merged to master, there were conflicts since 122 was already
taken, so it was resolved as version 123.
We didn't catch the subtle bug then:
This means Emerald devices will reset HFP profile config in error once
they upgrade to Feldspar.
Correct this by merging 122, and making 123 a no-op.

Bug: 37338202
Change-Id: Ibf4c824d27300641fd1bb15f5884baf056bd8d7e

7 years agoMerge "MediaSessionService: Nullify the media button sesison when it's removed" into...
TreeHugger Robot [Wed, 19 Apr 2017 16:42:38 +0000 (16:42 +0000)]
Merge "MediaSessionService: Nullify the media button sesison when it's removed" into oc-dev

7 years agoMerge "RecoverySystem: Enable the package compatibility verification." into oc-dev
Tao Bao [Wed, 19 Apr 2017 16:30:22 +0000 (16:30 +0000)]
Merge "RecoverySystem: Enable the package compatibility verification." into oc-dev

7 years agoMerge "fs_stat: ignore quota fix caused by tree optimization" into oc-dev
Keun-young Park [Wed, 19 Apr 2017 16:12:02 +0000 (16:12 +0000)]
Merge "fs_stat: ignore quota fix caused by tree optimization" into oc-dev

7 years agoMerge "RecoverySystem: Verify the package compatibility." into oc-dev
Tao Bao [Wed, 19 Apr 2017 15:54:18 +0000 (15:54 +0000)]
Merge "RecoverySystem: Verify the package compatibility." into oc-dev

7 years agoQS BluetoothTile proiritizes connected device
tturney [Tue, 18 Apr 2017 20:59:40 +0000 (13:59 -0700)]
QS BluetoothTile proiritizes connected device

When there is a connected device and the
Bluetooth Cacheded Device list is too large
it doesn't guarantee a connected device
will show up at all in the Bluetooth
Quick Settings Tile. This code modifies
the tile to match Wifi witch guarantees
connected devices be at the top of the
Bluetooth Tile list.

Bug: 37438599
Test: Manually pair multiple deivces to create
a large list and change connected states.

Change-Id: I93caa43743e1d63f4eab6b8bc636e8e8b2b40ec4

7 years agoSwap back content alphas for light and dark.
Jason Monk [Wed, 19 Apr 2017 14:49:37 +0000 (10:49 -0400)]
Swap back content alphas for light and dark.

Someone may have accidentally switched them...

Change-Id: If9039398548a7ce9d7f38941ba774a05e8bedcb8
Fixes: 37483431
Test: visual

7 years agoDon't show starting window for overlay activities
Wale Ogunwale [Wed, 19 Apr 2017 13:05:13 +0000 (06:05 -0700)]
Don't show starting window for overlay activities

Since they are just overlaying other activities in the task.

Change-Id: I5d9b8e22c9858e282fc36ed4c3f7aff9f9b7654d
Fixes: 37199644
Test: manual

7 years agoFix FragmentTransaction.show() to show the fragment.
George Mount [Wed, 19 Apr 2017 14:29:45 +0000 (07:29 -0700)]
Fix FragmentTransaction.show() to show the fragment.

Bug 37413327

When there was an animation and the fragment transaction wasn't
optimized, the fragment visiiblity wasn't being set during show().

Test: I0fd4029a02d6c9f082011bf56f0d3c8245803f68
Change-Id: Idc2c74ae2fc4759a755a5988ce6ca1b39ef8d554

7 years agoMerge changes I1d00d86e,I16d81113 into oc-dev
Julia Reynolds [Wed, 19 Apr 2017 13:45:02 +0000 (13:45 +0000)]
Merge changes I1d00d86e,I16d81113 into oc-dev

* changes:
  Silence non-clickable imagebutton
  Remove log spam

7 years agoMerge "Don't clear snoozed components on restore." into oc-dev
Julia Reynolds [Wed, 19 Apr 2017 13:44:18 +0000 (13:44 +0000)]
Merge "Don't clear snoozed components on restore." into oc-dev

7 years agoTextClassifierImpl: Fix empty locale list issue.
Abodunrinwa Toki [Thu, 13 Apr 2017 08:56:52 +0000 (09:56 +0100)]
TextClassifierImpl: Fix empty locale list issue.

Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 37289966
Change-Id: Ib822f2cc2fbaeb67dcc06e1f9fea306ee1c8c9ef

7 years agoAdd unit test for Skia path behavior
Matt Sarett [Tue, 18 Apr 2017 22:09:52 +0000 (18:09 -0400)]
Add unit test for Skia path behavior

Test: This is a test.
Bug: 35369941

Change-Id: Iaf21d3a903702f81a20e08e8b50b782f311ce7f3

7 years agoMerge "Redesign of QSSecurityFooter" into oc-dev
Philipp Weiß [Wed, 19 Apr 2017 09:25:38 +0000 (09:25 +0000)]
Merge "Redesign of QSSecurityFooter" into oc-dev

7 years agoMerge "Binder: Log details of pending exception." into oc-dev
Narayan Kamath [Wed, 19 Apr 2017 08:03:00 +0000 (08:03 +0000)]
Merge "Binder: Log details of pending exception." into oc-dev

7 years agoMediaSessionService: Nullify the media button sesison when it's removed
Jaewan Kim [Wed, 29 Mar 2017 18:22:03 +0000 (03:22 +0900)]
MediaSessionService: Nullify the media button sesison when it's removed

When the media button sesison is removed, we'd better not pick the
alternative media button session within the app because the alternative
media session might be a dummy which isn't able to handle media keys.

Test: Run the CtsMediaTest (MediaSessionTest and MediaSessionManagerTest)
  and the manual test (Launch a media app which creates two media
  sessions, and confirmed that another media session doesn't become the
  media button session when the media button session is removed)

Change-Id: I376a34ee4b5d2344007594134c40b135b2c5a1bf

7 years agoMerge "Some Autofill API changes." into oc-dev
Felipe Leme [Wed, 19 Apr 2017 05:05:44 +0000 (05:05 +0000)]
Merge "Some Autofill API changes." into oc-dev

7 years agoChange mask path to only use cubicTo notation so that isConvex is always true.
Hyunyoung Song [Wed, 19 Apr 2017 04:50:35 +0000 (21:50 -0700)]
Change mask path to only use cubicTo notation so that isConvex is always true.
Bug: 37100106

On angler, executed:
Test: $ adb shell am instrument -e class 'android.graphics.drawable.AdaptiveIconDrawableTest' -w 'com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner'

android.graphics.drawable.AdaptiveIconDrawableTest:.....

Time: 1.289

OK (5 tests)

Change-Id: I1f989c0ccc4eafc25bfd84e495ae770eefa50c01

7 years agofs_stat: ignore quota fix caused by tree optimization
Keun-young Park [Mon, 17 Apr 2017 23:17:28 +0000 (16:17 -0700)]
fs_stat: ignore quota fix caused by tree optimization

- tree optimization leads into quota fix which is not a real fix.
- Distinguish such case from real file system fix to get fs statistics
  correctly.
- This is only for correct fs stat metric collection. There is no
  functionality change in device side.
- Full parsing is only run when fs fix is detected from fs_stat.
  Examplt of fsck fix that will be ignored as optimization:
  e2fsck 1.43.3 (04-Sep-2016)
  Pass 1: Checking inodes, blocks, and sizes
  Inode 877141 extent tree (at level 1) could be shorter.  Fix? yes

  Pass 1E: Optimizing extent trees
  Pass 2: Checking directory structure
  Pass 3: Checking directory connectivity
  Pass 4: Checking reference counts
  Pass 5: Checking group summary information
  [QUOTA WARNING] Usage inconsistent for ID 10038:actual (71667712, 1000) != expected (71671808, 1000)
  Update quota info for quota type 0? yes

  [QUOTA WARNING] Usage inconsistent for ID 10038:actual (59555840, 953) != expected (59559936, 953)
  Update quota info for quota type 1? yes

  /dev/block/platform/soc/624000.ufshc/by-name/userdata: ***** FILE SYSTEM WAS MODIFIED *****
- also added unit test for the fsck log parsing

bug: 36391645
Test: many reboots with fs_stat check, runtest frameworks-services -c com.android.server.BootReceiverFixFsckFsStatTest
Change-Id: I86a97a3b50ee573db51d19d2cd243b8f7795a165

7 years agoMerge "Fix for SurfaceView out of a view hierarchy" into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 03:17:45 +0000 (03:17 +0000)]
Merge "Fix for SurfaceView out of a view hierarchy" into oc-dev