OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Always treat password as sufficient if no password policy is set" into oc...
TreeHugger Robot [Fri, 8 Sep 2017 16:59:14 +0000 (16:59 +0000)]
Merge "Always treat password as sufficient if no password policy is set" into oc-mr1-dev

6 years agoMerge "Cat rescue." into oc-mr1-dev
Daniel Sandler [Fri, 8 Sep 2017 16:41:38 +0000 (16:41 +0000)]
Merge "Cat rescue." into oc-mr1-dev

6 years agoMerge "skip filtered entries instead of returning" into oc-mr1-dev
Todd Kennedy [Fri, 8 Sep 2017 13:29:49 +0000 (13:29 +0000)]
Merge "skip filtered entries instead of returning" into oc-mr1-dev

6 years agoAlways treat password as sufficient if no password policy is set
Rubin Xu [Fri, 8 Sep 2017 11:08:26 +0000 (12:08 +0100)]
Always treat password as sufficient if no password policy is set

Handle the special case when work profile is freshly created on a FDE device

Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases
      -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testPasswordSufficientInitially
Bug: 63887564
Change-Id: Ie8e430d4ff63be74fb2d4fc3ad3a8735f1de48b0

6 years agoMerge "Add method to update tile's remoteview using summaryUri" into oc-mr1-dev
TreeHugger Robot [Fri, 8 Sep 2017 06:36:44 +0000 (06:36 +0000)]
Merge "Add method to update tile's remoteview using summaryUri" into oc-mr1-dev

6 years agoMerge "Alternative fix for preventing PiP from screenshot sharing." into oc-mr1-dev
TreeHugger Robot [Fri, 8 Sep 2017 05:48:58 +0000 (05:48 +0000)]
Merge "Alternative fix for preventing PiP from screenshot sharing." into oc-mr1-dev

6 years agoMerge "Add spacing in QS footer and user switcher." into oc-mr1-dev
Bryan Eyler [Fri, 8 Sep 2017 05:28:31 +0000 (05:28 +0000)]
Merge "Add spacing in QS footer and user switcher." into oc-mr1-dev

6 years agoMerge "Add username beside user switch." into oc-mr1-dev
Bryan Eyler [Fri, 8 Sep 2017 05:27:52 +0000 (05:27 +0000)]
Merge "Add username beside user switch." into oc-mr1-dev

6 years agoMerge "Make ASSIST launch VIS and add a new keycode for TV (ALL_APPS)" into oc-mr1-dev
Sujith Ramakrishnan [Fri, 8 Sep 2017 04:25:15 +0000 (04:25 +0000)]
Merge "Make ASSIST launch VIS and add a new keycode for TV (ALL_APPS)" into oc-mr1-dev

6 years agoMerge "ONA: Make ONA related broadcasts protected." into oc-mr1-dev
TreeHugger Robot [Fri, 8 Sep 2017 04:04:35 +0000 (04:04 +0000)]
Merge "ONA: Make ONA related broadcasts protected." into oc-mr1-dev

6 years agoMerge "Always enable nav and status bar opaque/translucency" into oc-mr1-dev
TreeHugger Robot [Fri, 8 Sep 2017 02:38:59 +0000 (02:38 +0000)]
Merge "Always enable nav and status bar opaque/translucency" into oc-mr1-dev

6 years agoMerge "Javadoc update for permission requirements" into oc-mr1-dev
TreeHugger Robot [Fri, 8 Sep 2017 02:26:02 +0000 (02:26 +0000)]
Merge "Javadoc update for permission requirements" into oc-mr1-dev

6 years agoMerge "Fixes seascape recents task centering for low ram devices" into oc-mr1-dev
TreeHugger Robot [Fri, 8 Sep 2017 02:21:21 +0000 (02:21 +0000)]
Merge "Fixes seascape recents task centering for low ram devices" into oc-mr1-dev

6 years agoMerge "Updates the background of the clear all button for low ram devices" into oc...
TreeHugger Robot [Fri, 8 Sep 2017 02:09:04 +0000 (02:09 +0000)]
Merge "Updates the background of the clear all button for low ram devices" into oc-mr1-dev

6 years agoMerge "Changed the accessibility experience for notifications" into oc-mr1-dev
Selim Cinek [Fri, 8 Sep 2017 01:56:49 +0000 (01:56 +0000)]
Merge "Changed the accessibility experience for notifications" into oc-mr1-dev

