OSDN Git Service

android-x86/frameworks-base.git
6 years agoRoll back nav bar interface to version 2
Jason Monk [Fri, 25 Aug 2017 19:56:03 +0000 (15:56 -0400)]
Roll back nav bar interface to version 2

Partial revert of If27641aedcd05ebc834c9dc0b38d18cd20ddae03

Test: make
Change-Id: I47de1ca026028e16e6c4075e6be5b18a9746962c
Fixes: 65055647

6 years agoMerge "Not hinting anymore when in power saver" into oc-mr1-dev
TreeHugger Robot [Fri, 25 Aug 2017 03:41:40 +0000 (03:41 +0000)]
Merge "Not hinting anymore when in power saver" into oc-mr1-dev

6 years agoMerge "Fixed a bug where notifications could be dimmable" into oc-mr1-dev
TreeHugger Robot [Fri, 25 Aug 2017 02:07:15 +0000 (02:07 +0000)]
Merge "Fixed a bug where notifications could be dimmable" into oc-mr1-dev

6 years agoMerge "Update FEATURE_VULKAN_HARDWARE_COMPUTE documentation" into oc-mr1-dev
TreeHugger Robot [Fri, 25 Aug 2017 01:50:38 +0000 (01:50 +0000)]
Merge "Update FEATURE_VULKAN_HARDWARE_COMPUTE documentation" into oc-mr1-dev

6 years agoMerge "Fix the user profile icon." into oc-mr1-dev
Daniel Nishi [Thu, 24 Aug 2017 23:29:35 +0000 (23:29 +0000)]
Merge "Fix the user profile icon." into oc-mr1-dev

6 years agoMerge "Keep close_idle_connections optimization for all devices" into oc-mr1-dev
Fyodor Kupolov [Thu, 24 Aug 2017 23:27:37 +0000 (23:27 +0000)]
Merge "Keep close_idle_connections optimization for all devices" into oc-mr1-dev

6 years agoMerge "Fixed the progress bar positioning when expanded" into oc-mr1-dev
Selim Cinek [Thu, 24 Aug 2017 23:22:53 +0000 (23:22 +0000)]
Merge "Fixed the progress bar positioning when expanded" into oc-mr1-dev

6 years agoMerge "Add wifi permissions to shell" into oc-mr1-dev
Rebecca Silberstein [Thu, 24 Aug 2017 22:25:34 +0000 (22:25 +0000)]
Merge "Add wifi permissions to shell" into oc-mr1-dev

6 years agoMerge changes from topic "mtp-user" into oc-mr1-dev
Jerry Zhang [Thu, 24 Aug 2017 22:13:40 +0000 (22:13 +0000)]
Merge changes from topic "mtp-user" into oc-mr1-dev

* changes:
  Add additional context to MtpDatabase
  Reset functions to null when user changes.

6 years agoNot hinting anymore when in power saver
Selim Cinek [Thu, 24 Aug 2017 21:48:38 +0000 (14:48 -0700)]
Not hinting anymore when in power saver

The hint animation wasn't working when on power-saver,
so we just turn it off.

Test: hint while battery saver is on, observe no jump
Change-Id: Ib19dc3378bb4cb0c4b9b81504a0ce6b579b6feee
Fixes: 64279711

6 years agoMerge "Check for null appToken" into oc-mr1-dev
Chavi Weingarten [Thu, 24 Aug 2017 21:24:33 +0000 (21:24 +0000)]
Merge "Check for null appToken" into oc-mr1-dev

6 years agoMerge "Add new error code in SmsManager" into oc-mr1-dev
Shuo Qian [Thu, 24 Aug 2017 21:22:31 +0000 (21:22 +0000)]
Merge "Add new error code in SmsManager" into oc-mr1-dev

6 years agoCheck for null appToken
chaviw [Wed, 23 Aug 2017 19:29:02 +0000 (12:29 -0700)]
Check for null appToken

AppWindowToken can be null for non-app windows.

Test: Existing tests pass
Fixes: 65018183

Change-Id: I81c7e4e2bec40c588771cc46e4a8061c7112765a

6 years agoMerge "New haptic feedback constants" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 21:02:57 +0000 (21:02 +0000)]
Merge "New haptic feedback constants" into oc-mr1-dev

