OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "MemoryIntArray: dup in writeToParcel." into qt-dev
TreeHugger Robot [Mon, 20 May 2019 21:31:13 +0000 (21:31 +0000)]
Merge "MemoryIntArray: dup in writeToParcel." into qt-dev

5 years agoMerge "Hide silent notifications section header on lockscreen" into qt-dev
Ned Burns [Mon, 20 May 2019 21:27:53 +0000 (21:27 +0000)]
Merge "Hide silent notifications section header on lockscreen" into qt-dev

5 years agoMerge "Support RTL in notification section header" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 21:27:05 +0000 (21:27 +0000)]
Merge "Support RTL in notification section header" into qt-dev

5 years agoMerge "Update battery saver suggestion to go to right page" into qt-dev
Salvador Martinez [Mon, 20 May 2019 21:22:57 +0000 (21:22 +0000)]
Merge "Update battery saver suggestion to go to right page" into qt-dev

5 years agoMerge "Add function to query last estimate time to Estimate" into qt-dev
Salvador Martinez [Mon, 20 May 2019 21:22:23 +0000 (21:22 +0000)]
Merge "Add function to query last estimate time to Estimate" into qt-dev

5 years agoMerge "Refresh should always update the field" into qt-dev
Lucas Dupin [Mon, 20 May 2019 21:14:57 +0000 (21:14 +0000)]
Merge "Refresh should always update the field" into qt-dev

5 years agoMerge "Use new non-deprecated constructor for AppTarget.Builder" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 20:58:28 +0000 (20:58 +0000)]
Merge "Use new non-deprecated constructor for AppTarget.Builder" into qt-dev

5 years agoMerge "Revert "Instant apps should have default view of storage?"" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 20:45:39 +0000 (20:45 +0000)]
Merge "Revert "Instant apps should have default view of storage?"" into qt-dev

5 years agoMerge "Fixes multiuser GNSS Bug." into qt-dev
TreeHugger Robot [Mon, 20 May 2019 20:19:38 +0000 (20:19 +0000)]
Merge "Fixes multiuser GNSS Bug." into qt-dev

5 years agoMerge "Revert to basic icons in notification info." into qt-dev
Ned Burns [Mon, 20 May 2019 20:16:44 +0000 (20:16 +0000)]
Merge "Revert to basic icons in notification info." into qt-dev

5 years agoMerge "Add ExplicitHealthCheckServiceImplTest" into qt-dev
Zimuzo Ezeozue [Mon, 20 May 2019 20:16:22 +0000 (20:16 +0000)]
Merge "Add ExplicitHealthCheckServiceImplTest" into qt-dev

5 years agoMerge "Fixed layout of quick_settings_header_info" into qt-dev
Fabian Kozynski [Mon, 20 May 2019 19:21:59 +0000 (19:21 +0000)]
Merge "Fixed layout of quick_settings_header_info" into qt-dev

5 years agoMerge "Force system ApplicationInfo update and notify DisplayManager" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 19:12:20 +0000 (19:12 +0000)]
Merge "Force system ApplicationInfo update and notify DisplayManager" into qt-dev

5 years agoSupport RTL in notification section header
Steve Elliott [Mon, 20 May 2019 19:01:37 +0000 (15:01 -0400)]
Support RTL in notification section header

Fixes: 132444640
Test: Have gentle notifications in the shade, change to any RTL
      language, view notification shade

Change-Id: Iffe00be0f60fb7c6315d050c60351fe7a0ab2e1f

5 years agoUse the SubId in the TM.getNetworkType if Valid
Nathan Harold [Fri, 17 May 2019 02:39:12 +0000 (19:39 -0700)]
Use the SubId in the TM.getNetworkType if Valid

If the TM instance has a specific subid that was
added using TM.createForSubscriptionId(), honor that
subId in getNetworkType().

Bug: 132466954
Test: compilation + manual
Merged-In: Ice4f673750ab3b374644750113e5b9b2a4f5ba63
Change-Id: Ice4f673750ab3b374644750113e5b9b2a4f5ba63
(cherry picked from commit 0aca4313139fb707158f6017c6ad7f62af4ce5e6)