6 years agoONA: Make ONA related broadcasts protected.
Stephen Chen [Tue, 5 Sep 2017 19:51:15 +0000 (12:51 -0700)]
ONA: Make ONA related broadcasts protected.

Bug: 65257065
Bug: 37357441

Test: build with ONA, check that broadcasts do not log WTF errors.
Change-Id: I623da59f5cc7ca3feff6cc156664c05fbeb34107

6 years agoMerge "Improve NewDatabasePerformanceTests" into oc-mr1-dev
TreeHugger Robot [Fri, 8 Sep 2017 01:00:35 +0000 (01:00 +0000)]
Merge "Improve NewDatabasePerformanceTests" into oc-mr1-dev

6 years agoAlternative fix for preventing PiP from screenshot sharing.
Winson Chung [Thu, 7 Sep 2017 21:05:42 +0000 (14:05 -0700)]
Alternative fix for preventing PiP from screenshot sharing.

- Revert 942a85c6d608dd6a4a31937fe0b57ae43105d5b2
- Use a more specific fix for the triggering of PiP from the SysUI
  screenshot share intent.

Bug: 63984385
Bug: 63581685
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: Click share on the screenshot action, ensure activity below does
      not enter PiP
Change-Id: Id8041d50dd429030c20940dca19e5c62bbc0c6a4

6 years agoMerge "Allow using SQLiteGlobal for testing" into oc-mr1-dev
Fyodor Kupolov [Fri, 8 Sep 2017 00:13:51 +0000 (00:13 +0000)]
Merge "Allow using SQLiteGlobal for testing" into oc-mr1-dev

6 years agoJavadoc update for permission requirements
Amith Yamasani [Tue, 5 Sep 2017 20:41:19 +0000 (13:41 -0700)]
Javadoc update for permission requirements

Bluetooth scanning requires holding these permissions for results
to be delivered.

Bug: 65013767
Test: N/A
Change-Id: I0b5fa9efa7fc8d5cff25319fbd7719cedee6a4aa

6 years agoAlways enable nav and status bar opaque/translucency
Matthew Ng [Fri, 1 Sep 2017 19:45:04 +0000 (12:45 -0700)]
Always enable nav and status bar opaque/translucency

Removed the logic to enable or disable translucency and have it fully
enable all the time. Having it on has very or no impact on RAM.

Test: boot device and look at nav and status bar
Change-Id: Id9e613abc689ab8c1b53424aa92e864f75f8ed02
Fixes: 65286386

6 years agoMake ASSIST launch VIS and add a new keycode for TV (ALL_APPS)
Sujith Ramakrishnan [Wed, 19 Jul 2017 01:35:14 +0000 (18:35 -0700)]
Make ASSIST launch VIS and add a new keycode for TV (ALL_APPS)

    - KEYCODE_ASSIST: Looks for default VIS in system partition
      and launches it.
    - Ensure foreground activity assist context extras are collected
      and sent to VIS.
    - KEYCODE_ALL_APPS: Sends Intent.ACTION_ALL_APPS. For TV,
      this targets default launcher package in system partition.

Test: Manual: ASSIST: adb shell input keyevent 219
Test: Manual: ALL_APPS: adb shell input keyevent 284
Test: also tested with --longpress for these keys
Test: Manual: Checked with dummy app populating overridden
      onProvideAssistData()
Test: Keypresses after overriding ALL_APPS and ASSIST
      on Nexus Remote

Bug: 37950079
Bug: 38496261
Change-Id: I96d9de67d4a442a8c6cb7feec28fc9aeb0dcbc18

6 years agoMerge "Bluetooth: add metrics for pairing with devices without names" into oc-mr1-dev
Jack He [Thu, 7 Sep 2017 23:12:25 +0000 (23:12 +0000)]
Merge "Bluetooth: add metrics for pairing with devices without names" into oc-mr1-dev

6 years agoChanged the accessibility experience for notifications
Selim Cinek [Thu, 7 Sep 2017 22:43:13 +0000 (15:43 -0700)]
Changed the accessibility experience for notifications

The expand button is now not labeling the notification
anymore since it was too wordy.

Change-Id: I14374b1a97389b8441fdf44eb4993954e765e89f
Fixes: 65123834
Test: use talkback and navigate to expand button, verify not speaking notification anymore

