Commit Graph

9791 Commits

Author SHA1 Message Date
TreeHugger Robot
3795062f23 Merge "Protect usage data with OP_GET_USAGE_STATS." 2018-05-31 19:21:14 +00:00
Evan Rosky
ee4376a290 Merge "Fixed a bug where sometimes unhandled handler would consume all keys" into pi-dev am: 7ba4c2b254
am: 9bf11ede69

Change-Id: I3e1eb6884cedb86ec144e5ada09b4252ee266c96
2018-05-30 15:10:41 -07:00
Evan Rosky
9bf11ede69 Merge "Fixed a bug where sometimes unhandled handler would consume all keys" into pi-dev
am: 7ba4c2b254

Change-Id: Ia7fab42d36c8b58b05656cc2e5d1253449becf96
2018-05-30 15:02:51 -07:00
Evan Rosky
7ba4c2b254 Merge "Fixed a bug where sometimes unhandled handler would consume all keys" into pi-dev 2018-05-30 21:47:25 +00:00
TreeHugger Robot
bab6908c1f Merge "Statsd: ISOLATED_UID_CHANGED out of batterystats" 2018-05-30 11:36:27 +00:00
Selim Cinek
8b5c67b2ab Merge "Fixed the animations of Messaging Layout, leading to overlaps" into pi-dev am: d982210d89
am: 0fc5e52023

Change-Id: I601fde5804a921a9e634e342993402d4feb8031a
2018-05-29 19:05:58 -07:00
Selim Cinek
0fc5e52023 Merge "Fixed the animations of Messaging Layout, leading to overlaps" into pi-dev
am: d982210d89

Change-Id: I4b29f82656e3b3402f89cb5d66e71955287ac0b8
2018-05-29 18:59:25 -07:00
TreeHugger Robot
d982210d89 Merge "Fixed the animations of Messaging Layout, leading to overlaps" into pi-dev 2018-05-30 00:52:32 +00:00
Selim Cinek
f68af9b171 Fixed the animations of Messaging Layout, leading to overlaps
The animations could go wild at times, leading to overlapping
messages and ugly renderings. This improves the animations
overall and fixes those cases.

Test: add messages, observe animations
Fixes: 78114531
Fixes: 80409521
Change-Id: I6f21b87706ccc2e85f1edbd9489e4bf7e686d7d8
2018-05-29 15:29:48 -07:00
Daniel Sandler
ec4dab7c06 Merge "Remove direct-share target row animations and limit to one row." into pi-dev am: d8f3889b28
am: 3d7510c338

Change-Id: Ib249a9ed211757943238715cfd08c7d3e3feebbe
2018-05-29 10:13:27 -07:00
Daniel Sandler
3d7510c338 Merge "Remove direct-share target row animations and limit to one row." into pi-dev
am: d8f3889b28

Change-Id: I02947ea217d0ae98f792a63fd24542aed1567afb
2018-05-29 10:01:02 -07:00
Daniel Sandler
d8f3889b28 Merge "Remove direct-share target row animations and limit to one row." into pi-dev 2018-05-29 16:46:57 +00:00
Steven Wu
8f133c751f Merge "Fixes a NPE in search manager in slice CTS tests." into pi-dev am: d0545395df
am: 8d103afa4e

Change-Id: I147ea24394239b1161199801085680febc3daa84
2018-05-29 08:40:00 -07:00
Steven Wu
8d103afa4e Merge "Fixes a NPE in search manager in slice CTS tests." into pi-dev
am: d0545395df

Change-Id: I5411ba9cacf0fa4f9308f83d00677a23a95155da
2018-05-29 08:28:13 -07:00
TreeHugger Robot
d0545395df Merge "Fixes a NPE in search manager in slice CTS tests." into pi-dev 2018-05-29 15:18:04 +00:00
Dan Sandler
62aad00c6c Remove direct-share target row animations and limit to one row.
The animation---which was responsible for causing relayouts
that would in turn bind views, which involved package
manager roundtrips---would lock out interaction with the rest of
the share sheet for at least 400ms while the animation ran
(often much longer if services were slow to start or respond).

Now the main UI is never blocked, and direct share targets
can take as long as they like (up to 2sec) before appearing.

It's really fast now, basically.

Bug: 67622422
Bug: 63521992
Test: atest com.android.internal.app.ChooserActivityTest
Change-Id: I21826e282226f2b2ce6d3d1b5862dbfc449f5918
2018-05-29 13:58:10 +00:00
Evan Rosky
cd80e611ca Fixed a bug where sometimes unhandled handler would consume all keys
In a situation where a focused view consumed only the UP of a key
and the unhandled key manager would focus a listener, it wouldn't
drop focus unless the original key was pressed/released again.

This updates the record of captured keys before it can be consumed
in the view hierarchy.

Bug: 79993136
Test: Added a test for this to cts ViewTest#testUnhandledKeys
Change-Id: I5dfdcf16c5c41e9ad51cb62b385580c5493e8520
2018-05-25 16:18:57 -07:00
Bookatz
3c64886a46 Statsd: ISOLATED_UID_CHANGED out of batterystats
Moves the calls to StatsLog.write for ISOLATED_UID_CHANGED to the
calling functions, rather than batterystatsimpl.