5 years agoMerge "Android Q is API 29" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 18:32:59 +0000 (18:32 +0000)]
Merge "Android Q is API 29" into qt-dev

5 years agoRefresh should always update the field
Lucas Dupin [Mon, 20 May 2019 16:29:31 +0000 (09:29 -0700)]
Refresh should always update the field

Otherwise it's hard to keep track of things happening or not, since
the request would be postponed, leading to bugs elsewhere.

Test: Wait for time to pass on lock screen
Test: Enter/leave AOD
Fixes: 132955195
Change-Id: I54f806f9dd2d1cf4acac420bab08d4579f867a5f

5 years agoMerge "Ensure the Bubble settings intent is started as the correct user" into qt-dev
Mark Renouf [Mon, 20 May 2019 18:26:48 +0000 (18:26 +0000)]
Merge "Ensure the Bubble settings intent is started as the correct user" into qt-dev

5 years agoHide silent notifications section header on lockscreen
Ned Burns [Wed, 15 May 2019 18:50:11 +0000 (14:50 -0400)]
Hide silent notifications section header on lockscreen

Change things so we remove the gentle header when we're on the lock
screen. We still want to show the break between sections, so we
also modify beginsSection() to count either the header or the first
gentle child if there is no header.

Test: manual
Bug: 132689331
Change-Id: I02708a3a532cc2b9df2d1cec8192387dff132152

5 years agoMerge "Set the strong auth requirement based on flags when the user is stopped" into...
Erin Yan [Mon, 20 May 2019 17:11:21 +0000 (17:11 +0000)]
Merge "Set the strong auth requirement based on flags when the user is stopped" into qt-dev

5 years agoMerge "Run addtl. perm tests when system server changes" into qt-dev
Philip P. Moltmann [Mon, 20 May 2019 16:44:05 +0000 (16:44 +0000)]
Merge "Run addtl. perm tests when system server changes" into qt-dev

5 years agoFixed layout of quick_settings_header_info
Fabian Kozynski [Fri, 17 May 2019 18:06:38 +0000 (14:06 -0400)]
Fixed layout of quick_settings_header_info

The layout now allocates as much as it needs to QSCarrierGroup, and then
allocates leftover space to the status info Views.

The containing View (QSHeaderInfoLayout) splits the width between both
status (if both are visible) by allocating as much as they need. If the
total amount needed is more than what is available, it splits equally
unless a view requires less than half.

Test: Visual, using multiple Display sizes and Font sizes and Japanese
language (for some long strings)
Fixes: 132742416

Change-Id: I9f8ce68fa25fbe7d00451e59503575a07c3fd5f4

5 years agoMerge "Adds setCornerRadius to ActivityView & SurfaceView" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 16:30:20 +0000 (16:30 +0000)]
Merge "Adds setCornerRadius to ActivityView & SurfaceView" into qt-dev

5 years agoMerge "Whitelist background activity starts from device admin in #sendAdminCommandLoc...
Jonathan Scott [Mon, 20 May 2019 16:25:33 +0000 (16:25 +0000)]
Merge "Whitelist background activity starts from device admin in #sendAdminCommandLocked." into qt-dev

5 years agoMerge "Report AUTO_SELECTION as a smart selection event." into qt-dev
Abodunrinwa Toki [Mon, 20 May 2019 16:09:43 +0000 (16:09 +0000)]
Merge "Report AUTO_SELECTION as a smart selection event." into qt-dev

5 years agoMerge "Add a factoryReset method to IIpMemoryStore, and freeze api." into qt-dev
TreeHugger Robot [Mon, 20 May 2019 15:52:29 +0000 (15:52 +0000)]
Merge "Add a factoryReset method to IIpMemoryStore, and freeze api." into qt-dev

