Commit Graph

8121 Commits

Author SHA1 Message Date
Justin Klaassen
eb88dbbbff Merge "Reset last activated time after auto mode changed" into oc-dr1-dev am: 13cfb46e41
am: 93bd71f10a

Change-Id: I4e6dbdf32f99dcd6eea90aed9c36aee3240e3404
2017-06-21 00:04:40 +00:00
Justin Klaassen
93bd71f10a Merge "Reset last activated time after auto mode changed" into oc-dr1-dev
am: 13cfb46e41

Change-Id: Ic54dae12f687caf5288ccbf3cd3c842ce4742721
2017-06-20 23:56:13 +00:00
Mathieu Chartier
8e9149e3c5 Merge "Add property for system server compiler filter" 2017-06-20 23:41:20 +00:00
Justin Klaassen
4bcc06f39c Reset last activated time after auto mode changed
Fixes: 62749129
Test: runtest -c com.android.server.NightDisplayServiceTest \
      frameworks-services
Change-Id: I7e5a4c56cd20be70e693aa2327972b5da77b6f27
2017-06-20 13:29:43 -07:00
Vladislav Kaznacheev
b9faebca98 Merge "Do not update currently open tooltip." into oc-dev am: 139dbe5c1c am: 3fd4215760
am: 6063096518

Change-Id: I5e7b6742544a5db4266e95be0ce01830ea62cd92
2017-06-19 21:37:31 +00:00
Vladislav Kaznacheev
6063096518 Merge "Do not update currently open tooltip." into oc-dev am: 139dbe5c1c
am: 3fd4215760

Change-Id: I4b9674e73830462bbe9288ebfa1bbac89af860b3
2017-06-19 21:24:11 +00:00
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
Vladislav Kaznacheev
3fd4215760 Merge "Do not update currently open tooltip." into oc-dev
am: 139dbe5c1c

Change-Id: Ia0b5b2c7ee9dc8a0cc975562de350ac0ff4a0449
2017-06-19 21:12:41 +00:00
Lucas Dupin
7b2d2103da Merge "K-Means color clustering" into oc-dr1-dev am: 11cc260047
am: af26f72fb8

Change-Id: I1985de652f8d4643a8a5a170fd7f43c33c6c0bd7
2017-06-17 17:33:26 +00:00
Lucas Dupin
af26f72fb8 Merge "K-Means color clustering" into oc-dr1-dev
am: 11cc260047

Change-Id: If99425cb57a322900f476227932cdcadd85abf00
2017-06-17 17:26:20 +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
Mathieu Chartier
5e07a0d9ca Add property for system server compiler filter
The property is dalvik.vm.systemservercompilerfilter, this changes
if dexopt is needed.

Bug: 62356545
Test: adb shell setprop dalvik.vm.systemservercompilerfilter quicken
Test: adb shell stop && adb shell start

Change-Id: I2ef3737f24816a4cb75e718abf274a891eb9fda1
2017-06-16 09:52:36 -07:00
Chris Thornton
f972cc3e12 Merge "Add SoundTriggerManager APIs to use a PendingIntent to get callbacks." into oc-dr1-dev am: 6f071c369e
am: 2fe6586160

Change-Id: I13fcdd58bd9219ce6c65e4bf90d107222047fc42
2017-06-14 19:48:28 +00:00
Chris Thornton
2fe6586160 Merge "Add SoundTriggerManager APIs to use a PendingIntent to get callbacks." into oc-dr1-dev
am: 6f071c369e

Change-Id: I98f9c06856a70a5a4b3634f41860068c331f0c83
2017-06-14 19:16:36 +00: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
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
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
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
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
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
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
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