Commit Graph

29558 Commits

Author SHA1 Message Date
Automerger Merge Worker
5fd0b2e8d7 Merge "Add missing RequiresPermission annotations in BluetoothHidHost and BluetoothMap APIs, disallow null device input for setConnectionPolicy, getConnectionPolicy, and getConnectionState in BluetoothHidHost, and BluetoothMap implements AutoCloseable, its close() method is public, and utilizes a CloseGuard." am: a9e6a280f8 am: 7e3f076b2c am: c4721f1fe4 am: bd6b5e3613 am: dd2a921cac
Change-Id: If7940ffbb7cf8bd15b2e8f003b8a6a60f1119422
2020-02-26 19:00:24 +00:00
Automerger Merge Worker
c4721f1fe4 Merge "Add missing RequiresPermission annotations in BluetoothHidHost and BluetoothMap APIs, disallow null device input for setConnectionPolicy, getConnectionPolicy, and getConnectionState in BluetoothHidHost, and BluetoothMap implements AutoCloseable, its close() method is public, and utilizes a CloseGuard." am: a9e6a280f8 am: 7e3f076b2c
Change-Id: I2932905cba9dfff800e705289bca07c48898791c
2020-02-26 18:14:24 +00:00
Automerger Merge Worker
7e3f076b2c Merge "Add missing RequiresPermission annotations in BluetoothHidHost and BluetoothMap APIs, disallow null device input for setConnectionPolicy, getConnectionPolicy, and getConnectionState in BluetoothHidHost, and BluetoothMap implements AutoCloseable, its close() method is public, and utilizes a CloseGuard." am: a9e6a280f8
Change-Id: Iee457f25ea65b2507986f7e111341fc9924f56e3
2020-02-26 18:01:50 +00:00
TreeHugger Robot
25c1893630 Merge "Change javadoc of getSubmitPduEncodedMessage and add IntRange to its parameters" 2020-02-25 22:53:54 +00:00
Rahul Sabnis
f9e92a836f Add missing RequiresPermission annotations in BluetoothHidHost and
BluetoothMap APIs, disallow null device input for setConnectionPolicy,
getConnectionPolicy, and getConnectionState in BluetoothHidHost, and
BluetoothMap implements AutoCloseable, its close() method is public, and
utilizes a CloseGuard.

Bug: 149238030
Test: Manual
Change-Id: I8add9e26afcaf1a988c15e3cc7f8c446491f0686
2020-02-25 12:03:48 -08:00
Automerger Merge Worker
308627a58a Merge "Fix widget restore flow" into rvc-dev am: 7973854504 am: efe4556e5b am: 1c1a56191e am: 7c75da0a5e
Change-Id: I01dcdc04a77491ed06f7a483e98dde70e0410c7e
2020-02-25 19:49:28 +00:00
Automerger Merge Worker
3c0437cf6a Merge "Removed permission check" into rvc-dev am: a074a4b230 am: 4eb4004e89 am: 48d12679e9 am: 7d0de03506
Change-Id: I469a828157c7bf091908ba3f184db6196c822450
2020-02-25 19:44:55 +00:00
TreeHugger Robot
7973854504 Merge "Fix widget restore flow" into rvc-dev 2020-02-25 19:31:08 +00:00
Automerger Merge Worker
6f9282fa20 Merge "Add @NonNull annotation per API Council's suggestion" into rvc-dev am: 282b5c2043 am: 3c642347c5 am: 3dfeb34e67 am: aec44ddf8e
Change-Id: Id577b3a3013fd0ef59b4332d70d48d1d7d1d1713
2020-02-25 19:10:51 +00:00
TreeHugger Robot
a074a4b230 Merge "Removed permission check" into rvc-dev 2020-02-25 18:51:58 +00:00
Amy Zhang
282b5c2043 Merge "Add @NonNull annotation per API Council's suggestion" into rvc-dev 2020-02-25 18:16:49 +00:00
Makoto Onuki
9577cd78ff Merge "Squash same ApplicationInfo's in Parcel" into rvc-dev 2020-02-25 15:17:14 +00:00
Galia Peycheva
641e2e6361 Create DreamManager System Server TestApi
Bug: 141771803
Bug: 133216167

Test: atest DreamManagerServiceTests
Test: make checkbuild

