Commit Graph

8101 Commits

Author SHA1 Message Date
Eugene Susla
bc27890991 Merge "Support associating with an already-paired device" into oc-dev am: c041c7a34e am: c26f789ae2
am: dfa5272295

Change-Id: Ic68002087eacf339356e13e10698d88e1ff30c40
2017-06-14 00:39:58 +00:00
Eugene Susla
dfa5272295 Merge "Support associating with an already-paired device" into oc-dev am: c041c7a34e
am: c26f789ae2

Change-Id: Ice5843da51415f87140a6311415a7074b155cdb3
2017-06-14 00:24:12 +00:00
Eugene Susla
c26f789ae2 Merge "Support associating with an already-paired device" into oc-dev
am: c041c7a34e

Change-Id: I31ab12934cd18aace7aece30fd5551e20e02216e
2017-06-14 00:17:25 +00:00
TreeHugger Robot
c041c7a34e Merge "Support associating with an already-paired device" into oc-dev 2017-06-14 00:03:53 +00:00
Eugene Susla
02228bd9e6 Merge "Serialize all standard actions as bit mask" 2017-06-13 18:14:35 +00:00
TreeHugger Robot
57fef233c8 Merge "BatteryStats: Cleanup external stats collection" 2017-06-13 17:29:15 +00:00
Narayan Kamath
715073c998 Merge "BatteryStatsImpl: Keep less history around for low mem devices." 2017-06-13 11:38:47 +00:00
Wale Ogunwale
02bdcc0e69 Merge "Merge "Ensure that we use SF Vsync Choreographer for the PiP transition." into oc-dev am: e1e0db8ca9 am: 90159a2492" into oc-dr1-dev-plus-aosp
am: e17ea3eb21

Change-Id: I244f3d4af910c73b4c402dd0e93d92bd6ead849e
2017-06-13 01:38:47 +00:00
Wale Ogunwale
a5e833e846 Merge "Ensure that we use SF Vsync Choreographer for the PiP transition." into oc-dev am: e1e0db8ca9
am: 90159a2492

Change-Id: I0092411f5b8bef853b55e6ffe7bdf700876f7715
2017-06-13 01:08:25 +00:00
Vladislav Kaznacheev
b7431e4376 Merge "Merge changes from topic 'sysui-tooltip' into oc-dev am: 3fbcec5b86 am: 7e21054200" into oc-dr1-dev-plus-aosp
am: 4c4cf27212

Change-Id: Ibef05a31f18d50b5460af1c23f676e061ad81e6c
2017-06-13 00:49:47 +00:00
Vladislav Kaznacheev
6fa65bbdd6 Merge changes from topic 'sysui-tooltip' into oc-dev am: 3fbcec5b86
am: 7e21054200

Change-Id: Icfe6bb79c13c6e0ef925f30933f7831978a2886c
2017-06-13 00:32:20 +00:00
Jeff Sharkey
dc292b6003 Merge "Active camera apps can defy reserved cache space." into oc-dr1-dev am: f7dc56ecc9
am: de624f3fbb

Change-Id: I0a125a6c00220ba280dca4e0d8ece88202a68afe
2017-06-13 00:24:59 +00:00
Jeff Sharkey
de624f3fbb Merge "Active camera apps can defy reserved cache space." into oc-dr1-dev
am: f7dc56ecc9

Change-Id: Ic66cdb0548cf8c973214364843cf147ac5d231be
2017-06-13 00:14:55 +00:00
Tarandeep Singh
b8b6f00b75 Merge "SearchView focus should be preserved in split-screen." 2017-06-13 00:12:08 +00:00
Wale Ogunwale
90159a2492 Merge "Ensure that we use SF Vsync Choreographer for the PiP transition." into oc-dev
am: e1e0db8ca9

Change-Id: Ie70addce27b9551323d7c9d8f9576aa118b98114
2017-06-13 00:02:11 +00:00
Wale Ogunwale
e1e0db8ca9 Merge "Ensure that we use SF Vsync Choreographer for the PiP transition." into oc-dev 2017-06-12 23:51:19 +00:00
Eugene Susla
0c4a926626 Support associating with an already-paired device
This is required for migration scenario, where device(s) are already
paired(and thus no longer discoverable) but didn't go through companion
flow.
This also fixes a bug with filtering by mac address, which is also relevant to
the use-case of associating a specific device