6 years agoFixes seascape recents task centering for low ram devices
Matthew Ng [Thu, 7 Sep 2017 00:10:06 +0000 (17:10 -0700)]
Fixes seascape recents task centering for low ram devices

Added missing system insets left to the calculation.

Test: manual - go to recents and rotate to seascape
Change-Id: I25cd2f35b81e350e2934859423985257c4d6daea
Fixes: 65420616

6 years agoImprove NewDatabasePerformanceTests
Fyodor Kupolov [Sat, 22 Jul 2017 02:36:50 +0000 (19:36 -0700)]
Improve NewDatabasePerformanceTests

They didn't properly report timings. It included setup time.
Also cleaned up code and added CREATE TABLE performance test.

Cherry-pick from 66c1852cced1c09f2dc7d536efd875c44d9a1cfe

Test: run_newdb_perf_test.sh
Bug: 63942513
Bug: 65302651
Merged-In: I15fcb5fa43f81e8ea39c2e29252527a8f3714398
Change-Id: I15fcb5fa43f81e8ea39c2e29252527a8f3714398

6 years agoskip filtered entries instead of returning
Todd Kennedy [Thu, 7 Sep 2017 21:22:23 +0000 (14:22 -0700)]
skip filtered entries instead of returning

When retrieving all packages / apps on the system, we should just
skip over any filtered entries rather than returning 'null'.

Change-Id: If874be3904b6d5a1103e099eb2ddff839091121e
Fixes: 65389431
Test: Manual:
Test: bit FrameworksCoreTests:android.content.pm.PackageManagerTests\#testGetInstalledPackages ; passes
Test: adb install --instantapp somepackage.apk
Test: bit FrameworksCoreTests:android.content.pm.PackageManagerTests\#testGetInstalledPackages ; passes

6 years agoMerge "Fixes clear all button disappearing after rotate on low ram device" into oc...
TreeHugger Robot [Thu, 7 Sep 2017 21:14:17 +0000 (21:14 +0000)]
Merge "Fixes clear all button disappearing after rotate on low ram device" into oc-mr1-dev

6 years agoMerge "Finishes the session when the service returns a null response on authenticatio...
Felipe Leme [Thu, 7 Sep 2017 21:13:18 +0000 (21:13 +0000)]
Merge "Finishes the session when the service returns a null response on authentication." into oc-mr1-dev

6 years agoBluetooth: add metrics for pairing with devices without names
Jack He [Thu, 31 Aug 2017 02:24:37 +0000 (19:24 -0700)]
Bluetooth: add metrics for pairing with devices without names

Bug: 34685932
Test: make, unit test
Change-Id: I486c210790fe72a594d6144dfd17b01a7a4a9003
Merged-In: I486c210790fe72a594d6144dfd17b01a7a4a9003

6 years agoMerge "Fix crash in presubmit tests" into oc-mr1-dev
Jason Monk [Thu, 7 Sep 2017 18:55:43 +0000 (18:55 +0000)]
Merge "Fix crash in presubmit tests" into oc-mr1-dev

6 years agoFix crash in presubmit tests
Jason Monk [Thu, 7 Sep 2017 18:51:41 +0000 (14:51 -0400)]
Fix crash in presubmit tests

Test: runtest systemui
Bug: 65289824
Change-Id: Ibbce459e5e87ea667e91d546b7568f9addbb1c66

6 years agoMerge "Bluetooth: Thread-safe binder invocation" into oc-mr1-dev
TreeHugger Robot [Thu, 7 Sep 2017 17:38:59 +0000 (17:38 +0000)]
Merge "Bluetooth: Thread-safe binder invocation" into oc-mr1-dev

6 years agoMerge "Introduced AppRestrictionsLock" into oc-mr1-dev
Fyodor Kupolov [Thu, 7 Sep 2017 17:30:54 +0000 (17:30 +0000)]
Merge "Introduced AppRestrictionsLock" into oc-mr1-dev

6 years agoMerge "Always add local subnet routes to the interface's routing table" into oc-mr1-dev
Rubin Xu [Thu, 7 Sep 2017 17:15:35 +0000 (17:15 +0000)]
Merge "Always add local subnet routes to the interface's routing table" into oc-mr1-dev

6 years agoMerge "Fix presubmit tests" into oc-mr1-dev
Jason Monk [Thu, 7 Sep 2017 16:11:24 +0000 (16:11 +0000)]
Merge "Fix presubmit tests" into oc-mr1-dev

