Commit Graph

380683 Commits

Author SHA1 Message Date
TreeHugger Robot
b5ec0b8053 Merge "Add SHOW_SOURCE_PUSH_TO_TALK to indicate that the interaction service was invoked by a hardware button." 2018-07-02 23:42:54 +00:00
Treehugger Robot
674fd12278 Merge "Add in-app tracepoints to TouchLatency app." 2018-07-02 23:39:21 +00:00
Nathan Harold
53208af20d Merge "Update Docstrings for CellSignalStrengthLte" am: 5e8a5d4b79 am: 0571b04c3a
am: 275d5a5cb0

Change-Id: I24a3ea3ee0114247b97812149740c8bd0ea3d954
2018-07-02 16:34:09 -07:00
TreeHugger Robot
878aa91106 Merge "wifi.proto: Add metrics for failed SAR sensor reg" 2018-07-02 23:19:22 +00:00
Nathan Harold
275d5a5cb0 Merge "Update Docstrings for CellSignalStrengthLte" am: 5e8a5d4b79
am: 0571b04c3a

Change-Id: I52a3de4f89b3a59cb4f33263cb5838d37fb0a7fb
2018-07-02 16:17:52 -07:00
Fyodor Kupolov
b270fc2201 Use sharedUserId as package name if there are collisions
Per-UID Summary (cpu_time, % of total cpu_time, call_count, exception_count, package/uid):
    13095032  43%    44663   0 shared:com.package.shareduid/u0a35
     8872156  29%     5831   0 com.package2/u0a75
     2379684   8%     1549   0 com.package3/u0a23

Test: manual dumpsys binder_calls_stats
Test: BinderCallsStatsTest + BinderCallsStatsPerfTest
Bug: 75318418
Change-Id: I9b122252d8f8d3d2297bc71d46d5944c4402fd5e
2018-07-02 16:12:58 -07:00
Nathan Harold
0571b04c3a Merge "Update Docstrings for CellSignalStrengthLte"
am: 5e8a5d4b79

Change-Id: Id41fb2ccdeaf43fcc62193c78c93f4ca765d2fa2
2018-07-02 16:07:37 -07:00
Lucas Dupin
5a4f92c209 Hide windows even when AOD is off
AOD might be off but it can become visible when the user double taps
or lifts the phone. We should prepare the window manager for these
cases.

Test: turn AOD on and off, set screen lock to 'None', double tap display
Bug: 110938816
Change-Id: I6f2db86579d5b86a86fcd1a4515ee77c78460c9d
2018-07-02 23:06:49 +00:00
Lucas Dupin
c29b146daf Hide windows even when AOD is off
AOD might be off but it can become visible when the user double taps
or lifts the phone. We should prepare the window manager for these
cases.

Test: turn AOD on and off, set screen lock to 'None', double tap display
Fixes: 110938816
Change-Id: I6f2db86579d5b86a86fcd1a4515ee77c78460c9d
Merged-In: I6f2db86579d5b86a86fcd1a4515ee77c78460c9d
2018-07-02 23:05:44 +00:00
Ryan Mitchell
aa4ea49987 Merge "AAPT2: Encode 4-byte strings in Modified UTF-8" 2018-07-02 22:48:46 +00:00
Jorim Jaggi
1f079b4f97 Merge "Only use simple rects for cutout region" into pi-dev am: 4764921dcc
am: b7dc212a61

Change-Id: I2af32c72ea859ff908fa30b5de1e722a99b28479
2018-07-02 14:58:32 -07:00
Jorim Jaggi
b7dc212a61 Merge "Only use simple rects for cutout region" into pi-dev
am: 4764921dcc

Change-Id: Icfb41008189d5c01f90afd4992428433043b4c4e
2018-07-02 14:47:09 -07:00
Carmen Jackson
286cfb1bba Add in-app tracepoints to TouchLatency app.
Test: Traced the TouchLatency app and saw the added tracepoints.
Change-Id: I72ab8f88731e635f98831f045dddd086a05acc3b
2018-07-02 14:40:23 -07:00
Lucas Dupin
a11298be5d Decrease delay to improve battery life
Arbitrary delays were introduced a while ago to deal with device
specific issues but these delays ended up affecting battery life
significantly. Although removing them completely isn't possible,
they can be reduced to more conservative values.

