314752 Commits

Author SHA1 Message Date
Philip P. Moltmann
047c02b10a Prevent clipping of shadow when button is pressed
Move padding around so that the shadow can blead into the padding.

Bug: 37754078
Test: Pressed button, took screenshot and checked for clipping
Change-Id: Iaed2c7e7c432061878af410ee270de97764bcadf
2017-04-28 14:17:05 -07:00
Sudheer Shanka
5ee9a1dfa3 Merge "Consider allow-in-power-save-except-idle whitelist while updating rules." into oc-dev 2017-04-28 21:08:35 +00:00
Dianne Hackborn
1be5354aba Fix issue #37324532: API Review: android.content.pm.InstrumentationInfo
targetProcess -> targetProcesses

Test: bit CtsAppTestCases:InstrumentationTest

Change-Id: I859985c689cc588c585cd0ec6e0a20411493a7c0
2017-04-28 13:38:34 -07:00
Chris Warrington
f49baef4b9 Merge "AAPT2: Error reporting through JNI." into oc-dev 2017-04-28 20:37:04 +00:00
Felipe Leme
c21f723ca2 Merge "Changed EXTRA_DATA_EXTRAS to EXTRA_CLIENT_STATE." into oc-dev 2017-04-28 20:29:49 +00:00
Jeff Sharkey
1a74942fbf Respond to API council feedback.
Test: builds
Bug: 37752002
Change-Id: I7ae1699c4c5e1a098d16465c41fb41510478b678
2017-04-28 14:24:03 -06:00
TreeHugger Robot
5bfeece239 Merge "Focus the SaveUi-Yes-Button by default" into oc-dev 2017-04-28 20:02:21 +00:00
Andrew Sapperstein
2233ba3eb5 Merge "Set Theme.DeviceDefault.Settings's colorEdgeEffect" into oc-dev 2017-04-28 19:56:18 +00:00
Adam Lesinski
48448e8a31 AAPT2: Fix string escaping
We were processing escaped strings too early, before
parsing of values into types. Now the escaped strings get
processed when they are being flattened.

Bug: 37715376
Test: make aapt2_tests
Change-Id: Ic59aa2e3a20c40756c219752ff74b2a4f8a602ba
2017-04-28 12:51:23 -07:00
Adam Lesinski
360182156a Valid resource IDs may be negative
Package IDs greater than 0x7f are interpreted as negative
numbers in Java's signed integer. The proper check for existence of
a resource ID is that it is not 0.

Bug: 37498913
Test: none
Change-Id: I446fb6abb514bf7cf2d0dcbfbd81dd5718cd2cb4
2017-04-28 12:48:36 -07:00
Adam Lesinski
1e4b0e54a3 AAPT2: Workaround for findViewById with package ID > 0x7f
The entire View code base checks IDs against View.NO_ID except
findViewById(), which checks to see if the ID is negative.

Any package ID > 0x7f is interpreted as a negative number in Java
(no unsigned ints), so this check prevents the use of IDs > 0x7f.

findViewById is final, so support library workarounds are not possible.

Instead, IDs (@id/foo) are just sentinels, their values don't matter.
If building for pre-O devices, rewrite any references to these IDs of
the for 0xPPTTEEEE, where PP > 7f, to 0x7fPPEEEE.

The symbol table will check for potential collisions against the base
APK, so this should be safe.

Bug: 37498913
Test: manual
Change-Id: Ife3bbd29db287757ef8a2ffd83053d97f1db2613
2017-04-28 12:47:48 -07:00
TreeHugger Robot
0ddca92018 Merge "Allow system apps to define ephemeral permissions" into oc-dev 2017-04-28 18:51:12 +00:00
TreeHugger Robot
ebd44d0076 Merge "Add conic support for Path#approximate" into oc-dev 2017-04-28 18:47:37 +00:00
TreeHugger Robot
d91cedb76d Merge "AudioService: fix missing AUDIO_BECOMING_NOISY intent" into oc-dev 2017-04-28 18:43:41 +00:00
Pavel Grafov
f09a16628d Use List instead of array in network logging API.
Bug: 37625453
Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/NetworkEventTest.java
Test: ts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser
Change-Id: Icba7e3178202e0e650689d98c4010a9b40c6a53c
2017-04-28 19:31:00 +01:00
Matthew Ng
498c71dd9d Window can only be fully drawn if app window is not relaunching
This fixes the glitch of having transitions be calculated incorrectly
when starting new activity when other windows still exist. For example
launcher3 has minus one window exist even if the main activity is
destroyed causing incorrect transition going home. This change only
allows the calculation to occur when the app window is not relaunching.

