OSDN Git Service

android-x86/frameworks-base.git
7 years agoRename getIntent() to getRenderIntent()
Romain Guy [Thu, 6 Apr 2017 19:37:03 +0000 (12:37 -0700)]
Rename getIntent() to getRenderIntent()

Bug: 37077433
Test: compile and ColorSpaceTests
Change-Id: I8eb1fa6136582eaac1d509ebfef7f67b0fffe1aa

7 years agoMerge "TIF: hide BaseProgramColumns and BasePreviewColumns" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:23:21 +0000 (19:23 +0000)]
Merge "TIF: hide BaseProgramColumns and BasePreviewColumns" into oc-dev

7 years agoMerge "AAPT2: Allow multiple -c flags" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:14:43 +0000 (19:14 +0000)]
Merge "AAPT2: Allow multiple -c flags" into oc-dev

7 years agoMerge "Revert "AudioAttributes: remove static getVolumeControlStream method"" into...
Jean-Michel Trivi [Tue, 4 Apr 2017 19:08:33 +0000 (19:08 +0000)]
Merge "Revert "AudioAttributes: remove static getVolumeControlStream method"" into oc-dev

7 years agoMerge "Fix HWUI/Skia Gradients to premultiply the colors prior to interpolation"...
TreeHugger Robot [Tue, 4 Apr 2017 19:06:28 +0000 (19:06 +0000)]
Merge "Fix HWUI/Skia Gradients to premultiply the colors prior to interpolation" into oc-dev

7 years agoMerge "Refresh opacity and statefulness on tint change" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:04:56 +0000 (19:04 +0000)]
Merge "Refresh opacity and statefulness on tint change" into oc-dev

7 years agoMerge "Temporary fix for themes" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 18:53:02 +0000 (18:53 +0000)]
Merge "Temporary fix for themes" into oc-dev

7 years agoMerge "Fix PackageManagerService passing usesLibraryFiles to dexOpt." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 18:52:04 +0000 (18:52 +0000)]
Merge "Fix PackageManagerService passing usesLibraryFiles to dexOpt." into oc-dev

7 years agoMerge "Fix saving target fragment when Fragment not yet created." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 18:45:12 +0000 (18:45 +0000)]
Merge "Fix saving target fragment when Fragment not yet created." into oc-dev

7 years agoMerge "Change justification parameter from boolean to int." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 18:29:54 +0000 (18:29 +0000)]
Merge "Change justification parameter from boolean to int." into oc-dev

7 years agoRevert "AudioAttributes: remove static getVolumeControlStream method"
Jean-Michel Trivi [Tue, 4 Apr 2017 18:26:44 +0000 (18:26 +0000)]
Revert "AudioAttributes: remove static getVolumeControlStream method"

This reverts commit e0b5bf50d6cf4621e483d0c85898a61a19ff6d45.

Change-Id: I2f3f10c149b205d22c41d5c9767ea10b0dee7682

7 years agoMerge "Load IA resolver settings from resolver package" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 17:48:36 +0000 (17:48 +0000)]
Merge "Load IA resolver settings from resolver package" into oc-dev

7 years agoMerge "Add a service to rank apps for ResolverActivity." into oc-dev
Kang Li [Tue, 4 Apr 2017 17:42:28 +0000 (17:42 +0000)]
Merge "Add a service to rank apps for ResolverActivity." into oc-dev

7 years agoMerge "Request layout when updating child layout params." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 17:36:43 +0000 (17:36 +0000)]
Merge "Request layout when updating child layout params." into oc-dev

7 years agoMerge "Revert "Switch libplatformproto to sharedlib"" into oc-dev
Chris Craik [Tue, 4 Apr 2017 17:16:33 +0000 (17:16 +0000)]
Merge "Revert "Switch libplatformproto to sharedlib"" into oc-dev

7 years agoTIF: hide BaseProgramColumns and BasePreviewColumns
Dongwon Kang [Fri, 24 Mar 2017 23:47:56 +0000 (16:47 -0700)]
TIF: hide BaseProgramColumns and BasePreviewColumns