6 years agoMerge "Don't report suspicious periodic sync removal for gone users" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 20:29:06 +0000 (20:29 +0000)]
Merge "Don't report suspicious periodic sync removal for gone users" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 20:13:59 +0000 (20:13 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Support keyboard long-press on notifications" into oc-mr1-dev
Geoffrey Pitsch [Thu, 24 Aug 2017 20:04:37 +0000 (20:04 +0000)]
Merge "Support keyboard long-press on notifications" into oc-mr1-dev

6 years agoMerge changes from topic "siyamed_maxlines" into oc-mr1-dev
Siyamed Sinir [Thu, 24 Aug 2017 19:59:22 +0000 (19:59 +0000)]
Merge changes from topic "siyamed_maxlines" into oc-mr1-dev

* changes:
  StaticLayout capped height should be 0 when maxLines=0
  Reset StaticLayout.mEllipsized during generate()

6 years agoMerge "Apply API review comments for SHOW_WITH_INSECURE_KEYGUARD" into oc-mr1-dev
Andrii Kulian [Thu, 24 Aug 2017 19:59:08 +0000 (19:59 +0000)]
Merge "Apply API review comments for SHOW_WITH_INSECURE_KEYGUARD" into oc-mr1-dev

6 years agoFixed a bug where notifications could be dimmable
Selim Cinek [Thu, 24 Aug 2017 16:31:08 +0000 (09:31 -0700)]
Fixed a bug where notifications could be dimmable

Because of a delayed call, notifications could become
dimmed again after the unlock.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayoutTest.java
Change-Id: I76e847cf6d3c8a34ca4b6dd16b1c8e13ddfe4993
Fixes: 64868746

6 years agoMerge "Add extensionController based on PackageManager FEATURE" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 19:33:53 +0000 (19:33 +0000)]
Merge "Add extensionController based on PackageManager FEATURE" into oc-mr1-dev

6 years agoMerge "[CS] Allow network factory implementations to re-evaluate requests" into oc...
TreeHugger Robot [Thu, 24 Aug 2017 19:29:02 +0000 (19:29 +0000)]
Merge "[CS] Allow network factory implementations to re-evaluate requests" into oc-mr1-dev

6 years agoMerge "Audio event logging" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 19:04:47 +0000 (19:04 +0000)]
Merge "Audio event logging" into oc-mr1-dev

6 years agoMerge "Consistently uses ASCII numbers in notif category translation." into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 19:01:55 +0000 (19:01 +0000)]
Merge "Consistently uses ASCII numbers in notif category translation." into oc-mr1-dev

6 years agoMerge "Test for writing and loading reduced resolution task snapshots" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 18:38:07 +0000 (18:38 +0000)]
Merge "Test for writing and loading reduced resolution task snapshots" into oc-mr1-dev

6 years agoMerge "Fixed a bug where we weren't releasing views" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 18:08:05 +0000 (18:08 +0000)]
Merge "Fixed a bug where we weren't releasing views" into oc-mr1-dev

6 years agoMerge "Check correct DisplayContent when making window freezing screen" into oc-mr1-dev
David Stevens [Thu, 24 Aug 2017 17:57:50 +0000 (17:57 +0000)]
Merge "Check correct DisplayContent when making window freezing screen" into oc-mr1-dev

6 years agoNew haptic feedback constants
Yohei Yukawa [Thu, 24 Aug 2017 17:51:00 +0000 (10:51 -0700)]
New haptic feedback constants

This CL introduces several haptic feedback constants that are ready
to be exposed to developers.

Test: checkbuild
Fixes: 64537070
Change-Id: If54d5bc6cab4e2c405615b7a40648c74a1097ea3

6 years agoUpdate FEATURE_VULKAN_HARDWARE_COMPUTE documentation
Jesse Hall [Tue, 22 Aug 2017 14:19:56 +0000 (07:19 -0700)]
Update FEATURE_VULKAN_HARDWARE_COMPUTE documentation

Now that VK_KHR_variable_pointers is public, the documentation can be more
precise about the definition of FEATURE_VULKAN_HARDWARE_COMPUTE level 0.
Also document the maxPerStageDescriptorStorageBuffers requirement.

