OSDN Git Service

android-x86/frameworks-base.git
6 years agoShow ripple on toggle
Julia Reynolds [Tue, 3 Apr 2018 19:23:03 +0000 (15:23 -0400)]
Show ripple on toggle

Use the correct default value when the settings doesn't
exist yet.

Test: manual
Change-Id: Id661c9552fb59a4776dcaef8956c5ed49460e5fd
Fixes: 74617040

6 years agoMerge "Dejank QS edit screen." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:50:20 +0000 (19:50 +0000)]
Merge "Dejank QS edit screen." into pi-dev

6 years agoMerge "Atoms: remove bluetooth a2dp" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:48:33 +0000 (19:48 +0000)]
Merge "Atoms: remove bluetooth a2dp" into pi-dev

6 years agoMerge "Add DISABLE_CLOCK flags to status bar, fix transitions" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:46:29 +0000 (19:46 +0000)]
Merge "Add DISABLE_CLOCK flags to status bar, fix transitions" into pi-dev

6 years agoMerge "null check on qspanel before called method on it." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:37:28 +0000 (19:37 +0000)]
Merge "null check on qspanel before called method on it." into pi-dev

6 years agoMerge "Handle getNetworkWatchlistConfigHash() without config case" into pi-dev
Ricky Wai [Tue, 3 Apr 2018 19:32:27 +0000 (19:32 +0000)]
Merge "Handle getNetworkWatchlistConfigHash() without config case" into pi-dev

6 years agoMerge changes from topic "omapi" into pi-dev
Ruchi Kandoi [Tue, 3 Apr 2018 19:17:18 +0000 (19:17 +0000)]
Merge changes from topic "omapi" into pi-dev

* changes:
  Add an Executor for the onConnectedListener
  Make OMAPI stricter

6 years agoMerge "Avoids vibration over deadzone in navigationbar" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:09:22 +0000 (19:09 +0000)]
Merge "Avoids vibration over deadzone in navigationbar" into pi-dev

6 years agoMerge "Add logging constant to track settings slice changes" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:04:38 +0000 (19:04 +0000)]
Merge "Add logging constant to track settings slice changes" into pi-dev

6 years agoMerge "Nav icons and quick step states are determined by service enabled" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 18:47:22 +0000 (18:47 +0000)]
Merge "Nav icons and quick step states are determined by service enabled" into pi-dev

6 years agoMerge "Free up all scratch resources when the app's UI is hidden" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 18:41:17 +0000 (18:41 +0000)]
Merge "Free up all scratch resources when the app's UI is hidden" into pi-dev

6 years agoMerge "Add AppOps Checks for MANAGE_IPSEC_TUNNELS" into pi-dev
Nathan Harold [Tue, 3 Apr 2018 18:24:31 +0000 (18:24 +0000)]
Merge "Add AppOps Checks for MANAGE_IPSEC_TUNNELS" into pi-dev

6 years agoAdd AppOps Checks for MANAGE_IPSEC_TUNNELS
Nathan Harold [Fri, 16 Mar 2018 01:06:06 +0000 (18:06 -0700)]
Add AppOps Checks for MANAGE_IPSEC_TUNNELS

Adds support for a new AppOp to permit services to
use IpSec tunnel mode. The IpSecService now needs
a context so change the service mode to a cached
service rather than a static service.

Bug: 66955045
Test: runtest frameworks-net
Change-Id: I17a4a286225b432c3e15ea1587d946189931b4f4

6 years agoMerge "Change signature of requestBluetoothAudio" into pi-dev
Hall Liu [Tue, 3 Apr 2018 18:19:30 +0000 (18:19 +0000)]
Merge "Change signature of requestBluetoothAudio" into pi-dev

6 years agoDejank QS edit screen.
Amin Shaikh [Tue, 3 Apr 2018 17:39:53 +0000 (13:39 -0400)]
Dejank QS edit screen.

Do not show any tile animations on the QS edit screen.

Change-Id: I7cd409c859da0b4606a54d1308f85c01d92baff9
Fixes: 72086633
Test: visual

6 years agoAdd DISABLE_CLOCK flags to status bar, fix transitions
Evan Laird [Thu, 29 Mar 2018 22:21:48 +0000 (18:21 -0400)]
Add DISABLE_CLOCK flags to status bar, fix transitions

