314740 Commits

Author SHA1 Message Date
TreeHugger Robot
557a0c50a0 Merge "AAPT2: binary parser should be more lenient with files" into oc-dev 2017-04-29 21:39:29 +00:00
TreeHugger Robot
f6bc1402ed Merge "AAPT2: Fix string escaping" into oc-dev 2017-04-29 21:04:38 +00:00
TreeHugger Robot
53c9898e79 Merge changes I446fb6ab,Ife3bbd29 into oc-dev
* changes:
  Valid resource IDs may be negative
  AAPT2: Workaround for findViewById with package ID > 0x7f
2017-04-29 20:38:20 +00:00
TreeHugger Robot
5bb8294f92 Merge "Add managed profile whitelist to control NotificationListenerServices" into oc-dev 2017-04-29 19:49:35 +00:00
TreeHugger Robot
d95344d8aa Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-29 18:14:58 +00:00
Jeff Sharkey
e14159d2c5 Merge "Revert "Treat Telephony as legacy app for now."" into oc-dev 2017-04-29 17:38:59 +00:00
Jeff Sharkey
d9f6946c42 Merge "Experimental features only on debuggable builds." into oc-dev 2017-04-29 17:33:58 +00:00
Jeff Sharkey
0a482bda21 Merge "API fixes for Companion renaming" into oc-dev 2017-04-29 17:11:39 +00:00
Jeff Sharkey
48c0dc6c4b Merge "Rename Companion permissions" into oc-dev 2017-04-29 17:04:46 +00:00
Jeff Sharkey
408ec0b463 Merge "Remove FontVariationAxis.InvalidFormatException." into oc-dev 2017-04-29 16:39:39 +00:00
Makoto Onuki
1f1d372524 Merge "bringDownServiceLocked() shouldn't complain when mServicesByName..." into oc-dev 2017-04-29 16:19:43 +00:00
TreeHugger Robot
060f0f0341 Merge "A11y changes for API council" into oc-dev 2017-04-29 15:54:27 +00:00
TreeHugger Robot
e97fae5110 Merge "Autogrouped summaries should be muted" into oc-dev 2017-04-29 14:15:26 +00:00
TreeHugger Robot
ef1648c2cd Merge "Don't try to create user for task snapshot tests" into oc-dev 2017-04-29 07:03:54 +00:00
Jakub Pawlowski
62c36e1c17 Merge "Bluetooth: bluetooth.le API fixes" into oc-dev 2017-04-29 06:11:41 +00:00
Philip P. Moltmann
c7bd554d06 Merge "Make autofilled highlight an attribute" into oc-dev 2017-04-29 05:16:40 +00:00
Makoto Onuki
ee818db6b2 Merge "Make sure to update oom-adjustment when a service starts." into oc-dev 2017-04-29 05:15:43 +00:00
Philip P. Moltmann
09d8db0381 Merge "Add constant for autofill-service-add URL" into oc-dev 2017-04-29 05:14:41 +00:00
TreeHugger Robot
183b476538 Merge changes I1b2f0726,Iaed2c7e7 into oc-dev
* changes:
  Apply proper theme to SaveUi
  Prevent clipping of shadow when button is pressed
2017-04-29 03:06:06 +00:00
TreeHugger Robot
78a00503db Merge "API: make "what's the quota?" an operation on the backup data sinks" into oc-dev 2017-04-29 03:05:29 +00:00
TreeHugger Robot
23a66d44ea Merge "Throttle location update rate in proximity alert" into oc-dev 2017-04-29 02:48:28 +00:00
Bill Yi
de298603d2 Import translations. DO NOT MERGE
Change-Id: Iad522d6efa2a0c3a0cc5d88ac4e61e8515ef2bce
Auto-generated-cl: translation import
2017-04-28 18:58:07 -07:00
Makoto Onuki
1b9dfda163 bringDownServiceLocked() shouldn't complain when mServicesByName...
doesn't contain the given record, which is what happens when this method
is called by bringUpServiceLocked().

Bug 37746449
Test: bit CtsAppTestCases:ServiceTest

Change-Id: Ie540f634a0a1d2a1f16df382f1ea09a083ffa483
2017-04-28 16:47:49 -07:00
Philip P. Moltmann
f5e4bfd856 Make autofilled highlight an attribute
Fixes: 37738299
Test: - CtsAutoFillServiceTestCases
      - CtsUiRenderingTestCases:.testclasses.AutofillHighlightTests