Bug: 34745152
Test: make docs
Change-Id: I0f6c088488243e4daea589d4771d10a8714f7441

6 years agoSupport keyboard long-press on notifications
Geoffrey Pitsch [Fri, 18 Aug 2017 15:15:12 +0000 (11:15 -0400)]
Support keyboard long-press on notifications

ExpandableNotificationRow now handles long-clicks for keyboard support.
SwipeHelper calls performLongClick to trigger the listener on the row.
Now that the View listens to long clicks, SwipeHelper cancels
long-presses on the View when it see touch down events, so the event
doesn't get duped in the touch case.

Bug: 34840327
Test: manual
Change-Id: Ibeb93507781443d6b2dac209afd889b1d8d54aeb

6 years agoAdd extensionController based on PackageManager FEATURE
Lujiang Xue [Tue, 22 Aug 2017 21:13:45 +0000 (14:13 -0700)]
Add extensionController based on PackageManager FEATURE

Bug: 64818339

Test: make and flash on 6P and headunit, verified in car mode the phone keep phone status bar, and on headunit, it use car status bar all the time
Change-Id: I6b3de99f4c21a50eb8521bf61f640f12cd6c3f02

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 16:36:57 +0000 (16:36 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
Bill Yi [Thu, 24 Aug 2017 16:12:45 +0000 (16:12 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
am: 7175b7b929  -s ours

Change-Id: I4be65bdb164ecf13c5d89316fb12d32ca69d8bb6

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 16:10:01 +0000 (16:10 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "The VIS should return an AOHD regardless of keyphrase availability." into...
TreeHugger Robot [Thu, 24 Aug 2017 16:08:21 +0000 (16:08 +0000)]
Merge "The VIS should return an AOHD regardless of keyphrase availability." into oc-mr1-dev

6 years agoAudio event logging
Jean-Michel Trivi [Sun, 20 Aug 2017 01:08:06 +0000 (18:08 -0700)]
Audio event logging

New class AudioEventLogger to store a configurable number of the
  last audio events. It hosts a circular buffer of lightweight
  event objects, an abstract class whose implementations are
  event-specific, and does the heavier string manipulations
  at the time of the dump, not during normal operation.
Add logging for:
  - phone state (a.k.a. audio mode) changes
  - wired device connections
  - playback activity monitor
  - force use

Test: adb shell dumpsys audio
Bug: 64470715
Change-Id: I8dbd936e2ffec39134f1a8837191c74f5cb9fc56

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 16:01:06 +0000 (16:01 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

6 years agoMerge "Fixed an issue where isFalseTouch could be queried" into oc-mr1-dev
Selim Cinek [Thu, 24 Aug 2017 16:00:20 +0000 (16:00 +0000)]
Merge "Fixed an issue where isFalseTouch could be queried" into oc-mr1-dev

6 years agoFixed a bug where we weren't releasing views
Selim Cinek [Wed, 23 Aug 2017 17:59:57 +0000 (10:59 -0700)]
Fixed a bug where we weren't releasing views

When tracking with the headsuptouchhelper, views
would not be released properly, since we're handing
over the touch to the panel.
This is now fixed.

Test: drag down on heads-up, observe normal motion
Change-Id: Ia9eef07c789d6d03098c2e34f86c16fdeeb93d42
Fixes: 37314754

6 years agoMerge "Add new telephony disconnect causes for low battery scenario." into oc-mr1-dev
Tyler Gunn [Thu, 24 Aug 2017 15:01:52 +0000 (15:01 +0000)]
Merge "Add new telephony disconnect causes for low battery scenario." into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 24 Aug 2017 14:25:03 +0000 (07:25 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: I02d4cd11add59d4997b549c71b42f1b5d5a14ea2

6 years ago[CS] Allow network factory implementations to re-evaluate requests
Etan Cohen [Wed, 23 Aug 2017 15:39:31 +0000 (08:39 -0700)]
[CS] Allow network factory implementations to re-evaluate requests

Change the evalRequests() API to protected to allow network factory
implementations to call the API.

A use-case of the API change is for factories temporarily reject a
request since they cannot fullfill it immediately but retry it at a
later time if/when conditions change.

Bug: 63866251
Test: integration tests
Change-Id: Idc50ce0799c67634b7b2fdbad78a26e443caf2e4

6 years agoMerge "Bluetooth: Add flag for human readable name" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 13:29:28 +0000 (13:29 +0000)]
Merge "Bluetooth: Add flag for human readable name" into oc-mr1-dev

6 years agoMerge "Sleep activities with AOD" into oc-mr1-dev
Jorim Jaggi [Thu, 24 Aug 2017 13:19:42 +0000 (13:19 +0000)]
Merge "Sleep activities with AOD" into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 24 Aug 2017 12:11:32 +0000 (05:11 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: I38d45e58136a2823cda74f3dbfb39c43b9ebe180

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 24 Aug 2017 11:18:53 +0000 (04:18 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ied6de9cbe69d8c72f9ba8c0095451a175f02d4dd

6 years agoMerge "sounds : Add a makefile for Android Go specific sounds." into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 11:18:31 +0000 (11:18 +0000)]
Merge "sounds : Add a makefile for Android Go specific sounds." into oc-mr1-dev

6 years agoMerge "Trivial change to test expectations." into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 10:55:20 +0000 (10:55 +0000)]
Merge "Trivial change to test expectations." into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 24 Aug 2017 10:52:49 +0000 (03:52 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ia2ef45e82949155e201cf8e7e058ca9e8ab0833b

6 years agoMerge "StringParceledListSlice throws exception when the IPC memory threshold is...
TreeHugger Robot [Thu, 24 Aug 2017 10:08:15 +0000 (10:08 +0000)]
Merge "StringParceledListSlice throws exception when the IPC memory threshold is exceeded" into oc-mr1-dev

6 years agoBluetooth: Add flag for human readable name
Jack He [Mon, 24 Jul 2017 21:55:59 +0000 (14:55 -0700)]
Bluetooth: Add flag for human readable name

* Add hasHumanReadableName() method to CachedBluetoothDevice that
  returns True when BluetoothDevice.getAliasName() is not null nor empty

Bug: 34685932
Test: pair Bluetooth device, send file over Bluetooth, unit tests
Change-Id: I197f3f7f3bcb7d785729473b25638006449ae862

6 years agoMerge "CachedBluetoothDevice: Rename mVisible to mJustDiscovered" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 08:34:39 +0000 (08:34 +0000)]
Merge "CachedBluetoothDevice: Rename mVisible to mJustDiscovered" into oc-mr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 24 Aug 2017 07:54:49 +0000 (07:54 +0000)]
Import translations. DO NOT MERGE
am: b4f16b10af  -s ours

Change-Id: I458f0c75e3df2dccd9d622b4444c629ff7020f81

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 07:51:36 +0000 (07:51 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

7 years agoMerge "Move PiP state check exception to the client side" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 05:00:48 +0000 (05:00 +0000)]
Merge "Move PiP state check exception to the client side" into oc-mr1-dev

7 years agoMerge "Implement score cache eviction in AccessPoint." into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 04:50:47 +0000 (04:50 +0000)]
Merge "Implement score cache eviction in AccessPoint." into oc-mr1-dev

7 years agoMerge "Support l11n of Qualcomm® aptX™ strings" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 04:41:01 +0000 (04:41 +0000)]
Merge "Support l11n of Qualcomm® aptX™ strings" into oc-mr1-dev

7 years agoCachedBluetoothDevice: Rename mVisible to mJustDiscovered
Jack He [Mon, 24 Jul 2017 19:30:08 +0000 (12:30 -0700)]
CachedBluetoothDevice: Rename mVisible to mJustDiscovered

* CachedBluetoothDevice's member mVisible does not mean whether the
  device is visible. Instead, based on its current usage in the library,
  it indicates whether the device was just discovered by SettingsLib.
* Rename the field to mJustDiscovered and associated setters and
  getters.
* This paves way for future addition of mVisible to indicate whether the
  device should be visible to user in the UI.

Bug: 34685932
Test: build only, no functional changes
Change-Id: I616904e6d5bb27dbae74f94819eb0e8607a16e20

7 years agoTrivial change to test expectations.
Lorenzo Colitti [Thu, 24 Aug 2017 03:40:07 +0000 (12:40 +0900)]
Trivial change to test expectations.

Bug: 32163131
Test: runtest frameworks-net
Change-Id: Iea41c2b50502797f559afd09ded8cedf50dd7c05

7 years agoMerge "Fix issue with resizing background and incorrectly outline." into oc-mr1-dev
Winson Chung [Thu, 24 Aug 2017 03:23:43 +0000 (03:23 +0000)]
Merge "Fix issue with resizing background and incorrectly outline." into oc-mr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 24 Aug 2017 03:13:10 +0000 (20:13 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ifc65484d51405de737a5b269fe6b6036638d0df1

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 24 Aug 2017 03:01:50 +0000 (20:01 -0700)]
Import translations. DO NOT MERGE

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

Bug: 64712476
Change-Id: Ia19cd901c16c37d3053afc81aa47cf2dff5bbeea

7 years agoCheck correct DisplayContent when making window freezing screen
David Stevens [Thu, 24 Aug 2017 01:19:23 +0000 (18:19 -0700)]
Check correct DisplayContent when making window freezing screen

When an AppWindowToken is made visible, it checks if any of its windows
are in a state that necessitates freezing the screen. Windows should
check whether their DisplayContent is ready, not whether the default
display is ready.

For apps on secondary displays, the incorrect check was causing spurious
orientation changes for their starting window if the primary display was
off, which was interrupting the task transition animation.

Bug: 34280365
Test: manual
Change-Id: Ifd3be2aedc32c42f3c3f1b15f9f0a69a839f8c62

7 years agoMerge "Fix issue with race when updating/using layout algorithm." into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 01:39:10 +0000 (01:39 +0000)]
Merge "Fix issue with race when updating/using layout algorithm." into oc-mr1-dev

7 years agoMerge "DND footer doesn't stutter when exiting DND mode." into oc-mr1-dev
Beverly Tai [Thu, 24 Aug 2017 01:23:33 +0000 (01:23 +0000)]
Merge "DND footer doesn't stutter when exiting DND mode." into oc-mr1-dev

7 years agoMerge "Send add/removeDownstream info to offload HAL" into oc-mr1-dev
TreeHugger Robot [Thu, 24 Aug 2017 01:09:57 +0000 (01:09 +0000)]
Merge "Send add/removeDownstream info to offload HAL" into oc-mr1-dev

7 years agoTest for writing and loading reduced resolution task snapshots
Matthew Ng [Wed, 23 Aug 2017 23:41:57 +0000 (16:41 -0700)]
Test for writing and loading reduced resolution task snapshots

Added a test to write and load only low resolution task snapshots if the
snapshot's flag of reducedResolution is set to true. Then verify only
the low resolution bitmap is saved and not the full sized. This is for
the change ag/2579729.

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotPersisterLoaderTest
Bug: 63940837
Change-Id: I685046bdac0cddb9e24271152c91e7912c595e7f

7 years agoMerge "Generate fallback speed label in AccessPoint.java" into oc-mr1-dev
TreeHugger Robot [Wed, 23 Aug 2017 23:43:16 +0000 (23:43 +0000)]
Merge "Generate fallback speed label in AccessPoint.java" into oc-mr1-dev

7 years agoMerge "WebView: clarify docs for addJavascriptInterface" into oc-mr1-dev
TreeHugger Robot [Wed, 23 Aug 2017 23:41:56 +0000 (23:41 +0000)]
Merge "WebView: clarify docs for addJavascriptInterface" into oc-mr1-dev

7 years agoKeep close_idle_connections optimization for all devices
Fyodor Kupolov [Wed, 23 Aug 2017 23:36:15 +0000 (16:36 -0700)]
Keep close_idle_connections optimization for all devices

Internal compatibility testing didn't reveal any issues related to it.

Rationale to not make it specific to low-ram:
1) Consistent behavior from app perspective. close_idle_connections
   is a behavioural change and may affect apps relying on undocumented
   behavior of connection pooling. Developers can detect problems
   without testing on low-ram device
