Jin Seok Park
913f61f009
Merge changes I9b6da97e,I1ab89d12
...
* changes:
Remove using hidden API: MediaSessionManager(Context)
Remove using ServiceManager API in MediaSessionManager
2020-07-08 02:52:58 +00:00
TreeHugger Robot
9d28be4326
Merge "Do not hide the bell icon." into rvc-qpr-dev am: 0581ca685b am: a372bf7835
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12091686
Change-Id: I2773ed04f3822d6a5f3e1774220c6dbc68b70e6c
2020-07-08 00:01:38 +00:00
TreeHugger Robot
a372bf7835
Merge "Do not hide the bell icon." into rvc-qpr-dev am: 0581ca685b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12091686
Change-Id: I18c5693b134e661a4c6538ba9502274152ca8e70
2020-07-07 23:50:05 +00:00
Jeff DeCew
43a6de043e
Do not hide the bell icon.
...
Bug: 156887617
Test: Update a notification between 10-30 seconds after the last update, watch bell icon stay visible.
Change-Id: Ib737fd78ac5afa26ee0e456ffbee6c6dc0a5c835
2020-07-06 21:31:37 -04:00
Jin Seok Park
431f3af83b
Remove using hidden API: MediaSessionManager(Context)
...
Replace with SystemServiceRegistry.registerContextAwareService,
which is a @SystemApi. See ag/9734296 for reference.
Bug: 160380016
Test: atest
CtsMediaTestCases:android.media.cts.MediaSessionManagerTest
Change-Id: I9b6da97e0e0f5181ce8681a399ca090e67f6fd4e
2020-07-06 15:33:47 +09:00
Jin Seok Park
8f79003bec
Remove using ServiceManager API in MediaSessionManager
...
MediaSessionManager calls ServiceManager#getService(string) to get
ISessionManager, but it is a hidden API that will not be made into
@SystemApi (ag/6329675).
Instead, create a wrapper class that can only retrieve specified
media service binders. (ag/10123575 for reference)
Bug: 159955826
Test: atest
CtsMediaTestCases:android.media.cts.MediaSessionManagerTest
Change-Id: I1ab89d1217e8e3d071b38da772ee96889e9859b1
2020-07-05 16:09:14 +09:00
TreeHugger Robot
a97aa2f6dc
Merge "Fix Bundle#getParcelableArray call" into rvc-dev am: d70c7dda50 am: 72217807c6 am: 63178d96bd am: 5fa1f6a30e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12034230
Change-Id: I6ec64bec0571c432cc521e4f0d630cfac314a899
2020-07-03 03:34:51 +00:00
TreeHugger Robot
63178d96bd
Merge "Fix Bundle#getParcelableArray call" into rvc-dev am: d70c7dda50 am: 72217807c6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12034230
Change-Id: I771521370a581188f14bff35c7b04ba4b4c6c636
2020-07-03 03:03:22 +00:00
TreeHugger Robot
d70c7dda50
Merge "Fix Bundle#getParcelableArray call" into rvc-dev
2020-07-03 02:22:57 +00:00
Charles Chen
82a951abc3
Merge "Revert "Revert "Enable IMS and its config context to obtain UI component""" into rvc-dev am: 8deb612a14 am: f9ccadb06d am: 2712b5e401 am: 718528f4bb
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12004931
Change-Id: I669e79f51cd8a2390c53308b30cbe1d94a3b39c5
2020-07-02 00:28:39 +00:00
Charles Chen
f9ccadb06d
Merge "Revert "Revert "Enable IMS and its config context to obtain UI component""" into rvc-dev am: 8deb612a14
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12004931
Change-Id: Ied208126c1c21f736f07d4d7f24cb14c3a83c280
2020-07-01 23:42:26 +00:00
Charles Chen
8deb612a14
Merge "Revert "Revert "Enable IMS and its config context to obtain UI component""" into rvc-dev
2020-07-01 23:21:51 +00:00
Aurimas Liutikas
45b1a58bce
Merge "Clean up old references to android.support in Activity and Fragment" into rvc-dev-plus-aosp am: 47029fe43d am: 87e64b5698 am: 19bb58eb47
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12039663
Change-Id: I0e69615ea0540bbcc8d859493f1b1ea21b409e90
2020-06-30 21:53:26 +00:00
Aurimas Liutikas
47029fe43d
Merge "Clean up old references to android.support in Activity and Fragment" into rvc-dev-plus-aosp
2020-06-30 21:16:33 +00:00
vichang
26ed852eaf
Merge "Use new package name for ZoneInfo and libcore.timezone" am: af6f8e2301 am: 64937407f2
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1346485
Change-Id: I5ded5092e4c7706f58417a5c97f3207524b44a95
2020-06-30 17:23:46 +00:00
Victor Chang
2ea241f6ee
Use new package name for ZoneInfo and libcore.timezone
...
Bug: 141747409
Test: None
Merged-In: Id99a345ec024179295063c3644f72c062cb50554
Change-Id: Id99a345ec024179295063c3644f72c062cb50554
2020-06-30 13:53:47 +01:00
Tadashi G. Takaoka
c4a13e9b0b
Fix Bundle#getParcelableArray call
...
Because Bundle.getParcelableArray() returns Parcelable[] object,
simply casting a return value to a typed array will cause
ClassCastException.
Bug: 158584842
Bug: 160120833
Test: manually install ArcNotificationTest2 and try inline reply
Change-Id: Idd8eaa412925ac826590d44a0db297aacef806d8
2020-06-30 14:18:49 +09:00
Aurimas Liutikas
5d681da22c
Clean up old references to android.support in Activity and Fragment
...
Bug: 158760874
Change-Id: Ia3c0aa2393e6d444af04e35446ac34d4e129c9aa
2020-06-30 04:08:12 +00:00
Charles Chen
ba4ffa4a6d
Revert "Revert "Enable IMS and its config context to obtain UI component""
...
Test: atest StrictModeTest
Bug: 157027563
Bug: 159795597
Change-Id: I2a1b3fefa0bd82eeaa507c08fc4a79fc9f4391c5
2020-06-29 14:27:08 +00:00
Stanislav Zholnin
724c8858a6
Merge "Add testAppOps test to TEST_MAPPING." into rvc-dev am: ebe2773f3d am: daf1861655 am: 6cf9be197f am: 420bc87fdf
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12000934
Change-Id: Iac664d7ff4885c3ba6606aa46b6ffa9b92c9cb2e
2020-06-27 02:38:11 +00:00
Stanislav Zholnin
6cf9be197f
Merge "Add testAppOps test to TEST_MAPPING." into rvc-dev am: ebe2773f3d am: daf1861655
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12000934
Change-Id: I3b5e54257f20e465efa60040972cc74203ab7983
2020-06-26 10:15:19 +00:00
Stanislav Zholnin
1aa18194b7
Merge "Add testAppOps test to TEST_MAPPING." into rvc-dev am: ebe2773f3d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12000934
Change-Id: Id8610d5f22070c32a5f491bde3205e29aa779859
2020-06-26 09:58:51 +00:00
Stanislav Zholnin
ebe2773f3d
Merge "Add testAppOps test to TEST_MAPPING." into rvc-dev
2020-06-26 09:47:32 +00:00
Stanislav Zholnin
2a4f925537
Add testAppOps test to TEST_MAPPING.
...
Approval are here: ag/11091388.
Test: atest UidAtomTests#testAppOps
Change-Id: I571e549f57968a83b32f5871994ea7b1b74be3d0
2020-06-26 09:44:11 +00:00
TreeHugger Robot
99b1d3da0f
Merge "Revert "Enable IMS and its config context to obtain UI component"" into rvc-dev am: 9e7c46190a am: 213be87921 am: 3243b12ac8 am: 8a7ed76dcf
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11988595
Change-Id: Ic0648b1764161291c083e83662fcf0c2dd856396
2020-06-25 01:16:21 +00:00
TreeHugger Robot
213be87921
Merge "Revert "Enable IMS and its config context to obtain UI component"" into rvc-dev am: 9e7c46190a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11988595
Change-Id: I120e7328f1fe8a72292f73ca07320d02b5587554
2020-06-25 00:47:34 +00:00
TreeHugger Robot
9e7c46190a
Merge "Revert "Enable IMS and its config context to obtain UI component"" into rvc-dev
2020-06-25 00:41:07 +00:00
Evan Severson
80a13bce0d
Merge "Implement permission revoke with reason" into rvc-dev am: cee666eba9 am: 8ce472840e am: ebd42f9dd3 am: df1adc879d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11959996
Change-Id: I352500452191b1a012ec486a8474c1210fbc9ea1
2020-06-24 23:55:19 +00:00
Evan Severson
8ce472840e
Merge "Implement permission revoke with reason" into rvc-dev am: cee666eba9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11959996
Change-Id: I90ba41d75359c462c163b70aad470b85c4843915
2020-06-24 23:14:47 +00:00
Alistair Delva
71b8a0456c
Revert "Enable IMS and its config context to obtain UI component"
...
Revert "Verify IMS to get display and WM"
Revert submission 11823238-ims_ui_context
Reason for revert:
Broke the following tests:
android.os.cts.StrictModeTest#testIncorrectContextUse_GetDisplay
android.os.cts.StrictModeTest#testIncorrectContextUse_GetSystemService
android.os.cts.StrictModeTest#testIncorrectContextUse_GetViewConfiguration
But was submitted with a bypass.
Reverted Changes:
I688b46a92:Verify IMS to get display and WM
I172ceb2e1:Enable IMS and its config context to obtain UI com...
Bug: 157027563
Bug: 159795597
Change-Id: Id309faac0ac8f60ee0d92c26767a89f450ddc455
2020-06-24 22:31:53 +00:00
Makoto Onuki
42bec243c0
Remove unnecessarily @System/TestApi annotations
...
We can't expose APIs if the enclosing class is hidden, so these
annotations are redundant. We need to remove them so that we can enable the
check.
Exempt-From-Owner-Approval:Cherry-pick from goog/master
Bug: 159121253
Test: treehugger (i.e. this shouldn't trigger "API has changed" error.)
Merged-in: Ie1841a670bdf6c6f4b25a1fc5deed8ec2d18cda2
Change-Id: Ie1841a670bdf6c6f4b25a1fc5deed8ec2d18cda2
2020-06-24 18:02:10 +00:00
Evan Severson
aacd48b0bc
Implement permission revoke with reason
...
The reason is passed to app exit info so a given app can get more
information about why their app was killed in the event of permission
revoke.
Test: atest RevokePermissionTest ActivityManagerAppExitInfoTest#testPermissionChangeWithReason
Fixes: 159659620
Change-Id: Id711667eb2c1579ecb2a1b83a62af3cc7862d5f6
2020-06-24 10:03:54 -07:00
Makoto Onuki
b319264289
Merge "Remove unnecessarily @System/TestApi annotations"
2020-06-24 15:07:15 +00:00
Charles Chen
98fec6e684
Merge "Enable IMS and its config context to obtain UI component" into rvc-dev am: 8655743001 am: e3138eca89 am: dc26be9316 am: 771804d66e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11818544
Change-Id: Icc576f42e8209c1178013116c2f68e3e66f4a89d
2020-06-24 04:20:44 +00:00
Charles Chen
dc26be9316
Merge "Enable IMS and its config context to obtain UI component" into rvc-dev am: 8655743001 am: e3138eca89
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11818544
Change-Id: I2e820a5300bb6fb4e7d0f4444c09cad4a2d0a9c5
2020-06-24 03:51:10 +00:00
Charles Chen
ef613e3aad
Merge "Enable IMS and its config context to obtain UI component" into rvc-dev am: 8655743001
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11818544
Change-Id: I4193edaaafb74607205189a521392e25981c9d43
2020-06-24 03:37:25 +00:00
Charles Chen
8655743001
Merge "Enable IMS and its config context to obtain UI component" into rvc-dev
2020-06-24 03:33:53 +00:00
Makoto Onuki
4290301e85
Remove unnecessarily @System/TestApi annotations
...
We can't expose APIs if the enclosing class is hidden, so these
annotations are redundant. We need to remove them so that we can enable the
check.
Bug: 159121253
Test: treehugger (i.e. this shouldn't trigger "API has changed" error.)
Change-Id: Ie1841a670bdf6c6f4b25a1fc5deed8ec2d18cda2
2020-06-23 10:51:50 -07:00
Jeff Sharkey
49d152a711
Merge "Override MIME type to match MediaStore behavior." into rvc-dev am: 38a6333ff6 am: 1939ad73cf am: 5c4203f396 am: 0197a6d5e6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11962282
Change-Id: I6e8e09a2ebb762248d1067967adb16c07f411333
2020-06-23 17:06:49 +00:00
Jeff Sharkey
0197a6d5e6
Merge "Override MIME type to match MediaStore behavior." into rvc-dev am: 38a6333ff6 am: 1939ad73cf am: 5c4203f396
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11962282
Change-Id: I4223e9fdb016bbdfbd075fce757744bd9fa25f35
2020-06-23 16:47:02 +00:00
Jeff Sharkey
eac11fa9c4
Merge "Override MIME type to match MediaStore behavior." into rvc-dev am: 38a6333ff6 am: 1939ad73cf
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11962282
Change-Id: I27c7f67dcbdbf5371c3ebc7cf9e955c7b695b700
2020-06-23 16:34:52 +00:00
Jeff Sharkey
157bd31af9
Merge "Override MIME type to match MediaStore behavior." into rvc-dev am: 38a6333ff6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11962282
Change-Id: I2c67138e54e1fb6c5149317c960a2727aef64e98
2020-06-23 16:22:56 +00:00
TreeHugger Robot
9bc8e57bbe
Merge changes from topic "featureIdCleanup"
...
* changes:
Do not allow invalid attribution tags
Remove legacy support for "featureId".
2020-06-23 16:20:57 +00:00
Jeff Sharkey
38a6333ff6
Merge "Override MIME type to match MediaStore behavior." into rvc-dev
2020-06-23 15:56:44 +00:00
Jeff Sharkey
83aaf908a6
Override MIME type to match MediaStore behavior.
...
Internally, DownloadManager synchronizes its contents with MediaStore,
which relies heavily on using file extensions to determine MIME types.
To prevent these two databases from getting confused, this change
adjusts DownloadManager to force the MIME type of already-completed
downloads based on the file extension, matching what MediaStore does.
Bug: 159594536
Test: atest PublicApiAccessTest#testAddCompletedWithoutExtension
Change-Id: I60c613eafcfe55007dffcac2d7d1fe375b753c19
2020-06-23 07:13:13 -06:00
Issei Suzuki
89983c49b0
Merge "Update virtual display size before turning it on." into rvc-dev am: 16868fbef0 am: 34e1bd049d am: cec5f1e901 am: e621d1ac79
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11931082
Change-Id: If39eac860c4d461660333aa55df3539218fa2564
2020-06-23 12:42:54 +00:00
Issei Suzuki
cec5f1e901
Merge "Update virtual display size before turning it on." into rvc-dev am: 16868fbef0 am: 34e1bd049d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11931082
Change-Id: I404a2e8ee40c8768aac88c3dc39c1317a7cb2def
2020-06-23 12:17:49 +00:00
Issei Suzuki
99722aad6d
Merge "Update virtual display size before turning it on." into rvc-dev am: 16868fbef0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11931082
Change-Id: Idc8047b94dfdd52bd719a2a4b711b2d654fd1a56
2020-06-23 11:59:08 +00:00
Issei Suzuki
16868fbef0
Merge "Update virtual display size before turning it on." into rvc-dev
2020-06-23 11:46:16 +00:00
Kweku Adams
2a365580c0
Merge "Disable restricted bucket." into rvc-dev am: 6cca001863 am: aea41aec2b am: ebba61330d am: 303ddce2ac
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11740346
Change-Id: I105331902d59d2f56f30ebbaaaf45680bdc72f20
2020-06-23 01:07:14 +00:00