Commit Graph

29565 Commits

Author SHA1 Message Date
Automerger Merge Worker
b84b8d1585 Merge "Remove the public APIs for allow rich content." into rvc-dev am: 2ebe60b5df
Change-Id: Ib2b98a1ba9f8dc7dfa78f1bbfb611f68da69ef6d
2020-02-27 10:42:25 +00:00
Peter_Liang
01a592bfd1 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
Merged-In: I4f734a496938f64bcde990268e11a2d1a5be4771
(cherry picked from commit a2f7f84938)
2020-02-27 04:19:53 +00:00
Automerger Merge Worker
73f40b8b72 Merge "Hide CarrierMessagingServiceWrapper for now." into rvc-dev am: 8e5e4e03a9
Change-Id: I232254dd0f3f094b600f60c8e4baf4f4fde43dcf
2020-02-27 04:08:21 +00:00
TreeHugger Robot
8e5e4e03a9 Merge "Hide CarrierMessagingServiceWrapper for now." into rvc-dev 2020-02-27 04:04:35 +00:00
Automerger Merge Worker
ec01225c09 Merge "A few inline autofill API tweaks." into rvc-dev am: 658fc6d6d6
Change-Id: I38bc6d0694372eabce98c2c288e9b68d1a66928c
2020-02-27 03:21:21 +00:00
TreeHugger Robot
658fc6d6d6 Merge "A few inline autofill API tweaks." into rvc-dev 2020-02-27 03:16:38 +00:00
Automerger Merge Worker
f05237f452 Merge changes from topic "api-review-getNetworkDisableReasonString" into rvc-dev am: f16dce6f20
Change-Id: I0151afda1e7e05dd7f228b8ffabd41a68cb5d231
2020-02-26 23:44:43 +00:00
Automerger Merge Worker
76d81230e7 Merge "Wifi: Clean up APIs" into rvc-dev am: c4b4ccf575
Change-Id: I8e8bea7e53eb856fb6c05a4510f4317e21cc1bb8
2020-02-26 23:44:06 +00:00
David Su
f16dce6f20 Merge changes from topic "api-review-getNetworkDisableReasonString" into rvc-dev
* changes:
  Settings: Rename NetworkSelectionStatus#getNetworkDisableReasonString
  Rename NetworkSelectionStatus#getNetworkDisableReasonString
2020-02-26 23:42:53 +00:00
David Su
c4b4ccf575 Merge "Wifi: Clean up APIs" into rvc-dev 2020-02-26 23:42:35 +00:00
Automerger Merge Worker
ec9207c019 Merge "Hide setPolicyDataEnabled" into rvc-dev am: 710401a657
Change-Id: Iea2c5cc50b124abe84d399493d7f32b04e36efda
2020-02-26 23:42:22 +00:00
TreeHugger Robot
710401a657 Merge "Hide setPolicyDataEnabled" into rvc-dev 2020-02-26 23:26:17 +00:00
Amit Mahajan
e75a35d3b3 Hide CarrierMessagingServiceWrapper for now.
Based on api-council feedback there are some changes required.
Will incorporate the changes and expose this class in a later
release.

Test: basic sanity
Bug: 144346062
Change-Id: Icb65f90261ea6000aecd72a1888d5ee23eed6527
2020-02-26 23:02:44 +00:00
Automerger Merge Worker
17b3ea63c9 Merge "Extension API: Replace NetworkScore object with integer in API surface" into rvc-dev am: 3b117214d5
Change-Id: I671e0c664defd41d02e9c72a997f48a20acab2e7
2020-02-26 21:51:24 +00:00
Feng Cao
4b0ef392c2 A few inline autofill API tweaks.
* add isPinned() to InlineSuggestionInfo so IME can choose to pin the suggestion
* allow augmented autofill service to set inline actions in the response
* non-api change: pull the autofill hints from the Slice in the InlinePresentation

Test: m -j; atest InlinePresentationTest, atest CtsInputMethodTestCases:InlineSuggestionInfoTest CtsInputMethodTestCases:InlineSuggestionTest
Bug: 137800469