2) Closing idle connections is especially important in WAL mode.
   Disabling this feature would become an issue if more apps are
   switching to WAL and we would need to re-enable this optimization.

Test: n/a
Bug: 63398887
Change-Id: I1b431f44daa2d337aad7f12f8e1409ae3143ded0

7 years agoMerge "Fixed synchronization when calling cancellation signal." into oc-mr1-dev
TreeHugger Robot [Wed, 23 Aug 2017 23:15:59 +0000 (23:15 +0000)]
Merge "Fixed synchronization when calling cancellation signal." into oc-mr1-dev

7 years agoMerge "Always use low-res tasksnapshots for low ram devices" into oc-mr1-dev
TreeHugger Robot [Wed, 23 Aug 2017 23:01:53 +0000 (23:01 +0000)]
Merge "Always use low-res tasksnapshots for low ram devices" into oc-mr1-dev

7 years agoMerge "Use all certs for computing package signing sha256" into oc-mr1-dev
TreeHugger Robot [Wed, 23 Aug 2017 22:51:41 +0000 (22:51 +0000)]
Merge "Use all certs for computing package signing sha256" into oc-mr1-dev

7 years agoApply API review comments for SHOW_WITH_INSECURE_KEYGUARD
Andrii Kulian [Fri, 18 Aug 2017 00:21:20 +0000 (17:21 -0700)]
Apply API review comments for SHOW_WITH_INSECURE_KEYGUARD