- CollapsedStatusBarFragment now listens to DISABLE_CLOCK so that it can
be requested to hide with disable flags (fixes SUW)
- PhoneStatusBarTransitions cares about the entire left side as a unit
instead of just notifications.

Test: atest frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragmentTest.java
Test: go through SUW, also change users from guest -> owner from lock
screen.

Change-Id: Ia693386b9ef0438a4fe341d056731e2ba6e973a0
Fixes: 71512617
Fixes: 71360226

6 years agoMerge "Move forward the alarm timestamp when config is added to statsd." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 17:57:43 +0000 (17:57 +0000)]
Merge "Move forward the alarm timestamp when config is added to statsd." into pi-dev

6 years agonull check on qspanel before called method on it.
Lujiang Xue [Tue, 3 Apr 2018 17:52:22 +0000 (10:52 -0700)]
null check on qspanel before called method on it.

Bug: 77324282

Test: manually launched on head unit
Change-Id: Ia484d527cd07f6998d6e9907250ae9eb0c031674

6 years agoMerge "Add com.android.development to the package whitelist." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 17:40:33 +0000 (17:40 +0000)]
Merge "Add com.android.development to the package whitelist." into pi-dev

6 years agoMerge "Camera: sort getCameraIdList output" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 17:13:39 +0000 (17:13 +0000)]
Merge "Camera: sort getCameraIdList output" into pi-dev

6 years agoMerge "Do not run peek animation when keyguard is fading" into pi-dev
Lucas Dupin [Tue, 3 Apr 2018 17:07:03 +0000 (17:07 +0000)]
Merge "Do not run peek animation when keyguard is fading" into pi-dev

6 years agoMerge "Add dedicated flag to control app image generation" into pi-dev
Mathieu Chartier [Tue, 3 Apr 2018 16:04:32 +0000 (16:04 +0000)]
Merge "Add dedicated flag to control app image generation" into pi-dev

6 years agoMerge "Make getText hidden and getWidth/getBounds public" into pi-dev
Seigo Nonaka [Tue, 3 Apr 2018 15:54:49 +0000 (15:54 +0000)]
Merge "Make getText hidden and getWidth/getBounds public" into pi-dev

6 years agoFree up all scratch resources when the app's UI is hidden
Derek Sollenberger [Mon, 2 Apr 2018 17:36:45 +0000 (13:36 -0400)]
Free up all scratch resources when the app's UI is hidden

Bug: 73808481
Test: hwui_unit_tests
Change-Id: I9f191c776a936c1be40702ff0924c7ad054526d5

6 years agoAdd com.android.development to the package whitelist.
Nicolas Geoffray [Tue, 3 Apr 2018 15:51:56 +0000 (16:51 +0100)]
Add com.android.development to the package whitelist.

bug: 77477866
Test: m
Change-Id: I9ac27dd3e7ee0d764d61ab9a8d2ae1065ce151e5

6 years agoMerge "Icon updates (1 of many)" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 15:21:32 +0000 (15:21 +0000)]
Merge "Icon updates (1 of many)" into pi-dev

6 years agoMerge "Update javadocs for ImageDecoder and related" into pi-dev
Leon Scroggins [Tue, 3 Apr 2018 14:43:01 +0000 (14:43 +0000)]
Merge "Update javadocs for ImageDecoder and related" into pi-dev

6 years agoMerge "QS tile transition fixes." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 14:30:10 +0000 (14:30 +0000)]
Merge "QS tile transition fixes." into pi-dev

6 years agoMerge "Fix strings for QS header status." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 14:27:32 +0000 (14:27 +0000)]
Merge "Fix strings for QS header status." into pi-dev

6 years agoMerge "Greylist AccessibilityInteractionClient methods" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 13:42:42 +0000 (13:42 +0000)]
Merge "Greylist AccessibilityInteractionClient methods" into pi-dev

6 years agoMerge "Camera: Update external camera orientation guidelines" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 12:57:19 +0000 (12:57 +0000)]
Merge "Camera: Update external camera orientation guidelines" into pi-dev

6 years agoGreylist AccessibilityInteractionClient methods
Artem Iglikov [Tue, 3 Apr 2018 11:57:26 +0000 (12:57 +0100)]
Greylist AccessibilityInteractionClient methods

These are used to clear accessibility cache in tests driven by
UIAutomator.