5 years agoMerge "End transitions before starting new transition." into qt-dev
TreeHugger Robot [Mon, 20 May 2019 14:15:25 +0000 (14:15 +0000)]
Merge "End transitions before starting new transition." into qt-dev

5 years agoMerge "Ignore tests that are more flaky after start pos fixes." into qt-dev
TreeHugger Robot [Mon, 20 May 2019 14:05:35 +0000 (14:05 +0000)]
Merge "Ignore tests that are more flaky after start pos fixes." into qt-dev

5 years agoMerge "Revert "Set parent for WindowProcessController"" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 13:58:25 +0000 (13:58 +0000)]
Merge "Revert "Set parent for WindowProcessController"" into qt-dev

5 years agoMerge "Revert "Override process config for cold start on secondary screens"" into...
TreeHugger Robot [Mon, 20 May 2019 13:58:25 +0000 (13:58 +0000)]
Merge "Revert "Override process config for cold start on secondary screens"" into qt-dev

5 years agoWhitelist background activity starts from device admin in #sendAdminCommandLocked.
Jonathan Scott [Thu, 16 May 2019 14:13:17 +0000 (15:13 +0100)]
Whitelist background activity starts from device admin in #sendAdminCommandLocked.

Test: cts-verifier > Device Owner Tests > Managed User Test
Fixes: 131815491
Change-Id: I818348159a0b501638ecf06e0621923ebc03d1fa

5 years agoMerge "Fixes QSCustomizer header height" into qt-dev
Fabian Kozynski [Mon, 20 May 2019 13:36:46 +0000 (13:36 +0000)]
Merge "Fixes QSCustomizer header height" into qt-dev

5 years agoMerge "Sets Tile default state to INACTIVE" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 13:34:25 +0000 (13:34 +0000)]
Merge "Sets Tile default state to INACTIVE" into qt-dev

5 years agoEnsure the Bubble settings intent is started as the correct user
Mark Renouf [Mon, 20 May 2019 13:29:44 +0000 (09:29 -0400)]
Ensure the Bubble settings intent is started as the correct user

Bug: 128891021
Test: app w/bubble notification in work profile only, click settings
Change-Id: If3421542d9487011f7c1f581758c1ffd8e2dedb9

5 years agoMerge "Make ResourceIcon#get thread safe" into qt-dev
Fabian Kozynski [Mon, 20 May 2019 13:19:13 +0000 (13:19 +0000)]
Merge "Make ResourceIcon#get thread safe" into qt-dev

5 years agoMerge "Add 2 attributes for list_divider_material" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 13:15:45 +0000 (13:15 +0000)]
Merge "Add 2 attributes for list_divider_material" into qt-dev

5 years agoAdd a factoryReset method to IIpMemoryStore, and freeze api.
Lorenzo Colitti [Mon, 20 May 2019 12:36:27 +0000 (05:36 -0700)]
Add a factoryReset method to IIpMemoryStore, and freeze api.

Currently unimplemented. Implementation will be in a future CL.

Test: m
Bug: 128499160
Change-Id: Ia11ecd33f528d01667b1baeb8671b7213a31eef5
Merged-In: Ia11ecd33f528d01667b1baeb8671b7213a31eef5
(cherry picked from commit 10ddc681cf8ffc2c189ff975ad5885b32e670cb9)

5 years agoRevert "Set parent for WindowProcessController"
Andrii Kulian [Mon, 20 May 2019 12:18:09 +0000 (12:18 +0000)]
Revert "Set parent for WindowProcessController"

This reverts commit 33ab86910e9090d10dd91d760d2dc53e1f3e99e6.

Reason for revert: b/132986140
Bug: 132986140
Bug: 131915789
Change-Id: I75824cd02d4c6a557c6997ebca01354155f8cd93

5 years agoRevert "Override process config for cold start on secondary screens"
Andrii Kulian [Mon, 20 May 2019 12:18:01 +0000 (12:18 +0000)]
Revert "Override process config for cold start on secondary screens"

This reverts commit ceef7461c2b082d450040b22872e691424095fc6.