Bug: 80308558
Test: none?
Change-Id: I6fe389c536b2a456907c8a87fae61e9c3434004d
2018-05-25 14:24:52 -07:00
Selim Cinek
e59e48e9c1 Merge "Fixed the behavior of group conversations when targeting P" into pi-dev am: c4e19963f4
am: 7712d46760

Change-Id: Ib07dc6354fb3a5fa5ff6171d1c656634465b29fa
2018-05-25 13:30:42 -07:00
Selim Cinek
7712d46760 Merge "Fixed the behavior of group conversations when targeting P" into pi-dev
am: c4e19963f4

Change-Id: I7e5feadc253816852528e06719e136a7cba51c49
2018-05-25 13:21:38 -07:00
Selim Cinek
c4e19963f4 Merge "Fixed the behavior of group conversations when targeting P" into pi-dev 2018-05-25 20:06:52 +00:00
Steven Wu
3aa2cf7541 Fixes a NPE in search manager in slice CTS tests.
Test: atest CtsSliceTestCases
Change-Id: I8d25dd5c216a4e2fa99b2a32bce689bee767dcfa
Fixes: 76211625
2018-05-25 15:20:10 -04:00
Selim Cinek
ce8794fbbc Fixed the behavior of group conversations when targeting P
Fixes an issue where the group conversation heuristic was still
applied even when the app is targeting P. We're now following
the isGroupConversation completely and only do the migration
for apps targeting < P.

Change-Id: I471d58e8a8f5e6270f0dcce8691d08a2bdd1c582
Fixes: 78450835
Test: add messaging notification, observe correct display
2018-05-25 09:16:38 -07:00
Andreas Gampe
97def7a097 Merge "Framework: Add API to get zygote PID" am: 1109e2333f am: 07578c786a
am: 4f11d5381e

Change-Id: I827a7df417597f17f78276052c5b17e064ebec7d
2018-05-24 17:47:57 -07:00
Hui Yu
8695c90def Merge "Calculate cellular radio value from modem.controller values." into pi-dev am: b82d3d7e74
am: 1fa3b11dfe

Change-Id: I53bfc386637e2cf8358703e1844160ad470b24cd
2018-05-24 17:23:11 -07:00
Hui Yu
1b04800f05 Merge "Merge "Fix per app GPS power usage." into pi-dev am: da4c54e9da" into pi-dev-plus-aosp
am: df34735c50

Change-Id: I7ca08692d661c56cedf3548c5d557472e7b16caf
2018-05-24 15:55:54 -07:00
Andreas Gampe
4f11d5381e Merge "Framework: Add API to get zygote PID" am: 1109e2333f
am: 07578c786a

Change-Id: Ibee53631caad0d6ce2108970598f5226d20a849d
2018-05-24 13:49:41 -07:00
Andreas Gampe
07578c786a Merge "Framework: Add API to get zygote PID"
am: 1109e2333f

Change-Id: I6f50efa61bcdec321cd71edae8a28881293c0398
2018-05-24 13:00:41 -07:00
TreeHugger Robot
b82d3d7e74 Merge "Calculate cellular radio value from modem.controller values." into pi-dev 2018-05-24 06:11:27 +00:00
Petr Cermak
e39d3a8cda Merge "Add FLAG_ACTIVITY_CLEAR_TOP to more details intent" into pi-dev am: 261a101ac2
am: 801f05120f

Change-Id: I1db7aaedd3267ccaaf150388503347d55b71178b
2018-05-23 19:38:34 -07:00
Christine Franks
547ce50f2b Merge "Initialize color mode if set" into pi-dev am: 5cb4117353
am: 08fa42f6d0

Change-Id: Ia3da8eb5b4da67595054a57e44363c345c142336
2018-05-23 18:54:51 -07:00
Hui Yu
39b29bc230 Calculate cellular radio value from modem.controller values.
Recently cellular radio related values {"radio.active", "radio.scanning",
"radio.on"} are removed from power_profile.xml, which causes inaccurate
radio power usage. We use following formula to calculate radio
values from modem.controller values.

radio.active = average of modem.controller.rx and modem.controller.tx values
radio.scanning = 0 (since this is already included in radio.on bin 0)
<array name="radio.on"> <!-- Strength 0 to BINS-1 -->
    <value>modem.controller.idle * 25 / 180 </value>   <!-- none -->
    <value>max(1, modem.controller.idle/256) </value>  <!-- poor -->
    <value>max(1, modem.controller.idle/256) </value>  <!-- moderate -->
    <value>max(1, modem.controller.idle/256) </value>  <!-- good -->
    <value>max(1, modem.controller.idle/256) </value>  <!-- great -->
 </array>

Bug: 79379255
Test:  use debugger to observe correct mPowerRadioOn, mPowerBins,
mPowerScan are calculated. "adb shell dumpsys batterystats", looking for
"radio=" in "Estimated power use" section.

