Commit Graph

416947 Commits

Author SHA1 Message Date
Amin Shaikh
0fcc337b6c Add battery estimate to content description.
Fixes: 128892060
Test: mp sysuig
Change-Id: Ic8563fc3681d695fdacc94ca03e96df898b40e0c
2019-05-29 14:08:41 -04:00
TreeHugger Robot
f6f26e0447 Merge "Add snooze options setting" into qt-dev 2019-05-29 17:03:32 +00:00
TreeHugger Robot
826c01e8e6 Merge "Add privapp config for cluster." into qt-dev 2019-05-29 16:59:13 +00:00
Kweku Adams
44bb9d7f6b Merge "Changing default limits, clarify flags, fix bug." into qt-dev 2019-05-29 16:54:52 +00:00
TreeHugger Robot
b5fbf20a55 Merge "Sharesheet - Fix NPE on default app launch" into qt-dev 2019-05-29 16:53:48 +00:00
Sudheer Shanka
54dbca30ed Merge "Fix NPE when querying for already uninstalled package." into qt-dev 2019-05-29 16:49:10 +00:00
TreeHugger Robot
c9dcf2ff78 Merge "Change suppresible type of voice comm signalling" into qt-dev 2019-05-29 16:37:30 +00:00
Varun Anand
b33d2ca2e3 Merge changes from topic "vpn_data_accounting" into qt-dev
* changes:
  Add one more test for VPN usage stats.
  Addressing comments for http://ag/7700679.
  NetworkStatsService: Fix getDetailedUidStats to take VPNs into account.
  Take all VPN underlying networks into account when migrating traffic for VPN uid.
2019-05-29 16:34:14 +00:00
Sal Savage
26fdabb9a0 Merge "BluetoothProfileConnector: Invoke service disconnections with the correct profile ID" into qt-dev 2019-05-29 16:08:48 +00:00
TreeHugger Robot
b23292da1d Merge "Changed comments to match real protection level" into qt-dev 2019-05-29 16:01:12 +00:00
TreeHugger Robot
d42032e5e2 Merge "Appropriately sets all installs on *any* failure of one" into qt-dev 2019-05-29 15:57:53 +00:00
Anton Hansson
ab09bd96ac Merge "Fix AppFuseMountScope.close()" into qt-dev 2019-05-29 15:25:18 +00:00
TreeHugger Robot
190e99cf3a Merge "Add dark theme for Shell app." into qt-dev 2019-05-29 14:03:55 +00:00
Anton Hansson
be9c990019 Fix AppFuseMountScope.close()
The boolean tracking whether the scope had been opened or not
was never set before. Set it in open(), as was the case in the
previous (non-binder) version of this class.

Bug: 132901939
Test: monitor `adb shell mount` while browsing photos and
      verify the appfuse mounts don't build up over time
Change-Id: Ia164ac4209126ed7e4d273c5fca4ababc0c66f2a
2019-05-29 14:43:23 +01:00
Beverly
1feff71387 Change suppresible type of voice comm signalling
USAGE_VOICE_COMMUNICATION_SIGNALLING shouldn't be considered
SUPPRESSIBLE_SYSTEM. It includes the ring tone sound when in a call.
Instead, it should not be suppressible like USAGE_VOICE_COMMUNICATION.

Test: manual
Fixes: 131756661
Change-Id: Ide8aafafe58c421f3b699e6de9358b4e73ad01c5
2019-05-29 13:36:12 +00:00
Stevie Kideckel
75d5091eb3 Merge "Make statusBarColor and navBarColor transparent for Theme.DeviceDefault.Settings" into qt-dev 2019-05-29 13:35:00 +00:00
Matt Pietal
32922ca4db Sharesheet - Fix NPE on default app launch
Turns out there's a secondary layout used by resolver which does not
contain R.id.empty. Check for null.

Bug: 133707284
Test: Open PDF file through resolver
Change-Id: I311f1c1d2fa6edcebc81d9056755884b1585a7cb
2019-05-29 07:39:21 -04:00
Matt Pietal
030bd8471f Sharesheet - Add additional checks for low ram devices
Continue to hide the direct share area for low ram devices. Make sure
the A-Z list loads properly.

Bug: 132342311
Test: Use low ram device
Change-Id: I66b58af3994e034e4d870286ef62ba4a9289e083
2019-05-29 07:17:39 -04:00
Lorenzo Colitti
1419b0b20e Add one more test for VPN usage stats.
Covers the case where the majority of traffic through the VPN is
caused by the VPN app itself, and ensures that that traffic is
correctly attributed to the VPN app as opposed to spread between
the other apps that use the VPN.