Reason for revert: b/132986140
Bug: 132986140
Bug: 131915789
Change-Id: I95b28fb4d5eca1927be213e070177f8f3626d9b7

5 years agoAdd 2 attributes for list_divider_material
Mill Chen [Wed, 8 May 2019 10:50:05 +0000 (18:50 +0800)]
Add 2 attributes for list_divider_material

We added two attributes for list divider, one gets set up the color of list
divider and the other gets set up the opacity of its color. This
approach facilitates updating the color of the list divider for device
default themes.

Bug: 129943610
Test: visual
Change-Id: Ia319a31e223a86d71720e2dab63dce200ca824df

5 years agoMerge "Add dumpsys network_stack version" into qt-dev
Remi NGUYEN VAN [Mon, 20 May 2019 10:00:24 +0000 (10:00 +0000)]
Merge "Add dumpsys network_stack version" into qt-dev

5 years agoMerge "Add Standby Bucket and job duration to ScheduledJobStateChanged atom." into...
Ben Murdoch [Mon, 20 May 2019 08:18:34 +0000 (08:18 +0000)]
Merge "Add Standby Bucket and job duration to ScheduledJobStateChanged atom." into qt-dev

5 years agoMerge "Revise metrics for emergency dialer" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 08:16:09 +0000 (08:16 +0000)]
Merge "Revise metrics for emergency dialer" into qt-dev

5 years agoAdd dumpsys network_stack version
Remi NGUYEN VAN [Mon, 20 May 2019 07:47:48 +0000 (16:47 +0900)]
Add dumpsys network_stack version

This is necessary to allow testing for the network stack version and the
version it is getting from the system server.

Test: flashed, WiFi working
Test: dumpsys network_stack version shows data (although version numbers
      being fixed)
Bug: 133124190

Change-Id: I9ea85c29667d4510225637071990732360841db6

5 years agoMerge "SettingsLib: Add an API method to query whether a package is a system module...
Narayan Kamath [Mon, 20 May 2019 07:42:53 +0000 (07:42 +0000)]
Merge "SettingsLib: Add an API method to query whether a package is a system module." into qt-dev

5 years agoMerge "Changes to MediaProjection UX." into qt-dev
Narayan Kamath [Mon, 20 May 2019 07:41:48 +0000 (07:41 +0000)]
Merge "Changes to MediaProjection UX." into qt-dev

5 years agoMerge "Change warning logs to debug logs" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 07:19:29 +0000 (07:19 +0000)]
Merge "Change warning logs to debug logs" into qt-dev

5 years agoRevise metrics for emergency dialer
Leo Hsu [Fri, 3 May 2019 13:28:07 +0000 (21:28 +0800)]
Revise metrics for emergency dialer

Add new metrics constants and deprecate old ones for Emergency Dialer.

Bug: 124427605
Test: Manually. Check the result of
'adb logcat -b events | grep -e sysui_multi_action'

Change-Id: Ia72709a237a78e3a80540cb8f18c80f2bfe37adc