6 years agoFix presubmit tests
Jason Monk [Thu, 7 Sep 2017 16:04:42 +0000 (12:04 -0400)]
Fix presubmit tests

Test: runtest systemui
Bug: 65289824
Change-Id: Ibf2b61670d09a76eb908bd9d322ae36e0f7af3e0

6 years agoMerge "Correctly block system work profile notifications." into oc-mr1-dev
Julia Reynolds [Thu, 7 Sep 2017 15:40:28 +0000 (15:40 +0000)]
Merge "Correctly block system work profile notifications." into oc-mr1-dev

6 years agoMerge "Ensure *# are included in TTS spans generated with PhoneNumberUtils." into...
Tyler Gunn [Thu, 7 Sep 2017 15:14:44 +0000 (15:14 +0000)]
Merge "Ensure *# are included in TTS spans generated with PhoneNumberUtils." into oc-mr1-dev

6 years agoAdd method to update tile's remoteview using summaryUri
Ajay Nadathur [Wed, 30 Aug 2017 21:56:46 +0000 (14:56 -0700)]
Add method to update tile's remoteview using summaryUri

- Calling com.android.settingslib.drawer.TileUtils#updateTileData no
longer sets the summary in RemoteView.
- To update summary and title of remoteview,
com.android.settingslib.drawer.TileUtils#updateTileUsingSummaryUri
should be called

bug: 62713030
Test: Added robolectric tests, also manually tested settings
Change-Id: I8c63601a901d5b140e36baec424c226724c43bc4

6 years agoMerge "Ensures zen rule update locale retains enabled val" into oc-mr1-dev
Beverly Tai [Thu, 7 Sep 2017 13:20:59 +0000 (13:20 +0000)]
Merge "Ensures zen rule update locale retains enabled val" into oc-mr1-dev

6 years agoAlways add local subnet routes to the interface's routing table
Rubin Xu [Tue, 5 Sep 2017 17:40:49 +0000 (18:40 +0100)]
Always add local subnet routes to the interface's routing table

For some networks such as mobile data connections, its LinkProperties
does not contain routes for the local subnet so no such route is added
to the interface's routing table. This can be problematic especially
if the device is in VPN lockdown mode where there exists high-priority
PROHIBIT routing rule which in turn blocks the network's default gateway
route from being added (next hop address hitting the prohibit rule).

We fix this by patching LinkProperties to always include direct connected routes
when they are received by ConnectivityService. This has the added advantage that
when apps get LinkProperties, they see the directly connected routes as well.

Bug: 63662962
Test: runtest frameworks-core -c android.net.LinkPropertiesTest
Test: runtest frameworks-services -c com.android.server.ConnectivityServiceTest
Test: Start with device with mobile data, set up ics-OpenVPN in always-on
      lockdown mode. Turn off mobile data then turn it back on, observe
      mobile data connectivity is restored and VPN successfully reconnects.

(cherry picked from commit 1bb5c0818f0c4fb426e13b65a3ba3db7f36c3d88)

Change-Id: Ia14f88bcf49d37286519c26dff6b7180303e2cbe

6 years agoMerge "Fix disabled views with nearest touch frame" into oc-mr1-dev
Jason Monk [Thu, 7 Sep 2017 12:48:02 +0000 (12:48 +0000)]
Merge "Fix disabled views with nearest touch frame" into oc-mr1-dev

6 years agoMerge "Support NAT keepalives" into oc-mr1-dev
Erik Kline [Thu, 7 Sep 2017 12:46:12 +0000 (12:46 +0000)]
Merge "Support NAT keepalives" into oc-mr1-dev

6 years agoSupport NAT keepalives
Erik Kline [Mon, 19 Jun 2017 02:33:59 +0000 (11:33 +0900)]
Support NAT keepalives

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - turned on debugging and walked around watching IpReachabilityMonitor
      force neighbors into NUD_PROBE state without error
    - observed NAT callbacks happening without any reported errors
    - watched:
        adb shell cat /proc/net/nf_conntrack | egrep '192[.]168[.]43[.]' | sort -n -k5
      for correct timeout updates

Bug: 29337859
Bug: 32163131

Change-Id: Icb23da64cfaa3a19f7bc75fba426a52b0994fb0f

6 years agoBluetooth: Thread-safe binder invocation
Jack He [Thu, 17 Aug 2017 19:11:18 +0000 (12:11 -0700)]
Bluetooth: Thread-safe binder invocation