Applied review comments but keeping the flag hidden for now.

Bug: 36555156
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testExternalDisplayActivityTurnPrimaryOff
Test: #testLaunchExternalDisplayActivityWhilePrimaryOff
Test: #testShowWhenLockedPublicVirtualDisplay
Change-Id: I1aa1289424d0d778bc0668c9ec69bc56f47891e3

7 years agoMerge "Change KernelUidCpuFreqTimeReader Slog.wtf to Slog.e" into oc-mr1-dev
Sudheer Shanka [Wed, 23 Aug 2017 22:26:08 +0000 (22:26 +0000)]
Merge "Change KernelUidCpuFreqTimeReader Slog.wtf to Slog.e" into oc-mr1-dev

7 years agoFixed an issue where isFalseTouch could be queried
Selim Cinek [Wed, 23 Aug 2017 19:21:23 +0000 (12:21 -0700)]
Fixed an issue where isFalseTouch could be queried

We shouldn't forward any touches if we're not on the
lockscreen.

Test: drag down, turn of the screen
Change-Id: I90acdd7e57322227042b98741721fec977b80f97
Fixes: 63165400

7 years agoImplement score cache eviction in AccessPoint.
Sundeep Ghuman [Tue, 15 Aug 2017 22:47:18 +0000 (15:47 -0700)]
Implement score cache eviction in AccessPoint.