5 years agoMerge "Support vendor color modes for sf mode sysprop" into qt-dev
Christine Franks [Mon, 20 May 2019 04:51:18 +0000 (04:51 +0000)]
Merge "Support vendor color modes for sf mode sysprop" into qt-dev

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Mon, 20 May 2019 04:44:52 +0000 (21:44 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 72ecec0909 -s ours
am skip reason: subject contains skip directive

Change-Id: Ifd0dd8cb6441b000dc2030b35d6ad135dec2a953

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Mon, 20 May 2019 04:42:17 +0000 (04:42 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 20 May 2019 04:25:27 +0000 (04:25 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 20 May 2019 01:26:23 +0000 (18:26 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2b9eb3a2f4543f79debd422951609abfad6b42f3

5 years agoMerge "[wm]: Fixed TaskPositioner leak" into qt-dev
TreeHugger Robot [Sun, 19 May 2019 23:12:25 +0000 (23:12 +0000)]
Merge "[wm]: Fixed TaskPositioner leak" into qt-dev

5 years agoAdd ExplicitHealthCheckServiceImplTest
Zimuzo [Tue, 14 May 2019 17:51:32 +0000 (18:51 +0100)]
Add ExplicitHealthCheckServiceImplTest

Test: atest
android.ext.services.watchdog.ExplicitHealthCheckServiceImplTest
Bug: 132640467

Change-Id: I2d1820a38adce238a157e925512898c184dadec0

5 years agoMerge "Fix handling multiple staged rollback sessions ready signal" into qt-dev
Zimuzo Ezeozue [Sun, 19 May 2019 18:33:45 +0000 (18:33 +0000)]
Merge "Fix handling multiple staged rollback sessions ready signal" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 19 May 2019 15:42:07 +0000 (08:42 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I3f1a1c2c797ee233efa4db9c137f70493aa5e029

5 years agoMerge "Fix dropped rotation events when unlocking orientation" into qt-dev
TreeHugger Robot [Sun, 19 May 2019 14:23:32 +0000 (14:23 +0000)]
Merge "Fix dropped rotation events when unlocking orientation" into qt-dev

5 years agoFix dropped rotation events when unlocking orientation
Steve Elliott [Fri, 17 May 2019 18:39:53 +0000 (14:39 -0400)]
Fix dropped rotation events when unlocking orientation

When unlocking orientation on the same frame as a rotation takes place
(example: orientation is locked to landscape, but phone is physically
oriented to portrait), onConfigurationChange is not invoked, and so
Global Actions is positioned as if it were in the locked orientation,
even though it has been rotated.

We work around this by post()ing the rotation unlock, so that it
happens on the next frame, at which point onConfigurationChange is
correctly invoked and the layout is re-oriented properly.

Fixes: 132581161
Test: manual
Change-Id: I1c11844e24bea115f9f44560fef8db863d19d7af

5 years agoMerge "Fix issue with wrong user task being resolved" into qt-dev
Winson Chung [Sun, 19 May 2019 03:54:23 +0000 (03:54 +0000)]
Merge "Fix issue with wrong user task being resolved" into qt-dev

5 years agoIgnore tests that are more flaky after start pos fixes.
Joshua Tsuji [Sun, 19 May 2019 03:44:17 +0000 (23:44 -0400)]
Ignore tests that are more flaky after start pos fixes.

Test: atest SystemUITests
Fixes: 133035560
Change-Id: Ic0b9d7cd6231e7fa4f925e6a490a4d120f92fb7d

5 years agoMerge "Revert "Align bubble behavior with DND settings."" into qt-dev
Josh Tsuji [Sun, 19 May 2019 03:11:35 +0000 (03:11 +0000)]
Merge "Revert "Align bubble behavior with DND settings."" into qt-dev

5 years agoMerge "Adds a PhoneStateMonitor to the AssistManager" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 18:26:13 +0000 (18:26 +0000)]
Merge "Adds a PhoneStateMonitor to the AssistManager" into qt-dev

5 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Sat, 18 May 2019 14:57:23 +0000 (07:57 -0700)]
[automerger skipped] Import translations. DO NOT MERGE
am: d1ab5aced6 -s ours
am skip reason: subject contains skip directive

Change-Id: I0c65f5c6aaf40e69e29bba12f8aa470169e12302

5 years agoMerge "Add throttling by job run session." into qt-dev
Kweku Adams [Sat, 18 May 2019 14:38:56 +0000 (14:38 +0000)]
Merge "Add throttling by job run session." into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 14:27:54 +0000 (14:27 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoFix issue with wrong user task being resolved
Winson Chung [Fri, 17 May 2019 00:36:05 +0000 (17:36 -0700)]
Fix issue with wrong user task being resolved

- Setup wizard used to finish itself and start home automatically, but now
  we have the Tips app show afterwards which requires the user to swipe
  up to go home as a part of learning the gesture. Previously that would
  have created the home task for the secondary user and subsequent swipes
  would work, but in the new flow, the creation of the secondary user
  home task would never happen because the recents animation logic tries
  to find the primary user's home task. This is only an issue on the first
  launch for the secondary user, subsequent launches after completing SUW
  will start home as a part of switching users.

  This change ensures that we account for the user when trying to resolve
  an existing target activity.

Bug: 132410734
Test: atest RecentsAnimationTest
Change-Id: If14ad535948c5aadd83af528592b320dba62c40e

5 years agoMerge "Ensure that we use the current user context when adding nav mode listeners...
Winson Chung [Sat, 18 May 2019 14:24:16 +0000 (14:24 +0000)]
Merge "Ensure that we use the current user context when adding nav mode listeners" into qt-dev

5 years agoFix handling multiple staged rollback sessions ready signal
Zimuzo [Thu, 16 May 2019 17:09:23 +0000 (18:09 +0100)]
Fix handling multiple staged rollback sessions ready signal

After we stage a session for rollback, we need to wait for the
session to be ready and then reboot. To ensure we don't miss the
ready signal, we register a BroadcastReceiver to listen to session changes
and also check for session ready right away. This caused a race condition
where we may handle post-ready twice. This caused a crash because we
attempt to unregister the receiver twice, it's also a problem because
we could log the same event twice.

Now, we store the rollback ids we are about to handle and ensure we never
handle post-ready more than once.

Test: Manual test && atest StagedRollbackTest
Bug: 132866890
Change-Id: I5187ff20fb83b29f7a00a28bf6ad8105ca4f0067

5 years agoMerge "Allow updates to importance of default apps" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 09:25:23 +0000 (09:25 +0000)]
Merge "Allow updates to importance of default apps" into qt-dev

5 years agoMerge "Remove assist status stuff from StatusBar." into qt-dev
Matt Casey [Sat, 18 May 2019 09:21:58 +0000 (09:21 +0000)]
Merge "Remove assist status stuff from StatusBar." into qt-dev

5 years agoMerge "Add workaround for b/124210145" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 06:16:21 +0000 (06:16 +0000)]
Merge "Add workaround for b/124210145" into qt-dev

5 years agoMerge "Add DeviceConfig flags to Privacy Indicators" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 06:14:40 +0000 (06:14 +0000)]
Merge "Add DeviceConfig flags to Privacy Indicators" into qt-dev

5 years agoMerge "Aggresive performance optimizations." into qt-dev
Jeff Sharkey [Sat, 18 May 2019 05:48:35 +0000 (05:48 +0000)]
Merge "Aggresive performance optimizations." into qt-dev

5 years agoAggresive performance optimizations.
Jeff Sharkey [Sat, 18 May 2019 00:48:11 +0000 (18:48 -0600)]
Aggresive performance optimizations.

Now that we have LocalCallingIdentity, we can start caching it in
very narrow cases.  We must be careful to not cache too long, since
any changes to granted permissions for the UID mean we need to
re-evaluate any cached answers.

The best middle-ground for this in the Q release is to use an active
camera session as a proxy for when we should create a cache object
and then later invalidate it.  (It's very unlikely that a user
changes permissions while actively using the camera, and this is
a strong signal that the caller is sensitive to performance.)

Many other sprinkled optimizations to avoid extra binder calls into
the OS, such as aggressively caching VolumeInfo related details.

Track IDs that are owned by each LocalCallingIdentity, to speed up
all future security checks.

Dispatch all change notifications asynchronously, and delay them by
several seconds while the camera is being actively used, to give
more important foreground work a fighting chance.  Invalidate
thumbnails asynchronously.

Optimizations to ModernMediaScanner where it's safe to skip the
"reconcile" and "clean" steps when we're focused on a single file
that we successfully scanned.

Local tests show this CL improves performance of a test app that
takes 100 rapid shots by 45%.  (All the collective optimizations
done so far this week add up to a 70% improvement.)

Bug: 130758409
Test: atest --test-mapping packages/providers/MediaProvider
Exempt-From-Owner-Approval: trivial manifest change
Change-Id: I38cc826af47d41219ef44eae6fbd293caa0c01d5

5 years agoMerge "Add watchdog triggered staged rollback test" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 05:44:20 +0000 (05:44 +0000)]
Merge "Add watchdog triggered staged rollback test" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 18 May 2019 05:07:53 +0000 (22:07 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ie71c6b1ae7229c5b77a93235ce1e596ce7185f57

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 18 May 2019 04:44:54 +0000 (21:44 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I474bf516ef1703354dfc47007c50c934b5825cf4

5 years agoMerge "StatsCompanionService: register thermal event on all types" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 04:20:00 +0000 (04:20 +0000)]
Merge "StatsCompanionService: register thermal event on all types" into qt-dev

5 years agoMerge "Fixing the metrics_constants jump" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 04:15:20 +0000 (04:15 +0000)]
Merge "Fixing the metrics_constants jump" into qt-dev