Test: manual - launch app, rotate screen, go home
Change-Id: I7e323486ee6e05ba4c8704832ca0f9d6e648ac90
Fixes: 36113180
2017-04-28 11:26:56 -07:00
Dianne Hackborn
9cd47a8ff2 Merge "Fix issue #37714224: API Review: ACTION_NEW_VIDEO" into oc-dev 2017-04-28 18:10:39 +00:00
Felipe Leme
37a440fd8b Changed EXTRA_DATA_EXTRAS to EXTRA_CLIENT_STATE.
Test: CtsAutoFillServiceTestCases pass

Fixes: 37775662

Change-Id: I85c016c3eb84a439371ac707f78b01d9882b75e9
2017-04-28 11:03:57 -07:00
Shane Brennan
8bfbb0af21 Merge "Updating docs for RemoteInput non-textual inputs per API review request." into oc-dev 2017-04-28 18:02:46 +00:00
Chad Brubaker
64c8b79afd Create Instant App cookie dir if it doesn't exist
Bug: 37778533
Test: run instant app in b/37778533
Change-Id: I54ef62f6e5a290f3ccfa49ebde2a9d64a38de6a6
2017-04-28 11:02:26 -07:00
Chad Brubaker
7e794b7d22 Allow Instant Apps to read Settings defined by apps
This is a temporary solution, in the future we will investigate adding
an API that requires the app adding a setting to specify if the setting
should be visible to Instant Apps or not.

Test: run instant app from b/37765840, see denials are gone.
Bug: 37765840
Change-Id: Ib256d375d2a07f743b360c61ed25c9857aafa36c
2017-04-28 10:59:21 -07:00
Shane Brennan
7eec245c62 Merge "Update comment to getDataOnlyRemoteInputs per API review." into oc-dev 2017-04-28 17:56:56 +00:00
Jeff Sharkey
5b26dac2c3 Merge "Change ClipData.addItem signature" into oc-dev 2017-04-28 17:53:14 +00:00
Selim Cinek
7188fda4af Merge "Fixes a bug where the asynctask wasn't removed when inflating" into oc-dev 2017-04-28 17:48:59 +00:00
TreeHugger Robot
ba836ad1fa Merge "Dismiss docked stack when ShowWhenLocked activity is over keyguard (1/2)" into oc-dev 2017-04-28 17:45:25 +00:00
Andrew Scull
2c20a0f885 Merge "Expand abbreviation in constant identifier." into oc-dev 2017-04-28 17:42:00 +00:00
TreeHugger Robot
8ae5e04636 Merge "expose the UID in the EventLog API" into oc-dev 2017-04-28 17:28:05 +00:00
Jeff Sharkey
4315c1e3d5 Merge "@hide non-Handler variant of SM.openProxyFileDescriptor" into oc-dev 2017-04-28 17:10:26 +00:00
TreeHugger Robot
77cc43e0d2 Merge "Respond to API council feedback." into oc-dev 2017-04-28 17:10:16 +00:00
Chris Craik
533538c96e Merge "Make SurfaceTexture#isReleased public API" into oc-dev 2017-04-28 17:09:55 +00:00
Evan Rosky
7666d6f967 Merge "removeAllViews should also clean-up focusedInCluster" into oc-dev 2017-04-28 17:05:46 +00:00
Eric Laurent
5205a35f78 AudioService: fix missing AUDIO_BECOMING_NOISY intent
If Bluetooth service calls onBluetoothA2dpDeviceConfigChange() before
setBluetoothA2dpDeviceConnectionState(), there is a chance that the
first method fails leaving the A2DP device state disconnected in audio
policy manager while it appears as connected in AudioService causing a
failure to send the AUDIO_BECOMING_NOISY intent.

Bug: 37687852
Test: Verify AUDIO_BECOMING_NOISY intent is sent even if race
condition occurs.