This prevents cached scores from being held indefinitely and used for
SSID fallback logic in WifiTracker (Picker).

Bug: 63073866
Test: runtest --path frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java
Change-Id: Ib351d20db30dfd18b69bb1f8e4d4f26fc6b74ef0
Merged-In: Ib351d20db30dfd18b69bb1f8e4d4f26fc6b74ef0

7 years agoSend add/removeDownstream info to offload HAL
Erik Kline [Thu, 6 Jul 2017 10:49:35 +0000 (19:49 +0900)]
Send add/removeDownstream info to offload HAL

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

Change-Id: I6c59aa7cb80b54f376f294b24c1409710c553d74

7 years agoFixed the progress bar positioning when expanded
Selim Cinek [Wed, 23 Aug 2017 22:04:13 +0000 (15:04 -0700)]
Fixed the progress bar positioning when expanded

the progress bar is now at the same location in the
expanded and the collapsed version.
No more movement!

Test: add notification with progress bar, observe no movement
Change-Id: If5bcaccd89cf16506c099e88ffd12749f7684891
Fixes: 34800887

7 years agoMove PiP state check exception to the client side
Winson Chung [Thu, 10 Aug 2017 22:57:18 +0000 (15:57 -0700)]
Move PiP state check exception to the client side

- When calling enterPictureInPictureMode(), the state of the activity in
  the client may be out of sync with the state of the activity in the
  system, causing an exception to be thrown erroneously. Instead, fail
  silently in the system if this occurs, and throw the exception in the
  client when it attempts to enter PiP from an invalid state.

Bug: 63753007
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: Ia99cc086805edc31f997d4325f7a5ccd7c85a77e

7 years agoSupport l11n of Qualcomm® aptX™ strings
Justin Klaassen [Wed, 23 Aug 2017 21:53:18 +0000 (14:53 -0700)]
Support l11n of Qualcomm® aptX™ strings

