Commit Graph

309172 Commits

Author SHA1 Message Date
Andy Hung
763aeb5b94 Merge "AudioTrack: Enable deep buffer under certain conditions" 2017-02-04 01:43:13 +00:00
TreeHugger Robot
cc137da39d Merge "Rename isCallerSystemUid()." 2017-02-04 01:34:10 +00:00
TreeHugger Robot
f6f095a9c1 Merge "Removed android.R.attr#onTopLauncher" 2017-02-04 01:31:53 +00:00
TreeHugger Robot
92f77f0f8b Merge "SystemUI: Add LightBarController dump" 2017-02-04 01:29:36 +00:00
TreeHugger Robot
de9c63b8ae Merge "Update Account Discovery API." 2017-02-04 01:18:21 +00:00
Selim Cinek
245090f060 Fixed a regression where custom notification where unreadable
Because custom notifications don't have their background
Color reapplied, we need to ensure that the color is saved.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationCustomViewWrapperTest.java
Change-Id: I309097ef8abe18706479d64c6048521f941a26f5
Fixes: 34861088
2017-02-03 17:14:46 -08:00
Dianne Hackborn
ad0d7b45e1 Merge "Implement issue #30977956: Enable Instrumentation tests for multi-process apps" 2017-02-04 01:10:24 +00:00
Adrian Roos
48a18ad206 Merge "StatusBar: Catch OOM caused by third-party icons" 2017-02-04 01:00:40 +00:00
TreeHugger Robot
f280f6ae97 Merge "TIF: use @StringDef annotations in TvContract" 2017-02-04 01:00:06 +00:00
Romain Guy
9fe7e16399 Gradients are now an absurd Chimera
As of O, gradients are interpolated in linear space. This unfortunately
affects applications that were expecting a certain behavior for the
alpha ramp. This change attempts to get the best of both world: better
color interpolation (in linear space) and the old alpha interpolation
(in gamma space). This is achieved by applying the electro-optical
transfer function to the alpha channel; an idea so wrong it would
make any graphics programmer worth his salt weep in disgust.

As abhorrent this idea might be to me, it also acts as a faint
beacon of hope admist the unfathomable darkness that is Android's
color management.

And if you allow me another misguided metaphor, this change
represents the flotsam I can cling onto in the hope to one day
reach the bountiful shores of linear blending and accurate color
management. Would this change not fix the distress caused by its
predecessors, I will have no choice but bow my head in shame until
the day I can finally devise an infallible plan.

Bug: 33010587
Test: CtsUiRenderingTestCases
Change-Id: I5397fefd7944413f2c820e613a5cba50579d4dd5
2017-02-03 16:56:46 -08:00
Jason Monk
e750748404 Add better method test handlers/loopers in sysui
Test: runtest systemui
Change-Id: I94014afab12d385f38a9d1d4a8595bb37cfe0688
2017-02-03 19:42:10 -05:00
Ricardo Loo
232c4900ac docs: Update gluUnProject parameter description.
Adding missing variable in the output vector.

Originally reported in
http://code.google.com/p/android/issues/detail?id=25143

Change-Id: I91d9ce7e53a9d9cdd890899a0edd49830d533b9b

Bug: 5991013
2017-02-03 18:40:27 -06:00
Chris Craik
f6a409067c Add simple gradient and colormatrix benchmarks
Bug: 34809371
Test: manual

Change-Id: I3af38c835c43f7c4a1d2976c7263d37dd1dc7084
2017-02-03 16:25:10 -08:00
Doris Ling
864b7f41bb Remove category key SYSTEM_INPUT
Since we are combining Language & regions and Input and gestures in
System settings, we don't need 2 separate category keys.

Bug: 34976047
Test: make RunSettingsLibRoboTests
Change-Id: Ic11bfb5e4e373a3499772b1d4654187749197899
2017-02-03 16:15:03 -08:00
Selim Cinek
cd812c8efe Fixed a wrong translation calculation on first pull down
Test: runtest systemui
Change-Id: I75bf8e1b9693131d4494ef263175c3a99af8f314
Fixes: 34500824
2017-02-03 16:12:01 -08:00
Selim Cinek
9910483608 Further improved the coloring optimization
Fixes a few follow up bugs from the colorized
notification CL.

This also allows media notifications with a media
session to be colorized by default.

Test: existing tests pass
Bug: 34469375
Change-Id: I36348591a84fcd39d103d0ae3f64720f2fca2cf2
2017-02-03 16:11:51 -08:00
Dianne Hackborn
340417356d Implement issue #30977956: Enable Instrumentation tests for multi-process apps
New android:targetProcess attribute on <instrumentation> allows you to
specify the processes the instrumentation will run in.

This reworks how instrumentation is run in the activity manager to better
formalize its state and semantics, allowing us to keep track of it across
multiple processes.  This also clearly defines what happens when multiple
instrumentations are running at the same time, which is useful for writing
CTS tests that test the instrumentation APIs themselves.

Adds a couple new APIs to Instrumentation that helps with the new
situation where instrumentation can run concurrently in multiple processes.