Test: cover prox. sensor multiple times with multiple durations
Fixes: 110902271
Change-Id: I2731fc7a5414f796e96a6c97959c395b10c32faa
2018-07-02 21:38:10 +00:00
Jorim Jaggi
4764921dcc Merge "Only use simple rects for cutout region" into pi-dev 2018-07-02 21:35:50 +00:00
Vishnu Nair
c69cd4480e Bugreport: Fix SystemUI service from being dumped twice 1/2
Bug: 110490179
Fix: 110490179

Test: Manual test dumpsys activity
  adb shell dumpsys activity service all-platform-non-critical
  adb shell dumpsys activity service all-platform
  adb shell dumpsys activity service
  Take bugreport and check contents

Test: atest FrameworksCoreTests:DumpUtilsTest

Change-Id: I9173d3fa0cc3aaf42e3ab03e7e2892cf4188b13b
2018-07-02 14:29:31 -07:00
Ryan Mitchell
d86ea58bdd AAPT2: Encode 4-byte strings in Modified UTF-8
Codepoints that are encoded to 4 bytes in UTF-8 are not allowed in
Modified UTF-8. They instead should be encoded as surrogate pairs in the
same way that CESU-8 allows for surrogate pairs. This will also cause 4
byte UTF-8 codes to be represented in 6 bytes.

Bug: 37140916
Test: aapt2_tests
Change-Id: I155dc24f166139d1d36a16bac088dcfcd59eb321
2018-07-02 14:14:33 -07:00
Andrew Zeng
0c40911ee6 Merge "Add flag to disable sticky behaviour for battery saver." 2018-07-02 21:14:03 +00:00
TreeHugger Robot
51516d70aa Merge "Fix: Pattern/Password should not be capitalized (master branch)" 2018-07-02 21:10:45 +00:00
Colin Cross
3669711d87 Include annotations in metalava stubs
Pass --include-annotation-classes tools/metalava/stub-annotations
to metalava so that the stubs end up in the final jar.  They will be
post-processed with metalava --rewrite-annotations to avoid affecting
the public SDK.

Bug: 110532131
Test: m out/target/common/obj/JAVA_LIBRARIES/metalava_android_stubs_current_intermediates/classes.jar
Change-Id: Icb9268a72aa7de82ed6ad88aef9ac813796f9bf9
Merged-In: I116643925a3a9594e8590c3714e93d0fb0ac372f
2018-07-02 14:06:21 -07:00
Winson Chung
8f54a7c515 Merge changes Ibae2de51,I1d6718d9
* changes:
  Allow share/edit screenshot actions from lockscreen
  Prevent clobbering of activity options bundle when merging
2018-07-02 21:04:39 +00:00
Lei Yu
333c175985 Add active admin app to power white list.
So user can't restrict it in settings app.

Bug: 110337989
Test: RunSettingsLibTests
Change-Id: Ie32dc8b2204369c9ca8f704436d5c988f76481ae
2018-07-02 20:59:59 +00:00
Nathan Harold
5e8a5d4b79 Merge "Update Docstrings for CellSignalStrengthLte" 2018-07-02 20:40:55 +00:00
TreeHugger Robot
ca48d74547 Merge "Make getDimension's Javadoc say it returns px." 2018-07-02 20:29:29 +00:00
Aaron Heuckroth
b4d6aa7056 Add more information to notifications dump.
Test: Manual.
Change-Id: Idee77eae3d3a5f3631820c8292e78857c3807256
Fixes: 77551055
2018-07-02 15:39:54 -04:00
TreeHugger Robot
6160cf72c6 Merge "Fix QS peek animation from ACTION_DOWN" 2018-07-02 19:36:30 +00:00
TreeHugger Robot
f574d538c1 Merge "Add a package declaration to RulesState" 2018-07-02 19:28:22 +00:00
Lucas Dupin
baeabf8e05 [automerger skipped] Merge "Move charging indication vertically on time tick" into pi-dev am: 5baaf461a6
am: a9cd9d475b  -s ours

Change-Id: I740c9a64e364ad33bdbd5622a845b0d14c5777d5
2018-07-02 12:01:04 -07:00
Lucas Dupin
a9cd9d475b Merge "Move charging indication vertically on time tick" into pi-dev
am: 5baaf461a6