Note: BaseColumns(API 1) and BaseTvColumns(API 21) remains public due to
the backward compatability. Plus, inheritence between BaseProgramColumns
and BasePreviewColumns is also removed to follow patterns in other
Contracts.

Test: cts-tradefed run cts -m CtsTvTestCases -t android.media.tv.cts.TvContractTest
Bug: 36395855
Change-Id: Ie73a2e48217676be53f373f8524afd04f7d8fc37

7 years agoMerge "Reorganize font enumeration API." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 16:49:51 +0000 (16:49 +0000)]
Merge "Reorganize font enumeration API." into oc-dev

7 years agoFix PackageManagerService passing usesLibraryFiles to dexOpt.
Jeff Hao [Tue, 28 Mar 2017 22:24:14 +0000 (15:24 -0700)]
Fix PackageManagerService passing usesLibraryFiles to dexOpt.

The shared libraries for the package need to be updated before calling
performDexOpt so that they can be populated and passed down to dexOpt.
This isn't missing in the AOSP version, so the fix is only for master.

Bug: 36698836
Test: cts-tradefed run singleCommand cts -d --module
CtsAppSecurityHostTestCases -t
android.appsecurity.cts.UsesLibraryHostTest

Change-Id: Id58bd50a13e5115af03c9167d4eb7f4b1d1dc9da
(cherry picked from commit 1d643dabe543f3f1b7d96485d6317eece7836a4e)

7 years agoTemporary fix for themes
Jason Monk [Tue, 14 Mar 2017 13:28:20 +0000 (09:28 -0400)]
Temporary fix for themes

Will need a better optimization written by someone who knows the
code better than me.

Bug: 36099320
Test: Try to change theme, twice
Change-Id: Ief50bb98725de5a281c13d6d6572867925228d62

7 years agoFix HWUI/Skia Gradients to premultiply the colors prior to interpolation
Derek Sollenberger [Fri, 31 Mar 2017 16:09:24 +0000 (12:09 -0400)]
Fix HWUI/Skia Gradients to premultiply the colors prior to interpolation

This is fixed in Skia by passing the appropriate flag when the shader is
generated.  The fix in HWUI is to reverse the premultiplication and
interpolation steps.

Test: bit CtsUiRenderingTestCases:.testclasses.ShaderTests
Bug: 34323783
Change-Id: I3417141949f62fcc696b6d8213a4b446d7d0cbf8

7 years agoMerge "AudioAttributes: remove static getVolumeControlStream method" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 15:32:20 +0000 (15:32 +0000)]
Merge "AudioAttributes: remove static getVolumeControlStream method" into oc-dev

7 years agoMerge "Recompute focus in showLw if needed" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 15:22:40 +0000 (15:22 +0000)]
Merge "Recompute focus in showLw if needed" into oc-dev

7 years agoRefresh opacity and statefulness on tint change
Alan Viverette [Tue, 4 Apr 2017 13:31:59 +0000 (13:31 +0000)]
Refresh opacity and statefulness on tint change

Also warns when LayerDrawable is created with an invalid child. This
is not guaranteed to fail, but it's usually a bad sign.

Bug: 33124798
Test: LayerDrawableTest, DrawableContainerTest
Change-Id: Ie3e4200b27a9814cee7f5711d7df9710db513953

7 years agoLoad IA resolver settings from resolver package
Jesse Evans [Mon, 3 Apr 2017 15:15:56 +0000 (08:15 -0700)]
Load IA resolver settings from resolver package

Changes the logic of getEphemeralResolverSettingsLPr() to resolve
a settings component in any of the packages whitelisted to provide
the instant apps installer.

Test: Boots

Bug: 36840581
Change-Id: Iac5e3dfa2cb97a630092212322f9c983c2d29926
(cherry picked from commit d4310934905aea48079dd5e3a590cd4e2427dcac)

7 years agoMerge "standardize account manager notification IDs" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 14:35:30 +0000 (14:35 +0000)]
Merge "standardize account manager notification IDs" into oc-dev

7 years agoMerge "Fix NPE when status bar isn't available" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 14:21:22 +0000 (14:21 +0000)]
Merge "Fix NPE when status bar isn't available" into oc-dev