Change-Id: I63b6b843ef056df18c317299e617b8fe21907374
2020-02-26 13:49:54 -08:00
Mingguang Xu
3b117214d5 Merge "Extension API: Replace NetworkScore object with integer in API surface" into rvc-dev 2020-02-26 21:41:03 +00:00
Automerger Merge Worker
a89dc11240 Merge "Hide API" into rvc-dev am: 58979d9557
Change-Id: I5c9d1ff9d583c8a2d59b161c93eeeab7c27433be
2020-02-26 21:07:57 +00:00
Jack Yu
58979d9557 Merge "Hide API" into rvc-dev 2020-02-26 21:04:56 +00:00
Automerger Merge Worker
263292ba5b Merge changes from topics "remove_oem_configstore", "rename_oem_migration" into rvc-dev am: 256b44d61d
Change-Id: Iea197c270f43e12b2cac039c59e05345c40826d7
2020-02-26 21:02:33 +00:00
Roshan Pius
256b44d61d Merge changes from topics "remove_oem_configstore", "rename_oem_migration" into rvc-dev
* changes:
  WifiMigration: Add a method for removing config store
  WifiOemMigrationHook: Rename class to address API council feedback
2020-02-26 20:55:40 +00:00
Automerger Merge Worker
6cad09dfb0 Merge "Tuner API: Remove superclass Dvr" into rvc-dev am: 1e1f821146
Change-Id: Ib519a5bd8a4a36cf08bd5bf5289f74874abe3a0a
2020-02-26 19:12:10 +00:00
TreeHugger Robot
1e1f821146 Merge "Tuner API: Remove superclass Dvr" into rvc-dev 2020-02-26 19:09:32 +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
Jack Yu
f0df0ba2ba Hide API
Hide API that is only used by telephony registry.

Test: Telephony sanity tests
Bug: 149850449
Change-Id: Ie4c46de336097fb7231291f15048329aea0b639c
2020-02-25 17:09:00 -08:00
David Su
e4956075da Rename NetworkSelectionStatus#getNetworkDisableReasonString
Renamed to getNetworkSelectionDisableReasonString
to be more descriptive.

Bug: 146046526
Test: compiles
Change-Id: I8d67906e31e66f4cf839be1637ecb6a58edbbc52
2020-02-25 15:32:43 -08:00
shubang
82530bf904 Tuner API: Remove superclass Dvr
Bug: 149785982
Test: make;
Change-Id: I39721db253ec1212c5cd9774c8466afdf47799d2
2020-02-25 14:04:01 -08:00
Daniel Bright
31952450ba Hide setPolicyDataEnabled
This method was made into a SystemApi for R since
Telephony was going mainline.  The Telephony team
has a more robust solution as other similar APIs were
needed.  Since we are not going mainline, it makes
the most sense to wait for full solution.

Bug: 148165897
Bug: 146654731
Test: make \ flash
Change-Id: I5b38694acf3887e4f3ea2ab725b57fe4be9d5626
2020-02-25 13:24:50 -08: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
TreeHugger Robot
7973854504 Merge "Fix widget restore flow" into rvc-dev 2020-02-25 19:31:08 +00:00
TreeHugger Robot
a074a4b230 Merge "Removed permission check" into rvc-dev 2020-02-25 18:51:58 +00:00
Roshan Pius
4c7baf7ba2 WifiMigration: Add a method for removing config store
Adding a new method to trigger OEM config store removal after migration
is complete.

Bug: 149418926
Test: Compiles
Change-Id: Ie22ff99931cc5f2ccbc47a55a2ac6e3b2baa41d7
2020-02-25 10:18:52 -08: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
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
Roshan Pius
807b34a2c6 WifiOemMigrationHook: Rename class to address API council feedback
Bug: 149418926
Test: Compiles
Change-Id: I59a6e893599b1ccaec51a39c9594f157622668a0
2020-02-24 11:49:02 -08: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
Mingguang Xu
dea9593d23 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>
(cherry picked from commit 705d110d85)
2020-02-24 19:05:32 +00:00
Julia Reynolds
7d5dfe8f44 Merge "Address api feedback" into rvc-dev 2020-02-24 16:39:40 +00: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
David Su
692a70d570 Wifi: Clean up APIs
- Made WifiInfo.Builder public
- Made ScanResult::new public
- Added public getters for WifiNetworkSuggestion

Bug: 149912516
Test: compiles
Test: Will add CTS for new WifiNetworkSuggestion APIs
Change-Id: I868477f0d149cb4e96f9313dbaa1ef66d4723309
2020-02-23 19:12:11 +00:00
Evan Severson
2aa3230ca0 Merge "Add method to give a permission revoke a reason" 2020-02-21 23:16:09 +00:00