Test: Pair with a device first, and call associate with a filter with its MAC
address and single device requested. Ensure the device is found.
Ensure only that device is ever returned when filtering by MAC address.
Bug: 62487084
Change-Id: Ic7cc6affc0648ad85b15620e8c3aba4b9fc91aa1
2017-06-12 16:21:51 -07:00
Vladislav Kaznacheev
7e21054200 Merge changes from topic 'sysui-tooltip' into oc-dev
am: 3fbcec5b86

Change-Id: I9ff9e36b3fa7c0e3c0bd4cd2048f9d0ce510399c
2017-06-12 21:51:10 +00:00
Tarandeep Singh
96d68d45f0 SearchView focus should be preserved in split-screen.
SearchView's focus should be preserved when entering or exiting
split-screen mode.

Fixes: 31444175
Test: Verified toggling split-screen preserves the focus.
Change-Id: If3a11a6877b4d091ac0559a5cc8775eef071de40
2017-06-12 14:38:33 -07:00
Anthony Chen
ad4d158a78 Handle night mode for notifications.
When the system detects a night mode change, it will reload the
resources and relayout the notifications.

Also, allow the text in the Notification to take night mode into
account. Add configuration to allow Android Auto embedded to not tint
certain elements of the UI.

Test: booted on phone and Android Auto headunit
Bug: 33210494
Change-Id: I261813e5795b047bdfc4f77b88e1b01cc72e3216
2017-06-12 14:22:44 -07:00
Anthony Chen
f973d73576 Merge "Add a method that allows the shade to be toggled." 2017-06-12 21:12:44 +00:00
Jeff Sharkey
35e46d2972 Active camera apps can defy reserved cache space.
We normally prevent apps from allocating into the "reserved" cache
space, but this change makes an exception for an active camera app,
since the user is probably trying to capture an important memory.

This change only lets the active camera app clear up to half of the
reserved space, since we don't want to completely destroy the
experience of all other apps.

Test: manual app before/during/after active camera session
Bug: 38267830
Change-Id: Ie9e63884fb2638ca881e10b894629eea84601648
2017-06-12 14:27:23 -06:00
Vladislav Kaznacheev
d85915f786 Pass window token when creating a tooltip popup
This allows using tooltips in System UI.

Bug: 62065980
Test: android.view.cts.TooltipTest passes
Change-Id: If0a76d0806aa92efa4be57204c4517242b0ebb99
2017-06-12 12:10:49 -07:00
Vladislav Kaznacheev
7410170ddc Revert "Use a PopupWindow to show tooltips"
This reverts commit 77e539775b.

Change-Id: Ic4054e0d507ce95ab93282d4da002dd804aeb26d
2017-06-12 12:02:11 -07:00
Winson Chung
4a526c1245 Ensure that we use SF Vsync Choreographer for the PiP transition.
- Move the bounds animation onto the animation thread
- Remove existing code referencing the old sf-vsync choreographer
- Add ability for ValueAnimator subclasses to reference a different
  AnimationHandler, which uses a different FrameCallbackProvider with the
  sf-vsync choreographer in the animations that require it
- Ensure that PiP touch events are batched and sent aligned with the
  sf-vsync
- Move GC onto its own thread to not block other BackgroundThread calls

Bug: 36371375
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: bit FrameworksServicesTests:com.android.server.wm.BoundsAnimationControllerTests
Test: go/wm-smoke

Change-Id: I6a41b35a4e4d4d6dbea82c2673452825fe3ffa58
2017-06-12 10:08:58 -07:00
Narayan Kamath
b59b7c30d5 BatteryStatsImpl: Keep less history around for low mem devices.
Test: Manual; w/ debug.force_low_ram
Bug: 62144301
Change-Id: Iaa163a49403e25f598136aaf980901553525b759
2017-06-12 14:11:03 +01:00
Adam Lesinski
b3a1badce5 BatteryStats: Cleanup external stats collection
Create a BatteryStatsWorker that internalizes the stats collection,
and returns a Future<?> so that uses-cases requiring synchronous
results can still wait on the async task.