7 years agoMerge "Launch Intents from QS security footer as current user" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 14:04:31 +0000 (14:04 +0000)]
Merge "Launch Intents from QS security footer as current user" into oc-dev

7 years agoRecompute focus in showLw if needed
Jorim Jaggi [Tue, 4 Apr 2017 13:09:51 +0000 (15:09 +0200)]
Recompute focus in showLw if needed

When the status bar window was relayouted it wasn't visible by
policy (yet). Thus, it couldn't get focus even though
FLAG_NOT_FOCUSABLE was not set. Shortly after, it was made
visible and thus able to receive focus, but nobody actually
kicked off another focus calculation.

Test: Set device password, open camera from lockscreen,
adb shell wm dismiss-keyguard
Fixes: 36242569

Change-Id: Iafbeac45d25490243b701434008e65f545cebbdf

7 years agostandardize account manager notification IDs
Chris Wren [Fri, 31 Mar 2017 19:34:39 +0000 (15:34 -0400)]
standardize account manager notification IDs

Bug: 36807942
Test: frameworks/base/services/tests/runtests/py
Change-Id: Iad5383ebbf9cf1765da5ad7405da1f79a3761c63

7 years agoBoost thread priority when holding the WM lock
Jorim Jaggi [Mon, 27 Mar 2017 22:43:31 +0000 (00:43 +0200)]
Boost thread priority when holding the WM lock

Test: Take systrace of open app, make sure thead is boosted while
doing stuff in WM
Test: Run WmSlam with and without boosting. Observe an
improvement.
Bug: 36631902
Change-Id: Iadb036f8d12bbf59091466500e82207cf6fa85d5

7 years agoFix NPE when status bar isn't available
Jorim Jaggi [Tue, 4 Apr 2017 10:51:03 +0000 (12:51 +0200)]
Fix NPE when status bar isn't available

Status bar isn't there in CryptKeeper.

Test: Boot non-direct-boot device
Change-Id: I8cbf1bfbebc917b03f528f040bb019d193228bbb
Fixes: 36407040

7 years agoMerge "Schedule window animations at vsync-sf" into oc-dev
Jorim Jaggi [Tue, 4 Apr 2017 09:26:00 +0000 (09:26 +0000)]
Merge "Schedule window animations at vsync-sf" into oc-dev

7 years agoMerge "Handle case when snapshot dimensions don't match" into oc-dev
Jorim Jaggi [Tue, 4 Apr 2017 09:14:35 +0000 (09:14 +0000)]
Merge "Handle case when snapshot dimensions don't match" into oc-dev

7 years agoMerge "ANativeWindow_toSurface implementation" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 04:30:11 +0000 (04:30 +0000)]
Merge "ANativeWindow_toSurface implementation" into oc-dev

7 years agoMerge "Fix AccessibilityManager returning duplicate services" into oc-dev
Casey Burkhardt [Tue, 4 Apr 2017 04:29:21 +0000 (04:29 +0000)]
Merge "Fix AccessibilityManager returning duplicate services" into oc-dev

7 years agoMerge "Bluetooth: Ensure only desired intents are being handled" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 03:49:14 +0000 (03:49 +0000)]
Merge "Bluetooth: Ensure only desired intents are being handled" into oc-dev

7 years agoMerge "Revert "Refresh opacity and statefulness on tint change"" into oc-dev
Ian Pedowitz [Tue, 4 Apr 2017 03:38:55 +0000 (03:38 +0000)]
Merge "Revert "Refresh opacity and statefulness on tint change"" into oc-dev

7 years agoRevert "Refresh opacity and statefulness on tint change"
Yohei Yukawa [Tue, 4 Apr 2017 03:30:01 +0000 (03:30 +0000)]
Revert "Refresh opacity and statefulness on tint change"

This reverts commit 1eda069f7c9a36e58c17ecf185a5c0906be5df95.

Reason to revert:
The setup wizard started throwing android.view.InflateException due to
I89f6d804fb025f426aefdee67559778cf03015bb. Temporarily reverting that
change until we figure out what is going on.

Change-Id: I9344a3402f2fab02f4fe49a6a8ad91970b2d3b3e
Test: Manually verified that the setup wizard no longer crashes.
Bug: 33124798
Bug: 36870685

