Commit Graph

8215 Commits

Author SHA1 Message Date
Vladislav Kaznacheev
2102c3211c Merge "Do not update currently open tooltip." into oc-dev
am: 139dbe5c1c

Change-Id: Ia3fc1f16e71a4a12a0a84704b7ca7a9d2ec33514
2017-06-19 21:12:45 +00:00
Lucas Dupin
1d3c00d5c7 K-Means color clustering
Test: runtest -x tests/Internal/src/com/android/internal/ml/clustering/KMeansTest.java
Bug: 37014702
Change-Id: Idabc163df5ded362acbe462ae6b351394a36db10
2017-06-16 18:04:42 -07:00
Vladislav Kaznacheev
dd469d171d Do not update currently open tooltip.
Currently if View.setTooltipText is called while
the tooltip is being shown for that view, it will
update the displayed text. The tooltip then will
resize to wrap around the new text, but not change
its position. This looks confusing if the new text
is significantly shorter or longer.

Removing this functionality until proper
re-positioning is implemented.

Bug: 38491655
Test: android.view.cts.TooltipTest passes
Change-Id: I79689288185888854b992b89e19fe381d3ac50e4
2017-06-16 11:31:23 -07:00
TreeHugger Robot
6f071c369e Merge "Add SoundTriggerManager APIs to use a PendingIntent to get callbacks." into oc-dr1-dev 2017-06-14 19:10:43 +00:00
Chris Thornton
ba08b7945a Add SoundTriggerManager APIs to use a PendingIntent to get callbacks.
Test: APIs exercised using a special test app not in this CL.

Change-Id: I99425d1e67a778513e6c75e7d595c072032aa2ab
2017-06-13 18:37:48 -07:00
Eugene Susla
99f209be12 Merge "Support associating with an already-paired device" into oc-dev
am: c041c7a34e

Change-Id: I0af2c5f93b8e0387f28f9c34c81b20ad5a9875e2
2017-06-14 00:17:19 +00:00
TreeHugger Robot
c041c7a34e Merge "Support associating with an already-paired device" into oc-dev 2017-06-14 00:03:53 +00:00
Wale Ogunwale
5323b2d4cd Merge "Ensure that we use SF Vsync Choreographer for the PiP transition." into oc-dev
am: e1e0db8ca9

Change-Id: I2d854e36c31a8fa1cf74e5c5a536969ee94dc79b
2017-06-13 01:01:51 +00:00
Vladislav Kaznacheev
bc168cf9d5 Merge changes from topic 'sysui-tooltip' into oc-dev
am: 3fbcec5b86

Change-Id: I7affdad6abfb283c0eec6718797f7d8580ea507b
2017-06-13 00:31:02 +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
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
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
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
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
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
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
Ahmed ElArabawy
dd3b200c19 Merge "Revert "Revert "power hal: Use power HAL API 1.1""" 2017-06-06 16:01:55 +00:00
Sudheer Shanka
1e52f216af Merge "Ignore entries for isolated uids if there's no mapping for them." into oc-dev am: 057bad9c9d
am: cefa28dc8a

Change-Id: I0dac209a9a5af6f5b83ea0d9706a29e5f6a97df4
2017-06-06 15:31:17 +00:00
TreeHugger Robot
2878977277 Merge "add skeleton CarServiceHelperService" 2017-06-05 23:20:28 +00:00
Sudheer Shanka
cefa28dc8a Merge "Ignore entries for isolated uids if there's no mapping for them." into oc-dev
am: 057bad9c9d

Change-Id: I536deea7b77c202b788f6d985574a9629d9bd1f1
2017-06-05 21:31:19 +00:00
Keun-young Park
067cf3e883 add skeleton CarServiceHelperService
- CarServiceHelperService is a companion service for car service which
  is used only for car product.
- HelperService starts car service and provide necessary interface
  for system server internal behavior control.

bug: 62342376
Test: test boot-up
Change-Id: I1728437434eab36bd2df6ba0a534731823bbcf35
2017-06-05 14:27:25 -07:00
Sudheer Shanka
057bad9c9d Merge "Ignore entries for isolated uids if there's no mapping for them." into oc-dev 2017-06-05 21:22:39 +00:00
Daniel Sandler
7574fbee46 Merge changes from topic 'dungeon' into oc-dev
am: 36a673a7d7

Change-Id: Idcad938ed14dac66e6b701cefd9dc79c499eb645
2017-06-05 19:15:12 +00:00
Sudheer Shanka
ea87a4bca0 Ignore entries for isolated uids if there's no mapping for them.
Bug: 25195548
Test: manual
Change-Id: If5aa7e194f4d43f2a7068899b9aa6584bfb2b7cc
2017-06-05 10:40:11 -07:00
Winson Chung
e0e3512045 Merge "Workaround to ensure that PIP activities have a visible shadow." into oc-dev am: c3504d4f33
am: d288ca8d2d