* Binder object may become null between null check and actual invocation
  if using a instance private variable assignable by service connection
  callbacks
* The solution to this problem without locking is to assign existing
  binder variable to a local final variable before the null check
* Any further invocation to a disconnected binder object will result in
  RemoteException that is caught by the try-catch block
* Read and write to volatile variable is always atomic and hence thread-safe
* Removed unnecessary synchronization in BluetoothAdapter constructor
* Private mConnection objects should be final
* Simplfied several return statements where booleans can be returned
  directly
* Removed unnecessary catches for NPE since there won't be any

Bug: 64724692
Test: make, pair and use devices, no functional change
Change-Id: Ifc9d6337c0d451a01484b61243230725d5314f8e
(cherry picked from commit 16eeac356c68f3674677169b618774718ec982b2)

6 years agoMerge "disable carrier actions on redirection part 2" into oc-mr1-dev
Chen Xu [Thu, 7 Sep 2017 04:08:02 +0000 (04:08 +0000)]
Merge "disable carrier actions on redirection part 2" into oc-mr1-dev

6 years agoMerge "Make ASSIST launch VIS and add a keycode for TV (ALL_APPS)" into oc-dev am...
Sujith Ramakrishnan [Thu, 7 Sep 2017 02:08:53 +0000 (02:08 +0000)]
Merge "Make ASSIST launch VIS and add a keycode for TV (ALL_APPS)" into oc-dev am: c07c23b1f7  -s ours
am: 1255f26551

Change-Id: I00e8a8a61aea8b48830405018265d04dea179508

6 years agoMerge "Make ASSIST launch VIS and add a keycode for TV (ALL_APPS)" into oc-dev
Sujith Ramakrishnan [Thu, 7 Sep 2017 01:59:58 +0000 (01:59 +0000)]
Merge "Make ASSIST launch VIS and add a keycode for TV (ALL_APPS)" into oc-dev
am: c07c23b1f7  -s ours

Change-Id: I87c316c7b1738e9a85b867088a074536bc5e9db1

6 years agoMerge "Send a ranking update on global dot state change" into oc-mr1-dev
TreeHugger Robot [Thu, 7 Sep 2017 01:21:41 +0000 (01:21 +0000)]
Merge "Send a ranking update on global dot state change" into oc-mr1-dev

6 years agoMerge "Revert "Make settings themed apps have light nav"" into oc-mr1-dev
Tarandeep Singh [Thu, 7 Sep 2017 00:59:05 +0000 (00:59 +0000)]
Merge "Revert "Make settings themed apps have light nav"" into oc-mr1-dev

6 years agoAdd spacing in QS footer and user switcher.
Bryan Eyler [Wed, 6 Sep 2017 23:26:29 +0000 (16:26 -0700)]
Add spacing in QS footer and user switcher.

Adds space between user avatar and name.
Adds space below user icons in switcher.
Expands avatar image to size of view.
Adjust colour of user name.

Bug: 63593747
Tested on Mojave

Change-Id: If0a42b2ecd3ffa9dc11c918d6cdf42f109b3934e

6 years agoCat rescue.
Dan Sandler [Tue, 5 Sep 2017 01:36:01 +0000 (21:36 -0400)]
Cat rescue.

Change-Id: Ibeea21e14f52b018e9c130df17560c4d39f23ed3
Bug: 64305456
Fixes: 37926266
Fixes: 38349532
Test: adb shell am start -n com.android.egg/.neko.NekoActivationActivity ; \
      adb shell am start -n com.android.egg/.neko.NekoLockedActivity ; \
      echo "pick a dessert then press enter" ; read foo ; \
      adb shell cmd jobscheduler run -f com.android.egg 42 ; \
      adb shell am start -n com.android.egg/.neko.NekoLand ; \
      echo "longpress your new cat and touch the share icon"

6 years agoMerge "Fix QS loading animation" into oc-mr1-dev
TreeHugger Robot [Thu, 7 Sep 2017 00:17:56 +0000 (00:17 +0000)]
Merge "Fix QS loading animation" into oc-mr1-dev

6 years agoMerge "Make ASSIST launch VIS and add a keycode for TV (ALL_APPS)" into oc-dev
Sujith Ramakrishnan [Thu, 7 Sep 2017 00:09:21 +0000 (00:09 +0000)]
Merge "Make ASSIST launch VIS and add a keycode for TV (ALL_APPS)" into oc-dev

