Commit Graph

640958 Commits

Author SHA1 Message Date
Grace Jia
83bc8699a1 Merge "Add support for selected contacts device to device sharing." 2021-05-03 21:49:45 +00:00
yinxu
841aea532a Replace the no calling icon
Bug: 186154935
Test: Manually Tested
Change-Id: I5bee97edf510a2876e10c2a9cfa2eedd1a566542
2021-05-03 14:48:54 -07:00
Joe Bolinger
881de35589 Merge "Supress fingerprint cancellation messages in lock screen." into sc-dev 2021-05-03 21:35:23 +00:00
Wale Ogunwale
c80b0a8f31 Merge "Add helper class FoldStateListener" into sc-dev 2021-05-03 21:34:16 +00:00
Bill Yi
bd8f21586a Merge "Revert "Import translations. DO NOT MERGE ANYWHERE"" into sc-dev 2021-05-03 21:33:55 +00:00
Bill Yi
2edbed2689 Revert "Import translations. DO NOT MERGE ANYWHERE"
This reverts commit 5ce9e9cad5.

Reason for revert: broke build

Change-Id: Ia58b5e3ed7d8deede1acdd60e171a37fa96c17e5
2021-05-03 21:31:49 +00:00
Evan Severson
f88dfc4fa7 Merge "Create mocking test for SensorPrivacyService" into sc-dev 2021-05-03 21:23:43 +00:00
Sahana Rao
d559e78253 Change hasRequestRawExternalStorageAccess() to return integer
Previously, hasRequestRawExternalStorageAccess would return null if the
app doesn't have requestRawExternalStorageAccess attribute in the
manifest. And, return true/false based on the value specified in
manifest.

Based on API review comments, changed the method to
getRequestRawExternalStorageAccess which returns
* RAW_EXTERNAL_STORAGE_ACCESS_DEFAULT if app didn't specify
requestRawExternalStorageAccess attribute in the manifest.
* RAW_EXTERNAL_STORAGE_ACCESS_REQUESTED if the app requested raw
external storage access.
* RAW_EXTERNAL_STORAGE_ACCESS_NOT_REQUESTED if the app requests to
disable raw external storage access

The API is not guarded with any system level API permissions, hence
changing the API to public API instead of system API. Also added
documentation to ensure apps don't misunderstand this API

Bug: 185484514
Test: atest packages/providers/MediaProvider
Change-Id: Ib7e41ab8ee38389bf44a360e4288d03e58ef44cf
2021-05-03 22:16:56 +01:00
Lyn Han
01d373cec7 Merge "Hide footer in place instead of scrolling it offscreen" into sc-dev 2021-05-03 21:16:12 +00:00
Bill Yi
630ac11ab3 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-03 21:05:46 +00:00
cecilia
dc1c80227d Tap a media reco from lock screen:
- Open the media activity directly in background to play;
- Request to unlock the phone to open the media activity in foreground.

Bug: 185143406
Test: Studio builds
Change-Id: I88e2a77065694ccf1202e92f33c28e842291a525
2021-05-03 20:55:37 +00:00
Ryan Mitchell
1966e1f236 AAPT2: Only print last uses-sdk tag
When an APK defines multiple "uses-sdk" tags, the Android runtime only
uses the minSdkVersion and targetSdkVersion values from the last
occurrence of the "uses-sdk" tag.

For example an application with the following tags:
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
<uses-sdk android:maxSdkVersion="28"/>

Will have the following version codes at runtime:
minSdk=1 targetSdk=1

Another example:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/>

Will have the following version codes at runtime:
minSdk=5 targetSdk=19

AAPT2 must print the version data from only the last tag, skipping other
occurrences of the tag.

Bug: 175789289
Test: manual
Change-Id: If0fece7de1d96046221c89d1b12515bc5c15c301
2021-05-03 13:54:55 -07:00
Mady Mellor
203a6e667e Don't auto expand the bubble when it's marked as priority
Bug: 186684456
Test: manual - get a convo notif that can bubble
             - mark it as priority
             => notice the bubble is created but not auto-expanded
