Commit Graph

91162 Commits

Author SHA1 Message Date
Hyundo Moon
c3ce09eef7 Revert Media 1.0 API changes introduced for making 1.0 updatable
This CL reverts API changes which were introduced by below CLs:
 - "761c475: AML: Make config_mediaMetadataBitmapMaxSize as @SystemApi"
 - "888b791: Make AudioManager.FLAG_FROM_KEY as @SystemApi"
 - "3d1353a: AML: Unhide KeyEvent.isMediaSessionKey()"

Bug: 128245348
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
      atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
      atest CtsMediaTestCases:android.media.cts.MediaBrowserTest;
Change-Id: I263a958bf340336f699adb28424241fd00e46e28
2019-03-11 20:19:09 +09:00
Philip P. Moltmann
dcc5789ce6 Merge "Run settings tests when adding settings" 2019-03-08 02:57:41 +00:00
TreeHugger Robot
e0894ab25d Merge "Add Context.bindService with executor parameter" 2019-03-08 02:08:51 +00:00
TreeHugger Robot
268e3ac09d Merge "Make the ANGLE Toast Message Updatable via ANGLE APK" 2019-03-08 01:21:35 +00:00
Jesse Evans
edd9d59562 Merge "Ensure hierarchy is measured on applying insets" 2019-03-08 01:17:44 +00:00
TreeHugger Robot
06ff48f856 Merge "New API: ContentCaptureService.onActivityEvent()" 2019-03-07 23:35:34 +00:00
TreeHugger Robot
736539647f Merge "Revert "Allow transitioning through lifecycle when finished"" 2019-03-07 22:29:40 +00:00
TreeHugger Robot
b266f38ebf Merge "Fix missing @NonNull or @Nullable to TextClassifier APIs" 2019-03-07 21:14:37 +00:00
Felipe Leme
141864d610 New API: ContentCaptureService.onActivityEvent()
This API is needed for high-level events that happened on activities that are
not whitelisted for Content Capture.

Test: atest CtsContentCaptureServiceTestCases:android.contentcaptureservice.cts.LoginActivityTest#testSimpleLifecycle_defaultSession
Test: atest CtsContentCaptureServiceTestCases # sanity check
Test: m update-api

Bug: 126262658

Change-Id: Id2d4ccfb04d56eba561200d6875374a932c526ae
2019-03-07 13:06:21 -08:00
Philip P. Moltmann
279e84697d Merge changes from topic "revokeLocOnUpgrade"
* changes:
  Control revoke-on-upgrade behavior for loc perm
  Revoke location permissions on upgrade from Pre-Q
  No special case for location permission
  Inherit flags when inheriting permission state
2019-03-07 20:42:38 +00:00
Ashley Rose
40e490e275 Merge "Add @IdRes annotations to View properties" 2019-03-07 19:46:25 +00:00
Ruchi Kandoi
3b2e5c3d02 Merge "Update Secure NFC API definitions" 2019-03-07 18:44:52 +00:00
TreeHugger Robot
69ea91828c Merge "Improved how content capture is disabled by settings." 2019-03-07 18:44:31 +00:00
TreeHugger Robot
a936b91ae9 Merge "Removed some deprecated APIs that use List instead of Set." 2019-03-07 18:41:42 +00:00
Tim Van Patten
b225b4437b Make the ANGLE Toast Message Updatable via ANGLE APK
This change creates an intent that the ANGLE APK will respond to with a
string that will be presented within a Toast message to the user when
ANGLE is in use for an app.

Bug: 127693688
Test: atest CtsAngleIntegrationHostTestCases
Test: Verify Toast message contains the updated message.
Change-Id: If2ecd4dba96bcfba5511e76d24a5aa5e64c2ea18
2019-03-07 11:39:59 -07:00
Adam He
5f0b120f07 Merge "View gets View_importantForContentCapture from attributes." 2019-03-07 18:36:44 +00:00
Wei Wang
52b40ae27d Merge "Address API review comments for Thermal API" 2019-03-07 18:25:38 +00:00
Andrii Kulian
c10482ff3c Revert "Allow transitioning through lifecycle when finished"
This reverts commit 76ea768bd3.

Reason for revert: b/127738408