7 years agoMerge "Themes: Apply themes to system_server safely" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 03:25:25 +0000 (03:25 +0000)]
Merge "Themes: Apply themes to system_server safely" into oc-dev

7 years agoMerge "Make sure that the device name is not null before returning it" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 03:24:14 +0000 (03:24 +0000)]
Merge "Make sure that the device name is not null before returning it" into oc-dev

7 years agoMerge "Clean up activity/stack associations." into oc-dev
Bryce Lee [Tue, 4 Apr 2017 03:01:46 +0000 (03:01 +0000)]
Merge "Clean up activity/stack associations." into oc-dev

7 years agoMerge "In MountEmulatedStorage() do not try to mount for mode MOUNT_EXTERNAL_NONE...
TreeHugger Robot [Tue, 4 Apr 2017 02:59:30 +0000 (02:59 +0000)]
Merge "In MountEmulatedStorage() do not try to mount for mode MOUNT_EXTERNAL_NONE." into oc-dev

7 years agoMerge "Audio focus: API for external audio focus policy" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 02:39:58 +0000 (02:39 +0000)]
Merge "Audio focus: API for external audio focus policy" into oc-dev

7 years agoAAPT2: Allow multiple -c flags
Adam Lesinski [Tue, 4 Apr 2017 02:38:25 +0000 (19:38 -0700)]
AAPT2: Allow multiple -c flags

AAPT allows multiple -c flags in addition to separating -c arguments
with commas.

Bug: 35671619
Test: manual
Change-Id: I90491968e8ea2b28e3cd6e9246bcdd62bd6d6a3c

7 years agoANativeWindow_toSurface implementation
Jiwen 'Steve' Cai [Fri, 31 Mar 2017 18:19:50 +0000 (11:19 -0700)]
ANativeWindow_toSurface implementation

This enables the conversion from an ANativeWindow (created by NDK API
such as: AImageReader_create) to a Java Surface, so that developers can
hookup a Java Producer to a native buffer consumer.

This CL also introduces android_view_Surface_createFromSurface helper
function in libandroid_runtime to convert a C++ sp<Surface> to a Java
Surface object.

Bug: 36862948
Test: android.media.cts.NativeImageReaderTest
Change-Id: Ia99adb654da505ac117a8e58153ac800df23a650

7 years agoRequest layout when updating child layout params.
Robert Carr [Tue, 4 Apr 2017 02:00:26 +0000 (19:00 -0700)]
Request layout when updating child layout params.

In order to clear the measure cache, we need to requestLayout
when updating the child layout params. To see why, consider the case of
a Frame or Linear layout which will measure different heights
depending on the (top/left/right/bottom)Margin parameters of it's
childrens layout params. Now imagine the following sequence of events:

1. We request a layout on the FrameLayout
2. We measure the FrameLayout and place a value in the cache.
3. Now we update the margin parameters on one of the frame layouts
   children. Because the parent already has a layout requested
   we don't call parent.requestLayout (see View.java#requestLayout),
   and thus the parent measure cache isn't cleared.
4. Now we measure the frame layout again and we incorrectly
   used the cached value.

Calling to requestLayout when the child layout params
change clears the cache properly. If the child didn't
call request layout from it's own relayout, it must mean that
a layout was already pending (step 1 in the sequence),
and so no more work should be triggered besides clearing the cache.

Bug: 33095565
Bug: 33308065
Bug: 34388764
Test: Manual case in bugs.
Change-Id: I9148f32530588e4dc859297f9658f506b38e72f0

7 years agoMerge "Rename UsbRequest.enqueue to UsbRequest.queue" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 01:57:15 +0000 (01:57 +0000)]
Merge "Rename UsbRequest.enqueue to UsbRequest.queue" into oc-dev

7 years agoBluetooth: Ensure only desired intents are being handled
Jack He [Mon, 3 Apr 2017 22:13:57 +0000 (15:13 -0700)]
Bluetooth: Ensure only desired intents are being handled

* Prevent arbitrary intents from making Bluetooth undiscoverable by only
  allowing DISCOVERABLE_TIMEOUT intent to be handled

Bug: 33058582
Test: make, test for Broadcast and Bluetooth scanning
Change-Id: Ib8b04dddf1610a082d167825253f3e1c968aaa14