Bug: 37645919
Bug: 38296815
Test: manual
Change-Id: I5b935e1877d9a17d2617f01478faa77e8a52a258
2017-06-09 15:23:04 -07:00
Siyamed Sinir
a02dcdcebc Merge "Force Autofill in FloatingToolbar overflow menu" into oc-dev am: bc626c6358
am: f99e84e4dd

Change-Id: I04a26678d8df05ea59bcec48061f027b0b567baf
2017-06-09 22:20:15 +00:00
Siyamed Sinir
f99e84e4dd Merge "Force Autofill in FloatingToolbar overflow menu" into oc-dev
am: bc626c6358

Change-Id: I4d3cff4bf6a0403f311011709c3074bca532de15
2017-06-09 21:56:09 +00:00
Siyamed Sinir
c1801c9a8d Merge "Force Autofill in FloatingToolbar overflow menu" into oc-dev
am: bc626c6358

Change-Id: I8688bda33124a78d439f1cbcf23926a0672b0735
2017-06-09 21:37:17 +00:00
jackqdyulei
5047d7bf7f Copy smearing method to BatteryStatsHelper
am: 5dad8068e2

Change-Id: I1a99fc38a665c3219999b464c1549dd707832f3d
2017-06-09 21:15:56 +00:00
Siyamed Sinir
bc626c6358 Merge "Force Autofill in FloatingToolbar overflow menu" into oc-dev 2017-06-09 20:58:36 +00:00
Lei Yu
883db32859 Merge changes from topic 'battery_smear_move' into oc-dev
* changes:
  Batterystats logs smeared power model values
  Copy smearing method to BatteryStatsHelper
2017-06-09 20:50:47 +00:00
Lei Yu
35aa7879be Merge "Copy smearing method to BatteryStatsHelper" into oc-dr1-dev
am: 02ece2f486

Change-Id: I395712265d3d159c26c4f69f2a7abdfe31398aff
2017-06-09 17:52:41 +00:00
Lei Yu
02ece2f486 Merge "Copy smearing method to BatteryStatsHelper" into oc-dr1-dev 2017-06-09 17:46:33 +00:00
Siyamed Sinir
484c2e2fbe Force Autofill in FloatingToolbar overflow menu
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
bit CtsWidgetTestCases:android.widget.cts.EditTextTest

Bug: 62271937
Change-Id: Ib3447281f3bd1abc811a25fc55ad55e34e155bbb
2017-06-08 17:16:26 -07:00
jackqdyulei
5dad8068e2 Copy smearing method to BatteryStatsHelper
This cl adds the following data in BatterySipper
1. screenPowerMah: power smeared by screen
2. proportionalSmearMah: power need to smeared proportionally
3. displayPowerMah: smeared power usage

This cl also copies bunch of methods from BatteryUtils to
BatteryStatsHelper with minor changes, so we could log smearing
logic in BatteryStatsHelper

Bug: 62300864
Test: runtest -x BatteryStatsHelperTest
Change-Id: I9f92f5c1ac5fa483d0c15a3d5daad570da68a7ff
Merged-In: I9f92f5c1ac5fa483d0c15a3d5daad570da68a7ff
2017-06-08 15:10:34 -07:00
jackqdyulei
1424c1d77c Copy smearing method to BatteryStatsHelper
Cherry pick: fix conflict in config.xml

This cl adds the following data in BatterySipper
1. screenPowerMah: power smeared by screen
2. proportionalSmearMah: power need to smeared proportionally
3. displayPowerMah: smeared power usage

This cl also copies bunch of methods from BatteryUtils to
BatteryStatsHelper with minor changes, so we could log smearing
logic in BatteryStatsHelper