Bug: 77401534
Test: n/a
Change-Id: Id0bb808e94e0efdd8ddc59f94ddd5ea71394c8a2

6 years agoAdd more APIs to hidden API light greylist
David Brazdil [Tue, 3 Apr 2018 10:15:18 +0000 (11:15 +0100)]
Add more APIs to hidden API light greylist

Bug: 64382372
Bug: 77289927
Bug: 77487374
Bug: 74430927
Test: make out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
Change-Id: I2a65babbef3ead001f37549c2c470b0e6c118ef3

6 years agoHandle getNetworkWatchlistConfigHash() without config case
Ricky Wai [Thu, 29 Mar 2018 10:47:27 +0000 (11:47 +0100)]
Handle getNetworkWatchlistConfigHash() without config case

Follow ConnectivityManager.getNetworkWatchlistConfigHash() javadoc,
it should return null when watchlist config file does not exist

Bug: 76212923
Test: NULL
Change-Id: Ice2de0732cb07f5159d1e068fb8f95b979191d1a

6 years agoMerge "APF: drop multicast ICMPv6 while in doze mode" into pi-dev
Bernie Innocenti [Tue, 3 Apr 2018 09:42:19 +0000 (09:42 +0000)]
Merge "APF: drop multicast ICMPv6 while in doze mode" into pi-dev

6 years agoMerge "Use user-defined data limits in multipath quota." into pi-dev
Remi NGUYEN VAN [Tue, 3 Apr 2018 08:07:08 +0000 (08:07 +0000)]
Merge "Use user-defined data limits in multipath quota." into pi-dev

6 years agoAPF: drop multicast ICMPv6 while in doze mode
Bernie Innocenti [Wed, 28 Mar 2018 11:11:49 +0000 (20:11 +0900)]
APF: drop multicast ICMPv6 while in doze mode

Some WiFi hotspots send excessive multicast IPv6 ping requests which
cause considerable power drain. Thus, drop all multicast ICMPv6 ping
requests while the device is in doze mode.

Bug: 66930077
Test: runtest -x tests/net/java/android/net/apf/ApfTest.java
Test: manual - compared generated APF bytecode using apf_disassembler
Test: manual - force idle mode while sending multicast pings to device
Change-Id: I25dbf99985cf4413b4d0e3920d281fe6d663197a
(cherry picked from commit e2c70f8a6092f740ea10e7476b33860d756cf94f)

6 years agoMerge "Fix wrong linear navigation order when TalkBack is on" into pi-dev
Sanry Huang [Tue, 3 Apr 2018 05:31:10 +0000 (05:31 +0000)]
Merge "Fix wrong linear navigation order when TalkBack is on" into pi-dev

6 years agoUse user-defined data limits in multipath quota.
Remi NGUYEN VAN [Mon, 2 Apr 2018 01:16:50 +0000 (10:16 +0900)]
Use user-defined data limits in multipath quota.

When data plan information is not available, use user-defined data
warning or limit to estimate a reasonable multipath quota.

New version of change to avoid editing NetworkPolicyManagerService.

Test: Tests in go/ag/3828171 pass.
Bug: 72631572
Bug: 72877610
Change-Id: Ied4215a093377dc3322c4f18a83969d364c19b2a

6 years agoMerge "Fix PIP window going offset in landscape mode." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 03:35:40 +0000 (03:35 +0000)]
Merge "Fix PIP window going offset in landscape mode." into pi-dev

6 years agoAtoms: remove bluetooth a2dp
Tej Singh [Tue, 3 Apr 2018 02:37:59 +0000 (19:37 -0700)]
Atoms: remove bluetooth a2dp

We are punting this atom. remove it from atoms.proto

Test: build success on marlin
Bug: b/73971848
Change-Id: Ia2da3d673f8d6078304f6bd0d20dbe3c34f079da

6 years agoMerge "Add fileds to AppCrash and ANR atoms" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 02:31:27 +0000 (02:31 +0000)]
Merge "Add fileds to AppCrash and ANR atoms" into pi-dev

6 years agoMerge "Refactor isTetheringSupported() calls" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 02:25:49 +0000 (02:25 +0000)]
Merge "Refactor isTetheringSupported() calls" into pi-dev

6 years agoMerge "android:ui crash on longpress of empty tile" into pi-dev
Sanry Huang [Tue, 3 Apr 2018 02:22:48 +0000 (02:22 +0000)]
Merge "android:ui crash on longpress of empty tile" into pi-dev