7 years agoMerge "Update display contents when metrics change" into oc-dev
Andrii Kulian [Tue, 4 Apr 2017 01:38:22 +0000 (01:38 +0000)]
Merge "Update display contents when metrics change" into oc-dev

7 years agoMerge "Emit fingerprints during OTA upgrades." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 01:33:24 +0000 (01:33 +0000)]
Merge "Emit fingerprints during OTA upgrades." into oc-dev

7 years agoMerge "Increase visibility of FEATURE_LEANBACK_ONLY" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 01:28:37 +0000 (01:28 +0000)]
Merge "Increase visibility of FEATURE_LEANBACK_ONLY" into oc-dev

7 years agoMake sure that the device name is not null before returning it
Ajay Panicker [Mon, 3 Apr 2017 19:15:54 +0000 (12:15 -0700)]
Make sure that the device name is not null before returning it

Bug: 30948380
Test: Pair a device
Change-Id: I1b5610c85d6e74cec89fab0db3db281938a05a8c

7 years agoMerge "TIF: use integer for constants instead of string" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 01:10:39 +0000 (01:10 +0000)]
Merge "TIF: use integer for constants instead of string" into oc-dev

7 years agoMerge "Move back networking policy logic into NetworkPolicyManagerService" into oc-dev
Hugo Benichi [Tue, 4 Apr 2017 00:50:20 +0000 (00:50 +0000)]
Merge "Move back networking policy logic into NetworkPolicyManagerService" into oc-dev

7 years agoIn MountEmulatedStorage() do not try to mount for mode MOUNT_EXTERNAL_NONE.
Robert Sesek [Mon, 20 Mar 2017 21:30:05 +0000 (17:30 -0400)]
In MountEmulatedStorage() do not try to mount for mode MOUNT_EXTERNAL_NONE.

When creating an isolatedProcess=true service and when the native bridge
is in use, MountEmulatedStorage() is called with force_mount_namespace=true
and MOUNT_EXTERNAL_NONE. This led to an abort crash, since the process
would attempt to mount an empty path string.

Test: android.externalservice.cts.ExternalServiceTest built for ARM, run on Fugu
Bug: 36072260
Change-Id: I9441bcbd30167971ad486726bbeae57f3c4aebe9
Merged-In: I88474b6f50ae7cfab40ba44ff1da0df6021a2fb0
(cherry picked from commit 06f393067772f613e938f794444dc90e90c40fc0)

7 years agoMerge "Fixed NPE when FillService replies with a null FillResponse." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 00:39:52 +0000 (00:39 +0000)]
Merge "Fixed NPE when FillService replies with a null FillResponse." into oc-dev

7 years agoMerge "Fixing issue with activity incorrectly auto-entering PiP." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 00:39:05 +0000 (00:39 +0000)]
Merge "Fixing issue with activity incorrectly auto-entering PiP." into oc-dev

7 years agoMerge "Add some strings that will be needed for QS changes" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 00:35:37 +0000 (00:35 +0000)]
Merge "Add some strings that will be needed for QS changes" into oc-dev

7 years agoMerge "media: unhide mediarecorder's setVideoEncodingProfileLevel api." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 00:33:42 +0000 (00:33 +0000)]
Merge "media: unhide mediarecorder's setVideoEncodingProfileLevel api." into oc-dev

7 years agoMerge "Expose animator settings to Instant Apps" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 00:23:30 +0000 (00:23 +0000)]
Merge "Expose animator settings to Instant Apps" into oc-dev

7 years agoFix saving target fragment when Fragment not yet created.
George Mount [Mon, 3 Apr 2017 22:36:01 +0000 (15:36 -0700)]
Fix saving target fragment when Fragment not yet created.

Bug 35928527

During optimized transactions, a fragment may be removed without
being created. That leaves the state of the fragment in INITIALIZING
and previously, that state wasn't ever saved. This CL allows a
fragment that is being removed to be brought up to the CREATED state
so that it can be saved during saveAllState().

Test: manual and Ie7207cc647312d38b377405bc5ec8721db757d2e

Change-Id: I649f1931745be43087ec3578e9195624e80821dc

