OSDN Git Service

android-x86/frameworks-base.git
6 years agoExtreme battery saver: Disable launch boost
Makoto Onuki [Mon, 20 Nov 2017 23:20:16 +0000 (15:20 -0800)]
Extreme battery saver: Disable launch boost

Bug: 68769804
Test: manual test with debug log in nativeSendPowerHint().
Change-Id: I7ce61463215400379e0aa0d1782b2372495fe97e

6 years agoMerge "Close available secondary connections if schema changes"
TreeHugger Robot [Tue, 21 Nov 2017 19:56:41 +0000 (19:56 +0000)]
Merge "Close available secondary connections if schema changes"

6 years agoMerge "Extreme battery saver: Cap max cpu frequency."
Makoto Onuki [Tue, 21 Nov 2017 19:53:43 +0000 (19:53 +0000)]
Merge "Extreme battery saver: Cap max cpu frequency."

6 years agoMerge "PackageManager: Extend cmd interface feedback"
TreeHugger Robot [Tue, 21 Nov 2017 19:22:57 +0000 (19:22 +0000)]
Merge "PackageManager: Extend cmd interface feedback"

6 years agoMerge "Sync proto from google3"
TreeHugger Robot [Tue, 21 Nov 2017 19:16:21 +0000 (19:16 +0000)]
Merge "Sync proto from google3"

6 years agoMerge "Get PackageManager on demand in ActivityStarter."
Bryce Lee [Tue, 21 Nov 2017 18:41:50 +0000 (18:41 +0000)]
Merge "Get PackageManager on demand in ActivityStarter."

6 years agoMerge "Daily idle job for writing out brightness events."
Kenny Guy [Tue, 21 Nov 2017 17:57:39 +0000 (17:57 +0000)]
Merge "Daily idle job for writing out brightness events."

6 years agoPackageManager: Extend cmd interface feedback
Andreas Gampe [Tue, 21 Nov 2017 01:03:17 +0000 (17:03 -0800)]
PackageManager: Extend cmd interface feedback

When running cmd package compile -a, print the progress, as this
may be a long-running operation.

Test: m
Test: manual
Change-Id: Ic5c8123f972656b722da882d6a19d555b8c60832

6 years agoMerge "Revert "Log the CHANGE_WIFI_STATE App Op in WifiManager (client changes).""
Peter Visontay [Tue, 21 Nov 2017 17:10:18 +0000 (17:10 +0000)]
Merge "Revert "Log the CHANGE_WIFI_STATE App Op in WifiManager (client changes).""

6 years agoMerge "add list of supported views to RemoteViews docs Found by searching for all...
Scott Main [Tue, 21 Nov 2017 16:41:00 +0000 (16:41 +0000)]
Merge "add list of supported views to RemoteViews docs Found by searching for all framework views with the @RemoteViews annotation"

6 years agoMerge "Convert Slice type to string and add optional sub-type"
Jason Monk [Tue, 21 Nov 2017 16:05:39 +0000 (16:05 +0000)]
Merge "Convert Slice type to string and add optional sub-type"

6 years agoDaily idle job for writing out brightness events.
Kenny Guy [Tue, 14 Nov 2017 21:04:58 +0000 (21:04 +0000)]
Daily idle job for writing out brightness events.

Schedule a job for idle + charging to kick off
writing out brighness slider events.
While writing events discard ones outside our
time window.

Bug: 69405990
Test: Manual using adb to kick off job.
Test: runtest -c com.android.server.display.BrightnessTrackerTest frameworks-services
Change-Id: Ibc79d1c80ced26827d6f985bc70ae165df106a42

6 years agoMerge "Remove unnecessary RemoteException declaration"
Rubin Xu [Tue, 21 Nov 2017 14:30:28 +0000 (14:30 +0000)]
Merge "Remove unnecessary RemoteException declaration"

6 years agoMerge "Add SliceSpec to Slice API"
Jason Monk [Tue, 21 Nov 2017 13:50:09 +0000 (13:50 +0000)]
Merge "Add SliceSpec to Slice API"

6 years agoRemove unnecessary RemoteException declaration
Rubin Xu [Tue, 21 Nov 2017 12:05:06 +0000 (12:05 +0000)]
Remove unnecessary RemoteException declaration

Bug: 62264551
Test: compiles
Change-Id: I0b5149b233b4f68b06088cb8edac488b6d1d17dd