Test: new CTS tests added (textXxxProcessInstrumentation in
ActivityManagerTest.java in cts/tests/app/src)

Change-Id: I2811e6c75bc98d4856045b2f0a45fb24af5d366f
2017-02-03 16:07:54 -08:00
Adrian Roos
1bf6077afe SystemUI: Add LightBarController dump
Test: adb shell dumpsys activity service com.android.systemui
Bug: 34198865
Change-Id: I7b109449b3d5e392a55740a8237bd43c509089a7
2017-02-03 15:47:43 -08:00
Jeremy Joslin
7b6bcb6005 Merge "Cache NetworkScorerAppData in the ScoringServiceConnection." 2017-02-03 23:47:27 +00:00
Wale Ogunwale
069bbd3828 Removed android.R.attr#onTopLauncher
The product that the feature was intended for never launched, so
removing the complexity from the code base.

Test: builds
Change-Id: I75e60ee2da46f6012f03a6077f77bc6b9acecad5
2017-02-03 23:39:46 +00:00
Conrad Chen
977429b7d1 Shift responsibility of DB cleanup to TvProvider
Test: remove function
Bug: 34884862
Change-Id: I65b1925af5efae2efa8c8c24fae23e4e3a469e4e
2017-02-03 15:37:51 -08:00
Keun-young Park
9b73a5473a wait for sensor service before starting WMS
- Starting sensor service in separate thread led into occasional 1 sec
  blocking of WMS inside PhoneWindowManager to get sensor service.
- Change startSensorService into blocking call and call it from
  separate thread using SystemServerInitThreadPool.
- This does not improve best case boot-up time but fixes occasional 1 sec delay
  which is happening in 10 to 20% rate. So this is potential 100 to 200ms saving for many runs.

bug: 34846045
Test: multiple reboots.
Change-Id: Ia08fa3284aed5e576acaac6fbfd74b9db9f7d63c
2017-02-03 15:36:01 -08:00
Sudheer Shanka
2b44387f5d Use context's userId in ContentResolver class.
When registering and notifying observers, we should use the user in the
context as opposed to current user.

Fixes: 32955100
Test: runtest -x core/tests/coretests/src/android/content/CrossUserContentResolverTest.java
Change-Id: Idc169d6cc1ec0cea40a736b87c12d4609f1de9c7
2017-02-03 15:34:03 -08:00
Jack Yu
fe485569e5 Merge "Renamed voiceNetworkStateChanged and dataNetworkStateChanged" 2017-02-03 23:29:58 +00:00
Jeremy Joslin
35f34eab71 Rename isCallerSystemUid().
The method wasn't actually checking if the caller was
Process.SYSTEM_UID, nor was that it's intent.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Change-Id: I341f2fb1d1dca0a460140992a68831316daa4eb8
2017-02-03 15:24:54 -08:00
Jason Long
e4fcdbc170 Hide DatasetPicker if all items are filtered.
Bug: 34633695
Test: CTS
Change-Id: I0e808083d32db9e280c9ddd028239540bac01cfc
2017-02-03 14:50:15 -08:00
Jason Long
eb3c934439 Improve AnchoredWindow with smart positioning logic.
* Add appToken.
* Add mWindowSizeListenerView for getting the displayable window size
  (screen - system windows - soft input).
* Add mContentView when we have all the necesssary info.
* Change mContentView only if something changes (height, bounds,
  displayBounds).

Bug: 34637800
Test: CTS
Change-Id: Iade6179f6303a6d4777e99fa6c600ba6352ee863
2017-02-03 14:50:05 -08:00
Roshan Pius
9ef9bfdaff WifiManager: API upates for O
Deprecate the following API's:
1. pingSupplicant() - We don't want apps trying to figure out if
wpa_supplicant is running or not. It should not be something that
apps need to know.
2. saveConfiguration() - No longer needed, we automatically persist data
when needed.

Other changes:
1. Reworded the docstrings to remove direct reference to wpa_supplicant
for network configuration related API's.
2. We no longer allow apps to modfiy network configuration of other
apps. Added a docstring explaining that in the 3 modify API's.
3. Changed the wording of enableNetwork's |disableOthers| flag.

Bug: 31146757
Test: make update-api
Change-Id: If970d85146de3532072191cb2b7ecb0d5adb2774
2017-02-03 14:40:28 -08:00
Matthew Ng
b475e009a0 Merge "Revert "Fix window transformation related issue"" 2017-02-03 22:37:30 +00:00
Roshan Pius
c082d63a3b WifiConfiguration: Remove priority field
This field is no longer used anywhere within wifi framework and hence
removing this from public API.