6 years agoMerge "Revert "Throw invalid cert exception when deprecated initRecoveryService metho...
TreeHugger Robot [Tue, 3 Apr 2018 01:55:30 +0000 (01:55 +0000)]
Merge "Revert "Throw invalid cert exception when deprecated initRecoveryService method"" into pi-dev

6 years agoMerge "Disabling print dumping for now." into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 01:36:23 +0000 (01:36 +0000)]
Merge "Disabling print dumping for now." into pi-dev

6 years agoFix PIP window going offset in landscape mode.
Tracy Zhou [Tue, 3 Apr 2018 01:19:43 +0000 (18:19 -0700)]
Fix PIP window going offset in landscape mode.

In landscape mode, PIP window can go offset while launching IME. We want to align the top of the PIP window with the top of the movement bounds in that case.

Change-Id: I7e89538c9a51d78294037b474caedcdf31edf7c4
Fixes: 77337070
Test: Manual test

6 years agoMerge "A test api to override carrier information" into pi-dev
Chen Xu [Tue, 3 Apr 2018 01:14:24 +0000 (01:14 +0000)]
Merge "A test api to override carrier information" into pi-dev

6 years agoMove forward the alarm timestamp when config is added to statsd.
Yangster-mac [Mon, 2 Apr 2018 21:37:33 +0000 (14:37 -0700)]
Move forward the alarm timestamp when config is added to statsd.

Test: statsd test
BUG: b/77344187

Change-Id: Ieacffaa29422829b8956f2b3fcb2c647c8c3eed9

6 years agoMerge "Signal view is no loner apart of this fragment Removing custom battery display...
TreeHugger Robot [Tue, 3 Apr 2018 00:30:34 +0000 (00:30 +0000)]
Merge "Signal view is no loner apart of this fragment Removing custom battery display functionality until a complete fix is implemented." into pi-dev

6 years agoMerge "Expose the JNI scrypt function in a standalone Java class so we can use it...
Bo Zhu [Tue, 3 Apr 2018 00:28:43 +0000 (00:28 +0000)]
Merge "Expose the JNI scrypt function in a standalone Java class so we can use it in RecoverableKeyStore as well" into pi-dev

6 years agoMerge "Adding a member of Android Auto Embedded to the owners file" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 00:25:47 +0000 (00:25 +0000)]
Merge "Adding a member of Android Auto Embedded to the owners file" into pi-dev

6 years agoRevert "Throw invalid cert exception when deprecated initRecoveryService method"
Dmitry Dementyev [Tue, 3 Apr 2018 00:16:20 +0000 (00:16 +0000)]
Revert "Throw invalid cert exception when deprecated initRecoveryService method"

This reverts commit 50bc7e42d73c9ca8d77dcd538619c6d6eeaf6dea.

Reason for revert: API is still used by old binary

Change-Id: I3c8348211baa26245786abda6360a8df96e2d223
Bug: 77293264

6 years agoRefactor isTetheringSupported() calls
Erik Kline [Fri, 9 Mar 2018 05:18:02 +0000 (14:18 +0900)]
Refactor isTetheringSupported() calls

Tethering currently wants access to complex isTetheringSupported
logic that is only available in ConnectivityService. Instead of
trying to access that via ConnectivityManager, pass this capability
in to Tethering directly, in the TetheringDependencies object.

Also:
    - ConnectivityManager is only a source of static constants now,
      so "import static" all the constants that are actually used.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net works
    - manual USB towards WiFi tethering works
Bug: 68951715

Merged-In: Ifa121b057f9959ddb980edc940327929e48ea973
Merged-In: Iad6358dc2f1d10b322d22ec90543adc50882962d
Change-Id: Ia64faaadefb4a5d84a50da98bdebd544b6fda101
(cherry picked from commit 465ff3a0c1da8afd5cb13b25ed9a3c95ee0dd2c4)

6 years agoNav icons and quick step states are determined by service enabled
Matthew Ng [Tue, 27 Mar 2018 22:25:28 +0000 (15:25 -0700)]
Nav icons and quick step states are determined by service enabled