Bug: 63899732
Test: Verified strings in Settings > System > Developer Options.
Change-Id: Ib1fe508d65a670f1f461041afe0978ff641a993c

7 years agoConsistently uses ASCII numbers in notif category translation.
Beverly [Wed, 23 Aug 2017 21:19:06 +0000 (17:19 -0400)]
Consistently uses ASCII numbers in notif category translation.

Bug: 64947172
Test: manual
Change-Id: I3f18be578bd441cecdd22af221953c9bf0c64666

7 years agoMerge "Use hardware bitmap for shared element snapshots." into oc-mr1-dev
George Mount [Wed, 23 Aug 2017 20:52:34 +0000 (20:52 +0000)]
Merge "Use hardware bitmap for shared element snapshots." into oc-mr1-dev

7 years agoUse hardware bitmap for shared element snapshots.
George Mount [Tue, 22 Aug 2017 15:19:56 +0000 (08:19 -0700)]
Use hardware bitmap for shared element snapshots.

Bug: 64851247

Drawing to software bitmaps does not support many
features, most especially hardware bitmaps. This
changes the implementation to using hardware bitmaps
for View snapshots.

Also fixed broken TransitionTest discovered while
testing.

Test: I4ede02db67e578ea4a25069b683f1989c611e06c
Change-Id: I185bbfe1f789055c9efdba5297a74e481607afaf

7 years agoMerge "Ambient Display: Delay charging indicator if about to wake up" into oc-mr1-dev
TreeHugger Robot [Wed, 23 Aug 2017 20:40:42 +0000 (20:40 +0000)]
Merge "Ambient Display: Delay charging indicator if about to wake up" into oc-mr1-dev

7 years agoMerge "power: throttle interaction hints" into oc-dev am: 78701217fd -s ours
Tim Murray [Wed, 23 Aug 2017 20:01:06 +0000 (20:01 +0000)]
Merge "power: throttle interaction hints" into oc-dev am: 78701217fd  -s ours
am: dd028e7c26

Change-Id: I1bcc02adcc7b74d63e09db1251b13c90630ef7a9

7 years agoMerge "power: throttle interaction hints" into oc-dev
Tim Murray [Wed, 23 Aug 2017 19:48:14 +0000 (19:48 +0000)]
Merge "power: throttle interaction hints" into oc-dev
am: 78701217fd  -s ours

Change-Id: I5135ddb75679ff6e4ffe5bb8daff97daf05deb34

7 years agoMerge "Remove string power_charging_duration_short" into oc-mr1-dev
TreeHugger Robot [Wed, 23 Aug 2017 19:38:38 +0000 (19:38 +0000)]
Merge "Remove string power_charging_duration_short" into oc-mr1-dev

7 years agoMerge "power: throttle interaction hints" into oc-dev
TreeHugger Robot [Wed, 23 Aug 2017 19:25:47 +0000 (19:25 +0000)]
Merge "power: throttle interaction hints" into oc-dev

7 years agoMerge "Allow status_bar_height to be RRO controlled" into oc-mr1-dev
TreeHugger Robot [Wed, 23 Aug 2017 19:11:01 +0000 (19:11 +0000)]
Merge "Allow status_bar_height to be RRO controlled" into oc-mr1-dev

7 years agoMerge "Add null check when ActivityRecord is refetched" into oc-mr1-dev
TreeHugger Robot [Wed, 23 Aug 2017 18:58:09 +0000 (18:58 +0000)]
Merge "Add null check when ActivityRecord is refetched" into oc-mr1-dev

7 years agoUse all certs for computing package signing sha256
Svetoslav Ganov [Tue, 22 Aug 2017 21:35:04 +0000 (14:35 -0700)]
Use all certs for computing package signing sha256

In several places we compute the sha256 of the app's signing certificate
(instant cookie storage, backup account permission grants, static shared
lib matching). It is possible that an app is singed with multiple certs
which unfortunately can appear in a random order. We were using only the
first certificate to compute the hash which may be problematic for apps
signed with multiple certs which are later reordered. If an app update's
certs are reordered for cookie storage the app would not be able to
access the cookie, for account grants the app would not get the grant,
and for shared libs the app would fail to install due to a missing lib.