Bug: 28341078
Test: make update-api
Change-Id: I5bd115742ca610735b00c20f2ffab7590c5f3256
2017-02-03 14:37:29 -08:00
Jason Monk
340fab6da4 Merge "Fix the tests" 2017-02-03 22:30:52 +00:00
Craig Donner
900510642a Use gralloc1 flags to allocate AHardwareBuffers
Bug: 34939453
Test: cts-tradefed run cts -m CtsNativeHardwareTestCases
Change-Id: I48add1b78c4e1409c0e787d6197f0582f0c3fb4c
2017-02-03 14:24:10 -08:00
Adrian Roos
fb2d0cc090 StatusBar: Catch OOM caused by third-party icons
Bug: 31825355
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/StatusBarIconViewTest.java
Change-Id: I3e2a8c3da43a572a026ea0bbe1d39234035a4801
2017-02-03 14:23:50 -08:00
Chris Tate
869011681b Merge "Make job startup timeout similar to base OS service launch timeout" 2017-02-03 22:14:13 +00:00
Chris Craik
62e508d3ee Merge "Add ShadowShaderAnimation benchmark DO NOT MERGE" am: 6678d34133 -s ours am: 6385d23f43 -s ours am: 7a0720e22c
am: 5ab6c2f291  -s ours

Change-Id: Ide896b5db2ba86bd66d5fdb237a1e0dd498e9ff6
2017-02-03 22:11:35 +00:00
Alan Viverette
177f37367e Revert "Implicitly cast views obtained via View.findView methods"
This reverts commit 06c2fffdaa.

Reason for revert: Java 8 doesn't support this magic.

Change-Id: Iaa41f4e4d0072b9a97cff9cd3788403d4ab79d13
2017-02-03 17:08:47 -05:00
Steven Thomas
0049545803 Merge "Disable VR compatibility display" 2017-02-03 22:05:31 +00:00
Chris Craik
5ab6c2f291 Merge "Add ShadowShaderAnimation benchmark DO NOT MERGE" am: 6678d34133 -s ours am: 6385d23f43 -s ours
am: 7a0720e22c

Change-Id: Idc55c41fdbad5ef6a81d753d2acad34b81137586
2017-02-03 22:03:53 +00:00
Paul Lawrence
a15b75d087 Merge "Expand whitelist" am: fe88a5e81d am: f907b0fcc7 am: edc3f365a0
am: 6320e20955

Change-Id: Icc2326064d010596918081487f69a37d0b0988dd
2017-02-03 22:02:35 +00:00
Paul Lawrence
6320e20955 Merge "Expand whitelist" am: fe88a5e81d am: f907b0fcc7
am: edc3f365a0

Change-Id: I51bc6c7b90c2e93942c62c0eb49c13b19581a0d9
2017-02-03 21:58:03 +00:00
Chris Craik
7a0720e22c Merge "Add ShadowShaderAnimation benchmark DO NOT MERGE" am: 6678d34133 -s ours
am: 6385d23f43  -s ours

Change-Id: Ifbd64ab5edd16d84aa252408b1ceafc0a713321c
2017-02-03 21:57:58 +00:00
Tyler Gunn
bc0f3334b4 resolve merge conflicts of d04c51ea37 to nyc-mr2-dev-plus-aosp
am: 5819755163  -s ours

Change-Id: I2cdccaa724f76b3b1aaacd328984284709b5d166
2017-02-03 21:57:09 +00:00
Chris Craik
6385d23f43 Merge "Add ShadowShaderAnimation benchmark DO NOT MERGE"
am: 6678d34133  -s ours

Change-Id: I841f908f57d94ee91c72ef2c6d428cc1f14a5690
2017-02-03 21:53:26 +00:00
Hemant Gupta
3fba4935a7 OBEX: Set Min maxPacketLength negotiated in CONNECT Operation.
Set OBEX Server maxRxLength to the minium value acceptable from
either server and client during CONNECT Operation.

Below basic and all PUT test cases fail without this fix, as the
maxPacketLength for later is less than maxRxLength of server.
TC_MSE_MMU_BV_03_I
TC_MSE_MMU_BV_02_I

Change-Id: Iaa4f92e3146dc13d647dca12c84eb43b91657efa
2017-02-03 21:47:39 +00:00
Chris Craik
6678d34133 Merge "Add ShadowShaderAnimation benchmark DO NOT MERGE" 2017-02-03 21:44:35 +00:00
Tyler Gunn
5819755163 resolve merge conflicts of d04c51ea37 to nyc-mr2-dev-plus-aosp
Test: Fix build.
Change-Id: I5808fc02502ced2195728ad146ef5523a8eb19ae
2017-02-03 13:41:17 -08:00
Paul Lawrence
edc3f365a0 Merge "Expand whitelist" am: fe88a5e81d
am: f907b0fcc7

Change-Id: Ifb2506e0f8cf697d1bbd4eb0ea744ed8fc9d2b63
2017-02-03 21:28:30 +00:00
Paul Lawrence
f907b0fcc7 Merge "Expand whitelist"
am: fe88a5e81d

Change-Id: I9bc80af8b045edb667840828fc84f2e0ab12863b
2017-02-03 21:23:55 +00:00
Dongwon Kang
2c3c4036d5 TIF: use @StringDef annotations in TvContract
Test: build
Bug: 34949964
Change-Id: I59ec8ff245f36a1981a012349892114fe26d5265
2017-02-03 13:19:14 -08:00
Paul Lawrence
fe88a5e81d Merge "Expand whitelist" 2017-02-03 21:17:00 +00:00