5 years agoMerge "Revert "Reset system fixed to clean storage perm model 2"" into qt-dev
Philip P. Moltmann [Sat, 18 May 2019 02:33:23 +0000 (02:33 +0000)]
Merge "Revert "Reset system fixed to clean storage perm model 2"" into qt-dev

5 years agoMerge "Add timestamp and read status extra constants to MAP Client" into qt-dev
Sal Savage [Sat, 18 May 2019 02:22:38 +0000 (02:22 +0000)]
Merge "Add timestamp and read status extra constants to MAP Client" into qt-dev

5 years agoMerge "Make package whitelist the last check in activity starter." into qt-dev
TreeHugger Robot [Sat, 18 May 2019 02:18:29 +0000 (02:18 +0000)]
Merge "Make package whitelist the last check in activity starter." into qt-dev

5 years agoRevert "Align bubble behavior with DND settings."
Josh Tsuji [Sat, 18 May 2019 01:55:47 +0000 (01:55 +0000)]
Revert "Align bubble behavior with DND settings."

This reverts commit 7aa18112b52b3e369b0c03cc95848866cda0319b.

Reason for revert: b/132891091

Bug: 132891091
Change-Id: I7775bfe2d0c65908f0f6ec14e52beaf58528e19a

5 years agoMerge "Wait for scrim animation before showing lock icon" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 01:20:39 +0000 (01:20 +0000)]
Merge "Wait for scrim animation before showing lock icon" into qt-dev