Merged-In: I937061138bc8ccaf4475674f00331c3fe1c5a495
Change-Id: I937061138bc8ccaf4475674f00331c3fe1c5a495
(cherry picked from commit 4467c53c11)
2020-02-25 12:32:02 +00:00
TreeHugger Robot
0cbb2687ed Merge "Move PiP animation to SysUI package" into rvc-dev 2020-02-25 03:10:24 +00:00
PETER LIANG
01302a8618 Merge "Remove the public APIs for allow rich content." 2020-02-25 02:50:22 +00:00
Xiangyu/Malcolm Chen
f8fe219c93 Merge "Re-order parameters of setUiccApplicationsEnabled." 2020-02-24 23:49:34 +00:00
Automerger Merge Worker
a48f383782 Merge "Re-expose raw data roaming state" am: efa17d986e
Change-Id: Idf670452a33814c760244217303069ba8c9add09
2020-02-24 23:46:44 +00:00
Sarah Chin
efa17d986e Merge "Re-expose raw data roaming state" 2020-02-24 23:35:22 +00:00
Makoto Onuki
2d80ca09fc Squash same ApplicationInfo's in Parcel
ApplicationInfo now automatically tries to "squash" the same instances in a
Parcel.

NOTE: This CL still does *not* optimize the package manager APIs that return a
list. e.g. PM.queryContentProviders() still return duplicate AppInfo's.
We can optimize them by making ParcelableListSlice call "allowSquashing",
but that *could* have negative side effects, so I'm not doing it in this CL.
I think we can do that for S.

Bug: 148588589
Test: atest CtsContentTestCases # except for two preexsiting failures:
- android.content.pm.cts.PackageManagerTest#testGetIcon
- android.content.pm.cts.PackageManagerTest#testGetPreferredActivities

Test: Use the debugger and make sure bindApplication() is not receiving
duplicate AppInfo's in the provider list.

Change-Id: I3ba2c047a469169340c0f75c36bdfd394bc5d627
(cherry picked from commit 7d09275d70)
2020-02-24 22:22:13 +00:00
Amy
9db88a2f0d Add @NonNull annotation per API Council's suggestion
Test: make framework-minus-apex -j8
Bug: 150127251
Change-Id: I667668ec97cc46f2513c63eeadcc56d5a26cb41f
2020-02-24 14:10:40 -08:00
Hongwei Wang
85cf41fcc3 Move PiP animation to SysUI package
The bounds animation is cleaned up within window manager and it's now
the SysUI component listening on callbacks from TaskOrganizer for
entering to and exiting from PiP mode.

Additionally, the expand and move of the PiP window is now part of SysUI
as well.

Known issues:
- Black background when in transition from PiP to fullscreen. The
wallpaper gets into hidden state too early
- App gets into PiP mode too early when entering PiP, need to defer the
configuration change sent to app in this case

Bug: 146594635
Bug: 148198539
Bug: 138144750
Bug: 149569903
Test: atest PinnedStackTests
Test: atest PipAnimationControllerTest
Test: atest RecentsAnimationTest
Test: atest RecentTasksTest
Test: atest com.android.server.wm.ActivityStarterTests
Merged-In: Id0c8ce03fa26952daf5e3687b18b2eb2375b7d20
Change-Id: Id0c8ce03fa26952daf5e3687b18b2eb2375b7d20
2020-02-24 21:16:20 +00:00
Hongwei Wang
299045b79c Merge "Move PiP animation to SysUI package" 2020-02-24 20:04:57 +00:00
Jack Yu
0b9a12c2c4 Removed permission check
Removed permission check for getNetworkCountryIso and made it public.
This API was added since the first version of Android. Removed the
permission check for backward compatibility reason.

Test: Telephony sanity tests
Bug: 149872821
Change-Id: I68833fdf6f078d69bc8c2e5f01cf4e058d6d7093
2020-02-24 11:35:58 -08:00
Samuel Fufa
1acbf7763b Fix widget restore flow
After restore, the app should set OPTION_APPWIDGET_RESTORE_COMPLETED to
true on its widgets followed by calling updateAppWidget to update views.

Bug:63667276
Test: Manual
Change-Id: Idb6fc63b0f894fca9e0470aaf335240fc124e2e9
2020-02-24 19:07:59 +00:00
Zongheng Wang
1d2378bd0d Change javadoc of getSubmitPduEncodedMessage and add IntRange to its
parameters