Change-Id: I4eec565bb1e32cbe4a53fa1e7db73f35fbabe730
2021-05-03 13:53:35 -07:00
Winson Chiu
a7c3e1134b Merge "Throttle package session async write requests" into sc-dev 2021-05-03 20:47:22 +00:00
Dmitri Plotnikov
012689e349 Merge "Aggregate power data in AggregateBatteryConsumers" into sc-dev 2021-05-03 20:40:25 +00:00
Cecilia
08d2eee578 [BugFix] Fix the media reco expanded layout when there is less than 6 items.
Screenshots:
- Before fix: http://screen/8PQhpUbKU88shZD
- After fix: http://screen/634Fw3ik5TKzrJ6; http://screen/67qumVeRFmEVThH

Bug: 186989643
Test: Studio builds
Change-Id: I7d7eacbfad1568c53f21060bc342c720c002b03d
2021-05-03 16:32:07 -04:00
Yurii Zubrytskyi
c7b995b41e Merge "Add more info to IncrementalService::onDump()" into sc-dev 2021-05-03 20:22:17 +00:00
Joe Bolinger
a7b1096cb8 Merge "Fix oneway complaints for fingerprint auth." into sc-dev 2021-05-03 20:11:43 +00:00
Daniel Chapin
25c273584a Revert "Fix VIP conversations alerting incorrectly."
This reverts commit 64c85ac6f5.

Reason for revert: DF blocking Bug: 187009701

Change-Id: I04dfdf20ad5c7df3c6dddf0cc12540b179162f0b
2021-05-03 19:55:48 +00:00
Chavi Weingarten
aa4fa8089e Merge "Fix ScreenRotation flicker from 90 to 270." into sc-dev 2021-05-03 19:50:30 +00:00
Alexander Dorokhine
e78d13af99 Merge "Temporarily re-add methods and classes removed in ag/1420175." into sc-dev 2021-05-03 19:33:55 +00:00
Soonil Nagarkar
9f8a57ebf5 Merge "Include provider tag in complete attribution tag list" into sc-dev 2021-05-03 19:31:31 +00:00
Jeff DeCew
04c8a8d731 Fix logic for logging bitmap errors
Bug: 153679293
Test: manual with a demo app
Change-Id: I23bb107d0fbbaaf56972fa6b954f8c322e76c250
2021-05-03 15:28:34 -04:00
Abel Tesfaye
5d5f7f7f9c Merge "Disallow attention check when power save mode is enabled" into sc-dev 2021-05-03 19:26:29 +00:00
Lyn Han
f8d0b83c96 Merge "Swipe a little, open shade a lot" into sc-dev 2021-05-03 19:21:03 +00:00
Ryan Mitchell
424db431be AAPT: Only print last uses-sdk tag
When an APK defines multiple "uses-sdk" tags, the Android runtime only
uses the minSdkVersion and targetSdkVersion values from the last
occurrence of the "uses-sdk" tag.

For example an application with the following tags:
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
<uses-sdk android:maxSdkVersion="28"/>

Will have the following version codes at runtime:
minSdk=1 targetSdk=1

Another example:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/>

Will have the following version codes at runtime:
minSdk=5 targetSdk=19

AAPT must print the version data from only the last tag, skipping other
occurrences of the tag.

Bug: 175789289
Test: manual
Change-Id: Ic855ff920d0b7abedd250d977bfa55189f4c8946
2021-05-03 12:20:22 -07:00
Grace Jia
e2099469d2 Add support for selected contacts device to device sharing.
Bug: 163085177
Test: CTS tests
Change-Id: I4f6da463a29ba9cf067d36941a9b4e584012c817
Merged-In: I4f6da463a29ba9cf067d36941a9b4e584012c817
2021-05-03 12:19:27 -07:00
Svetoslav Ganov
70e272de83 Merge "Use the correct switch for AR bypass" into sc-dev 2021-05-03 19:13:09 +00:00
Josh Tsuji
821e005cd5 Merge "Call StatusBar#finishKeyguardFadingAway after the fling animation." into sc-dev 2021-05-03 19:06:59 +00:00
Jay Aliomer
7df767f3d8 Merge "Only generate paint/mask bitmap when starting animations" into sc-dev 2021-05-03 19:06:53 +00:00
Jay Aliomer
b4a705aa1d Merge "Make notif background ripple default color" into sc-dev 2021-05-03 19:06:35 +00:00
Mady Mellor
794e3f0922 Bubbles: fix some issues with the pointer
* Pointer was missing if showing vertically on the right
  side, this is fixed & tried to make the code a lil more
  clear