6 years agoRevert "Log the CHANGE_WIFI_STATE App Op in WifiManager (client changes)."
Peter Visontay [Tue, 21 Nov 2017 11:46:59 +0000 (11:46 +0000)]
Revert "Log the CHANGE_WIFI_STATE App Op in WifiManager (client changes)."

This reverts commit dfe291b72bea057a33f92ca156bb6ed699d18b86.

Change-Id: I82e25fb7e46a679d82d89fd5f56e4f334b593f69
Bug: 69498268

6 years agoMerge "Fix WebViewUpdateService test expectation to match reality."
Gustav Sennton [Tue, 21 Nov 2017 12:00:00 +0000 (12:00 +0000)]
Merge "Fix WebViewUpdateService test expectation to match reality."

6 years agoMerge "Call listeners whenever players are removed"
Sungsoo Lim [Tue, 21 Nov 2017 11:58:06 +0000 (11:58 +0000)]
Merge "Call listeners whenever players are removed"

6 years agoMerge "Define PacketWakeup pushed events for statds"
Hugo Benichi [Tue, 21 Nov 2017 05:58:09 +0000 (05:58 +0000)]
Merge "Define PacketWakeup pushed events for statds"

6 years agoMerge "Improve how parcels are recycled on AssisStructure custom parcelization."
TreeHugger Robot [Tue, 21 Nov 2017 03:34:43 +0000 (03:34 +0000)]
Merge "Improve how parcels are recycled on AssisStructure custom parcelization."

