Commit Graph

7571 Commits

Author SHA1 Message Date
Philip P. Moltmann
ef98cead57 Merge "Log histogram of fsync times of sharedPreferences" 2017-03-08 17:13:28 +00:00
TreeHugger Robot
07be4d6781 Merge "Revert "Modify SurfaceView to use SurfaceFlinger child surfaces."" 2017-03-08 06:28:11 +00:00
Eugene Susla
915b42bd95 Merge "Record app<->device association to xml file" 2017-03-08 02:16:13 +00:00
Wonsik Kim
5aec7b9031 Revert "Modify SurfaceView to use SurfaceFlinger child surfaces."
This reverts commit cd4aeef880.

Bug: 36027342
Bug: 36015884
Change-Id: Ifd5b69caf64d65a8cd6570b7fe1fb6abe90e30b8
2017-03-08 01:52:19 +00:00
Amith Yamasani
a94c4b5b2e Merge "Collect background network data stats in BatteryStats" 2017-03-07 22:40:49 +00:00
Adrian Roos
805dfb836a Merge "Revert "AOD: Refactor always on configuration"" 2017-03-07 20:53:25 +00:00
Adrian Roos
c45944b680 Revert "AOD: Refactor always on configuration"
This reverts commit 28d26a821f.

Bug: 36027947
Change-Id: I3d4c2e58b753120ff668a4594f60692abc6a3426
2017-03-07 20:21:47 +00:00
Chris Wren
f33926abed remove the last of the legacy log helpers
All logs should now flow through LogMaker.

Bug: 34705522
Test: mmma -j20 platform_testing/tests/functional/notificationtests && adb install -r -g /data/app/NotificationFunctionalTests/NotificationFunctionalTests.apk && adb shell am instrument -w -e iterations 1 -e class com.android.notification.functional.NotificationInteractionTests com.android.notification.functional/android.support.test.runner.AndroidJUnitRunner && runtest --path platform_testing/libraries/metrics-helper/tests
Change-Id: I94732c84564e4cb25d77b63be8beb4aab4c38985
2017-03-07 10:49:07 -05:00
TreeHugger Robot
7cae77b606 Merge changes Iefcaf262,I9c397d83
* changes:
  Fixed a bug where the expand icon could show but nothing happens
  Improved expand accessibility experience
2017-03-07 05:44:54 +00:00
Winson Chung
f4284638c4 Merge "Update how PIP size is determined" 2017-03-07 05:01:23 +00:00
TreeHugger Robot
4540811b4d Merge "AOD: Refactor always on configuration" 2017-03-07 04:40:30 +00:00
Eugene Susla
47aafbe033 Record app<->device association to xml file
Bug: 30932767
Test: Ensure file not exists -> query associations -> ensure result is empty list
  Associate device -> cat xml file -> ensure record appears as extected
  Disassociate device -> cat xml file -> ensure record is no longer present
Change-Id: Ibe456a6d9292e05e2391f5138e43fdaa37f87e1b
2017-03-06 16:53:32 -08:00
Mady Mellor
a7f69740b5 Update how PIP size is determined
- minSize = 108dp
- defaultSmallestEdge = max(23% of screen width, minSize)
- the shortest edge of the PIP should be minSize and the rest scales
  according to the aspect ratio
- rather than a default PIP size, use default aspect ratio
- adding expand button
- fitting actions to spec

Fixes: 35358504
Test: manually used test app to try different aspect ratios
Change-Id: Ib6890fb7824889b9edeea7efb5b9771e64fc1514
Signed-off-by: Winson Chung <winsonc@google.com>
2017-03-06 16:39:11 -08:00
Philip P. Moltmann
e64a521084 Log histogram of fsync times of sharedPreferences
Example log:

Time required to fsync
/data/user/0/com.google.android.gms/shared_prefs/gms_sync_prefs_sync:ContactMetadata.xml:
[<1: 0, <2: 0, <4: 0, <8: 0, <16: 0, <32: 0, <64: 0, <128: 0, <256: 0,
<512: 0, <1024: 1, <2048: 0, <4096: 0, <8192: 0, <16384: 0, >=16384: 0]