5 years agoMerge "Correct pointer position" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 00:24:50 +0000 (00:24 +0000)]
Merge "Correct pointer position" into qt-dev

5 years agoMerge "Making wifi icon point to the new status_bar_system_icon_size" into qt-dev
John Choi [Sat, 18 May 2019 00:19:20 +0000 (00:19 +0000)]
Merge "Making wifi icon point to the new status_bar_system_icon_size" into qt-dev

5 years agoAdd throttling by job run session.
Kweku Adams [Tue, 14 May 2019 20:44:32 +0000 (13:44 -0700)]
Add throttling by job run session.

A session is considered a period of time when jobs for an app ran.
Overlapping jobs are counted as part of the same session. This adds a
way to limit the number of job sessions an app can run. This includes a
mechanism to coalesce sessions -- if a second session started soon after
one just ended, they will only be counted as one session.

Bug: 132227621
Test: atest com.android.server.job.controllers.QuotaControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: Id2ac4037731f57547d00985e8d549b9e990a5f3e

5 years agoMerge "Bind print svcs as "in foreground" for location" into qt-dev
TreeHugger Robot [Fri, 17 May 2019 23:10:30 +0000 (23:10 +0000)]
Merge "Bind print svcs as "in foreground" for location" into qt-dev

5 years agoAdd function to query last estimate time to Estimate
Salvador Martinez [Fri, 17 May 2019 22:43:16 +0000 (15:43 -0700)]
Add function to query last estimate time to Estimate

This just adds a centralized place to query for the last update
time so that people don't implement it with different defaults
or something like that.

