OSDN Git Service
TreeHugger Robot [Wed, 5 Apr 2017 02:20:20 +0000 (02:20 +0000)]
Merge "TIF: protect PARENTAL_CONTROLS_ENABLED_CHANGED broadcast" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 01:52:50 +0000 (01:52 +0000)]
Merge "Adds a config for default autofill service." into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 01:40:13 +0000 (01:40 +0000)]
Merge "Audio focus: duck new players during the ducked phase" into oc-dev
Sam Lin [Wed, 5 Apr 2017 01:29:15 +0000 (01:29 +0000)]
Merge "Add a feature flag for CTS." into oc-dev
Mathias Agopian [Wed, 5 Apr 2017 00:42:52 +0000 (00:42 +0000)]
Merge "Remove useless GraphicBuffer() constructor" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 00:42:34 +0000 (00:42 +0000)]
Merge "Don't crash when passing null to requestChildFocus" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 00:37:48 +0000 (00:37 +0000)]
Merge "Don't broadcast PACKAGE_REMOVED for InstantApps" into oc-dev
TreeHugger Robot [Wed, 5 Apr 2017 00:29:55 +0000 (00:29 +0000)]
Merge "show different timing log for shutdown animation" into oc-dev
Conrad Chen [Tue, 4 Apr 2017 22:24:07 +0000 (15:24 -0700)]
TIF: protect PARENTAL_CONTROLS_ENABLED_CHANGED broadcast
Test: build and test manually to see if warnings are eliminated
Bug:
36898338
Change-Id: Ifea0844926677fad24f7df2ade31cd299099b639
Chen Xu [Tue, 4 Apr 2017 23:43:51 +0000 (23:43 +0000)]
Merge "move ACTION_SERVICE_STATE to system api" into oc-dev
Adrian Roos [Tue, 4 Apr 2017 23:38:38 +0000 (23:38 +0000)]
Merge "AOD: update AOD2 views to spec" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 23:23:30 +0000 (23:23 +0000)]
Merge "Just round up the data partition size." into oc-dev
Jean-Michel Trivi [Tue, 4 Apr 2017 01:49:45 +0000 (18:49 -0700)]
Audio focus: duck new players during the ducked phase
Keep a list of all UIDs whose players should be ducked.
Whenever a new player is created or started, and their
UID matches one in the list, add them to the ducked
players.
The bug observed was when Play Music transitioned from one
song to another while music should have been ducked: the
new song wasn't unducked because it wasn't in the list
of players to unduck, as it wasn't active when the ducking
occured.
Test: request focus while Play Music transitions from one song to another
Bug:
36232742
Bug:
30258418
Change-Id: If8bd47128e6177731406f39e77d049b0d6f34f5d
Adam Powell [Tue, 4 Apr 2017 22:33:23 +0000 (15:33 -0700)]
Don't crash when passing null to requestChildFocus
Add null checks to ScrollView and HorizontalScrollView for checking
the revealOnFocusHint. This should never happen in code called by
the framework, but some apps were hitting it.
Bug:
36379645
Test: none
Change-Id: I220eb88d82126ff08f47a7c2a7fbdddebf07de81
TreeHugger Robot [Tue, 4 Apr 2017 22:42:05 +0000 (22:42 +0000)]
Merge "Add legacy DownloadManager actions to SystemApi." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 22:39:39 +0000 (22:39 +0000)]
Merge "Catching additional case where menu would disappear in accessibility." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 22:38:57 +0000 (22:38 +0000)]
Merge "Change name of the intent fields" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 22:22:57 +0000 (22:22 +0000)]
Merge "Fix pop-up shadow drawn in the wrong place with Skia pipeline" into oc-dev
Keun-young Park [Tue, 4 Apr 2017 19:21:19 +0000 (12:21 -0700)]
show different timing log for shutdown animation
bug:
36873098
Test: reboot and check log
Change-Id: Ic3adaba383cc29dba039a7fb5adcb01d4c0c963b
Todd Kennedy [Tue, 4 Apr 2017 14:33:34 +0000 (07:33 -0700)]
Don't broadcast PACKAGE_REMOVED for InstantApps
Change-Id: I7f054bbf844ad6c1b9a8aa20c5ba91cbf9a5db04
Fixes:
36444594
Test: Manual; uninstall AIA and see that the broadcast isn't sent
TreeHugger Robot [Tue, 4 Apr 2017 22:11:28 +0000 (22:11 +0000)]
Merge "Need to return false if addSkTypeface fails." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 21:42:48 +0000 (21:42 +0000)]
Merge "Initial implementation of autofill partitioning." into oc-dev
fionaxu [Fri, 31 Mar 2017 19:45:12 +0000 (12:45 -0700)]
move ACTION_SERVICE_STATE to system api
As per CDD: The "android.*" namespace for intent constants is reserved
for public
Android API in AOSP. (Whether public to the full SDK, @SystemApi or
defined in AOSP support libraries.)
ACTION_SERVICE_STATE intent is generally useful for system/oem
apps thus move to system api
Bug:
33679956
Test: Manual
Change-Id: Ie38b53f077e8a013351d35387f9133e0ebb26cc9
TreeHugger Robot [Tue, 4 Apr 2017 21:26:13 +0000 (21:26 +0000)]
Merge "[RenderScript] Connect ANativeWindow to BufferQueue before calling AllocationSetSurface." into oc-dev
Sam Lin [Tue, 4 Apr 2017 03:57:45 +0000 (20:57 -0700)]
Add a feature flag for CTS.
Bug:
36599543
Test: Build sailfish and CTS
Test: run cts -o -m CtsAppTestCases -t android.app.cts.SystemFeaturesTest#testFeatureNamespaces
Change-Id: I659ddbe7d6e2d8762d97b8a418cfc246f7a97a3e
TreeHugger Robot [Tue, 4 Apr 2017 21:18:16 +0000 (21:18 +0000)]
Merge "Offer to "fixup" GIDs used for app data." into oc-dev
Jeff Sharkey [Tue, 4 Apr 2017 21:09:58 +0000 (15:09 -0600)]
Just round up the data partition size.
Instead of trying to be clever by poking at underlying flash part
sizes, rely on the fact that device storage printed on retail
packaging is a power-of-two value.
For a typical device with a 23GiB data partition, this will return
a value of "32GB" which matches the retail packaging.
Test: builds, boots
Bug:
34827187
Change-Id: Ib4cf7f637dffc9238252e1fedcd86dc8b5cf656d
TreeHugger Robot [Tue, 4 Apr 2017 20:40:43 +0000 (20:40 +0000)]
Merge "Dump PackageInstaller state outside of mPackages lock" into oc-dev
Jeff Sharkey [Tue, 4 Apr 2017 20:38:39 +0000 (14:38 -0600)]
Add legacy DownloadManager actions to SystemApi.
They're still used by at least one bundled app.
Test: builds, boots
Bug:
35256608
Change-Id: I45966b3e0ed506ead4544bbbfc9d82b7f9d5205d
Todd Kennedy [Mon, 3 Apr 2017 22:22:38 +0000 (15:22 -0700)]
Change name of the intent fields
Change-Id: I67d3f5c7fb3189fdb35908011e92cc82c24b9154
Fixes:
36594944
Test: cts-tradefed run commandAndExit cts-dev -m CtsSignatureTestCases -t android.signature.cts.IntentTest#shouldNotFindUnexpectedIntents
TreeHugger Robot [Tue, 4 Apr 2017 20:31:41 +0000 (20:31 +0000)]
Merge "Add AvailableVirtualKeyboardFragment to TV" into oc-dev
Stan Iliev [Tue, 4 Apr 2017 19:23:54 +0000 (15:23 -0400)]
Fix pop-up shadow drawn in the wrong place with Skia pipeline
Fix a bug in DrawShadow matrix calculation. Recorded matrix does
not need to be applied, because parent display lists have already
replayed matrix transformations.
Test: added a new HWUI unit test that is passing only after this fix
Bug:
33103723
Change-Id: I7a47dbe879df6b9e5920a47c0e1168d9902a3e70
TreeHugger Robot [Tue, 4 Apr 2017 20:23:31 +0000 (20:23 +0000)]
Merge "rebind if the connection drops" into oc-dev
Adrian Roos [Thu, 16 Mar 2017 22:17:57 +0000 (15:17 -0700)]
AOD: update AOD2 views to spec
- Increase notification header size
- Dim clock in AOD2
- Hide shelf in AOD2
Bug:
30876804
Test: manual
Change-Id: I272ff54bd0dbed0ae4271c922f62304401651fc9
TreeHugger Robot [Tue, 4 Apr 2017 19:52:05 +0000 (19:52 +0000)]
Merge "Make shutdown use the UI context." into oc-dev
Evan Rosky [Tue, 4 Apr 2017 19:47:05 +0000 (19:47 +0000)]
Merge "More finishing-up of cluster implementation" into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:37:16 +0000 (19:37 +0000)]
Merge "Migrate the NETWORK_SCORER_APP Setting." into oc-dev
TreeHugger Robot [Tue, 4 Apr 2017 19:31:47 +0000 (19:31 +0000)]
Merge "Disable WebView autocomplete feature." 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
TreeHugger Robot [Tue, 4 Apr 2017 19:14:43 +0000 (19:14 +0000)]
Merge "AAPT2: Allow multiple -c flags" into oc-dev
Jean-Michel Trivi [Tue, 4 Apr 2017 19:08:33 +0000 (19:08 +0000)]
Merge "Revert "AudioAttributes: remove static getVolumeControlStream method"" into oc-dev
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
TreeHugger Robot [Tue, 4 Apr 2017 19:04:56 +0000 (19:04 +0000)]
Merge "Refresh opacity and statefulness on tint change" into oc-dev
Winson Chung [Tue, 4 Apr 2017 18:57:36 +0000 (11:57 -0700)]
Catching additional case where menu would disappear in accessibility.
- When showing the menu via accessibility it will stay on screen until
the user focuses away, but exploring via talkback still sends
onUserInteraction() callbacks which would post it anew. We need to
save the timeout state whenever the menu is shown and check it there
as well.
Bug:
36103023
Test: Enter PIP with talk back, touch button but don't do anything for
the timeout (~4s), verify menu does not close.
Change-Id: I03ce14531fcde84440122bfb0fc70899f5178d5b
TreeHugger Robot [Tue, 4 Apr 2017 18:53:02 +0000 (18:53 +0000)]
Merge "Temporary fix for themes" 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
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
TreeHugger Robot [Tue, 4 Apr 2017 18:29:54 +0000 (18:29 +0000)]
Merge "Change justification parameter from boolean to int." into oc-dev
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
TreeHugger Robot [Tue, 4 Apr 2017 17:48:36 +0000 (17:48 +0000)]
Merge "Load IA resolver settings from resolver package" 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
TreeHugger Robot [Tue, 4 Apr 2017 17:36:43 +0000 (17:36 +0000)]
Merge "Request layout when updating child layout params." into oc-dev
Felipe Leme [Fri, 31 Mar 2017 17:16:17 +0000 (10:16 -0700)]
Initial implementation of autofill partitioning.
BUG:
35707731
Test: existing CtsAutoFillServiceTestCases pass
Test: PartitionedActivityTest
Change-Id: If9df5fe63249f0b9e9da058d1c9327dfd3c09cf3
Jeremy Joslin [Fri, 31 Mar 2017 17:38:31 +0000 (10:38 -0700)]
Migrate the NETWORK_SCORER_APP Setting.
Migrate the value of NETWORK_SCORER_APP to the USE_OPEN_WIFI_PACKAGE
Setting if the following conditions are true:
* NETWORK_SCORER_APP has a value
* An active scorer/recommender is present.
* The active scorer specifies a valid UseOpenWifiActivity.
* The NETWORK_SCORER_APP value matches the package name of the
UseOpenWifiActivity or the active scorer.
Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest
Bug:
36718516
Change-Id: I7d7a56c62b4a7f4a0e43824fbb2075e80d7a753b
Selim Gurun [Mon, 3 Apr 2017 21:29:14 +0000 (14:29 -0700)]
Disable WebView autocomplete feature.
Platform is now providing autofill feature. Disable WebView's simple
form data save feature for platform O and above.
Test: Removing the functionality and the test
Bug:
36869838
Change-Id: If6b9fc12edbe4146fca99d9c6ef8fde36d61f852
Chris Craik [Tue, 4 Apr 2017 17:16:33 +0000 (17:16 +0000)]
Merge "Revert "Switch libplatformproto to sharedlib"" into oc-dev
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
Todd Kennedy [Mon, 3 Apr 2017 19:03:35 +0000 (12:03 -0700)]
rebind if the connection drops
Change-Id: I9d91e9080b99690ff1e50dc28b01df0dcda4e97a
Fixes:
36566927
Test: Manual; stop gms:persistent process using "kill -9"
Test: Manual; stop process using "adb shell am force-stop com.google.android.gms"
Test: Manual; stop process using "adb install -r PrebuiltGmsCore.apk"
TreeHugger Robot [Tue, 4 Apr 2017 16:49:51 +0000 (16:49 +0000)]
Merge "Reorganize font enumeration API." into oc-dev
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)
Michael Wright [Tue, 4 Apr 2017 16:44:56 +0000 (17:44 +0100)]
Make shutdown use the UI context.
Test: manual
Bug:
36879116
Change-Id: Id2d6257a5a462573c3481c886778f51b429117d7
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
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
Tony Mantler [Fri, 31 Mar 2017 20:52:45 +0000 (13:52 -0700)]
Add AvailableVirtualKeyboardFragment to TV
Allows enabling/disabling IMEs on TV.
Moves InputMethodPreference to SettingsLib.
Also minor code tidying
Bug:
36079941
Test: Keyboard settings still work on Fugu and Ryu
Change-Id: I0c7e66c10ca9fe7404dc8e1e384922a7e37f5f5a
(cherry picked from commit
1bb992d802330ad127dab2dbefadd4dd9c739152)
TreeHugger Robot [Tue, 4 Apr 2017 15:32:20 +0000 (15:32 +0000)]
Merge "AudioAttributes: remove static getVolumeControlStream method" 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
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
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)
TreeHugger Robot [Tue, 4 Apr 2017 14:35:30 +0000 (14:35 +0000)]
Merge "standardize account manager notification IDs" 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
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
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
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
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
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
Jorim Jaggi [Tue, 4 Apr 2017 09:26:00 +0000 (09:26 +0000)]
Merge "Schedule window animations at vsync-sf" 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
Miao Wang [Mon, 3 Apr 2017 23:42:03 +0000 (16:42 -0700)]
[RenderScript] Connect ANativeWindow to BufferQueue before calling
AllocationSetSurface.
Bug:
34334222
Test: mm, boot Sailfish, CTS pass and ImageProcessingJB works well.
Change-Id: I77e7fb69987a347862286299622343b4f7879ab0
TreeHugger Robot [Tue, 4 Apr 2017 04:30:11 +0000 (04:30 +0000)]
Merge "ANativeWindow_toSurface implementation" 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
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
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
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
TreeHugger Robot [Tue, 4 Apr 2017 03:25:25 +0000 (03:25 +0000)]
Merge "Themes: Apply themes to system_server safely" 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
Bryce Lee [Tue, 4 Apr 2017 03:01:46 +0000 (03:01 +0000)]
Merge "Clean up activity/stack associations." into oc-dev
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
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
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
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
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
TreeHugger Robot [Tue, 4 Apr 2017 01:57:15 +0000 (01:57 +0000)]
Merge "Rename UsbRequest.enqueue to UsbRequest.queue" into oc-dev
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
Andrii Kulian [Tue, 4 Apr 2017 01:38:22 +0000 (01:38 +0000)]
Merge "Update display contents when metrics change" 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
TreeHugger Robot [Tue, 4 Apr 2017 01:28:37 +0000 (01:28 +0000)]
Merge "Increase visibility of FEATURE_LEANBACK_ONLY" into oc-dev
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
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
Felipe Leme [Mon, 3 Apr 2017 19:55:02 +0000 (12:55 -0700)]
Adds a config for default autofill service.
Change-Id: I4d2d8637617439c5df3f62426e9bc45a78edc2e3
Fixes:
35708268
Bug:
36790693
Test: manual verification
Mathias Agopian [Tue, 4 Apr 2017 00:51:15 +0000 (17:51 -0700)]
Remove useless GraphicBuffer() constructor
Test: compiled & run
Bug:
36869708
Change-Id: Ie825979cd03874904b6f953ece4a05d4a0d52253