Test: all cookie CTS tests pass
      all static shared lib CTS tests pass
      added test that cookie data not lost on sha256 computation change
      added test that lib install works when specifying
      multiple certs

bug:64270295

Change-Id: Ib6b55f25da735ff5c2762faf6e9b5888e749041d

7 years agosounds : Add a makefile for Android Go specific sounds.
Narayan Kamath [Wed, 23 Aug 2017 18:35:28 +0000 (19:35 +0100)]
sounds : Add a makefile for Android Go specific sounds.

Bug: 64276740
Bug: 64542579
Test: make

Change-Id: I64e0bc8d4db5fafe0370977ccc8eb1c711aa5534

7 years agoChange KernelUidCpuFreqTimeReader Slog.wtf to Slog.e
Sudheer Shanka [Wed, 23 Aug 2017 18:29:23 +0000 (11:29 -0700)]
Change KernelUidCpuFreqTimeReader Slog.wtf to Slog.e

Bug: 63041570
Test: N/A
Change-Id: I2cb12f1b8f0333c4a000d601624dc95934cf9b90

7 years agoAlways use low-res tasksnapshots for low ram devices
Matthew Ng [Sat, 22 Jul 2017 00:27:42 +0000 (17:27 -0700)]
Always use low-res tasksnapshots for low ram devices

All snapshots are now stored using only the low resolution bitmaps
where all full size bitmaps are disabled to be written or loaded.

Bug: 62251652
Fixes: 63940837
Test: manual - open recents on low ram device to see if thumbnail is
there
Change-Id: I2128f0348cf71415721e73c730d3ed92e95d8144

7 years agoAdd additional context to MtpDatabase
Jerry Zhang [Wed, 23 Aug 2017 00:42:54 +0000 (17:42 -0700)]
Add additional context to MtpDatabase

MtpService has been changed to a singleton service
running in user 0, so the original context will
be that of user 0. Accesses to MediaProvider and
MediaScanner should use the new passed in user context
in order to access user data, while the broadcast
receiver for battery data will use the original context.

Bug: 64822515
Test: Use Mtp and switch users.
Change-Id: Ic181258337944db7dc6f6097c967cb104df938d3

7 years agoReset functions to null when user changes.
Jerry Zhang [Wed, 23 Aug 2017 00:37:09 +0000 (17:37 -0700)]
Reset functions to null when user changes.

When MTP or PTP is in the config and user changes,
it clears dataUnlocked but sets the functions to
mCurrentFunctions which will leave MTP or PTP in the
config. If dataUnlocked is false, we want to remove
MTP/PTP from the config when adb is enabled, and leave
them in otherwise. This is done automatically by
setting functions to null.

Bug: 64822515
Test: Change users while adb  / mtp connected.
Change-Id: I82561f82e06f247c967438a473b08b5098d39ccb

7 years agoMerge "Track app visibility updates on the client" into oc-mr1-dev
Andrii Kulian [Wed, 23 Aug 2017 18:06:50 +0000 (18:06 +0000)]
Merge "Track app visibility updates on the client" into oc-mr1-dev

7 years agoWebView: clarify docs for addJavascriptInterface
Nate Fischer [Mon, 21 Aug 2017 19:03:58 +0000 (12:03 -0700)]
WebView: clarify docs for addJavascriptInterface

Docs change only, no change in logic.

We do not support calling #addJavascriptInterface until after JavaScript
is enabled via WebSettings#setJavaScriptEnabled. Calling these methods
in the wrong order is undefined behavior (and we've seen that it's buggy
under certain conditions, e.g. if the DOM includes an <img> element).

This clarifies the point in the docs and code example.

Bug: 64899039
Test: make -j40 docs (everything looks good)
Change-Id: I8ef9eec7f038037e6b898286e4dad8a57ecad472
(cherry picked from commit aaef6827ca26dee945ab0545671515ea8b4dbc23)

7 years agoMerge "AOD: Fix crash when AOD is stopped immediately after starting" into oc-mr1-dev
TreeHugger Robot [Wed, 23 Aug 2017 17:12:27 +0000 (17:12 +0000)]
Merge "AOD: Fix crash when AOD is stopped immediately after starting" into oc-mr1-dev