Bug: 120145746
Test: atest NetworkStatsServiceTest
Change-Id: Iffd3f95fc2e11d311691a797b010edb38d2ef3c6
2019-05-29 19:57:43 +09:00
Steven Kideckel
10b4dbb190 Make statusBarColor and navBarColor transparent for
Theme.DeviceDefault.Settings

Bug: 133474669
Test: manual - compared effects in apps using the theme on my device
Change-Id: Ia37f3e216a1b42d8d49f2c08d29c9e1ce835fdfb
2019-05-29 09:49:00 +00:00
Varun Anand
a229333986 Addressing comments for http://ag/7700679.
Note, that its in a separate CL so we could cherry-pick this CL to aosp.
http://ag/7700679 is already in aosp.

Bug: 113122541
Bug: 120145746
Test: atest FrameworksNetTests

Change-Id: I7cfda226b4ed11b67002b83b38fba0f5caf96718
2019-05-29 18:15:34 +09:00
Varun Anand
ed11b84131 NetworkStatsService: Fix getDetailedUidStats to take VPNs into account.
(cherry picked from commit 29d2ef2fe1)

This API is similar to one provided by NetworkStatsFactory with the
difference that NSS also migrates traffic from VPN UID to other apps.

Since traffic can only be migrated over NetworkStats delta, NSS
therefore maintains NetworkStats snapshot across all UIDs/ifaces/tags.

This snapshot gets updated whenever NSS records a new snapshot
(based on various hooks such as VPN updating its underlying networks,
network getting lost, etc.), or getDetailedUidStats API is invoked by
one of its callers.

Bug: 113122541
Bug: 120145746
Test: atest FrameworksNetTests
Test: manually verified that battery stats are migrating traffic off of
TUN (after patching above CL where we point BatteryStats to use this
API).

Change-Id: I4b8d7c5b6905a4a12c1806dfd35c2c4c63610404
2019-05-29 18:15:24 +09:00
Varun Anand
917327b193 Take all VPN underlying networks into account when migrating traffic for
VPN uid.

(cherry picked from commit 95aa6d446f)

Bug: 113122541
Bug: 120145746
Test: atest FrameworksNetTests
Test: Manually verified on device that stats from VPN UID are moved
      appropriately based on its declared underlying network set.
Test: vogar --mode app_process --benchmark NetworkStatsBenchmark.java

Change-Id: I7f368c5970b2dcb969fe0daf5ef44edb1f51d09d
2019-05-29 18:15:17 +09:00
Mathew Inwood
2cf040d602 Merge "Greylist 3P packages in the bootclasspath." into qt-dev 2019-05-29 07:00:23 +00:00
TreeHugger Robot
99d4417d4f Merge "Fix a deadlock between WindowManagerGlobal and WindowManagerService" into qt-dev 2019-05-29 06:00:15 +00:00
Feng Cao
3c0eeb951f Merge "Fix clipboard permission issue for AugmentedAutofillService provider." into qt-dev 2019-05-29 05:53:39 +00:00
Nicholas Sauer
5f6a7901cd Add privapp config for cluster.
bug: 133809765
Test: lunch gcar && m && emulator
lunch aosp && m && emulator

Change-Id: I585bedf65113f2417da8af30eb89788bc120926a
2019-05-29 05:21:49 +00:00
TreeHugger Robot
ed8620ae02 Merge "Don't run AttentionDetector when wakelock is held" into qt-dev 2019-05-29 04:56:52 +00:00
Tracy Zhou
8f5770a0b3 Merge "Hide floating rotation button upon click" into qt-dev 2019-05-29 04:56:04 +00:00
Chen Xu
924c6eb536 Merge "skip permission check for TelephonyManager API getMmsUserAgent" into qt-dev 2019-05-29 04:27:06 +00:00
Selim Cinek
5894d5b851 Merge "Fixed an issue where notifications could visually overlap" into qt-dev 2019-05-29 03:40:15 +00:00
Beth Thibodeau
01ed4e2798 Merge "Add logging for media notification seekbar" into qt-dev 2019-05-29 03:14:17 +00:00
Lucas Dupin
67cec194bd Merge "Fix stale media metadata" into qt-dev 2019-05-29 03:01:24 +00:00
TreeHugger Robot
be50040106 Merge "Use ISE to indicate alarm limit" into qt-dev 2019-05-29 02:43:38 +00:00
TreeHugger Robot
5dcbc98f21 Merge "Add READ_LOGS permission" into qt-dev 2019-05-29 02:38:25 +00:00
TreeHugger Robot
2abd554786 Merge "Fix crash when changing navigation modes" into qt-dev 2019-05-29 02:34:07 +00:00
TreeHugger Robot
85427e400b Merge "Ensure that we stop app switches when finishing the recents animation" into qt-dev 2019-05-29 02:29:32 +00:00
PO HUNG CHEN
4f179bb174 Merge "Fix StrictModeTest#testNonSdkApiUsage" into qt-dev 2019-05-29 02:07:06 +00:00
Tracy Zhou
2a5504191c Hide floating rotation button upon click
Fixes: 132201048
Test: manual
Change-Id: I8ef65a110e863fbcc752e04b728fdd1e74854f1f
2019-05-28 18:19:59 -07:00
TreeHugger Robot
8b486b7870 Merge "Fix install flag overlap" into qt-dev 2019-05-29 00:45:21 +00:00
Selim Cinek
f434a7479c Fixed an issue where notifications could visually overlap
While pulsing the notifications could overlap because they
were transparent. We're now making them not dimmable if they
are pulsing.