6 years agoMerge "String update: Internet -> internet"
TreeHugger Robot [Tue, 21 Nov 2017 03:34:02 +0000 (03:34 +0000)]
Merge "String update: Internet -> internet"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 21 Nov 2017 02:34:21 +0000 (02:34 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoadd list of supported views to RemoteViews docs
Scott Main [Tue, 21 Nov 2017 02:16:01 +0000 (18:16 -0800)]
add list of supported views to RemoteViews docs
Found by searching for all framework views with the @RemoteViews
annotation

Change-Id: I60e24676014a8ee2f5df0bac87349dad7d92081d

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 21 Nov 2017 02:20:57 +0000 (02:20 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoCall listeners whenever players are removed
Sungsoo Lim [Wed, 1 Nov 2017 04:45:59 +0000 (13:45 +0900)]
Call listeners whenever players are removed

AudioPlayerStateMonitor.onAudioPlayerStateChanged isn't called all the
time when players are removed. This change makes the listener be
called whenever players are removed.

Bug: 68733075
Test: manual tests for restoring media routes and handling media keys
Test: same result from Media CTS with and w/o this change
Change-Id: I7219d757a7001b83e03c8d04fc1cabb12638dafa

6 years agoMerge "Use serif fonts for serif fallback."
TreeHugger Robot [Tue, 21 Nov 2017 01:40:34 +0000 (01:40 +0000)]
Merge "Use serif fonts for serif fallback."

6 years agoMerge "1/ Duration anomaly tracker with alarm. 2/ Init anomaly from config based...
TreeHugger Robot [Tue, 21 Nov 2017 01:33:24 +0000 (01:33 +0000)]
Merge "1/ Duration anomaly tracker with alarm. 2/ Init anomaly from config based on the public language. 3/ Unit tests for anomaly detection in count/gauge producer. 4/ Revisit the duration tracker logic."

6 years agoMerge "WebView: misc docs changes for WebSettings"
TreeHugger Robot [Tue, 21 Nov 2017 01:27:15 +0000 (01:27 +0000)]
Merge "WebView: misc docs changes for WebSettings"

6 years agoMerge "Adding "Mobile data" and "Data usage" button in mobile settings." am: 06e314f6...
Malcolm Chen [Tue, 21 Nov 2017 01:09:47 +0000 (01:09 +0000)]
Merge "Adding "Mobile data" and "Data usage" button in mobile settings." am: 06e314f6cc  -s ours am: 959385c314  -s ours
am: f4a336808b  -s ours

Change-Id: Ie0761a8a549382d9d8a6781c20a6a23f511231fc

6 years agoDefine PacketWakeup pushed events for statds
Hugo Benichi [Tue, 14 Nov 2017 13:42:46 +0000 (22:42 +0900)]
Define PacketWakeup pushed events for statds

This patch pushes packet wakeup events collected by
NetdEventListenerService into the statds service.

Example logs from $ adb logcat -b stats
11-20 23:33:25.955   955   972 I [44]    : [10014,wlan0,34525,10:e:7e:26:3f:c1,2001:db8:400d:c0b::bc,2001:db8:4:fd00:a00a:dbc8:f5ba:4269,6,5228,49411]
11-20 23:37:05.809   955  1473 I [44]    : [10014,wlan0,2048,10:e:7e:26:3f:c1,192.168.0.142,192.168.0.39,6,443,45422]
11-20 23:42:09.233   955  1473 I [44]    : [10014,wlan0,2048,10:e:7e:26:3f:c1,192.168.12.238,192.168.0.39,6,443,40160]
11-20 23:55:28.162   955  1207 I [44]    : [10059,wlan0,34525,10:e:7e:26:3f:c1,2001:db8:4004:807::200a,2001:db8:4:fd00:a00a:dbc8:f5ba:4269,6,443,42492]
11-20 23:59:18.343   955  1888 I [44]    : [10059,wlan0,34525,10:e:7e:26:3f:c1,2001:db8:4004:807::200a,2001:db8:4:fd00:a00a:dbc8:f5ba:4269,6,443,42491]
11-21 00:00:17.952   955  3341 I [44]    : [10014,wlan0,34525,10:e:7e:26:3f:c1,2001:db8:400d:c0b::bc,2001:db8:4:fd00:a00a:dbc8:f5ba:4269,6,5228,49411]
11-21 00:13:05.552   955  1473 I [44]    : [-1,wlan0,34525,10:e:7e:26:3f:c1,2001:db8:4004:805::200a,2001:db8:4:fd00:a00a:dbc8:f5ba:4269,6,443,38098]
11-21 00:13:50.606   955  1207 I [44]    : [-1,wlan0,2048,10:e:7e:26:3f:c1,192.168.5.238,192.168.0.39,6,443,40802]

Bug: 28806131
Test: runtest frameworks-net
Change-Id: I5a3c76498a4b720f0d9308a65b5dd4b32377d0d1

6 years agoExtreme battery saver: Cap max cpu frequency.
Makoto Onuki [Mon, 20 Nov 2017 22:31:06 +0000 (14:31 -0800)]
Extreme battery saver: Cap max cpu frequency.

- Lower the max CPU frequency on battery saver.
- We have different sets of frequencies for screen-on and screen-off.
- The frequency configuration is from R.string.config_batterySaverDeviceSpecificConfig.

Bug: 68769804
Test: Manual test with settings put global battery_saver_device_specific_constants cpufreq-n=0:1324800/4:1497600,cpufreq-i=0:1900800/4:1958400
  using cat_repeat /sys/devices/system/cpu/cpu{0,4}/cpufreq/{cpuinfo_cur,scaling_max}_freq

Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/CpuFrequenciesTest.java
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/FileUpdaterTest.java
Change-Id: Ie1bb11c46c0d4730129fe9d82e86d8acebe0b560

6 years agoMerge "Adding "Mobile data" and "Data usage" button in mobile settings." am: 06e314f6...
Malcolm Chen [Tue, 21 Nov 2017 00:58:19 +0000 (00:58 +0000)]
Merge "Adding "Mobile data" and "Data usage" button in mobile settings." am: 06e314f6cc  -s ours
am: 959385c314  -s ours

Change-Id: Ie6d211fd5ebfeb5a191e1d96a7d3bb37ee9b7d23

6 years agoMerge "Adding "Mobile data" and "Data usage" button in mobile settings."
Malcolm Chen [Tue, 21 Nov 2017 00:48:30 +0000 (00:48 +0000)]
Merge "Adding "Mobile data" and "Data usage" button in mobile settings."
am: 06e314f6cc  -s ours

Change-Id: I3e7e4818688b8e046499513557825809772a1085

6 years agoMerge "Adding "Mobile data" and "Data usage" button in mobile settings."
Treehugger Robot [Tue, 21 Nov 2017 00:35:42 +0000 (00:35 +0000)]
Merge "Adding "Mobile data" and "Data usage" button in mobile settings."

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 21 Nov 2017 00:35:34 +0000 (16:35 -0800)]
Import translations. DO NOT MERGE

Change-Id: I111e2a8d4ec350a1167dfa07dfd0b764436194bd
Auto-generated-cl: translation import

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 21 Nov 2017 00:33:29 +0000 (16:33 -0800)]
Import translations. DO NOT MERGE

Change-Id: Id49a06e39b19dae6b1ce6e131d12d80bff0270b1
Auto-generated-cl: translation import