Change-Id: I455c53bf85fd7fcfe87daef6d76888a37fecb015
2018-07-02 11:50:37 -07:00
TreeHugger Robot
5baaf461a6 Merge "Move charging indication vertically on time tick" into pi-dev 2018-07-02 18:39:55 +00:00
Makoto Onuki
de869af4b7 Merge "Fix BatterySaverStateMachineTest" 2018-07-02 18:32:09 +00:00
Yohei Yukawa
1893bd162a Stop restoring spell checker settings
This CL logically reverts the following CL (and some subsequent
changes) to stop restoring spell checker related secure settings.

 * Ib8382f0296f0726b64494d3b1fd8237e13adb540
   06cbaddb87

Reason for revert:
Although we believe it would be great if we can seamlessly migrate to
a new phone with keeping spell checker related settings, there still
remain several tricky scenarios.

 * We are not ready to distinguish whether a certain spell checker
   related setting was explicitly set by the user or programmatically
   set by some components in the previoud device.  This includes the
   case where TextServicesManagerService (TSMS) itself automatically
   updates those settings e.g. by selecting a default spell checker
   service from the pre-installed ones.  We are not sure if trying to
   migrate such an auto-selected setting to a new device actually
   makes sense, especially if it happens without any user
   confirmation.

 * We have a strict rule about what spell checker service can be
   selected automatically, and the rule has been that only
   pre-installed spell checker services can be automatically selected
   by the system, unless some system components that have
   WRITE_SECURE_SETTINGS permission overrides it. Mechanically
   selecting a spell checker service just because it was enabled in
   the previous device may not fit this model well.

 * Unlike IMEs, currently the Android OS allows only one spell checker
   service to be enabled.  This means that if the new device doesn't
   have the corresponding spell checker service, the user will lose
   spell checking functionality even if the device pre-installs
   functional spell checker service.  This problem is hard to notice
   because unlike IMEs spell checker service does not have its own UI.

 * Also unlike IMEs, spell checker related secure settings are still
   hidden and not published as public APIs.  Those settings do not
   have no official compatibility story across devices yet.

 * It is also possible that the default spell checker service in the
   previous device is not published to all the devices thus there is
   no way for the the new device to install it.

This CL therefore excludes spell checker related settings from
backup/restore, as a short-term answer to above scenarios until we
come up with better ideas to deal nicely with them.

Bug: 110367605
Test: atest FrameworksCoreTests:android.provider.SettingsBackupTest
Test: atest FrameworksCoreTests:android.provider.SettingsValidatorsTest
Change-Id: I8e4a0d4b3b758a84d5a075fa52851b1e8dd707eb
2018-07-02 11:31:42 -07:00
Andrew Zeng
190c06736a Keep track of all bound services.
When a service is disconnected mServices will be updated
to no longer contain the service binding. In order to
prevent an accidental double-bind for services bound directly
in ManagedServices due to not detecting a service is still bound,
make sure that if the service is still bound that we don't rebind.

Bug: 77821801
Test: atest FrameworksUiServicesTests:ManagedServicesTest
Test: manual - check service bound after force-stop/app update
Test: manual - check service not re-bound after disabling a component

Change-Id: Id600357ad0b84f157cf9666680bf53b7fe125d96
(cherry picked from commit d814134e9ee652de5b54c7c20c8eb3c1a8f590df)
2018-07-02 18:19:06 +00:00
TreeHugger Robot
24158ba81b Merge "Make sure keys get flushed when connection falls apart." 2018-07-02 17:58:20 +00:00
Lucas Dupin
8c556d72f1 Move charging indication vertically on time tick
Before, a new translation was only calculated when the device enters
AOD, and then, during time tick, we would only move it 5px wich isn't
enough.
Now, the translation varies 5dps vertically on every time tick.