Fixes: 	129501157
Test: add 2 pulsing notifications, observe no overlap
Change-Id: Ic6db70a4d0dc202858834402e35a0e00fe631d68
2019-05-28 17:39:49 -07:00
Winson Chung
559f5557fa Fix crash when changing navigation modes
- The controller is only set on the active button, and when we tear
  down the nav bar, we try to update the controller from the other
  button

Bug: 132201048
Test: Switch navigation mode, ensure no crash
Change-Id: Id324c67946769193a4decab1a3d5e9d3967fc6fb
2019-05-28 17:23:06 -07:00
TreeHugger Robot
13015d24f8 Merge "Fixed that notifications could still get stuck" into qt-dev 2019-05-29 00:18:44 +00:00
Tracy Zhou
64f3175974 Merge "Set the floating rotation button to be visible." into qt-dev 2019-05-28 23:37:41 +00:00
Lucas Dupin
9027bda01f Fix stale media metadata
Checking if the metadata object is the same is not enough, we must check if the fields
are also the same, otherwise we can skip events.

It's also necessary to wait for a while before removing the media, otherwise animation
would be janky.

Test: adb shell input keyevent 87
Fixes: 133378688
Change-Id: I7847c8e435f35f4ab596f2aa2cc9296f06d5df26
2019-05-28 23:34:46 +00:00
TreeHugger Robot
1761566315 Merge "Set permissions on adb key file after write." into qt-dev 2019-05-28 23:33:11 +00:00
Roshan Pius
9911304f05 Merge "Settings(strings): Strings for wifi scan throttle toggle" into qt-dev 2019-05-28 23:13:03 +00:00
Kweku Adams
1d0d4bffa5 Changing default limits, clarify flags, fix bug.
1. Lower job count limits to values that should be more reasonable. The
following defaults have changed:
-- MAX_JOB_COUNT_ACTIVE = 20/window = 120/hr = 1/session
  (down from 200/window = 1200/hr = 10/session)
-- MAX_JOB_COUNT_WORKING = 120/window = 60/hr = 12/session
  (down from 1200/window = 600/hr = 120/session)
-- MAX_JOB_COUNT_FREQUENT = 200/window = 25/hr = 25/session
  (down from 1800/window = 225/hr = 225/session)
-- MAX_JOB_COUNT_RARE = 48/window = 2/hr = 16/session
  (down from 2400/window = 100/hr = 800/session)

2. Increase timing session coalescing duration to enable coalescing.
-- TIMING_SESSION_COALESCING_DURATION_MS = 5 seconds (up from 0ms)

3. Separate allowed time flag from rate limiting period flag so they can
be changed independently.

4. Fix bug: If an app reached the job count quota limit for its bucket,
QuotaController would set an alarm only 10 minutes (allowed time) into
the future to determine if the app was back in quota. This would result
in unnecessary wakeup alarms. Now, QC will set an alarm for when the
app will be under quota.

5. Expand some comments, clarify some constants, and simplify some code.

Bug: 132227621
Test: atest com.android.server.job.controllers.QuotaControllerTest
Test: CtsJobSchedulerTestCases
Change-Id: I6f3f3a5eff7f64b429820d7370d82c1b4573f23b
2019-05-28 15:55:05 -07:00
Mehdi Alizadeh
f1affe0d17 Merge "Clone Persons field in ShortcutInfo only for app prediction" into qt-dev 2019-05-28 22:42:19 +00:00
chen xu
4878165365 skip permission check for TelephonyManager API getMmsUserAgent
Bug: 133637995
Test: Manual test
Change-Id: Ib9f211120c34e9b48c02f990088c32fb307a64f2
2019-05-28 15:38:54 -07:00