When the device quickly changes states (such as language or font size),
it would disconnect and then reconnect the service and as a result a
flash of the nav buttons will occur. Since the nav bar is connected to
launcher service unless 3rd party launchers are used, that should
determine if the icons should change or quick step should be
enabled/disabled instead of if there is a connection. Also hold the last
interaction flags and apply on startup until service is disabled (using
3rd party launcher).

Test: go to settings and change the font size under display
Change-Id: Ibebc8c3f8493574dd21774bd292c2096cfdad469
Fixes: 74199057
Fixes: 73483047
Fixes: 72225004

6 years agoMerge "Made a note that app names may not contain delimiter characters" into pi-dev
Gil O'Neil [Mon, 2 Apr 2018 23:42:01 +0000 (23:42 +0000)]
Merge "Made a note that app names may not contain delimiter characters" into pi-dev

6 years agoAdd dedicated flag to control app image generation
Mathieu Chartier [Tue, 13 Mar 2018 00:11:07 +0000 (17:11 -0700)]
Add dedicated flag to control app image generation

Also disable the flag for split APKs.

Bug: 72696798
Test: manual

Change-Id: I25007500e221744a218b165dde41ca9db19b1832

6 years agoMerge "[automerger skipped] Use concrete CREATOR instance for parceling lists am...
Android Build Merger (Role) [Mon, 2 Apr 2018 23:13:36 +0000 (23:13 +0000)]
Merge "[automerger skipped] Use concrete CREATOR instance for parceling lists am: 4921986db7 am: 609bc2d63e am: 3f13ccee8c  -s ours" into pi-dev

6 years ago[automerger skipped] Use concrete CREATOR instance for parceling lists am: 4921986db7...
Fyodor Kupolov [Mon, 2 Apr 2018 23:12:42 +0000 (23:12 +0000)]
[automerger skipped] Use concrete CREATOR instance for parceling lists am: 4921986db7 am: 609bc2d63e
am: 3f13ccee8c  -s ours

Change-Id: Id60877e08d928db681e5f47b26e92264996e1e11

6 years agoMerge "Fix network usage stats on 464xlat tethered." into pi-dev
Remi NGUYEN VAN [Mon, 2 Apr 2018 23:09:50 +0000 (23:09 +0000)]
Merge "Fix network usage stats on 464xlat tethered." into pi-dev

6 years agoAdding a member of Android Auto Embedded to the owners file
Brad Stenning [Mon, 2 Apr 2018 22:19:54 +0000 (15:19 -0700)]
Adding a member of Android Auto Embedded to the owners file

Bug:77493795
Test: none
Change-Id: I3758952b4c51e9b42b787c931377f20035ac4a31

6 years agoMerge "Camera: fix errorFlag logic" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 23:04:42 +0000 (23:04 +0000)]
Merge "Camera: fix errorFlag logic" into pi-dev

6 years agoMerge "Adding user accessor functions to UserManagerHelper." into pi-dev
Jovana Knezevic [Mon, 2 Apr 2018 22:59:24 +0000 (22:59 +0000)]
Merge "Adding user accessor functions to UserManagerHelper." into pi-dev

6 years agoUse concrete CREATOR instance for parceling lists am: 4921986db7
Fyodor Kupolov [Mon, 2 Apr 2018 22:59:23 +0000 (22:59 +0000)]
Use concrete CREATOR instance for parceling lists am: 4921986db7
am: 609bc2d63e

Change-Id: I4d1315586acd143cece0c27c08084012b7b18e22

6 years agoExpose the JNI scrypt function in a standalone Java class so we can
Bo Zhu [Sun, 1 Apr 2018 19:24:09 +0000 (12:24 -0700)]
Expose the JNI scrypt function in a standalone Java class so we can
use it in RecoverableKeyStore as well

Bug: 77325751
Test: It builds. No caller code yet.

Change-Id: I6ff847cff2efbd023612e51fe35be980f27f162d

6 years agoUse concrete CREATOR instance for parceling lists
Fyodor Kupolov [Mon, 2 Apr 2018 22:46:26 +0000 (22:46 +0000)]
Use concrete CREATOR instance for parceling lists
am: 4921986db7

Change-Id: I935e9a5db9faaf150a6472e49dc5a900bdf30b5a

6 years agoMerge "[Magnifier-38] Avoid deadlock causing ANR" into pi-dev
Mihai Popa [Mon, 2 Apr 2018 22:42:17 +0000 (22:42 +0000)]
Merge "[Magnifier-38] Avoid deadlock causing ANR" into pi-dev