Fixes: 30662828
Test: Looked at log
Change-Id: I6d585b107ae14e05ff1c77b0a0017de684226cba
2017-03-06 15:00:39 -08:00
Amith Yamasani
59fe841e60 Collect background network data stats in BatteryStats
Keep the original values the same, to avoid messing
up existing pipelines and stats, and keep additional
counters for background traffic stats for mobile and
wifi.

Bug: 35677165
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases
Change-Id: I5f5ac3d5b659fe3d0b13703e6666a8751c5d9469
2017-03-06 10:38:36 -08:00
Selim Cinek
c0ac4af13b Improved expand accessibility experience
The expand action is now on the notification itself
instead of the expand button, this way a user immediately
know if it is expanded.
It also improves the click feedback of the expand button

Test: add notifications, observe accessibility feedback
Change-Id: I9c397d839df52d5354d7ae16725ce3e595da19c7
Fixes: 32322410
Fixes: 35064589
2017-03-03 15:13:48 -08:00
TreeHugger Robot
c2c345d613 Merge "Fix crash in secondary user" 2017-03-03 23:10:32 +00:00
TreeHugger Robot
f1e54c9a1c Merge "Modify SurfaceView to use SurfaceFlinger child surfaces." 2017-03-03 22:45:24 +00:00
TreeHugger Robot
e096df0063 Merge "Adding support for passing arbitrary extras when requesting to pin a widget. Also defining an extra constant for widget preview which can be used by developers to provide a snapshot of the widget with the pin request" 2017-03-03 22:26:49 +00:00
Adrian Roos
28d26a821f AOD: Refactor always on configuration
Moves the AOD configuration helper to the framework such that it is
available outside SystemUI

Bug: 30876804
Change-Id: Ic35bd3c04d150fd3eb85d76db0043880b31a011f
2017-03-03 14:25:36 -08:00
Makoto Onuki
3303cd3f9a Fix crash in secondary user
Test: manual test
Change-Id: If406807094f216fd3cfd80db7c6498c954a3fc95
Fix: 35938801
2017-03-03 13:33:05 -08:00
Robert Carr
cd4aeef880 Modify SurfaceView to use SurfaceFlinger child surfaces.
Here we have SurfaceView bypass the WindowManager and speak
directly to SurfaceFlinger using child surfaces. We also
implement some logic in the WM to handle child surfaces
in various Surface replacement scenarios.

For those following along in the revert Saga, this
also includes the follow up CLs to the original CL.
- Surface inset calculation
- Animation fixes.

The error causing revert was a deferTransactionUntil(-1)...-1
cast to uint, defer transaction until MAX_UINT.