Fixes: 110888643
Test: take screenshots for N minutes and compare them
Change-Id: Ia3f239d669b83aad0d97d8d7a7f7374f4890777d
Merged-In: Ia3f239d669b83aad0d97d8d7a7f7374f4890777d
2018-07-02 17:43:08 +00:00
TreeHugger Robot
bb8d5e51a4 Merge "Move charging indication vertically on time tick" 2018-07-02 17:37:29 +00:00
Winson Chung
a06403d52e Skip animation start logic if canceled
Bug: 110255768
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerActivityVisibilityTests#testHomeVisibleOnActivityTaskPinned
Change-Id: Ifb3e4d1f44b8df28795d9b2c98a714a6c2b08860
Signed-off-by: Winson Chung <winsonc@google.com>
2018-07-02 10:36:28 -07:00
TreeHugger Robot
c0b67c9385 Merge "Add more data (fg services, associations) to procstats." 2018-07-02 17:30:22 +00:00
Lucas Dupin
d35502fb5f Cross fade wake-up from pulsing
Activate WM animation and remove scrims when
fading keyguard from the pulsing state to prettify
animation on new devices.

Test: wake up with fp from pulsing to launcher
Test: wake up with fp from pulsing to app
Fixes: 110824274
Change-Id: I0446f26939a2e25cd50d0d39f3fc703019196f7a
2018-07-02 10:26:45 -07:00
TreeHugger Robot
1a81a7457b Merge "Allow 0sp text size in xml for TextView" 2018-07-02 17:02:20 +00:00
Makoto Onuki
8225c85200 Merge "Improve "dumpsys activity lastanr-traces"." 2018-07-02 16:24:38 +00:00
Jorim Jaggi
606405180f Only use simple rects for cutout region
Otherwise there is a big performance hit in all kinds of
situations where we do operations with the region, specifically
when:

- updating input windows
- insetting the cutout during layout
- touch dispatch

Test: DisplayCutoutTest, WmDisplayCutoutTest
Bug: 110464019
Bug: 110452325
Change-Id: I94a25c3794ecd33b8b7204ca308ac91623498f13
2018-07-02 17:58:10 +02:00
Olivier Gaillard
11965ede90 Track max CPU and latency of binder calls
Test: unit tested

Change-Id: I1429e8c34e9cb0572975fda3ec18e85d6caf3cad
2018-07-02 15:50:57 +01:00
TreeHugger Robot
19bbcfff1e Merge "Only play in-call notification if ringer is normal" 2018-07-02 14:31:31 +00:00
TreeHugger Robot
aefe326db0 Merge "Add a debug property to enable Skia systrace" 2018-07-02 14:21:24 +00:00
Sehee Park
817c832eb4 Merge "Modify catch when addInterfaceToLocalNetwork() is called." am: ccd6a0f6c2 am: c7b925063f
am: 48396e8616

Change-Id: Idb98c57e8e1791eefdf47f9127696211a4ff3a99
2018-07-02 06:55:33 -07:00
Sehee Park
48396e8616 Merge "Modify catch when addInterfaceToLocalNetwork() is called." am: ccd6a0f6c2
am: c7b925063f

Change-Id: Ia160a4cf42e427575a70810d7157e092e47b5992
2018-07-02 06:46:09 -07:00
Stan Iliev
02daab6ff2 Add a debug property to enable Skia systrace
Add a "debug.hwui.skia_atrace_enabled" property that allows to
record a systrace with skia drawing ops. App need to be restarted
after setting the new propety to true.

Test: collected skia trace with systemui
Change-Id: I2d1c5911714bfc911894f633ec2df2f6bb953b48
2018-07-02 13:45:53 +00:00
Sehee Park
c7b925063f Merge "Modify catch when addInterfaceToLocalNetwork() is called."
am: ccd6a0f6c2

Change-Id: I9842ae51d3bb4665f5cb24b7685a05de2df05097
2018-07-02 06:23:35 -07:00
Mihai Popa
f03b7543c7 Allow 0sp text size in xml for TextView
Before this CL, when TextView's textSize attribute was set to 0sp in
XML, the text would still be visible on the screen, as the actual
textSize set was non zero. On the other hand, if the text size was set
to 0sp programmatically, the text would not be visible. This was a P
regression, as on O the text would be invisible in both cases.

This CL fixes the attribute reading stage in TextView, allowing the
application of a 0 text size on the view.

Bug: 110251171
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I3798361e182f45a67cd0a69d40e09e559375aa20
2018-07-02 12:58:22 +00:00