Change-Id: I80aed8fd0d0a8573bd4b6cec7bf8c14878a0935c
2017-06-05 17:19:14 +00:00
Dan Sandler
2f36ab88d7 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: I99db280cde8ca3ecd7205cd44fac159d8f652ca2
2017-06-05 11:18:59 -04:00
Winson Chung
d288ca8d2d Merge "Workaround to ensure that PIP activities have a visible shadow." into oc-dev
am: c3504d4f33

Change-Id: I07ff4ce93022c681b327b1dbb8a03893471b752e
2017-06-03 20:50:49 +00:00
TreeHugger Robot
c3504d4f33 Merge "Workaround to ensure that PIP activities have a visible shadow." into oc-dev 2017-06-03 20:41:18 +00:00
Winson Chung
4d8681ff6a Workaround to ensure that PIP activities have a visible shadow.
- When the window for the activity enters PIP, update the outline provider
  to override the alpha of the shadow (to be opaque) to ensure that is is
  visible.  Only applies to the task root activity.

Bug: 36741700
Test: Launch YT, ensure that there is a shadow when after it enters PIP
Test: go/wm-smoke
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: If089dae84e4916d3d0e7bbeb316215b46e522e05
2017-06-02 16:02:50 -07:00
Andrew Zeng
6a682a58a8 Merge "Notify keyguard of when power button is pressed." into oc-dev am: dd273de09e
am: 3793a4ee3a

Change-Id: Ifea8a9b93f0d8c1945f3b6c7b15159b08019b9f1
2017-06-02 22:12:14 +00:00
Andrew Zeng
3793a4ee3a Merge "Notify keyguard of when power button is pressed." into oc-dev
am: dd273de09e

Change-Id: I2e8061b695e1823ea9ab7b46c8fdb78111601ced
2017-06-02 22:03:30 +00:00
TreeHugger Robot
dd273de09e Merge "Notify keyguard of when power button is pressed." into oc-dev 2017-06-02 21:54:15 +00:00
Sudheer Shanka
f3ddbb68e9 Merge "Avoid excessive logging when the necessary proc file is unavailable." into oc-dev am: ab17493ef3
am: 599bc3f19f

Change-Id: I3ad80361f65f6de1f06f9758219d02272b300c68
2017-06-02 21:28:19 +00:00
Sudheer Shanka
599bc3f19f Merge "Avoid excessive logging when the necessary proc file is unavailable." into oc-dev
am: ab17493ef3

Change-Id: I649da92e3f5451886543f7edd8e107166b8c0125
2017-06-02 21:18:09 +00:00
Sudheer Shanka
ab17493ef3 Merge "Avoid excessive logging when the necessary proc file is unavailable." into oc-dev 2017-06-02 21:10:39 +00:00
Manu Cornet
79889119b6 Merge "Use a PopupWindow to show tooltips" into oc-dev am: 8493543ce3
am: 629c15297f

Change-Id: I5041b71149b3eaa58d85230dac26f7d22a547ae8
2017-06-02 20:22:11 +00:00
Manu Cornet
629c15297f Merge "Use a PopupWindow to show tooltips" into oc-dev
am: 8493543ce3

Change-Id: I4b026c2f273ee34860f8100b017c56fe627a2d1f
2017-06-02 20:15:45 +00:00
Manu Cornet
8493543ce3 Merge "Use a PopupWindow to show tooltips" into oc-dev 2017-06-02 20:02:49 +00:00
Andrew Zeng
b4045d3791 Notify keyguard of when power button is pressed.
This is done on wear power button doesn't turn off the screen,
when the device wakes from keyguard UI isn't visible yet, so
it needs to react to power press in some way.

Bug: 35147955
Change-Id: I22619ea446770d09b53370e9244215646b60a9db
2017-06-02 12:51:13 -07:00
Sudheer Shanka
acd7f2c783 Avoid excessive logging when the necessary proc file is unavailable.
Bug: 34133340
Test: manual
Change-Id: Ic00e58a5b7bb7f92a0467df1cab8df5cab7dffda
2017-06-02 11:41:50 -07:00
Christine Franks
5e45ca09b8 Merge "Fix night display activation behavior after reboot" into oc-dev am: bd75ee0015
am: 16c9c94e49

Change-Id: I6806c3bde4a4739b2e8387840f706e753029d82b
2017-06-02 15:21:57 +00:00