OSDN Git Service

android-x86/frameworks-base.git
7 years agoFix typo in sync log.
Makoto Onuki [Fri, 14 Jul 2017 17:27:03 +0000 (10:27 -0700)]
Fix typo in sync log.

Bug: 62052247
Test: build
Change-Id: I760f634e137bcc70059ca4f2ff99e2df9618365a

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 23:22:01 +0000 (23:22 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522 am: 1add6be25e am: ba46064323 am: 111a2c7987 am: 4d608d2f35 am: a6e0a6e31d am: cba64fb461 am: 998ef870c5 am: bb89a1e3fe am: f645a57a5e am: c3fc745a1c am: 26e98edf31
am: f75d22dcc0

Change-Id: I694a91cbbfbe0590bfe87df52c7a2aad9ceaedfa

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 23:15:37 +0000 (23:15 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522 am: 1add6be25e am: ba46064323 am: 111a2c7987 am: 4d608d2f35 am: a6e0a6e31d am: cba64fb461 am: 998ef870c5 am: bb89a1e3fe am: f645a57a5e am: c3fc745a1c
am: 26e98edf31

Change-Id: I75d7844c2a000fab74cc82881f8ca4cc43f7acf3

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 23:10:07 +0000 (23:10 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522 am: 1add6be25e am: ba46064323 am: 111a2c7987 am: 4d608d2f35 am: a6e0a6e31d am: cba64fb461 am: 998ef870c5 am: bb89a1e3fe am: f645a57a5e
am: c3fc745a1c

Change-Id: I534f11f2eb0f737a2640acf4482a4af27927f694

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 23:03:33 +0000 (23:03 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522 am: 1add6be25e am: ba46064323 am: 111a2c7987 am: 4d608d2f35 am: a6e0a6e31d am: cba64fb461 am: 998ef870c5 am: bb89a1e3fe
am: f645a57a5e

Change-Id: Ibff94cad13a97c9b4a696f5e6df0522e8ac89d50

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 22:57:43 +0000 (22:57 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522 am: 1add6be25e am: ba46064323 am: 111a2c7987 am: 4d608d2f35 am: a6e0a6e31d am: cba64fb461 am: 998ef870c5
am: bb89a1e3fe

Change-Id: I9e53b0461cb3f28ddc023ba551c1cb4eb1007340

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 22:51:18 +0000 (22:51 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522 am: 1add6be25e am: ba46064323 am: 111a2c7987 am: 4d608d2f35 am: a6e0a6e31d am: cba64fb461
am: 998ef870c5

Change-Id: Icaf066033ce67780052b30be3de891907129404e

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 22:41:32 +0000 (22:41 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522 am: 1add6be25e am: ba46064323 am: 111a2c7987 am: 4d608d2f35 am: a6e0a6e31d
am: cba64fb461

Change-Id: I9c4fc2279ffa79ee85dc8a46be21095918fa52ad

7 years agoMerge "Average of top 4 CNO" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 22:38:43 +0000 (22:38 +0000)]
Merge "Average of top 4 CNO" into oc-dr1-dev

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 22:35:35 +0000 (22:35 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522 am: 1add6be25e am: ba46064323 am: 111a2c7987 am: 4d608d2f35
am: a6e0a6e31d

Change-Id: Ia5af67f07974b520d8c3e7424c07402793a486f2

7 years agoMerge "Fixing some issues with the assistant stack" into oc-dr1-dev
Winson Chung [Wed, 12 Jul 2017 22:32:42 +0000 (22:32 +0000)]
Merge "Fixing some issues with the assistant stack" into oc-dr1-dev

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 22:30:08 +0000 (22:30 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522 am: 1add6be25e am: ba46064323 am: 111a2c7987
am: 4d608d2f35

Change-Id: Id1626217e80920f162b735336ac708c4dd9467f9

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 22:24:06 +0000 (22:24 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522 am: 1add6be25e am: ba46064323
am: 111a2c7987

Change-Id: Idb7d3c789c6241aa8d77eb6077930b47c7ba69e4

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 22:18:59 +0000 (22:18 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522 am: 1add6be25e
am: ba46064323

Change-Id: I7119e3f003562f6d826d40ad3577b9db0e44c2c6

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84...
Phil Weaver [Wed, 12 Jul 2017 22:14:01 +0000 (22:14 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84 am: ba928bd522
am: 1add6be25e

Change-Id: I83a6c654862443a69bfeeaf675a8c038b3f7fb53

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours am: f433884a84
Phil Weaver [Wed, 12 Jul 2017 22:06:27 +0000 (22:06 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours am: f433884a84
am: ba928bd522

Change-Id: I74a7b0488371606dd9bdccab854d23c0e09b1ac9

7 years agoMerge "Prevent non-fullscreen activities from triggering auto-enter PiP" into oc...
Winson Chung [Wed, 12 Jul 2017 22:04:43 +0000 (22:04 +0000)]
Merge "Prevent non-fullscreen activities from triggering auto-enter PiP" into oc-dr1-dev

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2 -s ours
Phil Weaver [Wed, 12 Jul 2017 22:00:31 +0000 (22:00 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57 am: 5a7eb970e2  -s ours
am: f433884a84

Change-Id: I737838098a36efafe1509c4814ac1120a3bb8297

7 years agoBack-port fixes for b/62196835 am: 5bdffc5d57
Phil Weaver [Wed, 12 Jul 2017 21:55:31 +0000 (21:55 +0000)]
Back-port fixes for b/62196835 am: 5bdffc5d57
am: 5a7eb970e2  -s ours

Change-Id: Ifd4b5ff2487c8b8035ffaf6ed7e55539f26a463e

7 years agoBack-port fixes for b/62196835
Phil Weaver [Wed, 12 Jul 2017 21:43:46 +0000 (21:43 +0000)]
Back-port fixes for b/62196835
am: 5bdffc5d57

Change-Id: Ia5dafc7a8724d296e710f32d936bb493b51951de

7 years agoFix egregious state check for window focusability.
Winson Chung [Wed, 12 Jul 2017 19:37:19 +0000 (12:37 -0700)]
Fix egregious state check for window focusability.

- The original check should have not assumed that these are only app
  windows.

Bug: 63614176
Test: Ensure that you can unlock with password
Change-Id: I71a9959378bbd98a8ed6715d67119d38c3daceb5

7 years agoPrevent non-fullscreen activities from triggering auto-enter PiP
Winson Chung [Tue, 11 Jul 2017 22:07:45 +0000 (15:07 -0700)]
Prevent non-fullscreen activities from triggering auto-enter PiP

Bug: 63581685
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testAppOpsDenyPipOnPause
Test: Launch screenshot from notification tray above auto-enter PiP
      activity

Change-Id: I0bddfd5c47d6053d079b9bd426003d526e8bb0dd

7 years agoMerge "Using transformation method in the ImageFloatingTextView" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 19:23:16 +0000 (19:23 +0000)]
Merge "Using transformation method in the ImageFloatingTextView" into oc-dr1-dev

7 years agoMerge "wifi: Params for SAR limits" into oc-dr1-dev
Roshan Pius [Wed, 12 Jul 2017 18:33:20 +0000 (18:33 +0000)]
Merge "wifi: Params for SAR limits" into oc-dr1-dev

7 years agoMerge "[Companion] Prevent NPE in CallbackProxy" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 18:11:34 +0000 (18:11 +0000)]
Merge "[Companion] Prevent NPE in CallbackProxy" into oc-dr1-dev

7 years agoMerge "WifiMetrics: add Passpoint related metrics" into oc-dr1-dev
Peter Qiu [Wed, 12 Jul 2017 17:44:25 +0000 (17:44 +0000)]
Merge "WifiMetrics: add Passpoint related metrics" into oc-dr1-dev

7 years agoMerge "Move @Ignore from class-level to test level." into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 17:40:15 +0000 (17:40 +0000)]
Merge "Move @Ignore from class-level to test level." into oc-dr1-dev

7 years agoMerge "audioservice: modify default music volume" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 17:35:49 +0000 (17:35 +0000)]
Merge "audioservice: modify default music volume" into oc-dr1-dev

7 years agoUsing transformation method in the ImageFloatingTextView
Selim Cinek [Mon, 10 Jul 2017 15:41:16 +0000 (17:41 +0200)]
Using transformation method in the ImageFloatingTextView

Otherwise things like singleline and password don't work.

Test: runtest -x core/tests/coretests/src/com/android/internal/widget/ImageFloatingTextViewTest.java
Change-Id: I9d7d13c038be38319e6516715137789f612a43f7
Fixes: 36713596

7 years agoMerge "Document WifiScanner callback behaviors" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 17:14:05 +0000 (17:14 +0000)]
Merge "Document WifiScanner callback behaviors" into oc-dr1-dev

7 years agoMerge "canBeModified accessors for AmbientDisplay pickup setting" into oc-dr1-dev
Geoffrey Pitsch [Wed, 12 Jul 2017 16:50:53 +0000 (16:50 +0000)]
Merge "canBeModified accessors for AmbientDisplay pickup setting" into oc-dr1-dev

7 years agoMove @Ignore from class-level to test level.
Geoffrey Pitsch [Wed, 12 Jul 2017 15:40:32 +0000 (11:40 -0400)]
Move @Ignore from class-level to test level.

Workaround for reporting error.

Test: runtest systemui
Bug: 63521982
Change-Id: I81e70605471469b0ffa630ff874427a621fc1135

7 years agoMerge "Avoid exposing OffloadCallbackEvent values" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 15:23:04 +0000 (15:23 +0000)]
Merge "Avoid exposing OffloadCallbackEvent values" into oc-dr1-dev

7 years agoMerge "Update keyguard mic icon to rounded" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 14:58:20 +0000 (14:58 +0000)]
Merge "Update keyguard mic icon to rounded" into oc-dr1-dev

7 years agoMerge "Update animations in QS" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 14:58:04 +0000 (14:58 +0000)]
Merge "Update animations in QS" into oc-dr1-dev

7 years agoMerge "Stop unnecessary tethering reconfigurations" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 14:43:53 +0000 (14:43 +0000)]
Merge "Stop unnecessary tethering reconfigurations" into oc-dr1-dev

7 years agoMerge "Add OffloadHardwareInterface.getForwardedStats() wrapper" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 14:06:52 +0000 (14:06 +0000)]
Merge "Add OffloadHardwareInterface.getForwardedStats() wrapper" into oc-dr1-dev

7 years agoMerge "Don't animate bouncer changes when fading out Keyguard" into oc-dr1-dev
Jorim Jaggi [Wed, 12 Jul 2017 12:57:33 +0000 (12:57 +0000)]
Merge "Don't animate bouncer changes when fading out Keyguard" into oc-dr1-dev

7 years agoAdd OffloadHardwareInterface.getForwardedStats() wrapper
Erik Kline [Wed, 12 Jul 2017 06:46:54 +0000 (15:46 +0900)]
Add OffloadHardwareInterface.getForwardedStats() wrapper

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
Bug: 29337859
Bug: 32163131

Change-Id: Id831bc99cadbd59d280b026866707dbbe3b0e542

7 years agoMerge "Use RFC 7217 stable privacy addresses" into oc-dr1-dev
Lorenzo Colitti [Wed, 12 Jul 2017 07:57:49 +0000 (07:57 +0000)]
Merge "Use RFC 7217 stable privacy addresses" into oc-dr1-dev

7 years agoMerge "audioservice: fix media volume reset at boot" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 03:38:14 +0000 (03:38 +0000)]
Merge "audioservice: fix media volume reset at boot" into oc-dr1-dev

7 years agoMerge "Restructure use of absent tether_offload_disabled setting" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 03:05:18 +0000 (03:05 +0000)]
Merge "Restructure use of absent tether_offload_disabled setting" into oc-dr1-dev

7 years agoMerge "Fix z-order issue with text cursors and PiP." into oc-dr1-dev
Winson Chung [Wed, 12 Jul 2017 02:53:59 +0000 (02:53 +0000)]
Merge "Fix z-order issue with text cursors and PiP." into oc-dr1-dev

7 years agoMerge "GATT: Expose opportunistic client API to Java" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 02:47:56 +0000 (02:47 +0000)]
Merge "GATT: Expose opportunistic client API to Java" into oc-dr1-dev

7 years agoMerge "Move eSIM factory reset implementation to RecoverySystem" into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 02:17:42 +0000 (02:17 +0000)]
Merge "Move eSIM factory reset implementation to RecoverySystem" into oc-dr1-dev

7 years agoMerge "Avoid a race in autofill manager service." into oc-dr1-dev
TreeHugger Robot [Wed, 12 Jul 2017 02:09:00 +0000 (02:09 +0000)]
Merge "Avoid a race in autofill manager service." into oc-dr1-dev

7 years agoMerge "Use DisplayListener instead of WindowRotationListener in AudioService." into...
TreeHugger Robot [Wed, 12 Jul 2017 01:48:36 +0000 (01:48 +0000)]
Merge "Use DisplayListener instead of WindowRotationListener in AudioService." into oc-dr1-dev

7 years agoGATT: Expose opportunistic client API to Java
Jack He [Wed, 5 Jul 2017 21:55:35 +0000 (14:55 -0700)]
GATT: Expose opportunistic client API to Java

* Allow Java based programs to create an opportunistic GATT client
* Such client does not hold a GATT connection. It automatically
  disconnects when no other GATT connections are active for the
  remote device.

Bug: 63347806
Test: make, run battery service
Change-Id: Ib9333817d7f17a1fa3ddacfa51c680890bac19ec
Merged-In: Ib9333817d7f17a1fa3ddacfa51c680890bac19ec
(cherry picked from commit 13f52c8118c09ffc57b581a7d44b08e5e66d62fe)

7 years agoaudioservice: fix media volume reset at boot
Eric Laurent [Tue, 11 Jul 2017 21:08:11 +0000 (14:08 -0700)]
audioservice: fix media volume reset at boot

mSafeUsbMediaVolumeIndex must be initialized after createStreamStates()
because it relies on audio policy having correct ranges for volum indexes.

Also change the safe volume threshold for USB headset from -15dBFs to
-30dBFs to account for max EQ gain.

Bug: 63462140
Bug: 63388412
Test: Verify USB headset media volume is unchanged after reboot
when no SIM is present.

Change-Id: I5252d97e3f3dcde7568681abb066752ef0d936d2

7 years agoFixing some issues with the assistant stack
Winson Chung [Tue, 27 Jun 2017 00:22:27 +0000 (17:22 -0700)]
Fixing some issues with the assistant stack

- Only boost window layers for the docked stack above the windows for
  stacks that are split with the docked stack. In addition, only adjust
  the assistant windows if the docked stack windows are boosted.
- In addition, mark activities in the fullscreen stack as invisible when
  they are under another task that returns to another stack. This prevents
  all the fullscreen tasks from being visible when a translucent activity
  is started from the assistant stack.
- Also fix an issue where returning from the assistant after launching a
  fullscreen task would incorrectly being the fullscreen stack forward
  (since the assistant stack is finishing and considered translucent).
  In such cases, use the return-type of the assistant stack task to bring
  the home stack forward instead.

Bug: 37527727
Test: android.server.cts.ActivityManagerAssistantStackTests
Test: go/wm-smoke

Change-Id: Ie81fbebe016f4854c7edebf382c0c3255f1b6471
Signed-off-by: Winson Chung <winsonc@google.com>
7 years agoMerge "Ensure transparent assistant works with PiP" into oc-dr1-dev
Winson Chung [Wed, 12 Jul 2017 00:01:48 +0000 (00:01 +0000)]
Merge "Ensure transparent assistant works with PiP" into oc-dr1-dev

7 years agoFix z-order issue with text cursors and PiP.
Winson Chung [Tue, 11 Jul 2017 16:59:56 +0000 (09:59 -0700)]
Fix z-order issue with text cursors and PiP.

- When an activity is in PiP, its windows are top most and always
  computed incorrectly as the IME target. As a result, the popup
  windows for the cursors don't find the right parent and are not
  promoted to be above the IME.

Bug: 63546389
Test: Enter PiP, open app with bottom anchored input, and select
      some text.  Ensure that the cursors are top-most.
Test: go/wm-smoke

Change-Id: I1267504e10544b0a075bbf73e41e001d07a5f74c

7 years agoUse DisplayListener instead of WindowRotationListener in AudioService.
jiabin [Mon, 26 Jun 2017 20:48:14 +0000 (13:48 -0700)]
Use DisplayListener instead of WindowRotationListener in AudioService.

In AudioService should use a DisplayListener to listen for the default
display's orientation, not handling window orientation in AudioService.

Bug: 62460024
Test: Manually test on Marlin.
Change-Id: I0b7280f9e851b10e8c23406cae3407b45c97bdda
(cherry picked from commit 383c1cefd112c0cd56a3b34a9891ce095d3013de)

7 years agoaudioservice: modify default music volume
Eric Laurent [Tue, 11 Jul 2017 23:21:44 +0000 (16:21 -0700)]
audioservice: modify default music volume

Default music volume is changed from 3/4 of max to 1/3 of max to
reduce initial volume over headphones percieved as too agressive.

Also add a property ro.config.media_vol_default to modify this
default value.

Bug: 62608451
Test: verify default music volume over headphones after factory reset.
Change-Id: Icadb99e1bafe88984d3a3a05014d4d4648830693

7 years agoBack-port fixes for b/62196835
Phil Weaver [Tue, 11 Jul 2017 00:27:20 +0000 (17:27 -0700)]
Back-port fixes for b/62196835

Bug: 62196835
Test: Created an accessibility service that displays a system
and a toast overlay, confirmed that it disappeared when we
reached the accessibility permission screen that uses this
flag.

Change-Id: Ibb4c2c6a30de6b4ce8d27c34caa02e2d8148f621

7 years agoDocument WifiScanner callback behaviors
Ningyuan Wang [Tue, 20 Jun 2017 21:43:26 +0000 (14:43 -0700)]
Document WifiScanner callback behaviors

This adds the missing documents for WifiScanner.ActionListener.
This also fixes the existing inaccurate documents.

Bug: 29524465
Test: compile

Change-Id: I40d40a6293cdb0af6b8cad45062722ee2a4b746d

7 years agoFix method sinature of FuseAppLoop JNI code
Daichi Hirono [Tue, 11 Jul 2017 02:18:34 +0000 (11:18 +0900)]
Fix method sinature of FuseAppLoop JNI code

The file size passed to replyLookup and replyGetAttr needed to be jlong,
but they were jint before the fix.

Bug: 63543158
Test: Transfer 4GB+ files through ProxyFileDescriptor

Change-Id: Idaf27538e067854a25ae413651d8f83f0df3f387
(cherry picked from commit d2229a65f53e7b9e9fc861ac300607a329153c4c)

7 years agoMerge "Final tweaks to power menu" into oc-dr1-dev
TreeHugger Robot [Tue, 11 Jul 2017 20:22:16 +0000 (20:22 +0000)]
Merge "Final tweaks to power menu" into oc-dr1-dev

7 years agoMove eSIM factory reset implementation to RecoverySystem
qingxi [Fri, 23 Jun 2017 22:32:53 +0000 (15:32 -0700)]
Move eSIM factory reset implementation to RecoverySystem

This CL reverts the implementation of eSIM factory reset in
MasterClearReceiver and uses RecoverySystem#rebootWipeUserData to erase
eSIM data. Besides this, when the eSIM data isn't erased, we should call
EuiccManager#retainSubscriptionsForFactoryReset to let the fastboot know
that.

Bug: 62957212
Test: TreeHugger
Merged-In: I08ab9d53ec4fc73a65e8e7d0c39ac95b2d44d012
Change-Id: I08ab9d53ec4fc73a65e8e7d0c39ac95b2d44d012

7 years agoUpdate keyguard mic icon to rounded
Evan Laird [Tue, 11 Jul 2017 20:04:59 +0000 (16:04 -0400)]
Update keyguard mic icon to rounded

Test: visual
Change-Id: I4032e9f496b9b70820448b6ff5794ec58623cd84
Fixes: 62386498

7 years agoUpdate animations in QS
Evan Laird [Mon, 10 Jul 2017 20:55:36 +0000 (16:55 -0400)]
Update animations in QS

- Hotspot transient
- Bluetooth transient
- Trusted -> error
- Error -> trusted
- Fingerprint -> error
- Error -> Fingerprint
- Expand/collapse caret (shows up in volume and QS footer)

Test: visual
Bug: 62386498
Fixes: 63236324
Fixes: 62387135
Change-Id: I283dd2d34cd75634911cc7190b49c65d6328bd2e

7 years agocanBeModified accessors for AmbientDisplay pickup setting
Geoffrey Pitsch [Mon, 10 Jul 2017 14:36:25 +0000 (10:36 -0400)]
canBeModified accessors for AmbientDisplay pickup setting

Test: manual
Bug: 62391405
Change-Id: I2facc2bf404ef88cb44d60de9d70aae1edbc1372

7 years agoMerge "Fix scrim opacity in the brightness mirror" into oc-dr1-dev
Lucas Dupin [Tue, 11 Jul 2017 17:29:13 +0000 (17:29 +0000)]
Merge "Fix scrim opacity in the brightness mirror" into oc-dr1-dev

7 years agoMerge "Hide the Keyguard bottom area overlay when dozing." into oc-dr1-dev
Philip Quinn [Tue, 11 Jul 2017 16:44:49 +0000 (16:44 +0000)]
Merge "Hide the Keyguard bottom area overlay when dozing." into oc-dr1-dev

7 years agoMerge "Fix zen panel theming" into oc-dr1-dev
TreeHugger Robot [Tue, 11 Jul 2017 16:28:44 +0000 (16:28 +0000)]
Merge "Fix zen panel theming" into oc-dr1-dev

7 years agoMerge "Try to work on test flakyness." into oc-dr1-dev
TreeHugger Robot [Tue, 11 Jul 2017 16:24:50 +0000 (16:24 +0000)]
Merge "Try to work on test flakyness." into oc-dr1-dev

7 years agoAvoid exposing OffloadCallbackEvent values
Erik Kline [Tue, 11 Jul 2017 15:15:26 +0000 (00:15 +0900)]
Avoid exposing OffloadCallbackEvent values

Keep the android.hardware.tetheroffload.control.V1_0.OffloadCallbackEvent
import from leaking outside of OffloadHardwareInterface by converting each
event type into a separate callback.

Add basic logging implementation in OffloadController. Seems like every
call just needs to log save for two that actually need to do work:

    - onSupportAvailable()
      * poll stats and notify NetworkStatsService
      * (re)push all state, as the hardware now supports offload (again)

    - onStoppedLimitReached()
      * poll stats and notify NetworkStatsService

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passed
Bug: 29337859
Bug: 32163131
Change-Id: I46c2e5252ae72a09a1550862847c1af441ece072

7 years agoFinal tweaks to power menu
Jason Monk [Tue, 11 Jul 2017 15:07:08 +0000 (11:07 -0400)]
Final tweaks to power menu

 - Redlines
 - More scrim on shutdown
 - Fix ordering in seascape

Test: visual
Change-Id: Id5a92f323162a5157b71e9798f7d4692292bced6
Fixes: 63534082
Fixes: 37013646

7 years agoRestructure use of absent tether_offload_disabled setting
Erik Kline [Fri, 7 Jul 2017 08:38:30 +0000 (17:38 +0900)]
Restructure use of absent tether_offload_disabled setting

This restructures the fetching of the default disposition such
that we disable (and enable) the feature with only a single
character change.

Additionally: fix unittests with proper use of FakeSettingsProvider.

Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passed with developer enabled and disabled
Bug: 29337859
Bug: 32163131
Bug: 63250751

Change-Id: Ib32489d07778465134bca52c589baddbd78ab129

7 years agoMerge "Support demo mode and demo users" into oc-dr1-dev
Christine Franks [Tue, 11 Jul 2017 14:37:06 +0000 (14:37 +0000)]
Merge "Support demo mode and demo users" into oc-dr1-dev

7 years agoFix zen panel theming
Jason Monk [Tue, 11 Jul 2017 14:13:31 +0000 (10:13 -0400)]
Fix zen panel theming

The theme of the panel might be different than sysui now, so it
needs to use the right context.

Test: visual
Change-Id: Ic647421113f6721e63e69afc2b9c5d6c5b0e86f2
Fixes: 63530105

7 years agoTry to work on test flakyness.
Jason Monk [Tue, 11 Jul 2017 14:05:03 +0000 (10:05 -0400)]
Try to work on test flakyness.

 - Add bt permission
 - mock more BT stuff
 - Disable test that is causing crash on main thread

Test: runtest systemui
Change-Id: I5cddb71941cce4f9b595c65ef69919186addb6df
Fixes: 63568935

7 years agoMerge "Lock pattern should be red when error" into oc-dr1-dev
TreeHugger Robot [Tue, 11 Jul 2017 13:25:01 +0000 (13:25 +0000)]
Merge "Lock pattern should be red when error" into oc-dr1-dev

7 years agoDon't animate bouncer changes when fading out Keyguard
Jorim Jaggi [Wed, 28 Jun 2017 20:25:27 +0000 (16:25 -0400)]
Don't animate bouncer changes when fading out Keyguard

This fixes a regression from I5f264b74cc258e8d7f608978edfb1faa5ead385c
where we moved updateStates around. Setting the bouncer to hide
causes another animated update in scrim controller, which will
abort the current scrim animation.

Test: Unlock phone from bouncer, make sure proper fading is
happening.
Test: Unlock phone with fingerprint.
Test: Wake-and-unlock phone with fingerprint
Test: go/wm-smoke
Test: Double tap notification, press back, make sure scrim
animations are being played.
Change-Id: Iec0ec3f4a5f861a8ece2d2f8edc159653efafdca
Fixes: 63107737

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Tue, 11 Jul 2017 04:00:23 +0000 (04:00 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
am: 88e9aa19e2  -s ours

Change-Id: Id4a8d9d891b06a789132f9d9915306f336f52902

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Tue, 11 Jul 2017 03:57:08 +0000 (03:57 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoImport translations. DO NOT MERGE am: 48cf1d9768 -s ours
Bill Yi [Tue, 11 Jul 2017 03:52:59 +0000 (03:52 +0000)]
Import translations. DO NOT MERGE am: 48cf1d9768  -s ours
am: 829d7186d5  -s ours

Change-Id: I16754fc3b6c9df4b415d8c74ffe390787e932f8c

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 11 Jul 2017 03:50:19 +0000 (03:50 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 11 Jul 2017 03:43:57 +0000 (03:43 +0000)]
Import translations. DO NOT MERGE
am: 48cf1d9768  -s ours

Change-Id: If7328a10566daf60ac6da033923b1acbb307865f

7 years agoMerge "Move eUICC permissions to com.android namespace." into oc-dr1-dev
TreeHugger Robot [Tue, 11 Jul 2017 01:48:08 +0000 (01:48 +0000)]
Merge "Move eUICC permissions to com.android namespace." into oc-dr1-dev

7 years agoSupport demo mode and demo users
Christine Franks [Sat, 24 Jun 2017 01:12:46 +0000 (18:12 -0700)]
Support demo mode and demo users

Bug: 62712426
Test: run cts -m CtsDevicePolicyManagerTestCases -t \
com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageEphemeralUser
and
run cts -m CtsDevicePolicyManagerTestCases -t \
com.android.cts.devicepolicy.DeviceOwnerTest# \
testCreateAndManageEphemeralUserFailsWithoutSplitSystemUser
and
runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest \
frameworks-services
Change-Id: I77a71a994fe0f4f1f8c5df7c4ccf493aafa8fefe

7 years agoMerge "Catch exception in descriptor parser causes device connection to be skipped...
TreeHugger Robot [Tue, 11 Jul 2017 00:46:11 +0000 (00:46 +0000)]
Merge "Catch exception in descriptor parser causes device connection to be skipped." into oc-dr1-dev

7 years agoLock pattern should be red when error
Lucas Dupin [Mon, 10 Jul 2017 23:33:02 +0000 (16:33 -0700)]
Lock pattern should be red when error

Test: visual
Change-Id: I133ac629ca7ee6ae7e049711d024e6f776b10331
Fixes: 63450674

7 years ago[Companion] Prevent NPE in CallbackProxy
Eugene Susla [Fri, 7 Jul 2017 21:06:14 +0000 (14:06 -0700)]
[Companion] Prevent NPE in CallbackProxy

Fixes: 63383044
Test: Ensure all fields of CompanionDeviceManager.CallbackProxy are
null-checked in onSuccess and onFailure
Change-Id: If95a46686f74d184bccfcb2d8c8195add4747a07

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 10 Jul 2017 21:56:13 +0000 (14:56 -0700)]
Import translations. DO NOT MERGE

Change-Id: I6f7c93454c795da3db06572b1cddf9691ec4ff8e
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

7 years agoMerge "Eliminate a race condition that could lead to calling PBT#finalizeBackup(...
TreeHugger Robot [Mon, 10 Jul 2017 21:21:54 +0000 (21:21 +0000)]
Merge "Eliminate a race condition that could lead to calling PBT#finalizeBackup() twice" into oc-dr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 10 Jul 2017 21:17:29 +0000 (14:17 -0700)]
Import translations. DO NOT MERGE

Change-Id: I0d78e510a92213c8cd7bf2ba96e756418b79aba8
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 10 Jul 2017 21:08:01 +0000 (14:08 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ic838cd08ba00fe8aaf462f7de5908e63bcea79f5
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

7 years agoCatch exception in descriptor parser causes device connection to be skipped.
Paul McLean [Mon, 10 Jul 2017 20:51:57 +0000 (14:51 -0600)]
Catch exception in descriptor parser causes device connection to be skipped.

Bug: 63538159

Test: Manual - force an exception and verify the the device is still available.
Change-Id: I4f4c59d4d0f73b664fac8bc74a64414d0e9d9a24

7 years agoMerge "fix cellular captive portal reevaluation url" into oc-dr1-dev
Chen Xu [Mon, 10 Jul 2017 20:51:52 +0000 (20:51 +0000)]
Merge "fix cellular captive portal reevaluation url" into oc-dr1-dev

7 years agoMerge "Fix RTL mobile data type indicators" into oc-dr1-dev
TreeHugger Robot [Mon, 10 Jul 2017 20:36:07 +0000 (20:36 +0000)]
Merge "Fix RTL mobile data type indicators" into oc-dr1-dev

7 years agoMerge "Add screensaver settings to backup list" into oc-dr1-dev
TreeHugger Robot [Mon, 10 Jul 2017 20:17:56 +0000 (20:17 +0000)]
Merge "Add screensaver settings to backup list" into oc-dr1-dev

7 years agoAverage of top 4 CNO
Siddharth Ray [Mon, 10 Jul 2017 18:55:10 +0000 (11:55 -0700)]
Average of top 4 CNO

Addition of average of top 4 CNO to GNSS metrics

BUG: 62727230
Change-Id: Icef0ff5c25596fc1ae787907c0aea305eaf156d6

7 years agofix cellular captive portal reevaluation url
fionaxu [Mon, 10 Jul 2017 16:34:07 +0000 (09:34 -0700)]
fix cellular captive portal reevaluation url

we apply redirection link as the url everywhere for cellular captive portal.
this url should only be used when load the portal page at the first place (when users
click on the notification) and shouldn't be used as the re-evaluation url
as it wont return the expected response code.
instead we should use special URL (generate_204) from connectivity
service which will return 204 if redirection is gone.

Test: manual test with cold and hot TMO SIM
Bug: 63351490
Bug: 62532802
Change-Id: I56bb03a58447c5c46758e692ff357d540ea4cd7b

7 years agoAdd screensaver settings to backup list
Jason Monk [Mon, 10 Jul 2017 15:14:19 +0000 (11:14 -0400)]
Add screensaver settings to backup list

Test: manual
Change-Id: Icf47312e20b4ec44d02dc31ce575e89083a8be7d
Fixes: 35700553

7 years agoFix RTL mobile data type indicators
Evan Laird [Mon, 10 Jul 2017 17:00:39 +0000 (13:00 -0400)]
Fix RTL mobile data type indicators

Data type indicators were drawing too big for their containers and
causing the data type overlays not to obey RTL. Also tweaked some sizes
to fix RTL.

Change-Id: I1aee7397976e77d2b834b163bf7fa7cf2a008968
Fixes: 62538496
Test: visual (RTL mode)

7 years agoMerge "Fix issue with PiP touch drift." into oc-dr1-dev
Winson Chung [Mon, 10 Jul 2017 17:12:35 +0000 (17:12 +0000)]
Merge "Fix issue with PiP touch drift." into oc-dr1-dev

7 years agoMerge "Limit the number of notis an app can enqueue" into oc-dr1-dev
Julia Reynolds [Mon, 10 Jul 2017 16:55:01 +0000 (16:55 +0000)]
Merge "Limit the number of notis an app can enqueue" into oc-dr1-dev

7 years agoMerge "Add theme style flag to WallpaperColors" into oc-dr1-dev
Lucas Dupin [Mon, 10 Jul 2017 16:49:33 +0000 (16:49 +0000)]
Merge "Add theme style flag to WallpaperColors" into oc-dr1-dev

7 years agoMerge "Rate limit notification sounds/vibrations" into oc-dr1-dev
TreeHugger Robot [Mon, 10 Jul 2017 15:57:32 +0000 (15:57 +0000)]
Merge "Rate limit notification sounds/vibrations" into oc-dr1-dev