6 years agoSignal view is no loner apart of this fragment
Brad Stenning [Mon, 2 Apr 2018 22:06:44 +0000 (15:06 -0700)]
Signal view is no loner apart of this fragment
Removing custom battery display functionality until a complete fix
is implemented.

Bug:77473401

Test: deploy a car build
Change-Id: I3a18ee45d23caa8d2c798cede3e9cb3e7334372f

6 years agoMerge "Print detailed memory usage of Skia for dumpsys gfxinfo" into pi-dev
Derek Sollenberger [Mon, 2 Apr 2018 22:38:50 +0000 (22:38 +0000)]
Merge "Print detailed memory usage of Skia for dumpsys gfxinfo" into pi-dev

6 years agoAdd fileds to AppCrash and ANR atoms
Chenjie Yu [Mon, 2 Apr 2018 21:22:19 +0000 (14:22 -0700)]
Add fileds to AppCrash and ANR atoms

Bug: 77487218
Change-Id: I13fe87c9811e248ed0ee87c64d482c9463d6b9a1
Fix: 77487218
Test: cts test

6 years agoDo not run peek animation when keyguard is fading
Lucas Dupin [Mon, 2 Apr 2018 20:47:16 +0000 (13:47 -0700)]
Do not run peek animation when keyguard is fading

Test: answer challenge, tap repeatedly: animation doesn't run
Test: tap on navbar when unlocked: animation runs
Change-Id: Ibea423fca69a77e61f4b178c58e9839cd8979d7c
Fixes: 75313101

6 years agoMerge "Allow applications to query for foreground/background data usage." into pi-dev
Lorenzo Colitti [Mon, 2 Apr 2018 22:20:03 +0000 (22:20 +0000)]
Merge "Allow applications to query for foreground/background data usage." into pi-dev

6 years agoMerge changes Ia9df12fa,Ib114e8cb into pi-dev
Rob Carr [Mon, 2 Apr 2018 22:15:49 +0000 (22:15 +0000)]
Merge changes Ia9df12fa,Ib114e8cb into pi-dev

* changes:
  Avoid calling detachChildren from onAppVisibilityChanged
  Fix computation of child window insets.

6 years agoAdd an Executor for the onConnectedListener
Ruchi Kandoi [Mon, 2 Apr 2018 20:31:47 +0000 (13:31 -0700)]
Add an Executor for the onConnectedListener

Test: Run CtsOmapiTestCases
Bug: 76448978
Change-Id: Ieb30b8935961db25bd058e1c41c127fa5a4437ff

6 years agoMerge "Add ROLLBACK past signing cert capability." into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 22:07:29 +0000 (22:07 +0000)]
Merge "Add ROLLBACK past signing cert capability." into pi-dev

6 years agoDisabling print dumping for now.
Kweku Adams [Fri, 30 Mar 2018 23:42:13 +0000 (16:42 -0700)]
Disabling print dumping for now.

Also updating privacy tags.

Bug: 72570451
Bug: 74975371
Test: Android builds
Change-Id: Ia1e6a5d0f5e4f141154fc5346bff432149c9123e

6 years agoAdd logging constant to track settings slice changes
Fan Zhang [Mon, 2 Apr 2018 22:02:18 +0000 (15:02 -0700)]
Add logging constant to track settings slice changes

Bug: 71503986
Test: build
Change-Id: I880cab9b6351031451f0c30ae8b480af2c200f2e

6 years agoMerge changes from topic "planz" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 21:56:59 +0000 (21:56 +0000)]
Merge changes from topic "planz" into pi-dev

* changes:
  Tests for SubscriptionManager APIs.
  Obtain NPMS through helper method.

6 years agoMerge ""Unlocked device required" javadoc clarification" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 21:40:34 +0000 (21:40 +0000)]
Merge ""Unlocked device required" javadoc clarification" into pi-dev

6 years agoMerge "Exit the loop at the right time" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 21:07:37 +0000 (21:07 +0000)]
Merge "Exit the loop at the right time" into pi-dev

6 years agoChange signature of requestBluetoothAudio
Hall Liu [Mon, 2 Apr 2018 20:52:57 +0000 (13:52 -0700)]
Change signature of requestBluetoothAudio

requestBluetoothAudio now takes a BluetoothDevice instead of a string.