Change-Id: Ic65a5c8a35a5b1f4ba05ddc150e29b00bc62689f
2018-05-24 00:45:02 +00:00
TreeHugger Robot
da4c54e9da Merge "Fix per app GPS power usage." into pi-dev 2018-05-24 00:22:22 +00:00
TreeHugger Robot
261a101ac2 Merge "Add FLAG_ACTIVITY_CLEAR_TOP to more details intent" into pi-dev 2018-05-23 21:52:40 +00:00
Jeff Sharkey
c36c3b9469 Protect usage data with OP_GET_USAGE_STATS.
APIs that return package usage data (such as DropBoxManager) must
ensure that callers hold both the PACKAGE_USAGE_STATS permission
and the OP_GET_USAGE_STATS app-op.

Bug: 78355661
Test: Search output directory for binaries that have READ_LOGS but not
USAGE_STATS and find none.

Change-Id: I85e3bad680bb510439d73c7db5cc50cdcb7bbb42
2018-05-23 14:17:32 -07:00
Lucas Dupin
dc35e6bf65 Merge "Fix RTL actions alignment" into pi-dev am: 4024376f04
am: 0abeff2daa

Change-Id: Ia47ee89fbe809f9258b59ef4480445afd80300bb
2018-05-23 12:43:51 -07:00
Christine Franks
5cb4117353 Merge "Initialize color mode if set" into pi-dev 2018-05-23 19:33:06 +00:00
Selim Cinek
d12de512d9 Merge "Fixes the collapsed view with images and different densities" into pi-dev am: 061d858828
am: 04655bca5b

Change-Id: I321e2028e31a5314a09d11be9dc35e42af23c962
2018-05-23 12:23:44 -07:00
Hui Yu
57f6932f29 Fix per app GPS power usage.
After GPS power profile changed from a single value "gps.on" to a
"gps.signalqualitybased" array, we use the time gps stays in each
signal level to calculate the average gps power usage.

Bug: 79379255
Test: adb shell dumpsys batterystats, looking for "gps=" in per app
power usage section.

Change-Id: I93d17d5bd25324cc9f36a7a5502b088a44184621
2018-05-23 11:46:50 -07:00
Christine Franks
cf388c2eec Initialize color mode if set
ColorDisplayService doesn't start listening for changes until the end
of user setup, and color mode was previously unintialized at service
setup, so restored settings were ignored.

Bug: 79591550
Test: atest FrameworksServicesTest:ColorDisplayServiceTest
Change-Id: I00baed15e1248572d3dfd8f251dee7dc5a355a6c
2018-05-23 11:23:47 -07:00
Petr Cermak
5c98d61f6c Add FLAG_ACTIVITY_CLEAR_TOP to more details intent
This ensures that the more details activity displays information about
the correct app.

Change-Id: I0c0f71fff32c2c1c5f4597c8a4eab90ec54409ca
Fixes: 80070434
Test: manually verified
2018-05-23 15:33:41 +01:00
TreeHugger Robot
4024376f04 Merge "Fix RTL actions alignment" into pi-dev 2018-05-23 02:09:19 +00:00
TreeHugger Robot
061d858828 Merge "Fixes the collapsed view with images and different densities" into pi-dev 2018-05-23 01:40:39 +00:00
Selim Cinek
02fde73dec Fixes the collapsed view with images and different densities
Previously the collapsed view could contain a message even before
the messaging imaging image and the display would look very distored.
This now makes sure that any groups with isolated messages always
are the last ones displayed.

Test: add group with image, adjust display settings to large
Change-Id: If9e69f72ce117687898dcaea591e61c6fb49ef46
Fixes: 78490082
2018-05-22 16:30:56 -07:00
Lucas Dupin
71e38a1cf6 Fix RTL actions alignment
Change-Id: I5a81e0386ef7d98ddbe6751cf3ca560f45b2e8ec
Fixes: 79532161
Test: manual
2018-05-22 15:22:06 -07:00
Zhi An Ng
7822ebbaf7 Merge "Disable direct share on low ram devices" into pi-dev am: 1f597da686
am: f5b7a6aef5

Change-Id: Ia6271766cbdea5bce4b92ebbe6f4e08a0a3d6b74
2018-05-22 11:39:39 -07:00
Zhi An Ng
1f597da686 Merge "Disable direct share on low ram devices" into pi-dev 2018-05-22 18:08:22 +00:00
Matthew Fritze
6a94ccdb36 Merge "Add utility methods to AmbientDisplayConfig" into pi-dev am: 758cfd63db
am: be16482ab0

Change-Id: Id43a4f0aa2c519013edd065185ec6cb6f688478c
2018-05-21 17:12:35 -07:00
TreeHugger Robot
758cfd63db Merge "Add utility methods to AmbientDisplayConfig" into pi-dev 2018-05-21 23:37:24 +00:00
Matthew Fritze
3461bb46d0 Add utility methods to AmbientDisplayConfig
The added utility methods are to enable increased
granularity in determinining the availability of gesture
settings dependant on Always on Display.

Bug: 79779562
Test: robotests
Change-Id: Ib54a867ca554d44ee4190706805fa8545aec9fa0
2018-05-21 13:12:36 -07:00