6 years agoMerge "Smooth scroll RecyclerView on a11y ACTION_SCROLL_*"
TreeHugger Robot [Tue, 21 Nov 2017 00:17:56 +0000 (00:17 +0000)]
Merge "Smooth scroll RecyclerView on a11y ACTION_SCROLL_*"

6 years agoMerge "Implement minikin::Run"
TreeHugger Robot [Tue, 21 Nov 2017 00:00:48 +0000 (00:00 +0000)]
Merge "Implement minikin::Run"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Mon, 20 Nov 2017 23:49:53 +0000 (23:49 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years ago1/ Duration anomaly tracker with alarm.
Yangster-mac [Fri, 10 Nov 2017 04:38:30 +0000 (20:38 -0800)]
1/ Duration anomaly tracker with alarm.
2/ Init anomaly from config based on the public language.
3/ Unit tests for anomaly detection in count/gauge producer.
4/ Revisit the duration tracker logic.

Test: unit test passed.
Change-Id: I2423c0e0f05b1e37626954de9e749303423963f2

6 years agoString update: Internet -> internet
Fan Zhang [Mon, 20 Nov 2017 23:12:27 +0000 (15:12 -0800)]
String update: Internet -> internet

Change-Id: I1d66c6acc32c35f378f3806b1bd3a32ad59f485c
Fixes: 69388824
Fixes: 69387604
Test: visual

6 years agoMerge "Fix freeform window resizing."
Tomasz Mikolajewski [Mon, 20 Nov 2017 23:13:58 +0000 (23:13 +0000)]
Merge "Fix freeform window resizing."

6 years agoMerge "Optimize Autofill Sanitizer to work as a Validator."
TreeHugger Robot [Mon, 20 Nov 2017 23:07:23 +0000 (23:07 +0000)]
Merge "Optimize Autofill Sanitizer to work as a Validator."

6 years agoUse serif fonts for serif fallback.
Seigo Nonaka [Wed, 5 Jul 2017 23:06:23 +0000 (16:06 -0700)]
Use serif fonts for serif fallback.

Bug: 31491668
Test: m -j1024 fontchain_lint
Change-Id: Ic1d356aa684f2284b0b0fc8de5d0e36380eb44bc

6 years agoMerge "Collect set of "changed" classes."
TreeHugger Robot [Mon, 20 Nov 2017 22:44:08 +0000 (22:44 +0000)]
Merge "Collect set of "changed" classes."

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev am: c7d9045105 -s ours
Bill Yi [Mon, 20 Nov 2017 22:34:18 +0000 (22:34 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev am: c7d9045105  -s ours
am: 651cb9ec20  -s ours

Change-Id: Ie35ab0514caa65270a0e53fbde8f5de3c0a920de

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
Bill Yi [Mon, 20 Nov 2017 22:27:19 +0000 (22:27 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev
am: c7d9045105  -s ours

Change-Id: I4e65a2c460b3bcfa2e258a2952677b16d89e4d85

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Mon, 20 Nov 2017 22:13:17 +0000 (22:13 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge changes from topic "new-z-order"
Rob Carr [Mon, 20 Nov 2017 22:02:18 +0000 (22:02 +0000)]
Merge changes from topic "new-z-order"

* changes:
  Reimplement DimLayer's using hierarchy.
  Re-implement Z-ordering based off SurfaceControl hierarchy.

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Mon, 20 Nov 2017 22:00:40 +0000 (22:00 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoImplement minikin::Run
Seigo Nonaka [Wed, 15 Nov 2017 20:06:24 +0000 (12:06 -0800)]
Implement minikin::Run

The minikin::Run is a callback for measuring text piece.
Implement minikin::Run instead of own Run.

Bug: 65024629
Test: N/A

Change-Id: Iec899dc9f91e1af38338dbfd2a8dc5f4cddd3649

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Mon, 20 Nov 2017 21:59:46 +0000 (21:59 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Use -Werror in frameworks/base" am: a29836ad04 am: 267a2a8c8a
Chih-hung Hsieh [Mon, 20 Nov 2017 21:51:42 +0000 (21:51 +0000)]
Merge "Use -Werror in frameworks/base" am: a29836ad04 am: 267a2a8c8a
am: af60d7f8b5

Change-Id: I9daf24758eab254650dc0ea8809c56d0d536a641

6 years agoMerge "Use -Werror in frameworks/base" am: a29836ad04
Chih-hung Hsieh [Mon, 20 Nov 2017 21:40:59 +0000 (21:40 +0000)]
Merge "Use -Werror in frameworks/base" am: a29836ad04
am: 267a2a8c8a

Change-Id: Ibfc63a029813ef952dc94f11baae7a96850e94d6

6 years agoMerge "Make SharedPreferences check with higher precision" am: 9ca31879b0 -s ours...
Philip P. Moltmann [Mon, 20 Nov 2017 21:40:55 +0000 (21:40 +0000)]
Merge "Make SharedPreferences check with higher precision" am: 9ca31879b0  -s ours am: 79d7319d7e  -s ours
am: 3e0c2b73cd  -s ours

Change-Id: I4e956376312317c868db00a3c15f7ec4a33bc8b6

6 years agoConvert Slice type to string and add optional sub-type
Jason Monk [Wed, 8 Nov 2017 02:52:10 +0000 (21:52 -0500)]
Convert Slice type to string and add optional sub-type

The type will control the serialization that the platform uses to
get the object from one place to another. The sub-type optionally
will specify a specific interpretation of this object.

Test: cts
Bug: 68378558
Change-Id: I78f41f6e5b6c91c510e4f968c32d96e9030d0e8a

6 years agoAdd SliceSpec to Slice API
Jason Monk [Wed, 8 Nov 2017 00:38:27 +0000 (19:38 -0500)]
Add SliceSpec to Slice API

SliceSpec will be used to handshake versions between Slice renderers
and Slice providers. The renderer will pass in info about supported
specs, and expect that the returned slice will be compatible.

Test: manual
Bug: 68378561
Change-Id: Id094ec3b6f682a3d84a2b992e1a8274212778970

6 years agoMerge "Use -Werror in frameworks/base"
Chih-hung Hsieh [Mon, 20 Nov 2017 21:33:00 +0000 (21:33 +0000)]
Merge "Use -Werror in frameworks/base"
am: a29836ad04

Change-Id: Ie76322acc3b471da60a033cfa2474c1039d70339

6 years agoMerge "Make SharedPreferences check with higher precision" am: 9ca31879b0 -s ours
Philip P. Moltmann [Mon, 20 Nov 2017 21:27:45 +0000 (21:27 +0000)]
Merge "Make SharedPreferences check with higher precision" am: 9ca31879b0  -s ours
am: 79d7319d7e  -s ours

Change-Id: Ifd52e21336a32ecd195e61336ac90777ba990925

6 years agoMerge "Make SharedPreferences check with higher precision"
Philip P. Moltmann [Mon, 20 Nov 2017 21:19:57 +0000 (21:19 +0000)]
Merge "Make SharedPreferences check with higher precision"
am: 9ca31879b0  -s ours

Change-Id: Ie7065c2281bdf6a97af69c2d758d4c2ff55956ae

6 years agoMerge "Use -Werror in frameworks/base"
Chih-hung Hsieh [Mon, 20 Nov 2017 21:18:52 +0000 (21:18 +0000)]
Merge "Use -Werror in frameworks/base"

6 years agoMerge "Remove IStatsCallback aidl from master"
TreeHugger Robot [Mon, 20 Nov 2017 21:16:19 +0000 (21:16 +0000)]
Merge "Remove IStatsCallback aidl from master"

6 years agoMerge "Make SharedPreferences check with higher precision"
Treehugger Robot [Mon, 20 Nov 2017 21:04:10 +0000 (21:04 +0000)]
Merge "Make SharedPreferences check with higher precision"

6 years agoMerge "Add output file and dependencies to fontchain_lint" am: b0a3e9dc83 am: 4db8be0bb3
Colin Cross [Mon, 20 Nov 2017 20:54:14 +0000 (20:54 +0000)]
Merge "Add output file and dependencies to fontchain_lint" am: b0a3e9dc83 am: 4db8be0bb3
am: c181b06021

Change-Id: Id001092f532e66c896dfb7baf83aa4e810d2cd6e

6 years agoCollect set of "changed" classes.
Jeff Sharkey [Mon, 13 Nov 2017 16:13:37 +0000 (09:13 -0700)]
Collect set of "changed" classes.

Generate hash of each class to quickly identify which classes have
been touched between two API files.

Test: manually verified
Bug: 69115817
Change-Id: I0be92ec8a4e9ef6ca603e70c8164e10a2eaf4161

6 years agoMerge "Add output file and dependencies to fontchain_lint" am: b0a3e9dc83
Colin Cross [Mon, 20 Nov 2017 20:44:02 +0000 (20:44 +0000)]
Merge "Add output file and dependencies to fontchain_lint" am: b0a3e9dc83
am: 4db8be0bb3

Change-Id: Ied0b30fca889b55dbf4d0c7075424cf6244178b3

6 years agoMerge "Add output file and dependencies to fontchain_lint"
Colin Cross [Mon, 20 Nov 2017 20:36:15 +0000 (20:36 +0000)]
Merge "Add output file and dependencies to fontchain_lint"
am: b0a3e9dc83

Change-Id: I835565031398b97c995260a0bfc9c8f1f50cef2e

6 years agoGet PackageManager on demand in ActivityStarter.
Bryce Lee [Mon, 20 Nov 2017 20:35:57 +0000 (12:35 -0800)]
Get PackageManager on demand in ActivityStarter.

PackageManager may not be ready by the time ActivityStarter is
created. As a result we cannot pass it in as an argument at
construction time. This changelist addresses this by adding an
accessor in ActivityManagerService, which fetches the service
on demand.

Change-Id: I117af29170cc70198072908da1d728d4e9317e46
Fixes: 69550166
Test: cts/tests/framework/base/activitymanager/util/run-test CtsVoiceSettingsTestCases android.voicesettings.cts.AirplaneModeTest

6 years agoMerge "Add output file and dependencies to fontchain_lint"
Treehugger Robot [Mon, 20 Nov 2017 20:24:26 +0000 (20:24 +0000)]
Merge "Add output file and dependencies to fontchain_lint"

6 years agoMerge "Update FontStyle location in minikin."
TreeHugger Robot [Mon, 20 Nov 2017 20:14:55 +0000 (20:14 +0000)]
Merge "Update FontStyle location in minikin."

6 years agoMerge "Hide unneccessary streams after config changes"
TreeHugger Robot [Mon, 20 Nov 2017 20:00:02 +0000 (20:00 +0000)]
Merge "Hide unneccessary streams after config changes"

6 years agoMerge "Update documentation for enhanced 4g lte preference"
Jordan Liu [Mon, 20 Nov 2017 19:56:37 +0000 (19:56 +0000)]
Merge "Update documentation for enhanced 4g lte preference"

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 20 Nov 2017 19:54:34 +0000 (11:54 -0800)]
Import translations. DO NOT MERGE

Change-Id: I497880c6698af4c109312185a9254ad7915c028e
Auto-generated-cl: translation import

6 years agoMerge "Remove SliceView (its moving to support)"
Jason Monk [Mon, 20 Nov 2017 19:54:01 +0000 (19:54 +0000)]
Merge "Remove SliceView (its moving to support)"

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 20 Nov 2017 19:51:02 +0000 (11:51 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ic8d1823c3ff2b69bbbe2d215cb8981dc97cbed41

6 years agoFix WebViewUpdateService test expectation to match reality.
Gustav Sennton [Mon, 20 Nov 2017 19:42:43 +0000 (19:42 +0000)]
Fix WebViewUpdateService test expectation to match reality.

Update testTargetSdkVersionValidity to use the same minimum sdk as the
actual code it's testing.

Bug: 69554263
Test: run com.android.server.webkit.WebViewUpdateServiceTest tests.

Change-Id: Ide04ede774072a10b84a9726bdff536bfef12712

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 20 Nov 2017 19:49:27 +0000 (11:49 -0800)]
Import translations. DO NOT MERGE

Change-Id: Iaf8e9270e690c8244a5061f3675694b94774ce8f
Auto-generated-cl: translation import

6 years agoMerge "Cleanup old idle variables"
TreeHugger Robot [Mon, 20 Nov 2017 19:46:35 +0000 (19:46 +0000)]
Merge "Cleanup old idle variables"

6 years agoMerge "Implement Cpu Freq Section"
Yi Jin [Mon, 20 Nov 2017 19:34:15 +0000 (19:34 +0000)]
Merge "Implement Cpu Freq Section"

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 20 Nov 2017 19:30:15 +0000 (11:30 -0800)]
Import translations. DO NOT MERGE

Change-Id: I40278b4e7b9cfe21c01c04c0fce9c816b761afd0
Auto-generated-cl: translation import

6 years agoMerge changes Id0ece760,I160b5a62,I8b7563d0
Arthur Ishiguro [Mon, 20 Nov 2017 19:25:18 +0000 (19:25 +0000)]
Merge changes Id0ece760,I160b5a62,I8b7563d0

* changes:
  Creates utility functions to convert between messages
  Removes setters from ContextHubInfo
  Replace JNI code with Java HIDL at ContextHubService

6 years agoUse -Werror in frameworks/base
Chih-Hung Hsieh [Mon, 20 Nov 2017 18:57:19 +0000 (10:57 -0800)]
Use -Werror in frameworks/base

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ibfe36a62d9a91b7df813b42e18dafaa58dc8b60d

6 years agoRemove IStatsCallback aidl from master
yro [Sun, 19 Nov 2017 22:56:37 +0000 (14:56 -0800)]
Remove IStatsCallback aidl from master

Test: statsd, statsd_test

Change-Id: Idd0fb945b62f3a139a0db07f1014a3c4a4e2f5f8

6 years agoMerge "Add read permissions to wm trace file"
TreeHugger Robot [Mon, 20 Nov 2017 18:29:13 +0000 (18:29 +0000)]
Merge "Add read permissions to wm trace file"

6 years agoMerge "Revert "Revert "Implement front-end APIs for generic vendor-specific parameter...
TreeHugger Robot [Mon, 20 Nov 2017 18:28:36 +0000 (18:28 +0000)]
Merge "Revert "Revert "Implement front-end APIs for generic vendor-specific parameters."""

6 years agoMake SharedPreferences check with higher precision
Philip P. Moltmann [Mon, 17 Jul 2017 19:41:53 +0000 (12:41 -0700)]
Make SharedPreferences check with higher precision

When two processes modify shared preferences we use the timestamp to
figure out if the file was changes underneath. Do this with the highest
precision available (instead of sec) as before.

It would be possible to make the check more reliable by writing a unique
id to the shared pref file, but this would make this check much more
expensive in the common case that nothing changed. Considering that this
has not been a problem and we don't officially give any guarantee for
this sounds like a good middle-ground.

(cherry picked from commit ffe74357aec5330098795000e131e8d581b8b274)

Merged-In: I04c96b6a946618d5599c26410c88d7cd654d31fb
Change-Id: I04c96b6a946618d5599c26410c88d7cd654d31fb
Test: SharedPreferencesTest
Fixes: 62949739

6 years agoRemove SliceView (its moving to support)
Jason Monk [Thu, 9 Nov 2017 23:48:00 +0000 (18:48 -0500)]
Remove SliceView (its moving to support)

Test: manual
Bug: 68378561
Change-Id: I33b5a709da39c83e047e9005a20afc0ebde7f85f

6 years agoCleanup old idle variables
Amith Yamasani [Mon, 20 Nov 2017 17:43:56 +0000 (09:43 -0800)]
Cleanup old idle variables

Switch to using the new bucket thresholds and
remove the previous idle thresholds.

Bug: 63527785
Test: atest AppStandbyControllerTests
      atest AppIdleHistoryTests

Change-Id: Ica3fd10fe172faa5b4e712b08273b77357fdae14

6 years agoReimplement DimLayer's using hierarchy.
Robert Carr [Tue, 3 Oct 2017 01:58:36 +0000 (18:58 -0700)]
Reimplement DimLayer's using hierarchy.

Still missing the fade in/out animation. See Dimmer.java for details.

Bug: 64815723
Bug: 64816140
Test: DimmerTests.java. Existing tests pass. go/wm-smoke. Docked resizing Dim layer works, various dialog dim layers work.
Change-Id: I19a03f1b6b602475410fcfb2c9728aae1d0bed85

6 years agoRe-implement Z-ordering based off SurfaceControl hierarchy.
Robert Carr [Tue, 5 Sep 2017 21:54:47 +0000 (14:54 -0700)]
Re-implement Z-ordering based off SurfaceControl hierarchy.

First steps in using the SurfaceControl hierarchy pervasively through
the WindowManager. For each level of the WindowContainer hierarchy
we instantiate a buffer-less SurfaceControl which is used to apply
constraints to all of it's children. For now we use full-screen surfaces
at every non-leaf level and so the only constraint we apply is Z-ordering.

Calculation of Z-ordering is done through the WindowContainer#assignLayers
pass and begins with DisplayContent. Changes are accumulated in-to a pending
transaction which is applied as part of prepareSurfaces (which now applies
to each level of the WindowContainer hierarchy rather than just windows).

Bug: 64815723
Test: Existing tests pass. go/wm-smoke. ZOrderTests.
Change-Id: Ib31bc3107c7fa398cf2ed72430fcb7596fad6fd5

6 years agoCreates utility functions to convert between messages
Arthur Ishiguro [Fri, 17 Nov 2017 18:02:17 +0000 (10:02 -0800)]
Creates utility functions to convert between messages

Will be needed to convert between client-facing and HIDL messages
to/from nanoapps.

Bug: 67734082
Test: make from root
Change-Id: Id0ece7600a653a0ede6d92d9ebbe8dfdc3489207

6 years agoRemoves setters from ContextHubInfo
Arthur Ishiguro [Tue, 14 Nov 2017 23:20:42 +0000 (15:20 -0800)]
Removes setters from ContextHubInfo

No longer needed after JNI code is removed.

Bug: 66965339
Test: Compile only
Change-Id: I160b5a621fd15dd8509ce779d5ff9b98c6395c94

6 years agoReplace JNI code with Java HIDL at ContextHubService
Arthur Ishiguro [Wed, 1 Nov 2017 17:52:28 +0000 (10:52 -0700)]
Replace JNI code with Java HIDL at ContextHubService

This CL does the following:
- Use Java HIDL to communicate with the Context Hub
- Reimplement required JNI functionality in Java

Bug: 67734082
Test: Flash device and run CHQTS, verify pass on walleye-userdebug
Change-Id: I8b7563d04e9e3a22295b81af283fd3168e179957

6 years agoMerge "Provide more information to the assistant"
TreeHugger Robot [Mon, 20 Nov 2017 15:38:46 +0000 (15:38 +0000)]
Merge "Provide more information to the assistant"

6 years agoHide unneccessary streams after config changes
Julia Reynolds [Thu, 16 Nov 2017 14:29:55 +0000 (09:29 -0500)]
Hide unneccessary streams after config changes

Change-Id: I0aad8cafb47076506b0c5bf2bd5044667fe19135
Fixes: 69289893
Test: manual

6 years agoProvide more information to the assistant
Julia Reynolds [Tue, 14 Nov 2017 14:51:01 +0000 (09:51 -0500)]
Provide more information to the assistant

About user interactions with notifications.

Bug: 63095540
Test: runtest systemui, manual
Change-Id: I58cd45333cd084adbf2505c348d6b4e208959135

6 years agoMerge "[Magnifier - 8] SurfaceView support and invalidate revival"
Andrei Stingaceanu [Mon, 20 Nov 2017 13:34:46 +0000 (13:34 +0000)]
Merge "[Magnifier - 8] SurfaceView support and invalidate revival"

6 years ago[Magnifier - 8] SurfaceView support and invalidate revival
Andrei Stingaceanu [Thu, 2 Nov 2017 13:54:10 +0000 (13:54 +0000)]
[Magnifier - 8] SurfaceView support and invalidate revival

It turns out that the auto-invalidate at a defined time,
practically polling, is not a safe way to update content
and also has more chances of producing poor quality so
temporary bring back update() and keep it hidden as the
plan is to have direct update listeners from the graphics
stack in the near future. This solution works well for
TextView, WebView and Chrome.

Added support for SurfaceView (used by Chrome).

Editor adds an onDrawListener to the TextView's tree observer
which posts to Magnifier update. This makes sure the
absolutely everytime anything changes in the view hierarchy
update() will be posted (after the actual drawing).

Bug: 63531115
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: manual test that shows the magnifier working
Change-Id: If1b858d793c7cc338d23a850051022768a3f1e40

6 years agoLog SHA256 of secondary dex files during reconcile.
Alan Stokes [Mon, 16 Oct 2017 11:31:44 +0000 (12:31 +0100)]
Log SHA256 of secondary dex files during reconcile.

Bug: 63927552
Test: Exercised manually. Added unit test for DexManager.

Change-Id: Ic8e9ea4da8eb5c22fbe088a59a406e36bc2eb6fa

6 years agoFix freeform window resizing.
Tomasz Mikolajewski [Mon, 20 Nov 2017 07:11:33 +0000 (16:11 +0900)]
Fix freeform window resizing.

Freeform resizing would not result in DRAG_RESIZE_MODE_FREEFORM
set, and as a result would not kick in the backdrop frame renderer.

Bug: None
Test: Backdrop renderer kicks in.
Change-Id: If962ac152186944d9643343441cf5523b832cbe8