Bug: 74408978
Test: unable to CTS -- can't emulate bluetooth devices
Change-Id: Id21e32b911da234f69a248e9937f9df0cf12a9a9

6 years agoMerge "Work on issue #74404949: Screen state usage API" into pi-dev
Dianne Hackborn [Mon, 2 Apr 2018 20:48:51 +0000 (20:48 +0000)]
Merge "Work on issue #74404949: Screen state usage API" into pi-dev

6 years agoMerge "Remove old alarm IPC" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 20:41:24 +0000 (20:41 +0000)]
Merge "Remove old alarm IPC" into pi-dev

6 years agoMerge "Rename trustedUserPresenceRequired." into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 20:36:34 +0000 (20:36 +0000)]
Merge "Rename trustedUserPresenceRequired." into pi-dev

6 years agoMerge "Do not set activity's task before clearing in some scenarios." into pi-dev
Bryce Lee [Mon, 2 Apr 2018 20:28:00 +0000 (20:28 +0000)]
Merge "Do not set activity's task before clearing in some scenarios." into pi-dev

6 years agoDo not set activity's task before clearing in some scenarios.
Bryce Lee [Mon, 26 Mar 2018 23:03:47 +0000 (16:03 -0700)]
Do not set activity's task before clearing in some scenarios.

When the clear top and reset task launch flags are specified for a
standard launch mode activity, we should not add the activity to the
task before taking these actions. Doing so leads to the potential of
prematurely ending the starting activity and reparenting the activity
without a window container controller set.

This changelist ensures that the task is not associated until later.

Fixes: 70635977
Test: atest CtsActivityManagerDeviceTestCases:ActivityStarterTests
Change-Id: I8e2245f9ad9f07e259b099daefe9ebb2170ae28d

6 years agoIcon updates (1 of many)
Evan Laird [Thu, 8 Mar 2018 22:36:10 +0000 (17:36 -0500)]
Icon updates (1 of many)

- Keyguard backspace
- User avatar (edited to match the size of the old one)
- Brightness thumb
- Bugreport (global actions menu)

Test: visual
Bug: 74344964
Fixes: 74207127

Change-Id: Iaff816f2ceb7868e9120da5d82e5412efa49834b

6 years agoAdd ROLLBACK past signing cert capability.
Daniel Cashman [Sat, 31 Mar 2018 01:54:14 +0000 (18:54 -0700)]
Add ROLLBACK past signing cert capability.

Add a new capability that may be granted to past signing certificates
after changing to a new signing certificate that will allow applications
to go back to a previous signing certificate.  This capability is
intended to not be granted, but may be added later in the event that
a signing certificate change caused undesirable behavior.

Bug: 73927694
Test: PkgInstallSignatureVerificationTest
Change-Id: I7453a2da00e740a55de45e7b144f308a9bc33772
(cherry picked from commit a1d0cf74f93bc6cdef054e73c9f09f44cc44d501)

6 years agoMerge "Updates MediaDrm developer docs" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 20:00:46 +0000 (20:00 +0000)]
Merge "Updates MediaDrm developer docs" into pi-dev

6 years ago"Unlocked device required" javadoc clarification
Brian C. Young [Mon, 2 Apr 2018 19:40:58 +0000 (12:40 -0700)]
"Unlocked device required" javadoc clarification

Wording changes on the public API functions for these keys.

Test: CTS
Bug: 67752510
Change-Id: Iaf620e8c0e06d436d09f50d308268653bec196ce

6 years agoPrint detailed memory usage of Skia for dumpsys gfxinfo
Derek Sollenberger [Thu, 29 Mar 2018 18:18:44 +0000 (14:18 -0400)]
Print detailed memory usage of Skia for dumpsys gfxinfo

Bug: 74435803
Test: adb shell dumpsys gfxinfo [package_name]
Change-Id: I1f2bcab500fb47c5e0b50c7459d4a876b063916b

6 years agoMerge "Don't use a copy of window params when showing a dialog." into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 19:22:58 +0000 (19:22 +0000)]
Merge "Don't use a copy of window params when showing a dialog." into pi-dev

6 years agoAvoid calling detachChildren from onAppVisibilityChanged
Robert Carr [Fri, 30 Mar 2018 22:39:58 +0000 (15:39 -0700)]
Avoid calling detachChildren from onAppVisibilityChanged