6 years agoAdd username beside user switch.
Bryan Eyler [Fri, 1 Sep 2017 00:57:45 +0000 (17:57 -0700)]
Add username beside user switch.

In car QS footer, show the username beside the user avatar/switch
button.

Bug: 63593747
Tested on Mojave

Change-Id: I62387b75951235350ee6d9326eba281374ebea69

6 years agoMerge "Fix truncated text in inline settings" into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 23:27:47 +0000 (23:27 +0000)]
Merge "Fix truncated text in inline settings" into oc-mr1-dev

6 years agoMerge "Show No SIM icon in QS when there is no SIM" into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 23:26:11 +0000 (23:26 +0000)]
Merge "Show No SIM icon in QS when there is no SIM" into oc-mr1-dev

6 years agoMerge "Guard against NPE" into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 23:21:11 +0000 (23:21 +0000)]
Merge "Guard against NPE" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 23:09:05 +0000 (23:09 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Flag storage settings cache invalidation time." into oc-mr1-dev
Daniel Nishi [Wed, 6 Sep 2017 23:07:13 +0000 (23:07 +0000)]
Merge "Flag storage settings cache invalidation time." into oc-mr1-dev

6 years agoRevert "Make settings themed apps have light nav"
Tarandeep Singh [Wed, 6 Sep 2017 22:16:12 +0000 (22:16 +0000)]
Revert "Make settings themed apps have light nav"

This reverts commit 45484206740874ddd4024fedfdd8676d935ea67b.

The above change causes restart due to ClassCastException.

Test: Manually:
      1. Open the Dialer app.
      2. Focus into the edit field to show the IME.
      3. Open the notification shade.
      4. Tap the gear icon to show the system settings.
      5. Make sure the system no longer restarts due to
         ClassCastException.
Bug: 63630024
Fixes: 65413752
Change-Id: I4a17ba2f8d70f99009f091c2aaad5cd5f4e9b31c

6 years agodisable carrier actions on redirection part 2
fionaxu [Wed, 6 Sep 2017 19:07:14 +0000 (12:07 -0700)]
disable carrier actions on redirection part 2

DO NOT MERGE handle the corner case: user on new pixel device update from O-DR to
O-MR when they are in captive portal scenario. In this scenrio,
we enabled captiveportalLoginActivity has the default url handler. this
will be persist and reset on sim absent/sim load/network avail.
On my previous fix, I removed all the signals which means after OTA
we won't reset this part. We should leave the reset signal to ensure
no carrier actions applied. even if something abnormal happens, we can
recover gracefully from reboot.

Bug: 65113738
Test: Manual
Change-Id: I445c7bce01e0bf36214f5f4f6327a0582c774dae

6 years agoMerge "Add metrics for status bar" into oc-mr1-dev
Jason Monk [Wed, 6 Sep 2017 21:29:08 +0000 (21:29 +0000)]
Merge "Add metrics for status bar" into oc-mr1-dev

6 years agoMerge "Update demo mode clock to 8:00 for O." into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 21:17:48 +0000 (21:17 +0000)]
Merge "Update demo mode clock to 8:00 for O." into oc-mr1-dev

6 years agoShow No SIM icon in QS when there is no SIM
Evan Laird [Wed, 6 Sep 2017 20:43:24 +0000 (16:43 -0400)]
Show No SIM icon in QS when there is no SIM

Before we were just showing the greyed out full signal triangle and
that's confusing.

Change-Id: Id6bac421f9192cbfe3a6d4389120832fb91e9966
Fixes: 64755132
Test: Remove/add SIM card; visual

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 20:04:30 +0000 (20:04 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Fix a bug where image apps were double-counted." into oc-mr1-dev
Daniel Nishi [Wed, 6 Sep 2017 19:58:22 +0000 (19:58 +0000)]
Merge "Fix a bug where image apps were double-counted." into oc-mr1-dev

6 years agoMerge "Fix issue #65359137: Apps with target API 26 can bypass background..." into...
TreeHugger Robot [Wed, 6 Sep 2017 19:54:00 +0000 (19:54 +0000)]
Merge "Fix issue #65359137: Apps with target API 26 can bypass background..." into oc-mr1-dev

6 years agoFix QS loading animation
Jason Monk [Wed, 6 Sep 2017 19:38:52 +0000 (15:38 -0400)]
Fix QS loading animation

Was using wrong colors depending on the theme.

Test: visual
Change-Id: I49e00fcfc607b712e545a19bb1f49130c6a686d5
Fixes: 63648257

6 years agoMerge "Use raw string when setting wifi preference title." into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 19:26:56 +0000 (19:26 +0000)]
Merge "Use raw string when setting wifi preference title." into oc-mr1-dev