To resolve merge conflict for aosp/1242353

Bug: 149697039
Test: compile
Change-Id: I5e131f71c376db56d3b7aa835058f0d2f4e8566a
2020-02-24 11:05:43 -08:00
Automerger Merge Worker
d10ddd54ff Merge "Address api feedback" into rvc-dev am: 7d5dfe8f44 am: f87b826a6e am: 25e174d4c6 am: 3bb0d5b497
Change-Id: If301fae8cad6a04e542ddbf1002a09ea93e01df3
2020-02-24 17:32:32 +00:00
Julia Reynolds
7d5dfe8f44 Merge "Address api feedback" into rvc-dev 2020-02-24 16:39:40 +00:00
Mingguang Xu
695d630fde Merge "Extension API: Replace NetworkScore object with integer in API surface" 2020-02-24 15:58:31 +00:00
Peter_Liang
a2f7f84938 Remove the public APIs for allow rich content.
1. Mark @hide for "Drawable loadAnimatedImage(Context)" and "String loadHtmlDescription(PackageManager)".
2. Move common function into util.

Bug: 149516547
Bug: 142532186
Test: maunal test
Change-Id: I4f734a496938f64bcde990268e11a2d1a5be4771
2020-02-24 22:33:04 +08:00
lesl
7a0c18c884 wifi: correct API name
The API:isFeatureSupported accept one or combination
of required features, update the jave doc & rename to areFeaturesSupporte

Bug: 149871866
Test: make docs frameworks/base/wifi/
Test: atest frameworks/base/wifi/tests/
Merged-In: I3bcbcfd04dced36b63436b5a96835fb0d8f35f3b
Change-Id: I3bcbcfd04dced36b63436b5a96835fb0d8f35f3b
(cherry picked from commit dd8f942e81)
2020-02-24 06:28:58 +00:00
Julia Reynolds
229684b01a Address api feedback
Test: make
Fixes: 150008110
Change-Id: I5163cd49b11444e856cd9bd8ae2fd634da5f6a39
2020-02-23 20:44:26 -05:00
Hongwei Wang
7171aca7a0 Move PiP animation to SysUI package
The bounds animation is cleaned up within window manager and it's now
the SysUI component listening on callbacks from TaskOrganizer for
entering to and exiting from PiP mode.

Additionally, the expand and move of the PiP window is now part of SysUI
as well.

Known issues:
- Black background when in transition from PiP to fullscreen. The
wallpaper gets into hidden state too early
- App gets into PiP mode too early when entering PiP, need to defer the
configuration change sent to app in this case

Bug: 146594635
Bug: 148198539
Bug: 138144750
Bug: 149569903
Test: atest PinnedStackTests
Test: atest PipAnimationControllerTest
Test: atest RecentsAnimationTest
Test: atest RecentTasksTest
Test: atest com.android.server.wm.ActivityStarterTests
Change-Id: Id0c8ce03fa26952daf5e3687b18b2eb2375b7d20
2020-02-21 22:53:06 -08:00
Eugene Susla
1db6750121 Merge "Introduce a manifest flag for auto-revoke exemption request" 2020-02-22 03:14:38 +00:00
Makoto Onuki
dd70ba27c1 Merge "Squash same ApplicationInfo's in Parcel" 2020-02-22 01:58:36 +00:00
Malcolm Chen
80659815c3 Re-order parameters of setUiccApplicationsEnabled.
To be consistent with other APIs, based on API council's feedback.

Bug: 148179539
Test: build
Change-Id: I1d4a2bf7dfc01842f583e02517986a8bf043bfde
2020-02-22 01:18:26 +00:00
Les Lee
5281524632 Merge "wifi: correct API name" 2020-02-22 01:07:10 +00:00
Robin Lee
05b1a38f20 Merge changes from topic "cts_dream"
* changes:
  Create DreamManager System Server TestApi
  Add startDreamActivity request verification
  Make DreamService use an Activity
  Clean up dreamland
2020-02-22 01:06:25 +00:00
Eugene Susla
76badfcf14 Introduce a manifest flag for auto-revoke exemption request
The implementation will filter apps eligible to receive exemption from
permission auto-revoke to just the apps that declare feature usage.