When entering PiP we use mDeferHidingClient to prevent sending
the app visibility to the client before it has a chance to enter PiP.
However, WindowState#onAppVisibilityChanged is not guarded by this
so we could end up detaching children when we mean to enter PiP. Instead
only detach children from sendAppVisibilityToClients so that we are
correctly guarded by the mDeferHidingClient flag.

Bug: 77294187
Test: Manual. go/wm-smoke.
Change-Id: Ia9df12fadf3c48d0704e9e6d7e98a6e9cf46783d

6 years agoFix computation of child window insets.
Robert Carr [Fri, 30 Mar 2018 21:00:53 +0000 (14:00 -0700)]
Fix computation of child window insets.

Translate some old code that derived conditions
from Surface layers to directly infer the conditions.

Bug: 75253006
Test: Manual. go/wm-smoke
Change-Id: Ib114e8cb3b7c2255d68237e18eebba8f48e0fb16

6 years agoRename trustedUserPresenceRequired.
Shawn Willden [Tue, 27 Mar 2018 22:10:37 +0000 (16:10 -0600)]
Rename trustedUserPresenceRequired.

The existing name is misleading, because it can be read as requiring
that a trusted user be present, rather than the intended meaning of
requiring trusted proof of user presence.  Since this is all about
TEE/SE-based keys, the "trusted" part is implied, so the simple
"userPresenceRequired" name makes more sense.

Bug: 77151288
Test: Keystore CTS tests
Change-Id: If8b533b9f34a1875eaf35cdd1bb8f3709da9761b

6 years agoAvoids vibration over deadzone in navigationbar
Matthew Ng [Sat, 31 Mar 2018 00:15:39 +0000 (17:15 -0700)]
Avoids vibration over deadzone in navigationbar

Removed the deadzone as a view and converted to a class that is attached
to NavigationBarView to determine if the incoming touch events should be
consumed by the deadzone.

Change-Id: I5bf6a9e48ba9fa2305ec98acfc537d14cb8cf725
Fixes: 77235132
Test: tap just above the home button in portrait

6 years agoMerge "Revise secure key import API after review" into pi-dev
TreeHugger Robot [Mon, 2 Apr 2018 18:45:35 +0000 (18:45 +0000)]
Merge "Revise secure key import API after review" into pi-dev

6 years ago[Magnifier-38] Avoid deadlock causing ANR
Mihai Popa [Thu, 29 Mar 2018 14:56:17 +0000 (15:56 +0100)]
[Magnifier-38] Avoid deadlock causing ANR

A deadlock between the UI and render threads caused by magnifier is
currently making the running app to become not responding. The deadlock
could happen in the following scenario:
1. The UI thread sets a frame callback and asks mRenderer to sync and
draw the current frame. A draw task is enqueued by RenderProxy in the
C++ code
2. The UI thread starts an InternalPopupWindow#destroy() on the UI
thread and acquires mLock
3. mRenderer#destroy() is called on the UI thread, which enqueues a
destroy task in the C++ code. However, this is implemented
synchronously, so the UI thread will wait until the destroy task is
dequeued and executed
4. Since the draw task was enqueued before the destroy task, this will
be executed and the frame callback will be called on the render thread
5. The frame callback tries to acquire mLock. However, this is held by
the UI thread, so the render thread has to wait for it. At the same
time, the UI thread cannot progress either as it is waiting for its
destroy task to execute.

The CL adds a new lock which is used by the UI thread to mark its
intention to #destroy(), such that the render thread will know about
this before trying to acquire mLock and starving.

Bug: 75276625
Test: manual testing
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Iedf2948350fcf8dd9c819c085b31b7ccaf2db7c5

6 years agoRemove some letters of verbose log
Yi Jin [Mon, 2 Apr 2018 18:09:57 +0000 (11:09 -0700)]
Remove some letters of verbose log

Bug: 77333635
Test: N/A
Change-Id: I94b288d070dfb372edf345d369d75bb3255f631b

6 years agoRemove old alarm IPC
Lucas Dupin [Mon, 2 Apr 2018 18:05:09 +0000 (11:05 -0700)]
Remove old alarm IPC

Not necessary anymore because the alarm moved to
KeyguardSliceProvider.

Test: switch from 12 to 24h format
Change-Id: I5796edfe7251e599d76ffecc35eeab27ddcc1e0d
Fixes: 77154815