6 years agoFixes clear all button disappearing after rotate on low ram device
Matthew Ng [Tue, 5 Sep 2017 23:36:45 +0000 (16:36 -0700)]
Fixes clear all button disappearing after rotate on low ram device

When configuration occurs it would hide the button. To fix this issue,
do not hide the button when rotating.

Change-Id: I2073652a3744cdf4e3a67cef73c507d9ea27bf81
Fixes: 65384096
Test: manual - load apps into recents, rotate screen

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
Bill Yi [Wed, 6 Sep 2017 19:10:33 +0000 (19:10 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
am: b1d8caa355  -s ours

Change-Id: Ifd66f13f6b1384eae3f3697b7ac275c442386e0c

6 years agoMerge "Import translations. DO NOT MERGE am: 2c1d066618 -s ours" into oc-mr1-dev
Android Build Merger (Role) [Wed, 6 Sep 2017 19:07:20 +0000 (19:07 +0000)]
Merge "Import translations. DO NOT MERGE am: 2c1d066618  -s ours" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 19:03:51 +0000 (19:03 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Sep 2017 19:03:42 +0000 (19:03 +0000)]
Import translations. DO NOT MERGE
am: 2c1d066618  -s ours

Change-Id: I70ac747da20112bcabac751ab990e82da87bfcb1

6 years agoAdd metrics for status bar
Jason Monk [Wed, 6 Sep 2017 13:22:29 +0000 (09:22 -0400)]
Add metrics for status bar

Test: runtest systemui
Fixes: 65289824
Change-Id: Ife5ce98862fc6a92740eaf80cdc0b74cb01dd04e

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 19:00:00 +0000 (19:00 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

6 years agoMerge "Retry crashed bound foreground service with some delay" into oc-mr1-dev
Amith Yamasani [Wed, 6 Sep 2017 18:58:34 +0000 (18:58 +0000)]
Merge "Retry crashed bound foreground service with some delay" into oc-mr1-dev

6 years agoMerge "Close idle connections to release RAM" into oc-mr1-dev
Fyodor Kupolov [Wed, 6 Sep 2017 18:40:02 +0000 (18:40 +0000)]
Merge "Close idle connections to release RAM" into oc-mr1-dev

6 years agoCorrectly block system work profile notifications.
Julia Reynolds [Tue, 5 Sep 2017 15:07:18 +0000 (11:07 -0400)]
Correctly block system work profile notifications.

Test: runtest systemui
Change-Id: I22a89b985a114485237f5ed8832d1a9c17789ca8
Fixes: 64951994

6 years agoIntroduced AppRestrictionsLock
Fyodor Kupolov [Tue, 5 Sep 2017 23:31:08 +0000 (16:31 -0700)]
Introduced AppRestrictionsLock

It is used to serialize access to app restrictions state and reduce
contention on PM lock.

Bug: 65096648
Test: com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testApplicationRestrictions
Change-Id: I87c364e641e511f6cbe1e55f4fa3aa12c453c08f

6 years agoSend a ranking update on global dot state change
Julia Reynolds [Wed, 6 Sep 2017 18:08:23 +0000 (14:08 -0400)]
Send a ranking update on global dot state change

Test: manual
Change-Id: I2024bdf6448c7577e29498c7d3b43fcbaca2924f
Fixes: 65384965

6 years agoGuard against NPE
Jason Monk [Wed, 6 Sep 2017 18:24:24 +0000 (14:24 -0400)]
Guard against NPE

Test: manual
Change-Id: I4ffc6aafb75b967f8a0a0ca0f0a3aeeb5d6e8c85
Fixes: 65229458

6 years agoMerge "Allow Instant Apps to access send_action_app_error" into oc-mr1-dev
Chad Brubaker [Wed, 6 Sep 2017 18:20:46 +0000 (18:20 +0000)]
Merge "Allow Instant Apps to access send_action_app_error" into oc-mr1-dev

6 years agoFix disabled views with nearest touch frame
Jason Monk [Wed, 6 Sep 2017 18:10:39 +0000 (14:10 -0400)]
Fix disabled views with nearest touch frame

Test: runtest systemui
Change-Id: I83fe0483d2d45c05750cb52fa66c579be0194091
Fixes: 65158062

6 years agoMerge "Fix shift in share sheet" into oc-mr1-dev
Jason Monk [Wed, 6 Sep 2017 17:50:36 +0000 (17:50 +0000)]
Merge "Fix shift in share sheet" into oc-mr1-dev

6 years agoFix issue #65359137: Apps with target API 26 can bypass background...
Dianne Hackborn [Tue, 5 Sep 2017 23:44:36 +0000 (16:44 -0700)]
Fix issue #65359137: Apps with target API 26 can bypass background...

...limit introduced in Oreo by swiping away from the task list

There was an edge case where, when restarting a service, if the
process wasn't already running we would bring it up directly in
the idle state and never go through the mechanism of force stopping
services once an app goes idle.

The fix for now is pretty targeted, detecting when we have a new
uid that is immediately idle, and in that case doing the same
thing we do when an existing uid goes idle (stopping any services
in it).  This means that in this flow you will get a glitch of
the service starting and then immediately stopping when idle is
applied at that point, but we do end up ultimately in the correct
final state.

Test: manual
Bug: 65359137

Change-Id: I64c29975ad75e7d7390512bf59673d423df16cf2

6 years agoMerge "Make settings themed apps have light nav" into oc-mr1-dev
Jason Monk [Wed, 6 Sep 2017 16:45:41 +0000 (16:45 +0000)]
Merge "Make settings themed apps have light nav" into oc-mr1-dev

6 years agoMerge "Use correct thread to remove starting window" into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 15:45:01 +0000 (15:45 +0000)]
Merge "Use correct thread to remove starting window" into oc-mr1-dev

6 years agoEnsures zen rule update locale retains enabled val
Beverly [Wed, 6 Sep 2017 14:36:04 +0000 (10:36 -0400)]
Ensures zen rule update locale retains enabled val

Bug: 65344958
Test: manual
Change-Id: I7c929b0398fce61cbf7aaa7b7b491a489422af5f

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Sep 2017 13:57:50 +0000 (06:57 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I1f5a8fdd408de1a74689fe6e1de0422529d797d8

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Sep 2017 13:49:09 +0000 (06:49 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I8f4884b5af544c9846580af19a9b23badbed357c

6 years agoFix truncated text in inline settings
Julia Reynolds [Fri, 1 Sep 2017 20:09:25 +0000 (16:09 -0400)]
Fix truncated text in inline settings

Change-Id: I6606b84d75fea308f75c39b90f5d5ee59e54b2d5
Fixes: 65059562
Test: manual

6 years agoMake settings themed apps have light nav
Jason Monk [Fri, 1 Sep 2017 16:40:06 +0000 (12:40 -0400)]
Make settings themed apps have light nav

This is needed to help with differential aging.

The nav needs to be white with a 1dp divider on it, so add support
for the divider and add hidden attribute to set the nav buttons
inverted.

Test: Open settings
Bug: 63630024
Change-Id: Iec6046baeb86fb554df73346df8652fee8b2736a

6 years agoMerge "Keyguard: Don't show when booting to cryptkeeper" into oc-mr1-dev
Adrian Roos [Wed, 6 Sep 2017 12:58:08 +0000 (12:58 +0000)]
Merge "Keyguard: Don't show when booting to cryptkeeper" into oc-mr1-dev

6 years agoUse correct thread to remove starting window
Jorim Jaggi [Tue, 5 Sep 2017 10:28:52 +0000 (12:28 +0200)]
Use correct thread to remove starting window

Test: Open app, reopen app
Test: go/wm-smoke

Bug: 63784898
Bug: 64954955
Fixes: 65256018
Change-Id: I58eb90796a002cc6962efd686cef73fb36040567

6 years agoMerge "Fix resetPasswordWithToken before user unlock" into oc-mr1-dev
Rubin Xu [Wed, 6 Sep 2017 12:12:36 +0000 (12:12 +0000)]
Merge "Fix resetPasswordWithToken before user unlock" into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Sep 2017 08:25:52 +0000 (01:25 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: Ib170094788c00758e4fb41bdcbf781ac196b0e34

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Sep 2017 05:31:46 +0000 (22:31 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I409427c1b5e9b8b3e29947002e8bc6d5985bec77