7 years agoMerge "Adds appropriate filtering for instant apps" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 23:55:14 +0000 (23:55 +0000)]
Merge "Adds appropriate filtering for instant apps" into oc-dev

7 years agoMerge "support shutdown animation from bootanim" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 23:51:34 +0000 (23:51 +0000)]
Merge "support shutdown animation from bootanim" into oc-dev

7 years agoMerge "Expose framework activities to Instant Apps" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 23:51:02 +0000 (23:51 +0000)]
Merge "Expose framework activities to Instant Apps" into oc-dev

7 years agoAdd a service to rank apps for ResolverActivity.
Kang Li [Tue, 14 Mar 2017 18:52:17 +0000 (11:52 -0700)]
Add a service to rank apps for ResolverActivity.

bug: 30982298
Test: manual - shared images in Camera, texts in Messenger, and webpages
in Chrome.

Change-Id: If335c269ca54145839ad8fd4b3f9b93a74b550f8
(cherry picked from commit 35b9e3015565850e9de963e4bda1be227825df5d)

7 years agoMerge "Not send switch intents if there is no real intent" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 23:44:41 +0000 (23:44 +0000)]
Merge "Not send switch intents if there is no real intent" into oc-dev

7 years agoClean up activity/stack associations.
Bryce Lee [Mon, 20 Mar 2017 21:20:22 +0000 (14:20 -0700)]
Clean up activity/stack associations.

The stack currently holds a reference to resuming and pausing
activities. These are usually cleaned up when the activity ends or
the task is reparented. However, it is possible for an activity to
lose its reference to its task in other areas (such as
ActivityStarter), which can lead to the stack not being updated
correctly.

This changelist adds a method to the ActivityStack to disassociate
the stack from an ActivityRecord. In addition to places where this is
called when an activity ends, this method is invoked on the children
of a task when the task is reparented. The task member variable of
ActivityRecord is also now surrounded by a setter/getter, with the
setter always invoking the dissociation logic on a previous stack.

Test: bit FrameworksServicesTests:com.android.server.am.ActivityRecordTests
Change-Id: Iffeccdb6f011958896271673946acfed28856f53
Fixes: 36387417

7 years agoMerge "Don't wtf() for reverse profile access; make it a warning." into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 23:31:56 +0000 (23:31 +0000)]
Merge "Don't wtf() for reverse profile access; make it a warning." into oc-dev

7 years agoMerge "Whitelist DMAgent from bg check" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 23:30:36 +0000 (23:30 +0000)]
Merge "Whitelist DMAgent from bg check" into oc-dev

7 years agoEmit fingerprints during OTA upgrades.
Jeff Sharkey [Mon, 3 Apr 2017 23:22:35 +0000 (17:22 -0600)]
Emit fingerprints during OTA upgrades.

Can be used to help confirm diagnosis of bugs like 34525014.

Test: builds, boots
Bug: 36795529
Change-Id: Ie2517061ef031716c493b2544b0fb95628f20737

7 years agoMerge "Handle edge-case where the focus-search root is focused" into oc-dev
Evan Rosky [Mon, 3 Apr 2017 23:10:48 +0000 (23:10 +0000)]
Merge "Handle edge-case where the focus-search root is focused" into oc-dev

7 years agoIncrease visibility of FEATURE_LEANBACK_ONLY
Daniel Cardenas [Mon, 3 Apr 2017 21:42:42 +0000 (14:42 -0700)]
Increase visibility of FEATURE_LEANBACK_ONLY

Bug: 36003137
Test: Build on Fugu and CTS
Change-Id: Iab9be686a004c5c0d1fae02a33898f7ebb264b27

7 years agoMerge "Refresh opacity and statefulness on tint change" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 22:47:28 +0000 (22:47 +0000)]
Merge "Refresh opacity and statefulness on tint change" into oc-dev

7 years agoMerge "Address API concerns for isConcurrentVoiceAndDataAllowed and OnReceiveUssdResp...
Pankaj Kanwar [Mon, 3 Apr 2017 22:35:59 +0000 (22:35 +0000)]
Merge "Address API concerns for isConcurrentVoiceAndDataAllowed and OnReceiveUssdResponseCallback." into oc-dev