* Pointer was missing for the bubble overflow, this is
  also fixed

Bug: 181888630
Test: manual - make sure the pointer is visible when the
               stack is expanded, check landscape left &
               right on small & large screen and check
               portrait on phone.
Change-Id: Id7dc6ae9a1f3e798940342b780940fb77ceaed3a
2021-05-03 11:54:12 -07:00
TreeHugger Robot
bc8bb62683 Merge "Fix cache by userId bugs" into sc-dev 2021-05-03 18:40:52 +00:00
Yuri Lin
4443582702 Add a lock around mBuffer in Archive.
Channel removal was resulting in some concurrent modification exceptions, so this change both adds a lock to synchronize any read/write access to mBuffer and also adds a test to make sure attempted concurrent access works correctly.

Test: atest ArchiveTest before and after change
Fixes: 186860793
Change-Id: Ic5f15a0fd3de27a44cc755c5d2f8008887c6b5b9
2021-05-03 14:37:19 -04:00
TreeHugger Robot
0e4d7f142b Merge "Storage Settings Apps category shows image/video/audio APPs" into sc-dev 2021-05-03 18:11:03 +00:00
Stanislav Zholnin
dd60f56455 Add more explanation on difference between aggregate and discrete
information.

Bug: 185226805
Test: Change limited to docs, no tests.
Change-Id: If041bad776d60dcfe018ef4d095f3e68e33a9e8d
2021-05-03 19:08:32 +01:00
Kohsuke Yatoh
353937a62b Use FontManager Java API in tests.
Thanks to commit 84383b5ef8, now Shell has
UPDATE_FONTS permission and we can use it in instrumentation tests via
UiAutomation#adoptShellPermissionIdentity().

Bug: 186966067
Test: atest UpdatableSystemFontTest
Change-Id: Idd2043f53d95b7c904d563dd3ef1d1846841c0d6
2021-05-03 11:07:17 -07:00
Kohsuke Yatoh
f74e3b69d4 Make UpdatableSystemFontTest device side test.
As commit 679a824773 removed 'adb shell
stop', this test doesn't need to be a host side test.

This allows us to call FontManager Java API in UpdatableSystemFontTest.
I will rewrite 'cmd font' to FontManager API calls in a following CL.

Bug: 186966067
Test: atest UpdatableSystemFontTest
Change-Id: I3bad29a3ea8402c990ae0dd553d3230db2d9f67c
2021-05-03 11:07:09 -07:00
Edgar Wang
de14bf4ab9 Update user profile picker style
- Change icon size from 56dp to 24dp
- Update layout and font style

Bug: 186608032
Bug: 186609520
Test: visual

Change-Id: I24a413fb118110fac6c52e81007e537c8717999a
2021-05-04 02:05:06 +08:00
Todd Kennedy
e7d88ec676 Add OWNERS for new files
Bug: 186864416
Test: None; it's an OWNERS file
Change-Id: I17ff5392df13bb2204d316a5b54312fd72d6cce7
2021-05-03 11:01:13 -07:00
Winson
288dc8fec1 Throttle package session async write requests
Previously, async writes were posted to a Handler but not throttled,
so it was possible to do redundant writes when the latest state had
already been saved.

To avoid that, a counter is stored that serves as a request ID that
can be checked against to see if the latest state has already been
saved, skipping the write request if it has.

This is preferred to calling Handler#hasCallbacks or
Handler#removeCallbacks because those will lock the Handler. And taking
the lock twice is perhaps worse than locking once to schedule a no-op
Runnable, although this was not benchmarked.