Change-Id: I6106f7b2e44d18cd8c80c084f25737e43cbc44de
2017-04-28 16:13:46 -07:00
Eugene Susla
20bd9fc81e API fixes for Companion renaming
Test: Ensure renaming still works
Fixes: 37748634
Change-Id: I6a863200b1f12db857c308e3b935b0f27f20c85b
2017-04-28 16:07:50 -07:00
Chris Craik
8f4ac4ac05 Merge "Revert "Temporarily enable GL validation"" into oc-dev 2017-04-28 23:04:02 +00:00
TreeHugger Robot
83d139bd1b Merge "Use List instead of array in network logging API." into oc-dev 2017-04-28 23:00:02 +00:00
Jeff Sharkey
d275dc83be Merge "Respond to API council feedback." into oc-dev 2017-04-28 22:54:39 +00:00
TreeHugger Robot
f7e6f581c0 Merge "Window can only be fully drawn if app window is not relaunching" into oc-dev 2017-04-28 22:49:26 +00:00
Lifu Tang
c94ef4ddfd Throttle location update rate in proximity alert
Bug: 36197768
Test: manual
Change-Id: I2427ed7e77e9153c20e7c65e8f861de4c7ffeac6
2017-04-28 15:42:52 -07:00
TreeHugger Robot
d2cc513e9f Merge "Create Instant App cookie dir if it doesn't exist" into oc-dev 2017-04-28 22:39:50 +00:00
Dianne Hackborn
fb5840b0e6 Merge "Fix issue #37324532: API Review: android.content.pm.InstrumentationInfo" into oc-dev 2017-04-28 22:34:53 +00:00
Adam Lesinski
742888f0fd AAPT2: binary parser should be more lenient with files
Some APKs have file references that reference files that don't exist.

For now, just be lenient and ignore the files themselves.

Keep the actual reference until such a time as general resource
stripping is implemented.

Bug: 37749644
Test: manual
Change-Id: I773685acf41212405b71b064d64045fb4556dcfc
2017-04-28 15:34:52 -07:00
TreeHugger Robot
5d80c9d5fe Merge "Allow Instant Apps to read Settings defined by apps" into oc-dev 2017-04-28 22:25:50 +00:00
Seigo Nonaka
0f07dd5b14 Remove FontVariationAxis.InvalidFormatException.
Use IllegalArgumentException instead.

Bug: 37769084
Bug: 37765945
Test: am instrument -w -e class android.widget.cts.TextViewTest
      android.widget.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.TypefaceTest
      android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.PaintTest
      android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.FontVariationAxisTest
      android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.text.VariationParserTest
      com.android.frameworks.coretests/\
      android.support.test.runner.AndroidJUnitRunner

Change-Id: I50b70e3e7e37585c937dcce2416a83353de62a5d
2017-04-28 15:24:40 -07:00
Wale Ogunwale
e163126d2e Don't try to create user for task snapshot tests
Seems user creation can fail in test harness some times.
Also, I am not sure there is a need to create a user in this
case when we can just use the user id of the current process.

Also removed SettingBackupTest from @Presubmit since it is still
failing.

Bug: 37684646
Bug: 37682538
Test: SettingsBackupTest
Test: TaskSnapshotPersisterLoaderTest
Change-Id: I523bb576217f7782027741916f9ea14fc6d7fb50
2017-04-28 15:13:54 -07:00
Makoto Onuki
0f42129f30 Make sure to update oom-adjustment when a service starts.
Fixes 37725592
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l VERBOSE -m CtsAppTestCases -t 'android.app.cts.ActivityManagerProcessStateTest'

Change-Id: I7ef06474dd2f338426601c1c555f8af8d782b538
2017-04-28 15:03:33 -07:00
Phil Weaver
be2922ff34 A11y changes for API council
Bug: 37749679
Bug: 37747749
Bug: 37737948
Bug: 37718183
Bug: 37720667
Bug: 37724600
Bug: 37708057

Test: Updating unit and cts tests, which still pass.
Change-Id: If28bdf985c4314e8e84dcd6510f406dd4e80dd38
2017-04-28 14:58:35 -07:00
Jakub Pawlowski
17100948f9 Bluetooth: bluetooth.le API fixes
Fix minor spelling problems.
Throw IllegalStateException instead of IllegalArgumentException in
build().

Bug: 37532634
Test: none
Change-Id: I73b6f04aec98f5baffb06a363e2a3f71e8cec3c4
(cherry picked from commit 9d4abb5631c7719de8d919e0c37c9aee54354266)
2017-04-28 21:51:53 +00:00
Philip P. Moltmann
b4ff3bbdb1 Apply proper theme to SaveUi
Bug: 37754078
Test: Started SaveUI on angler and marlin. angler was green, marlin was
      blue
Change-Id: I1b2f07269d3df3949344672f23329ea735c22a94
2017-04-28 14:17:05 -07:00
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