7 years agoAdd some strings that will be needed for QS changes
Jason Monk [Mon, 3 Apr 2017 22:27:01 +0000 (18:27 -0400)]
Add some strings that will be needed for QS changes

Test: make
Bug: 34765805
Change-Id: I8824314ffe7c91502dc6b516506a98507cdf03ab

7 years agoMerge "Framework support to improve bg check CTS tests." into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 22:25:53 +0000 (22:25 +0000)]
Merge "Framework support to improve bg check CTS tests." into oc-dev

7 years agoMerge "Revert "Deprecate EXTRA_STREAM."" into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 22:17:13 +0000 (22:17 +0000)]
Merge "Revert "Deprecate EXTRA_STREAM."" into oc-dev

7 years agoMerge "Warn if IMM#showSoftInputUnchecked() is called" into oc-dev
Yohei Yukawa [Mon, 3 Apr 2017 22:14:25 +0000 (22:14 +0000)]
Merge "Warn if IMM#showSoftInputUnchecked() is called" into oc-dev

7 years agoMerge "Remove/fix broken test due to change to DUMP permission check." into oc-dev
TreeHugger Robot [Mon, 3 Apr 2017 22:13:26 +0000 (22:13 +0000)]
Merge "Remove/fix broken test due to change to DUMP permission check." into oc-dev

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 agoFixing issue with activity incorrectly auto-entering PiP.
Winson Chung [Mon, 3 Apr 2017 22:04:20 +0000 (15:04 -0700)]
Fixing issue with activity incorrectly auto-entering PiP.

- When the PiP menu activity was brought forward, we were inadvertently
  setting the auto-enter supported flag for the PiP base activity as
  well, which would trigger auto-enter PiP once the activity is moved
  back to fullscreen and then subsequently finished.

Bug: 36352343
Bug: 36364010
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: Id1b800bf392d03b55562fb13374e33a5ff0ebda6

7 years agoFixed NPE when FillService replies with a null FillResponse.
Felipe Leme [Mon, 3 Apr 2017 20:53:21 +0000 (13:53 -0700)]
Fixed NPE when FillService replies with a null FillResponse.