Having the manifest declaration is important for us to be able to
implement a whitelist policy.

Bug: 146513245
Test: lint/presubmit
Change-Id: I87652c276568bf2dd1c48f7cacebbc930334a7c4
2020-02-21 15:52:24 -08:00
Evan Severson
2aa3230ca0 Merge "Add method to give a permission revoke a reason" 2020-02-21 23:16:09 +00:00
Winson Chung
c4d8bcad86 Merge "Ensure task description icon resources are loaded from the right package" 2020-02-21 22:59:44 +00:00
Automerger Merge Worker
96c4a23176 Merge "Expose getLteOnCdmaMode as isGlobalModeEnabled" am: b3a20cbfff
Change-Id: I4d7346e1f28cc5ca91838199da05c6c7c5536f72
2020-02-21 22:23:21 +00:00
Makoto Onuki
7d09275d70 Squash same ApplicationInfo's in Parcel
ApplicationInfo now automatically tries to "squash" the same instances in a
Parcel.

NOTE: This CL still does *not* optimize the package manager APIs that return a
list. e.g. PM.queryContentProviders() still return duplicate AppInfo's.
We can optimize them by making ParcelableListSlice call "allowSquashing",
but that *could* have negative side effects, so I'm not doing it in this CL.
I think we can do that for S.

Bug: 148588589
Test: atest CtsContentTestCases # except for two preexsiting failures:
- android.content.pm.cts.PackageManagerTest#testGetIcon
- android.content.pm.cts.PackageManagerTest#testGetPreferredActivities

Test: Use the debugger and make sure bindApplication() is not receiving
duplicate AppInfo's in the provider list.

Change-Id: I3ba2c047a469169340c0f75c36bdfd394bc5d627
2020-02-21 14:19:43 -08:00
Sarah Chin
78babb4ba9 Re-expose raw data roaming state
Re-expose raw data roaming state from modem
Revert logic in getDataRoamingFromRegistration and make @SystemApi

Test: atest ServiceStateTest, ServiceStateTrackerTest
Bug: 146000674
Change-Id: Ibe52c06a4a42bce0f83548355907459a5b152d9a
Merged-In: Ibe52c06a4a42bce0f83548355907459a5b152d9a
2020-02-21 22:09:49 +00:00
Galia Peycheva
4467c53c11 Create DreamManager System Server TestApi
Bug: 141771803
Bug: 133216167

Test: atest DreamManagerServiceTests
Test: make checkbuild

Change-Id: I937061138bc8ccaf4475674f00331c3fe1c5a495
2020-02-21 19:29:05 +00:00
Sudheer Shanka
77f2a2c3dd Merge "Update BlobStoreMS to augment storage stats with blobs data." 2020-02-21 19:28:09 +00:00
lesl
dd8f942e81 wifi: correct API name
The API:isFeatureSupported accept one or combination
of required features, update the jave doc & rename to areFeaturesSupporte

Bug: 149871866
Test: make docs frameworks/base/wifi/
Test: atest frameworks/base/wifi/tests/
Change-Id: I3bcbcfd04dced36b63436b5a96835fb0d8f35f3b
2020-02-21 19:01:59 +00:00
Mingguang Xu
705d110d85 Extension API: Replace NetworkScore object with integer in API surface
NetworkScore object is removed as part of punting the network selection refoundation feature out of Android 11.

Test: atest android.net.wifi
Bug: 135573686, 122133502, 136312816, 135572156

Change-Id: Ib4226a4d66ab29fc4b31226d5ece8ad14a14d1e1
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2020-02-21 18:29:08 +00:00
Les Lee
427a30c8f7 Merge "wifi: Use long to replace int for softap feature set" 2020-02-21 06:07:13 +00:00
Julius D'souza
e32f290e3e Merge "KeyguardManager set + validate lock API refinement" 2020-02-21 03:19:43 +00:00
Sarah Chin
30a3111db8 Expose getLteOnCdmaMode as isGlobalModeEnabled
Rename and make @SystemApi

Test: atest FrameworksTelephonyTests
Bug: 147335742
Change-Id: I2c5727bcc5fd0263acfe669177f43fda17650f41
Merged-In: I2c5727bcc5fd0263acfe669177f43fda17650f41
2020-02-20 16:55:02 -08:00