Bug: 62300864
Test: runtest -x BatteryStatsHelperTest
Change-Id: I9f92f5c1ac5fa483d0c15a3d5daad570da68a7ff
2017-06-08 11:32:31 -07:00
Andreas Gampe
f037caed37 Merge "Framework: Remove SamplingProfiler" into oc-dev-plus-aosp
am: 837f1167ca

Change-Id: I2a510538bace272330e1d4446adf2451f3bb4c07
2017-06-08 05:54:32 +00:00
Sudheer Shanka
7f8006c0d8 Merge "Update KernelUidCpuFreqTimeReader to handle uid removals." into oc-dev am: f34713066e am: 736cb0e33a
am: 54a6869814

Change-Id: I5e4151095fe8e7790cae7c2512d8ef609076189f
2017-06-08 05:53:17 +00:00
Sudheer Shanka
54a6869814 Merge "Update KernelUidCpuFreqTimeReader to handle uid removals." into oc-dev am: f34713066e
am: 736cb0e33a

Change-Id: Ia4ae2f57539d652e9a898e4eb62d6b1bbc0de06a
2017-06-08 05:45:37 +00:00
Sudheer Shanka
2bb4966dab Merge "Update KernelUidCpuFreqTimeReader to handle uid removals." into oc-dev
am: f34713066e

Change-Id: Ic001bfa12fecb00b24d7170c841af21531bab28a
2017-06-08 05:44:49 +00:00
Eugene Susla
554edd35ec Serialize all standard actions as bit mask
As described in the attached bug, all(not just legacy) AccessibilityNodeInfo
standard actions can be serialized into a bit mask. This implements that.

Fixes: 33949542
Test: cts-tradefed run singleCommand cts -d --module CtsAccessibilityServiceTestCases
cts-tradefed run singleCommand cts -d --module CtsAccessibilityTestCases
cts-tradefed run singleCommand cts -d --module CtsUiAutomationTestCases
Change-Id: I0619ee33de3051d582420d4aef135205a9ec7e8c
2017-06-07 19:26:43 -07:00
TreeHugger Robot
837f1167ca Merge "Framework: Remove SamplingProfiler" into oc-dev-plus-aosp 2017-06-08 01:08:24 +00:00
Sudheer Shanka
736cb0e33a Merge "Update KernelUidCpuFreqTimeReader to handle uid removals." into oc-dev
am: f34713066e

Change-Id: I7ba4faeae53df155de0a25347efcc15974f2cc8c
2017-06-08 00:15:23 +00:00
Andreas Gampe
dc7f65ac64 Framework: Remove SamplingProfiler
Remove the very old and unsupported SamplingProfilerIntegration. This
CL removes the code parts.

(cherry picked from commit d52cad2cc9)

Bug: 37272346
Test: m
Test: Device boots
Change-Id: I64d77244b5816ef1f605d19530b96be38f5c1bc6
2017-06-07 20:08:44 +00:00
Andreas Gampe
06ae314822 Merge "Framework: Remove SamplingProfiler" 2017-06-07 19:53:02 +00:00
Sudheer Shanka
6d8dcec872 Update KernelUidCpuFreqTimeReader to handle uid removals.
Bug: 34133340
Test: manual
Change-Id: Iaad2061671d83e1ff6d2797e166ae903f6faec13
2017-06-06 15:31:51 -07:00
Dan Sandler
0b5efb3b53 Updates to Dianne's Dungeon.
- new EKG icon
 - set the notification timestamp to the oldest service
   start time, so you have some idea how long things have been
   this way
 - minor text fixes

Bug: 36891897
Test: runtest -x cts/tests/app/src/android/app/cts/ServiceTest.java
Change-Id: I37c76ae86bcaee7c946863add041bbd1ca678cf9
2017-06-06 17:36:26 -04:00
Andreas Gampe
d52cad2cc9 Framework: Remove SamplingProfiler
Remove the very old and unsupported SamplingProfilerIntegration. This
CL removes the code parts.

Bug: 37272346
Test: m
Test: Device boots
Change-Id: I64d77244b5816ef1f605d19530b96be38f5c1bc6
2017-06-06 10:15:27 -07:00