Test: in sister CL
Bug: 132751712
Change-Id: I10769eaa2e4c2ec613397988a264228a9474d1d6

5 years agoMerge "Camera: Always return 'null' for unsupported formats" into qt-dev
TreeHugger Robot [Fri, 17 May 2019 21:35:23 +0000 (21:35 +0000)]
Merge "Camera: Always return 'null' for unsupported formats" into qt-dev

5 years agoRemove assist status stuff from StatusBar.
Matt Casey [Wed, 15 May 2019 22:49:37 +0000 (18:49 -0400)]
Remove assist status stuff from StatusBar.

Assist views no longer live in StatusBar.

Bug: 132065047
Test: Manual test, no expected behavior change.
Change-Id: I427eedf8c989b7af4f957a6e946919d57b83e827

5 years agoChange idleness according to screen status
Eric Jeong [Thu, 16 May 2019 19:21:16 +0000 (12:21 -0700)]
Change idleness according to screen status

- Unlike DeviceIdlenessTracker, CarIdlenessTracker didn't listen to
screen status change.
- android.jobscheduler.cts.DeviceStatesTest#testDeviceChangeIdleActiveState
fails due to the above reason.
- It is natural to exit idle when screen is turned on, unless forced idle
is set or car is in garage mode.

Bug: 130662327
Test: Run CtsJobSchedulerTestCases
Change-Id: I8c04c619b34b9e72027914e080aa0f4ef7519422

5 years agoRun addtl. perm tests when system server changes
Philip P. Moltmann [Wed, 17 Apr 2019 21:44:38 +0000 (14:44 -0700)]
Run addtl. perm tests when system server changes

- Tests for signature permissions

Test: atest --test-mapping frameworks/base/services/core/java/com/android/server/pm/permission:presubmit
Bug: 130516222
Change-Id: I37d7d1b11fd4c857bd932d935f94a5d393b79fd7

5 years agoMerge "Camera: Handle out-of-order frameNumber for ZSL requests" into qt-dev
TreeHugger Robot [Fri, 17 May 2019 21:20:44 +0000 (21:20 +0000)]
Merge "Camera: Handle out-of-order frameNumber for ZSL requests" into qt-dev

5 years agoFixes multiuser GNSS Bug.
Tyler Trephan [Fri, 17 May 2019 20:41:18 +0000 (13:41 -0700)]
Fixes multiuser GNSS Bug.

Allows different users to use GNSS according to their permissions.

Change-Id: Id68537771f3f23111f2890e910c4e47386effe37
Fix: 131774255
Test: Built and flashed on device. Tested using GPS Test app.

5 years agoUpdate battery saver suggestion to go to right page
Salvador Martinez [Thu, 16 May 2019 20:03:55 +0000 (13:03 -0700)]
Update battery saver suggestion to go to right page

Now that there are several different versions of automatic
battery saver, this notification should just take you to the
battery saver schedule page rather than setting it to 15%
automatic triggering.

Test: adb shell am broadcast -a PNW.autoSaverSuggestion
      --ez extra_confirm_only false
Bug: 122599859

Change-Id: I3f8cd73b146d7528bf4125e40efa564a96b0ee6c

5 years agoMerge "Whitelist all perms on installExistingPackage" into qt-dev
Philip P. Moltmann [Fri, 17 May 2019 19:56:19 +0000 (19:56 +0000)]
Merge "Whitelist all perms on installExistingPackage" into qt-dev

5 years agoMaking wifi icon point to the new status_bar_system_icon_size
John Choi [Fri, 17 May 2019 19:52:59 +0000 (12:52 -0700)]
Making wifi icon point to the new status_bar_system_icon_size

This matches what core SystemUI does.

Bug: 132354163
Test: manual
Change-Id: I39b1d80077581472d884b1a159b775522516226f

5 years agoMerge "Remove old logic from tinting prototype" into qt-dev
Winson Chung [Fri, 17 May 2019 19:33:34 +0000 (19:33 +0000)]
Merge "Remove old logic from tinting prototype" into qt-dev