This also introduces a retry mechanism in case the write fails.

Bug: 168086110

Test: atest PackageSessionTests
Test: atest RequestThrottleTest

Change-Id: I604dc433c77cf1d9d743c8437674576ad087d62c
2021-05-03 10:53:26 -07:00
Lucas Dupin
964a1715eb Merge "Color appearance model library" into sc-dev 2021-05-03 17:23:47 +00:00
TreeHugger Robot
fbd8deba68 Merge "Bump Standby Bucket for FGS sooner." into sc-dev 2021-05-03 17:08:31 +00:00
Jay Aliomer
8cd53fb886 Only generate paint/mask bitmap when starting animations
Fixes: b/185570903
Test: performance testing bitmap threashold
Change-Id: Ia94011b3c7c34bf44e9ed7356873748724059c2a
2021-05-03 13:07:59 -04:00
Jordan Liu
b9645629b1 Merge "Update documentation of setUiccApplicationsEnabled" into sc-dev 2021-05-03 17:01:43 +00:00
Nikita Dubrovsky
f333d26f0d Release drag-and-drop URI permissions on gc if not tied to an activity
The implementation for drag-and-drop provides two ways of taking URI
permissions: a public API that ties permissions to an activity and
an internal API that grants "transient" permissions. The latter is
used in a single code path: dropping content into an editable
TextView (implemented in android.widget.Editor).

The transient code path was previously (Android R and below)
implemented using a try/finally block in Editor.onDrop. The change
I7ae38069fb741925211b42c7ff28784eb9722ce3 had updated that logic to
tie permissions to the app process lifecycle instead, to account for
the new OnReceiveContentListener which apps can use to implement
custom drop handling (and use a background thread to do the processing
of the content). The problem with having permissions tied to the app
process lifecycle is that the app process could potentially be
long-running.

This change updates the logic to tie transient permissions to the
DragAndDropPermissions object lifecycle (release whenever there are no
more reference to the object and it is garbage collected). This
follows the same approach as used for IME permission grants
(InputContentInfo.java and InputContentUriTokenHandler.java).

Bug: 181178998
Test: atest CtsWindowManagerDeviceTestCases:CrossAppDragAndDropTests
Test: Manually verified using development/samples/ReceiveContentDemo
Change-Id: I950d4572ee19af64da1ace1572fe12e17d09c609
2021-05-03 16:36:56 +00:00
Evan Severson
3dd046a1e7 Create mocking test for SensorPrivacyService
The current test verifies that the service parses the persisted state and
initializes successfully.

Test: Checkout multiple previous manifests and cherry pick this and run
          `atest SensorPrivacyServiceMockingTest`.
Bug: 186904124
Change-Id: I2990910daa6f240655ba09686e4f5e489dd10995
2021-05-03 09:32:18 -07:00
Anna Zappone
1b12d3d473 Handle work profile, DND state, app pauses
Listen and respond to changes in state on background thread. Store in-memory to avoid
requerying frequently

Test: PeopleSpaceWidgetManagerTest, PeopleTileViewHelperTest,
PeopleSpaceUtilsTest
Bug: 182891880
Change-Id: Id0142b02bb549275c77d8940cda4eb1f0bf4e947

Change-Id: I65712a7a43d8956499533689fe77afbeeac5bd6e
2021-05-03 17:23:28 +01:00
Joe Bolinger
72cd18785e Supress fingerprint cancellation messages in lock screen.
Fix: 185208300

Test: atest com.android.systemui.statusbar.KeyguardIndicationControllerTest
Test: manually on device
Change-Id: I0b383f86ff09be82160bc7f279d15b484d047559
2021-05-03 09:10:10 -07:00
Wale Ogunwale
28ebbbf0ab Add helper class FoldStateListener
Reduces the need for each code that needs to know about fold/unfold from
duplicating the exact same code.

Bug: 184795211
Test: They pass!
Change-Id: Ic05a2067c2ec64db7dab0227a7204283c1144a5f
2021-05-03 09:07:07 -07:00