Change-Id: I09eb93a255310c3749d25d31db77126c6133aa0c
2019-03-07 18:09:28 +00:00
TreeHugger Robot
6f42bb2e8b Merge "Mark getStagedSessionErrorMessage as @NonNull." 2019-03-07 17:42:50 +00:00
TreeHugger Robot
e2060f2cd3 Merge "Start throwing better exceptions in LayoutInflater." 2019-03-07 16:26:49 +00:00
Dario Freni
aa796c19d1 Mark getStagedSessionErrorMessage as @NonNull.
Change-Id: I269175f24ef84e7e8b053528ab1074dad84bb6fe
Fix: 126698886
Test: n/a
2019-03-07 15:09:20 +00:00
TreeHugger Robot
94904dcb12 Merge "Fix ArrayIndexOutOfBoundsException in A11yCache" 2019-03-07 15:06:29 +00:00
Beth Thibodeau
ff0e66270b Merge "Fix position of expand/collapse button" 2019-03-07 15:06:11 +00:00
Mark Chien
340107f508 Merge "Fix TetheringEntitlementValueListener related API" am: fbcc63d51f am: 16c5a5c6f4
am: 95ca226658

Change-Id: I9a1f7c9fa34b6f1e6104a8e5af4b6957e7aae3eb
2019-03-07 05:51:10 -08:00
Mark Chien
95ca226658 Merge "Fix TetheringEntitlementValueListener related API" am: fbcc63d51f
am: 16c5a5c6f4

Change-Id: Id85e5499e15b9b244c212a44ca79587b27c9c016
2019-03-07 05:41:46 -08:00
Mark Chien
16c5a5c6f4 Merge "Fix TetheringEntitlementValueListener related API"
am: fbcc63d51f

Change-Id: Idd3a7110c32319b610d5dacad7e3632d759ac887
2019-03-07 05:32:33 -08:00
Mark Chien
fbcc63d51f Merge "Fix TetheringEntitlementValueListener related API" 2019-03-07 13:21:53 +00:00
Rhed Jao
fe89325864 Fix ArrayIndexOutOfBoundsException in A11yCache
Bug: 127761516
Test: atest MediaStoreUiTest#testGetDocumentUri
Change-Id: I55824d4932bc7c430ac7f357237b444bedc71b58
2019-03-07 19:24:34 +08:00
Andrei-Valentin Onea
918fd7934b Merge "Add @UnsupportedAppUsage annotations" am: 722dff1f35
am: 7b577b39f7

Change-Id: I2d532044b9eb62ff595fa648a239b907a32d0bab
2019-03-07 02:41:23 -08:00
Andrei-Valentin Onea
7b577b39f7 Merge "Add @UnsupportedAppUsage annotations"
am: 722dff1f35

Change-Id: I559e8abb355a41119d9cd86a497fbdbd69157f9b
2019-03-07 02:32:26 -08:00
Andrei-Valentin Onea
722dff1f35 Merge "Add @UnsupportedAppUsage annotations" 2019-03-07 10:20:28 +00:00
Xiao Ma
d11f62d9ba Merge "add networking connectivity namespace." 2019-03-07 09:28:03 +00:00
Wei Wang
7a49ff6c50 Address API review comments for Thermal API
Bug: 126945111
Test: atest cts/tests/tests/os/src/android/os/cts/PowerManager_ThermalTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/os/PowerManagerTest.java
Change-Id: I7ec1ea057b11c223c46d02ad63de335cb0a0d4dd
2019-03-07 00:08:47 -08:00
Xiao Ma
61089ea8b5 add networking connectivity namespace.
Bug: 112869080
Test: m -j passed
Change-Id: I617257a1d8f2f0f4336e526d7fab6f8d12143d3b
2019-03-07 14:51:52 +09:00
Chiachang Wang
9afd64ede8 Merge "Support DATA_STALL_EVENT in StatsLog.write" 2019-03-07 05:37:23 +00:00
markchien
9554abf9ed Fix TetheringEntitlementValueListener related API
Test: -build, flash, boot
      -atest FrameworksNetTests
bug: 126701557
bug: 126392011

Change-Id: I6dda10fbfe8ffaef71269617750a22563396f5ea
2019-03-07 13:33:21 +08:00
Remi NGUYEN VAN
f72125d46d Merge "Fix SocketUtils API" am: 3da7809ae4 am: f0ef74dc7a
am: 4adf7d6a17