Change-Id: I014d145e7da5e7d267991ffb2ff50626e71247eb
2017-04-28 09:32:12 -07:00
TreeHugger Robot
2d5c0d89e5 Merge "Improved Autofill logging." into oc-dev 2017-04-28 15:50:29 +00:00
Chris Wren
4d6b54d2bf expose the UID in the EventLog API
Bug: 32806111
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics
Change-Id: I16800a33bc6d4d37b3addd71b675fd760bd5d7b8
2017-04-28 11:18:07 -04:00
Julia Reynolds
9d5786ea40 Autogrouped summaries should be muted
Test: manual
Change-Id: I729eb6a8f108fec80352cb311c2ab4245b774a9b
Fixes: 37604629
2017-04-28 10:54:33 -04:00
Julia Reynolds
076a255a76 Merge "Default number badging off." into oc-dev 2017-04-28 14:48:09 +00:00
Julia Reynolds
3033198561 Default number badging off.
Test: cts
Bug: 37737008
Change-Id: I5f73a648936d18c59c74334083b33e131395a681
2017-04-28 10:42:11 -04:00
TreeHugger Robot
745c6e02c6 Merge "Workaround an interpreter behavior to fix leak" into oc-dev 2017-04-28 14:29:09 +00:00
Pavel Grafov
90357d62e9 Merge "Introduce DISALLOW_BLUETOOTH_SHARING." into oc-dev 2017-04-28 14:16:04 +00:00
Kirill Grouchnikov
b07544cf69 Merge "Tweak initialization order of LinearLayout's dividers" into oc-dev 2017-04-28 13:56:28 +00:00
Felipe Leme
9f9ee25515 Improved Autofill logging.
- Removed ui.Helper.
- Replaced DEBUG and VERBOSE constants by sDebug and sVerbose.
- Added a shell command to dynamically set the constants.
- Removed obsoleted log statements.
- Changed log-level of some log entries.
- Removed unused methods.

Fixes: 36141126

Test: CtsAutoFillServiceTestCases pass
Test: manual verification

Change-Id: Ic08ee9a2adc10e63f49bbcc7ed126455462dc9c1
2017-04-28 06:56:23 -07:00
Julia Reynolds
b8d4a94867 Merge "Documentation updates" into oc-dev 2017-04-28 13:44:10 +00:00
TreeHugger Robot
b05beffabc Merge "Fix notification text not wrapping and clipping switch." into oc-dev 2017-04-28 13:40:58 +00:00
Jorim Jaggi
0a07650b8d Workaround an interpreter behavior to fix leak
When a local variable (cachedThumbnailData) gets out of scope,
the interpreter might still keep a reference to it in the
register. Thus, we extract the handling of this local variable
into a method such that it gets removed from the register.

Test: Open recents, go home, take dump, make sure no reference
from HandlerThread to ThumbnailData is still existing.
Fixes: 37630958

Change-Id: If25456b212341be7a66882a0adfd5afb4a64ce23
2017-04-28 14:32:23 +02:00
Andrew Scull
17e1b5da53 Expand abbreviation in constant identifier.
The abbreviation is not in common use. Also remove FBE from
documentation as it also isn't used elsewhere.

Test: Build success
Bug: 37621349
Change-Id: Icf19be5e96e71dcd45aa7cac8f58b05b6d77d02b
2017-04-28 11:49:50 +01:00
TreeHugger Robot
0c21500920 Merge "Notify WifiManager of interface state changes" into oc-dev 2017-04-28 09:49:45 +00:00
TreeHugger Robot
dc326a883e Merge "Apply static RRO when parsing Android manifest of a target package" into oc-dev 2017-04-28 09:48:48 +00:00
TreeHugger Robot
b63d261f9c Merge "Refactored Autofill to move starting flag out of Session." into oc-dev 2017-04-28 09:25:06 +00:00
Chris Warrington
820d72adc0 AAPT2: Error reporting through JNI.
Rather than relying on stderr being wired correctly.

Test: Tests for JNI integration in studio-master-dev.
Change-Id: I1c7e7130bc4e56d61de259a9596bee3a6b3520fb
2017-04-28 10:06:38 +01:00
Narayan Kamath
048306f318 Merge "AppErrors: Refine notion of "interesting" processes for b/g ANRs." into oc-dev 2017-04-28 08:42:41 +00:00