OSDN Git Service
Pengquan Meng [Thu, 22 Feb 2018 15:53:27 +0000 (15:53 +0000)]
Merge "Cleanup TelephonyManager's log" am:
033de4676b am:
22f61111bd
am:
bfb00f97af
Change-Id: Iccc3d497bf28906f4da54eef3acbd72dc04bfd3c
Hall Liu [Thu, 22 Feb 2018 15:38:26 +0000 (15:38 +0000)]
Merge "EMBMS API tweaks" am:
47e1d11b47 am:
3b40c709a3
am:
2a08ccdd8b
Change-Id: I617e2bca44d52b55f2d032db0fe59aa0a9f88e24
TreeHugger Robot [Thu, 22 Feb 2018 15:14:38 +0000 (15:14 +0000)]
Merge "Build android.test.runner and its variants with SDK"
TreeHugger Robot [Thu, 22 Feb 2018 14:36:05 +0000 (14:36 +0000)]
Merge "Docs: small documentation fixes for formatting and typos."
Benjamin Franz [Thu, 22 Feb 2018 14:08:33 +0000 (14:08 +0000)]
Merge "Update lock task features name and javadoc"
Annie Meng [Thu, 22 Feb 2018 12:22:42 +0000 (12:22 +0000)]
Merge "Add TestApis for updateTransportAttributes GTS tests"
Mihai Popa [Thu, 22 Feb 2018 12:03:01 +0000 (12:03 +0000)]
Merge changes from topic "magnifier_sync_movement"
* changes:
[Magnifier-24] Add completion callback TestApi
[Magnifier-21] Rate-limit drawings to renderer
[Magnifier-20] Raw Surface instead of PopupWindow
TreeHugger Robot [Thu, 22 Feb 2018 12:02:38 +0000 (12:02 +0000)]
Merge "Update javadoc of PackageInstaller to mention the enterprise bit"
TreeHugger Robot [Thu, 22 Feb 2018 11:31:29 +0000 (11:31 +0000)]
Merge "Adding logging for generateLinks"
Jaewan Kim [Thu, 22 Feb 2018 09:55:21 +0000 (09:55 +0000)]
Merge "MediaSessionService: Document necessity of onSessionDestroyed()"
TreeHugger Robot [Thu, 22 Feb 2018 09:37:57 +0000 (09:37 +0000)]
Merge "Camera: improve Surface equality check"
Benjamin Miller [Thu, 22 Feb 2018 08:49:21 +0000 (08:49 +0000)]
Docs: small documentation fixes for formatting and typos.
Test: make ds-docs
Bug:
73753042
Change-Id: Iaf8065de45b03a59e1327d3872bb790da276d230
Pengquan Meng [Thu, 22 Feb 2018 07:14:43 +0000 (07:14 +0000)]
Merge "Cleanup TelephonyManager's log" am:
033de4676b
am:
22f61111bd
Change-Id: Icaff0e2cc4ebeb1f36b8597ee11457779aeca06f
Pengquan Meng [Thu, 22 Feb 2018 07:02:54 +0000 (07:02 +0000)]
Merge "Cleanup TelephonyManager's log"
am:
033de4676b
Change-Id: I808ab4b142afcbf6c752b7f4f24d60500ab1cb51
TreeHugger Robot [Thu, 22 Feb 2018 06:40:03 +0000 (06:40 +0000)]
Merge "Import translations. DO NOT MERGE"
TreeHugger Robot [Thu, 22 Feb 2018 05:36:45 +0000 (05:36 +0000)]
Merge "Add annotation to atoms that represent a state change in atoms.proto"
Pengquan Meng [Thu, 22 Feb 2018 05:19:11 +0000 (05:19 +0000)]
Merge "Cleanup TelephonyManager's log"
Jiyong Park [Thu, 22 Feb 2018 05:16:35 +0000 (14:16 +0900)]
Build android.test.runner and its variants with SDK
They are not using any private APIs, thus eligible to be built with SDK.
Test: m -j
Change-Id: I82c7e2a739a40d6d2f1488164b25503a8a454b0d
TreeHugger Robot [Thu, 22 Feb 2018 04:30:27 +0000 (04:30 +0000)]
Merge "Rename HardwareLayer -> TextureLayer"
TreeHugger Robot [Thu, 22 Feb 2018 04:08:02 +0000 (04:08 +0000)]
Merge "WebView: fix docs for setSafeBrowsingWhitelist"
TreeHugger Robot [Thu, 22 Feb 2018 04:01:25 +0000 (04:01 +0000)]
Merge "Updates the name of the native library wrapper class, adds options and removes hints."
Mike Digman [Thu, 22 Feb 2018 03:55:10 +0000 (03:55 +0000)]
Merge "Update rotate suggestion button icon+motion"
Hall Liu [Thu, 22 Feb 2018 03:54:18 +0000 (03:54 +0000)]
Merge "EMBMS API tweaks" am:
47e1d11b47
am:
3b40c709a3
Change-Id: I8b281f717d3862a9f7a5de3d834dcded4ac436dc
Hall Liu [Thu, 22 Feb 2018 03:36:12 +0000 (03:36 +0000)]
Merge "EMBMS API tweaks"
am:
47e1d11b47
Change-Id: Ie058b45f2dd09b80a51cb9702155e45f49005173
TreeHugger Robot [Thu, 22 Feb 2018 03:13:04 +0000 (03:13 +0000)]
Merge "Statsd anomaly output log fix"
John Reck [Thu, 22 Feb 2018 02:28:40 +0000 (02:28 +0000)]
Merge "Handle window surface insets"
TreeHugger Robot [Thu, 22 Feb 2018 02:17:34 +0000 (02:17 +0000)]
Merge "Fix the bug of timestamp encoding in event metric report."
TreeHugger Robot [Thu, 22 Feb 2018 02:14:07 +0000 (02:14 +0000)]
Merge "Add 90th and 95th percentile to ManualBenchmarkState"
Bill Yi [Thu, 22 Feb 2018 01:35:18 +0000 (17:35 -0800)]
Import translations. DO NOT MERGE
Change-Id: I40b6e489f9b5e97da095ae0d4258de9df1565736
Auto-generated-cl: translation import
TreeHugger Robot [Thu, 22 Feb 2018 01:26:09 +0000 (01:26 +0000)]
Merge "Binary Cpu Time Proc File Reader"
TreeHugger Robot [Thu, 22 Feb 2018 01:11:00 +0000 (01:11 +0000)]
Merge "Throttler for incidentd based on size putting into dropbox."
Sundeep Ghuman [Thu, 22 Feb 2018 00:55:07 +0000 (00:55 +0000)]
Merge "Fix tests broken in ag/
3574286"
Yao Chen [Mon, 19 Feb 2018 22:39:19 +0000 (14:39 -0800)]
Add annotation to atoms that represent a state change in atoms.proto
+ A state change atom can have one exclusive state field, and any
number of primary key fields.
When there is primary key in the atom, it means the state belongs to the primary key.
For example,
message UidProcessStateChanged {
optional int32 uid = 1 [(stateFieldOption).option = PRIMARY];
optional android.app.ProcessStateEnum state = 2 [(stateFieldOption).option = EXCLUSIVE];
}
When there is no primary key fields in the atom, the state is global.
For example,
message ScreenStateChanged {
optional android.view.DisplayStateEnum state = 1 [(stateFieldOption).option = EXCLUSIVE];
}
+ The annotation is consumed by stats_log_api_gen to generate a static map from the state
atoms to its primary fields, and exclusive fields
+ stats_log.proto is splitted into 2 proto files, because statsd needs proto lite, and c++
lite proto library cannot properly ignore the field options which requires full proto.
This CL doesn't change any logic in the statsd yet. A separate CL will use the field option
information to correctly track the state.
Test: added unit tests in stats_log_api_gen_test. and statsd_test pases.
Change-Id: I9e8a979fe81ba60efd4d854bb7087ce4b2b147ec
Sundeep Ghuman [Wed, 21 Feb 2018 22:17:57 +0000 (14:17 -0800)]
Fix tests broken in ag/
3574286
Changes made during review process broke a test, and this was not caught
via presubmits. Fixing now.
Bug:
68030053
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java
Change-Id: I7ce84c7cd1653966beb8980250e64a590def7fc9
Android Build Merger (Role) [Thu, 22 Feb 2018 00:44:42 +0000 (00:44 +0000)]
Merge "Merge "Check for location access on TelephonyRegistry" am:
31230bb193 am:
f581580fdb am:
9b31dd86da"
Hall Liu [Thu, 22 Feb 2018 00:43:12 +0000 (00:43 +0000)]
Merge "Check for location access on TelephonyRegistry" am:
31230bb193 am:
f581580fdb
am:
9b31dd86da
Change-Id: Icd2feab82a9350fa2b6539617863ad91a44e5208
TreeHugger Robot [Thu, 22 Feb 2018 00:40:52 +0000 (00:40 +0000)]
Merge "Add Hearing Aid output device"
Makoto Onuki [Thu, 22 Feb 2018 00:40:32 +0000 (00:40 +0000)]
Merge "Fix comment on config_defaultTextClassifierPackage"
Hall Liu [Thu, 22 Feb 2018 00:35:51 +0000 (00:35 +0000)]
Merge "EMBMS API tweaks"
Android Build Merger (Role) [Thu, 22 Feb 2018 00:35:04 +0000 (00:35 +0000)]
Merge "Merge "Explicitly restart the killed wallpaper service" am:
0780b18a9f am:
9298af376a am:
c5d4747494"
Chris Tate [Thu, 22 Feb 2018 00:34:45 +0000 (00:34 +0000)]
Merge "Explicitly restart the killed wallpaper service" am:
0780b18a9f am:
9298af376a
am:
c5d4747494
Change-Id: I6f9d38268320095ba69bfa490fcdf4dadd173fe8
Hall Liu [Thu, 22 Feb 2018 00:34:03 +0000 (00:34 +0000)]
Merge "Check for location access on TelephonyRegistry" am:
31230bb193
am:
f581580fdb
Change-Id: Ic13eacf7dafc96359bd607cb4e2a5c024f9bb607
TreeHugger Robot [Thu, 22 Feb 2018 00:33:42 +0000 (00:33 +0000)]
Merge "Handling concurrent location & SV status update"
Yin-Chia Yeh [Wed, 21 Feb 2018 20:38:19 +0000 (12:38 -0800)]
Camera: improve Surface equality check
Bug:
72134091 73711267
Change-Id: I0d7b42f8621c1fb19ad9645d8b407eb90b05654d
Chris Tate [Thu, 22 Feb 2018 00:16:40 +0000 (00:16 +0000)]
Merge "Explicitly restart the killed wallpaper service" am:
0780b18a9f
am:
9298af376a
Change-Id: If3cd3217c2d9f42772e0f276c1bc3c1380ac149f
Hall Liu [Thu, 22 Feb 2018 00:11:04 +0000 (00:11 +0000)]
Merge "Check for location access on TelephonyRegistry"
am:
31230bb193
Change-Id: I6827b337d9bcc2c634d873e03895c5997cca374c
Chris Tate [Thu, 22 Feb 2018 00:06:25 +0000 (00:06 +0000)]
Merge "Explicitly restart the killed wallpaper service"
am:
0780b18a9f
Change-Id: I7759fc380ef9555cb58f9ab593248e69cd798c70
Jakub Pawlowski [Wed, 21 Feb 2018 19:53:14 +0000 (11:53 -0800)]
Add Hearing Aid output device
This output is used to send audio to Hearring Aid device.
Bug:
69623109
Test: mm
Change-Id: I6ffdb0a404efb645592624612c7ebc187fb933a6
John Reck [Wed, 21 Feb 2018 20:55:41 +0000 (12:55 -0800)]
Rename HardwareLayer -> TextureLayer
Update name to reflect meaning/usage
Change-Id: Iddb3621cbca147f96faa83380867baa49c382aab
Fixes:
20461288
Test: builds & boots
Kevin Neas [Wed, 21 Feb 2018 23:41:34 +0000 (23:41 +0000)]
Merge "Updating AppLaunchWear to correctly parse the launch message."
Kevin Neas [Wed, 21 Feb 2018 23:37:21 +0000 (15:37 -0800)]
Updating AppLaunchWear to correctly parse the launch message.
When we don't kill Home, we get an Warning message:
"Warning: Activity not started, its current task has ben brought to
the front"
This causes the current parser to think the app didn't launch, because
it's looking in the wrong line. Adding +1 to each line, in the cases
where we launch Home
Test: locally
Change-Id: Ie232a57921ed7cf82a6f17b607fbb47591bcdbed
TreeHugger Robot [Wed, 21 Feb 2018 23:37:28 +0000 (23:37 +0000)]
Merge "Describe how the accessory input stream drops data"
Lukas Zilka [Wed, 7 Feb 2018 19:30:08 +0000 (20:30 +0100)]
Updates the name of the native library wrapper class, adds options and removes hints.
Test: Built, tested on device, CTS passes.
bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Change-Id: I7c70427d28bec8218935ed45a39819b2ece8112a
Mike Ma [Tue, 13 Feb 2018 22:22:47 +0000 (14:22 -0800)]
Binary Cpu Time Proc File Reader
Kernel now exposes cpu time proc files in binary format to save cpu
cycles. New proc files are:
Per uid freq time: /proc/uid_cpupower/time_in_state
Per uid active time: /proc/uid_cpupower/concurrent_active_time
Per uid cluster time: /proc/uid_cpupower/concurrent_policy_time
(See PowerProfile.java on how these data are used)
KernelUidCpuActiveTimeReader, KernelUidCpuClusterTimeReader and
KernelUidCpuFreqTimeReader are modified to use these new data.
Meanwhile, statsd needs these data too. So the actual reading
fuctionality is delegated to singletons in KernelCpuProcReader to
accomodate concurrent access of these proc files by more than one
party. When multiple read requests hit the singleton within the
throttle interval, the singleton will return stale data.
Optimization
KernelCpuProcReader reuses the same ByteBuffer to save results.
KernelUid***Reader all reuse the same long[] array to send results
back to BatteryStatsImpl. Estimated saving of ~200 KB GC effort
per read request.
Add a flag to control throttle interval:
kernel_uid_readers_throttle_time
Bug:
72763654
Bug:
71906435
Bug:
71905885
Bug:
70517018
Fixes:
73166477
Fixes:
72172569
Test: BatteryStatsCpuTimesTest
Test: KernelUidCpuActiveTimeReaderTest
Test: KernelUidCpuClusterTimeReaderTest
Test: KernelUidCpuFreqTimeReaderTest
Test: KernelCpuProcReaderTest
Change-Id: I1012667ce3b9eb35e37882a058bd4bceccabbbe9
Xiangyu/Malcolm Chen [Wed, 21 Feb 2018 23:31:31 +0000 (23:31 +0000)]
Merge "Fix low probability deadlock" am:
bb5cbc539f am:
e05aa02d59
am:
11d3d6b7f7
Change-Id: I65a7d2e32b02386905a384d69f68bab8cde1bf95
Nate Fischer [Wed, 21 Feb 2018 23:27:01 +0000 (15:27 -0800)]
WebView: fix docs for setSafeBrowsingWhitelist
No change to logic, documentation change only.
This changes "URL" to "host" everywhere in this API documentation.
This API never accepted a list of URLs, it only ever accepted a list of
hosts (e.g. "www.google.com" is ok, "http://www.google.com/" is not).
The original documentation was misleading.
Test: make docs (manually verify)
Change-Id: I3b57a2a160ff00ba8f92b30f6e3b4399e55f2ea0
Xiangyu/Malcolm Chen [Wed, 21 Feb 2018 23:15:30 +0000 (23:15 +0000)]
Merge "Fix low probability deadlock" am:
bb5cbc539f
am:
e05aa02d59
Change-Id: I3560bd28b67fee381f6c2d9e8bc8864efe63090d
Xiangyu/Malcolm Chen [Wed, 21 Feb 2018 23:01:42 +0000 (23:01 +0000)]
Merge "Fix low probability deadlock"
am:
bb5cbc539f
Change-Id: Ife7dd96618b75fd492aaf0397870653d63cf0d5e
TreeHugger Robot [Wed, 21 Feb 2018 22:54:44 +0000 (22:54 +0000)]
Merge "Remove flags in fs-verity header"
Hall Liu [Wed, 21 Feb 2018 22:42:08 +0000 (22:42 +0000)]
Merge "Check for location access on TelephonyRegistry"
Makoto Onuki [Wed, 21 Feb 2018 22:31:51 +0000 (14:31 -0800)]
Fix comment on config_defaultTextClassifierPackage
Bug:
73083596
Test: build
Change-Id: Ic1801f51511d3b0ca127b0d095672f2eaf3dcaef
Bookatz [Wed, 21 Feb 2018 22:30:51 +0000 (14:30 -0800)]
Statsd anomaly output log fix
Alert.id() is signed, so the output line needs to be lld instead of llu.
Test: none
Change-Id: I7e3eeddac60931234285548b99a9c9cc78582716
Yangster [Wed, 21 Feb 2018 22:08:17 +0000 (14:08 -0800)]
Fix the bug of timestamp encoding in event metric report.
Test: statsd cts tests
Change-Id: Id1d330f5d48d15ba026ae7c7e8cf4e1f6b460fba
Fyodor Kupolov [Wed, 21 Feb 2018 22:03:37 +0000 (22:03 +0000)]
Merge "Verify last array's length in readFromParcel"
TreeHugger Robot [Wed, 21 Feb 2018 21:54:33 +0000 (21:54 +0000)]
Merge "Fix opacity of expanded shade during transitions"
Chris Tate [Wed, 21 Feb 2018 21:49:31 +0000 (21:49 +0000)]
Merge "Explicitly restart the killed wallpaper service"
TreeHugger Robot [Wed, 21 Feb 2018 21:42:35 +0000 (21:42 +0000)]
Merge "Add HighAtomic to pagetypeinfo, and don't fail if a header can't be found in proto definition."
Wyatt Riley [Wed, 21 Feb 2018 21:39:43 +0000 (21:39 +0000)]
Merge "Handling additional enum for carrier half cycle"
Eugene Susla [Wed, 21 Feb 2018 21:32:42 +0000 (21:32 +0000)]
Merge "Use PooledLambda in autofill code"
TreeHugger Robot [Wed, 21 Feb 2018 21:26:36 +0000 (21:26 +0000)]
Merge "Don't end transitions on a detached window, prevent crash in WindowId"
Xiangyu/Malcolm Chen [Wed, 21 Feb 2018 21:16:44 +0000 (21:16 +0000)]
Merge "Fix low probability deadlock"
Howard Ro [Wed, 21 Feb 2018 21:12:41 +0000 (21:12 +0000)]
Merge "Remove relevant configs when a uid (app) is uninstalled"
TreeHugger Robot [Wed, 21 Feb 2018 20:59:21 +0000 (20:59 +0000)]
Merge "Use structural equality for A11yNodeInfo#mChildNodeIds"
Tarandeep Singh [Wed, 21 Feb 2018 20:59:09 +0000 (20:59 +0000)]
Merge "Unbind InputMethod when app crashes"
TreeHugger Robot [Wed, 21 Feb 2018 20:40:47 +0000 (20:40 +0000)]
Merge "Update ActivityManagerPerfTests README with atest"
Kevin Neas [Wed, 21 Feb 2018 20:36:51 +0000 (20:36 +0000)]
Merge "Updating AppLaunchWear with more logging and logic."
Kevin Neas [Wed, 21 Feb 2018 20:31:40 +0000 (12:31 -0800)]
Updating AppLaunchWear with more logging and logic.
Agenda keeps failing. Need to more logging to know why
Contacts keeps getting killed. Again, need more logging
Test: local
Change-Id: I6930892d8a2eaa7ad410284fba9ed1c4980820f7
TreeHugger Robot [Wed, 21 Feb 2018 20:32:31 +0000 (20:32 +0000)]
Merge "DisplayCutout: Cache rotations of DisplayCutout"
TreeHugger Robot [Wed, 21 Feb 2018 20:32:27 +0000 (20:32 +0000)]
Merge "Updating batterystats report version."
TreeHugger Robot [Wed, 21 Feb 2018 20:28:14 +0000 (20:28 +0000)]
Merge "Widen Conscrypt greylist."
TreeHugger Robot [Wed, 21 Feb 2018 20:19:54 +0000 (20:19 +0000)]
Merge changes I30c76f2a,I83d3f0d2
* changes:
Fixed the launch animation for groups
Removed the notification action background
TreeHugger Robot [Wed, 21 Feb 2018 20:16:21 +0000 (20:16 +0000)]
Merge "Simplify synchronization and delete dead code."
TreeHugger Robot [Wed, 21 Feb 2018 20:16:00 +0000 (20:16 +0000)]
Merge changes from topic "forceUpdate"
* changes:
Convert forceUpdate to 'onStart' lifecycle event.
Change WifiListenerWrapper to WifiListenExecutor.
Delete the WorkHandler class.
Cleanup updateAccessPoints for readability.
TreeHugger Robot [Wed, 21 Feb 2018 20:15:20 +0000 (20:15 +0000)]
Merge "Move WebView plat_support from frameworks/webview."
TreeHugger Robot [Wed, 21 Feb 2018 20:12:05 +0000 (20:12 +0000)]
Merge "Hide bouncer before launching camera"
TreeHugger Robot [Wed, 21 Feb 2018 19:59:48 +0000 (19:59 +0000)]
Merge "[QS] Add header tooltip for long press"
TreeHugger Robot [Wed, 21 Feb 2018 19:55:23 +0000 (19:55 +0000)]
Merge "Package whitelist for hiddenapi checks."
Jaewan Kim [Wed, 21 Feb 2018 19:53:11 +0000 (19:53 +0000)]
Merge changes from topics "playerinterface_onError", "mediasession2_notifychildren", "mediasession2_subscribe", "MediaSession2_rating_style_for_each_item"
* changes:
MediaSession2: Add a way to notify errors between session and player
MediaSession2: Implement MediaLibrarySession#notifyChildrenChanged()
MediaSession2: Implement subscribe/unsubscribe
MediaSession2: Remove rating style from session
Eugene Susla [Mon, 12 Feb 2018 22:33:15 +0000 (14:33 -0800)]
Use PooledLambda in autofill code
This replaces the usage of handler message types with PooledLambda
Bug:
73648631
Test: atest CtsAutoFillTestCases
Change-Id: I3be0870116489c0c831353fe4ab9abed3cac3a93
Lucas Dupin [Wed, 7 Feb 2018 18:49:55 +0000 (10:49 -0800)]
Fix opacity of expanded shade during transitions
Change-Id: I480e558113cd9f31b7548002265e9b4b78b0ddad
Fixes:
70351996
Fixes:
71443237
Fixes:
73311721
Fixes:
72757727
Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: unlock with fp. pattern
Test: pull down shade adjust brightness on bouncer and launcher
Test: unlock with fingerprint from pulsing notification
Tarandeep Singh [Fri, 16 Feb 2018 22:31:17 +0000 (14:31 -0800)]
Unbind InputMethod when app crashes
If a running app (with bound InputMethod) crashes, the currently running InputMethod is not
unbound. As a result, onBindInput is not called.
In order to fix this, IMMS.removeClient() should also unbind the current client and clear
the flag IMMS.mBoundToMethod.
With the fix, I haven't seen any test failures mentioned in bug.
Bug:
72399950
Fixes:
73274813
Test: atest InputMethodServiceLifecycleTest && atest FocusHandlingTest
Change-Id: I0c09381b43a8b96480976edafbc0b0ee40ae5de0
TreeHugger Robot [Wed, 21 Feb 2018 19:23:49 +0000 (19:23 +0000)]
Merge "Add StringDef annotation for SYSTEM_SETTINGS_WHITELIST"
Selim Cinek [Wed, 21 Feb 2018 19:06:59 +0000 (19:06 +0000)]
Merge "Added a targetAPi check to the user name requirement"
John Reck [Wed, 21 Feb 2018 19:02:20 +0000 (11:02 -0800)]
Handle window surface insets
Bug:
69413152
Test: PixelCopy CTS tests
Change-Id: Ie26c38e462fbc6c19669d33efaec5251f40f75bd
TreeHugger Robot [Wed, 21 Feb 2018 18:43:55 +0000 (18:43 +0000)]
Merge "Optionally supress status bar notifications in dnd"
Mihai Popa [Tue, 20 Feb 2018 18:50:20 +0000 (18:50 +0000)]
[Magnifier-24] Add completion callback TestApi
The CL adds a TestApi callback mechanism which enables CTS tests to know
when magnifier operations have completed. This is required since
the magnifier is using an auxiliary thread (different from the main
thread) to do work.
Bug:
72041926
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I44f324297b63910d19d60bd7462e9aee8d8a4f3e
Mihai Popa [Thu, 15 Feb 2018 12:06:59 +0000 (12:06 +0000)]
[Magnifier-21] Rate-limit drawings to renderer
Previously, we would make a renderer draw whenever a pixel copy
completes. Because of this happening more than once per view frame,
magnifier frames were being dropped or queued up and displayed later,
which was consequently leading to the magnifier movement getting out of
sync with the updates to its content.
This CL changes the magnifier to be rendered from a draw job post'd to
the UI thread queue. This way, multiple magnifier updates (the ones
already pending in the UI thread queue when the draw job is added) are
batched together in a single draw, naturally rate-limiting the draws we
send to the magnifier renderer by the number of frames of the magnified
view - this only holds when the user of the magnifier sends updates as a
result of user interaction or when the magnified view is drawn.
Also, previously the pixel copy finished events were post'd to the UI
thread. Since they were not post'd as async messages, they would have to
wait at frame barriers before being executed. This CL creates a
dedicated thread for them to be post'd, to avoid this from happening.
Bug:
72041926
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I89563a341a74e958f903eff2d470c6c33fb203ef
TreeHugger Robot [Wed, 21 Feb 2018 18:13:48 +0000 (18:13 +0000)]
Merge "update intent to be toggle instead of show for hvac button"
Rohan Shah [Tue, 20 Feb 2018 19:27:22 +0000 (11:27 -0800)]
[QS] Add header tooltip for long press
Added some hooks in animator to pass along expanded/animating/collapsed
state in a more clear manner. Added tooltip view with the teaser text to
animate in at the top of the view (and fade out either when we start
animating or automatically after 5 seconds).
Added prefs for tracking how often tooltip is shown/hiding it based on
that number.
Updated dimensions for correct spacing (based on redlines).
Test: Visually
Bug:
72528203
Change-Id: I70e4654ed95057fac6d8dbb890d575c2a5d9f215
TreeHugger Robot [Wed, 21 Feb 2018 18:05:38 +0000 (18:05 +0000)]
Merge "ApplicationInfo: Copy compileSdkVersion* fields"