Change-Id: Ib2de3e87ab61a2ff4918e9dfc3ae2b012e24b5c2
2019-03-06 20:31:50 -08:00
Remi NGUYEN VAN
4adf7d6a17 Merge "Fix SocketUtils API" am: 3da7809ae4
am: f0ef74dc7a

Change-Id: If460832503e71fccf41494e99ea78d1b85a50ef6
2019-03-06 20:22:36 -08:00
Remi NGUYEN VAN
f0ef74dc7a Merge "Fix SocketUtils API"
am: 3da7809ae4

Change-Id: I03e0eb60d71cba27e57f8ee7832269bbd75f5344
2019-03-06 20:13:28 -08:00
Remi NGUYEN VAN
3da7809ae4 Merge "Fix SocketUtils API" 2019-03-07 03:54:22 +00:00
Yiwen Chen
71c2da8aa2 Merge "Add default value for apply_ramping_ringer." 2019-03-07 03:52:00 +00:00
Philip P. Moltmann
569be7df9d Run settings tests when adding settings
Test: atest --test-mapping frameworks/base/core/java/android/provider/
Change-Id: Ia3af3fc7cf8f57e04d5978d4303c2ad0712f7515
2019-03-06 19:50:32 -08:00
Philip P. Moltmann
e5d998f9fb Control revoke-on-upgrade behavior for loc perm
By default: Revoke on upgrade, but can be disabled by setting the
location_permissions_upgrade_to_Q_mode to anything but 0.

Fixes: 127285709
Test: Upgraded from P to Q with and without
      location_permissions_upgrade_to_Q_mode set
      atest --test-mapping frameworks/base/core/java/android/provider:presubmit
Change-Id: I4dd1772e78f46c881a5f747fcf61583beec2d6a2
2019-03-06 19:50:32 -08:00
Felipe Leme
8db0036c21 Improved how content capture is disabled by settings.
- Use 1/0 instead of true/false for the settings value.
- Improved logging / internal logic by splitting disabled by settings and device config.
- Other minor fixes.

Test: atest CtsContentCaptureServiceTestCases

Bug: 119264902

Change-Id: I51b99588f823c4e1eaf496841efd45757e4258be
2019-03-06 17:59:02 -08:00
Aurimas Liutikas
10c4216245 Start throwing better exceptions in LayoutInflater.
Include source layout file in exceptions thrown from
LayoutInflater. This makes it easier to trace failures
when using <include ...> tags.

You'll get something like
Caused by: android.view.InflateException: Binary XML file line #11 in com.myapp:layout/activity_main: Binary XML file line #6 in com.myapp:layout/overlay: Error inflating class MyView
Caused by: android.view.InflateException: Binary XML file line #6 in com.myapp:layout/overlay: Error inflating class MyView
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.myapp.MyView"...

Bug: 127425845
Test: Manual app launch that has invalid XML
Change-Id: I262fa9625dd2981eb22e493e9e4a1d2b7b75ef4b
2019-03-06 17:46:14 -08:00
Julia Reynolds
a3e9952ee5 Merge "API changes for NAS" 2019-03-07 00:59:56 +00:00
Eino-Ville Talvala
e739064b74 Merge "Camera: Annotate the Key constructors with nullability." 2019-03-07 00:25:36 +00:00
Jesse Evans
3e2462dbb4 Ensure hierarchy is measured on applying insets
Test: atest FrameworksUiServicesTests
Additional Test: Manually tested using repro APK
Bug: 123746448
Change-Id: I4af28ddd0684d1ba906bc976bb8f6b75cf5f29d6
2019-03-06 16:03:28 -08:00
Philip P. Moltmann
a3e79d624c Merge "Add annotations and finals to PermissionInfo" 2019-03-06 23:43:05 +00:00
Beth Thibodeau
837bfc2c51 Fix position of expand/collapse button
Example screenshots at https://drive.google.com/open?id=1rKBY9uj54KbeSr-M4Rd4aKG9FQQYL8qm

Bug: 124522176
Test: verified that button does not move between collapsed and expanded
layouts

Change-Id: Ic7cbe3b78aa439cec8f10b532b80f863bb6c283c
2019-03-06 17:30:11 -05:00