Bug: 28858420
Bug: 31518219
Bug: 34888808
Bug: 35588318
Bug: 35396882
Test: Existing tests still pass (except for the ones that don't and will be deleted).
Change-Id: Ib37236950a1dd3c4f9f4b58fd41ef9003c0557ef
2017-03-03 13:06:59 -08:00
Rob Carr
2ff633cbc3 Merge "Revert "Modify SurfaceView to use SurfaceFlinger child surfaces."" 2017-03-03 01:19:08 +00:00
Jeff Tinker
3896db1475 Revert "Modify SurfaceView to use SurfaceFlinger child surfaces."
This reverts commit 693f3432ae.

P0: When playing encrypted content the Fugu displays a blank screen.

Test: with topic "surfaceview-without-wm" reverted, encrypted playback
works on ToT oc-release. See repro steps in 35917840#12.

bug:35917840

Change-Id: I37fa1e427daff3a1c18ed1c92d035421d891f67c
2017-03-03 00:48:00 +00:00
Julia Reynolds
5a31193497 Allow translatable channel names.
Bug: 35336590
Test: runtest sytemui runtest systemui-notification, manual
Change-Id: I1e6ebbcc36cab22ab9b2dfde505a68513544ef52
2017-03-02 15:48:12 +00:00
Sunny Goyal
4ad6b57700 Adding support for passing arbitrary extras when requesting to pin a widget.
Also defining an extra constant for widget preview which can be used by
developers to provide a snapshot of the widget with the pin request

Bug: 35811129
Test: All exisiting tests passing
 for f in 1 2 3 4 5 6 7 8 9 10; do \
   adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest$f \
      -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner; \
        done;

 adb shell am instrument -e class com.android.server.appwidget.AppWidgetServiceImplTest \
   -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Id854bd28468a5bf0416ff1a1b19c44d850016f32
2017-03-01 16:58:21 -08:00
Christine Franks
69c2d1d752 Add QS tile for Night Display when first used
Bug: 30994985
Test: runtest systemui, and manual - verify that the quick settings
panel does not have a Night Display quick settings tile, then turn
Night Display on and verify that the tile has appeared. Multiuser
does NOT work and is tracked separately.

Change-Id: I997b4ca7952016fc703a6bb777e500f4eccce189
2017-03-01 20:35:06 +00:00
Geoffrey Pitsch
2cda00e29a Merge "Channels for Frameworks notifications" 2017-03-01 17:51:23 +00:00
Rob Carr
0e06ccf488 Merge "Modify SurfaceView to use SurfaceFlinger child surfaces." 2017-03-01 17:49:27 +00:00
Geoffrey Pitsch
af759c52ce Channels for Frameworks notifications
Adapts all notifications used by system services to use channels.
Channels are initialized by SystemServer after the NotificationService
has started.

Test: runtest systemui-notification
Change-Id: I25c45293b786adb57787aeab4c2613c9d7c89dab
2017-03-01 10:17:15 -05:00
TreeHugger Robot
5f9ba4e68e Merge "More accurate cascading submenu position" 2017-03-01 09:45:31 +00:00
TreeHugger Robot
a7aaae881c Merge "Delete ParcelableString, add StringParceledListSlice" 2017-02-28 22:09:06 +00:00
Robin Lee
abaa0695c5 Delete ParcelableString, add StringParceledListSlice
Both inherit from package private BaseParceledListSlice.

This is still bad, but it's not as bad. The existing code that uses
this can just do Foo.bar().getList() now instead of having to marshal
to and from an oddball type at either end as well.

In the longer term ParceledListSlice<> should be eliminated, but it's
not clear how far into the future that is going to happen.

Test: runtest -x services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java
Test: runtest -x core/tests/coretests/src/android/content/pm/ParceledListSliceTest.java
Change-Id: Ie69b96b5215d6e04990f6d31345772cdfee21d78
2017-02-28 18:07:08 +00:00
Robert Carr
693f3432ae Modify SurfaceView to use SurfaceFlinger child surfaces.
Here we have SurfaceView bypass the WindowManager and speak
directly to SurfaceFlinger using child surfaces. We also
implement some logic in the WM to handle child surfaces
in various Surface replacement scenarios.

Bug: 28858420
Bug: 31518219
Bug: 34888808
Bug: 35588318
Bug: 35396882
Test: Existing tests still pass (except for the ones that don't and will be deleted).
Change-Id: Icb7259365b51ebe8c7f6c7cd4f9ba29f9fce08a4
2017-02-28 09:39:07 -08:00
TreeHugger Robot
f561734e9c Merge "Fix crash in onRestoreInstanceState" 2017-02-28 03:15:33 +00:00
Vladislav Kaznacheev
41ac866961 More accurate cascading submenu position
The current submenu positioning logic is based on the assumption
that the parent menu was displayed at the exact offset which was
passed to the framework. The actual parent menu position
could have been adjusted to fit the screen.

Bug: 35767083

Test: manual
Change-Id: Ib72eb7808ebf894c526d2c44c6116ee72542fd03
2017-02-27 17:28:49 -08:00
Hakan Seyalioglu
5dbc819076 Fix crash in onRestoreInstanceState
bug: 34973084
Test: Manually verified crash stops

Change-Id: Ic28f98bc422d12f0db5c5921e89008eb2da1862d
2017-02-27 10:17:24 -08:00
Hakan Seyalioglu
58fc95dc57 Push chooser targets to the shortcut manager.
More info at go/direct-share-push

Test: Some basic testing currently in, more to be added.

Change-Id: I069f9779988c3eca2c4d8b83ec62501983854355
2017-02-27 09:39:10 -08:00
Alan Viverette
8e1a729645 Implicitly cast views obtained via View.findView methods
Removes all explicit casts from android.widget classes. Also @removes
methods on ListView that were overriding @hidden methods and should
never have been exposed as public API.

Bug: 24137209
Test: make
Change-Id: I89f0e51258560987b3942251fd249210f825ac2a
2017-02-27 11:06:20 -05:00
Jorim Jaggi
035ecae4bb Merge "Fix sharing bugreports from lockscreen" 2017-02-27 14:22:30 +00:00
TreeHugger Robot
68b41c9a1b Merge "Strip out some logics from ESP to FSP that DSP can use." 2017-02-25 04:17:33 +00:00
TreeHugger Robot
313fd5f345 Merge "Do not set tooltips on items in list-based menus." 2017-02-25 03:41:17 +00:00
Garfield Tan
75379db42d Strip out some logics from ESP to FSP that DSP can use.
Also notify MediaStore when move happens.

Test: build & smoke tested.
Change-Id: I01576765c0b25089a81b77ce0904abea8b24d485
2017-02-24 18:30:03 -08:00
Jason Monk
af57b3dfb0 Merge "Add colorError" 2017-02-24 23:29:29 +00:00
Jason Monk
58be7a675b Add colorError
Remove scatered references to old error color and replace them with
references to new colorError

Test: make & visual
Change-Id: Icca8cd790db351c3dfce2197f2046879d062a2c0
2017-02-24 14:57:27 -05:00
Mukesh Agrawal
4dcf740197 Merge "StateMachine: add getLogRecMaxSize()" am: 22e43471ed am: 0a2d5cf7db
am: 313604b48f

Change-Id: Ib8670d744b179a48dd3f9052baefc9ddbf260274
2017-02-24 19:41:04 +00:00
Mukesh Agrawal
0a2d5cf7db Merge "StateMachine: add getLogRecMaxSize()"
am: 22e43471ed

Change-Id: Iaab7955c0721e240487e8c842e994c90141d6013
2017-02-24 19:32:03 +00:00
Hakan Seyalioglu
21cb4cd496 Merge "Use the measured height in the ResolverDrawer" 2017-02-24 19:18:40 +00:00
Jorim Jaggi
f631ef769a Fix sharing bugreports from lockscreen
When launching ChooserActivity from lockscreen, we will start it
in stopped state because lockscreen is still showing, meaning that
the activity goes through start -> resume -> pause -> stop
immediately after it was launched, and will be later resumed once
Keyguard actually goes away.

However, ResolverActivity finished itself in onStop. We add a
private extra to change this behavior for sharing bugreports.

Test: Take bugreport, double tap on it on lockscreen
Test: com.android.shell.BugreportReceiverTest$1
Bug: 33009364
Change-Id: I973b2c71587950499b7c88b16af9cf1387795e17
2017-02-24 17:37:08 +00:00
Vladislav Kaznacheev
2a00f9807c Do not set tooltips on items in list-based menus.
The presence of a tooltip (specifically, long click detection
logic required by it) interferes with touch processing in
AbsListView.

Bug: 35726766
Test: android.cts.widget.PopupTest#testItemViewAttributes
Change-Id: Ida49c07e5f2e3e06f5994f2cc4aa10ef112376d0
2017-02-24 09:17:01 -08:00