This problem was not detected by CTS tests because the exception is
"harmless" (it's just ignored), but it can be verified at logcat:

W Binder  : Caught a RuntimeException from the binder stub implementation.
W Binder  : java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.IntentSender android.service.autofill.FillResponse.getAuthentication()' on a null object reference
W Binder  :  at com.android.server.autofill.ViewState.maybeCallOnFillReady(ViewState.java:159)

Bug: 35707731
Test: CtsAutoFillServiceTestCases pass
Test: manual verification
Change-Id: I58330a7e91b2c186bf97897b7d39640010ca630b

7 years agoChange justification parameter from boolean to int.
Seigo Nonaka [Fri, 31 Mar 2017 16:42:16 +0000 (09:42 -0700)]
Change justification parameter from boolean to int.

Bug: 35766005
Bug: 35764323
Test: Manually done
Change-Id: Ic6d78bb9a3213160cd013f1ca8294307872bf0d0

7 years agoExpose framework activities to Instant Apps
Chad Brubaker [Mon, 3 Apr 2017 21:45:23 +0000 (14:45 -0700)]
Expose framework activities to Instant Apps

Bug: 36864579
Test: Instant apps can use choosers and account picker
Change-Id: Ie8d3a019ffc91497a314b2c9d5a09f6ca5b0ba9f

7 years agoRevert "Switch libplatformproto to sharedlib"
Chris Craik [Mon, 3 Apr 2017 21:46:44 +0000 (21:46 +0000)]
Revert "Switch libplatformproto to sharedlib"

Bug:36847782

This reverts commit e5549d414c7231ee0037cf413dad17e28b8905ba.

Change-Id: I38f1c501b7e40be11ba5f0a7a50651e0c3e41fc5

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 agoAudio focus: API for external audio focus policy
Jean-Michel Trivi [Mon, 3 Apr 2017 06:19:02 +0000 (23:19 -0700)]
Audio focus: API for external audio focus policy

System API for an external audio focus policy. Extends
 the system focus listener with interception of
 focus requests and abandons. Adds method for the focus
 policy to dispatch focus grants and losses.

Test: gts-tradefed run gts -m GtsGmscoreHostTestCases -t 'com.google.android.gts.audio.AudioHostTest#testFocusPolicy'
Bug: 30258418
Change-Id: If408569a2dce07a774e0e2f1be9f1af8e426d2d3

7 years agosupport shutdown animation from bootanim
Keun-young Park [Thu, 23 Mar 2017 20:46:24 +0000 (13:46 -0700)]
support shutdown animation from bootanim

- init will set sys.powerctl property and run bootanim.
- Use /oem/media/shutdownanimation.zip or
  /system/media/shutdownanimation.zip for animation file.
  If none of them exist, android animation will be used.
- Disable audio playing for shutdown animation.
- Disable TimeCheckThread for shutdown animation. It
  accesses /data partition and can block umount.

bug: 36526187
Test: many reboots

Change-Id: If02c73cda2015317d88d056cd45201208da49946

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 agoExpose animator settings to Instant Apps
Chad Brubaker [Mon, 3 Apr 2017 21:34:50 +0000 (14:34 -0700)]
Expose animator settings to Instant Apps

Bug: 36861394
Test: Instant Apps can access the settings
Change-Id: I0e414cb068a47e9a6f62239ffcb922de54586a71

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 agoDon't wtf() for reverse profile access; make it a warning.
Makoto Onuki [Mon, 3 Apr 2017 19:48:42 +0000 (12:48 -0700)]
Don't wtf() for reverse profile access; make it a warning.

Bug:36003688
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: I6d6a73e1d9281dc0b92186dd0666865b0f6b3f1c

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 agoReorganize font enumeration API.
Seigo Nonaka [Tue, 28 Mar 2017 23:16:41 +0000 (16:16 -0700)]
Reorganize font enumeration API.

This CL cleans up APIs around font variation settings.
- Remove FontConfig and FontManager public API.
- Remove FontManagerService from system service.
- Extract inner class FontConfig.Axis as top-level class FontVariationAxis.
  This is used by Typeface.Builder public API to create new Typeface.
- Introduce and expose FontVariationAxis utility functions from/to string.
- Throws if the invalid font variation settings is passed.

Test: android.text.cts.FontVariationAxisTest passes
Test: android.graphics.cts.TypefaceTest passes
Test: android.graphics.cts.PaintTest passes
Change-Id: I9ccafe7a53935960566243e2856e166878ca59ae

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 agoRevert "Deprecate EXTRA_STREAM."
Jeff Sharkey [Mon, 3 Apr 2017 20:14:10 +0000 (20:14 +0000)]
Revert "Deprecate EXTRA_STREAM."

This reverts commit a0ba51c2ab75c8e0406bbd43742597552b6dae98.

Bug: 35293781
Change-Id: I5f0b9000535ac0bcbbe125fe781c20c5fb0c8782

7 years agoRemove/fix broken test due to change to DUMP permission check.
Makoto Onuki [Mon, 3 Apr 2017 18:24:25 +0000 (11:24 -0700)]
Remove/fix broken test due to change to DUMP permission check.

Bug 36854321
Test: adb shell am instrument -e class 'com.android.server.pm.ShortcutManagerTest2' -w com.android.frameworks.servicestests

Change-Id: I80f2a326b70f8d0598246732510e3725a0c58871

7 years agomedia: unhide mediarecorder's setVideoEncodingProfileLevel api.
Hangyu Kuang [Sat, 10 Sep 2016 00:34:52 +0000 (17:34 -0700)]
media: unhide mediarecorder's setVideoEncodingProfileLevel api.

Test: GoogleCmaera app.
bug: 35151543
Change-Id: I37dee948298a14d338bca670af0bc01450c83529

7 years agoTIF: use integer for constants instead of string
Dongwon Kang [Fri, 31 Mar 2017 19:40:20 +0000 (12:40 -0700)]
TIF: use integer for constants instead of string

Test: cts-tradefed run cts -m CtsTvTestCases
Bug: 36395855
Change-Id: I9f0d62acb73883f543219a1ee4ed961140221a11

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