Commit Graph

301953 Commits

Author SHA1 Message Date
Phil Weaver
866ded50bb Revert "Don't invalidate list data during layout."
This reverts commit 456158ffc2.

Change-Id: I7a61dc34dfc81ee650ca0883fe99c0f5dc08ba75
2016-11-01 23:38:44 +00:00
Bryce Lee
fb4af44d0c Merge "Add a way to query for supported Bluetooth profiles." am: 0a86c936a6 am: 6f84631d8d am: e07c4cb4e6
am: 7f60047cb4

Change-Id: Icaff5bab21f5a9a40f7c24b13e8579d390a373d9
2016-11-01 23:34:48 +00:00
Bryce Lee
7f60047cb4 Merge "Add a way to query for supported Bluetooth profiles." am: 0a86c936a6 am: 6f84631d8d
am: e07c4cb4e6

Change-Id: I53a4a3df08b8bd169112d004f7fa6ab5495c15fe
2016-11-01 23:29:16 +00:00
TreeHugger Robot
7bb566c63d Merge "Removing forced layout when the window is translated." 2016-11-01 23:28:18 +00:00
Bryce Lee
e07c4cb4e6 Merge "Add a way to query for supported Bluetooth profiles." am: 0a86c936a6
am: 6f84631d8d

Change-Id: I8d9bce44587a1740f0acbd09552baf7d8b6990a5
2016-11-01 23:24:42 +00:00
George Burgess IV
315c936a87 Fix static analyzer warnings.
This patch fixes multiple static analyzer warnings:

frameworks/base/media/mca/filterfw/jni/jni_gl_environment.cpp:66:10:
warning: Potential memory leak
frameworks/base/media/mca/filterfw/jni/jni_native_frame.cpp:38:10:
warning: Potential memory leak
frameworks/base/media/mca/filterfw/jni/jni_native_program.cpp:31:10:
warning: Potential memory leak
frameworks/base/media/mca/filterfw/jni/jni_shader_program.cpp:50:12:
warning: Potential memory leak
frameworks/base/media/mca/filterfw/jni/jni_shader_program.cpp:57:12:
warning: Potential memory leak
frameworks/base/media/mca/filterfw/jni/jni_vertex_frame.cpp:27:10:
warning: Potential memory leak

Note that the changes in jni_gl_frame are purely cosmetic; those aren't
fixing any warnings. I'm happy to back them out if anyone wants.

Bug: None.
Test: All of the static analyzer warnings mentioned above are now gone.
Change-Id: I49dc6d7c789233d6497f8bcc766ca66aec72b27b
2016-11-01 16:20:40 -07:00
Bryce Lee
6f84631d8d Merge "Add a way to query for supported Bluetooth profiles."
am: 0a86c936a6

Change-Id: Id10ad10a5dbcab92e390a7a245772d2b551ad30c
2016-11-01 23:20:16 +00:00
Phil Weaver
a2a6494fb8 Don't invalidate list data during layout. am: 456158ffc2 am: 06ffff6132 am: 07f434d02f
am: 112345c1c3

Change-Id: I367cf7cb5e24d6f2c7724db4e6038830003e2029
2016-11-01 23:17:15 +00:00
vinodkrishnan
a2d96e0ed9 Merge "DO NOT MERGE Wear Fwk: Disable Animations for A11y" into cw-f-dev am: 89e653ccc7 am: 2a569d1490
am: f4f48fc5f9  -s ours

Change-Id: I434e3e403c96c46cb5f002ac96d33350d337a72f
2016-11-01 23:13:25 +00:00
Vinod Krishnan
f310dc2925 DO NOT MERGE Wear Fwk: Disable Animations for A11y am: 8500f26d51 am: 305187983b
am: 166b0ad28f  -s ours

Change-Id: Ica85275f5ae09408da727821788c1d502eb47057
2016-11-01 23:12:36 +00:00
Treehugger Robot
0a86c936a6 Merge "Add a way to query for supported Bluetooth profiles." 2016-11-01 23:12:22 +00:00
Phil Weaver
112345c1c3 Don't invalidate list data during layout. am: 456158ffc2 am: 06ffff6132
am: 07f434d02f

Change-Id: I6adaa881b70805d46d2425dd979609c6e99e11c9
2016-11-01 23:09:02 +00:00
vinodkrishnan
f4f48fc5f9 Merge "DO NOT MERGE Wear Fwk: Disable Animations for A11y" into cw-f-dev am: 89e653ccc7
am: 2a569d1490

Change-Id: I6b3e73ca5ff71dbc22f4ee510fa944aaa7eb4464
2016-11-01 23:05:53 +00:00
Vinod Krishnan
166b0ad28f DO NOT MERGE Wear Fwk: Disable Animations for A11y am: 8500f26d51
am: 305187983b

Change-Id: Ifb4eea689ded623034d5f8aa3158c814620e9de9
2016-11-01 23:04:59 +00:00
Phil Weaver
07f434d02f Don't invalidate list data during layout. am: 456158ffc2
am: 06ffff6132

Change-Id: I56cd58a077729b7a8fccb66aeea5e3d69cb2fcdf
2016-11-01 22:59:27 +00:00
vinodkrishnan
2a569d1490 Merge "DO NOT MERGE Wear Fwk: Disable Animations for A11y" into cw-f-dev
am: 89e653ccc7

Change-Id: Id38b4d4b7240ff3e241811d58e56c7cc732ce637
2016-11-01 22:58:04 +00:00
Vinod Krishnan
305187983b DO NOT MERGE Wear Fwk: Disable Animations for A11y
am: 8500f26d51

Change-Id: I8bddbad4b8777a3fedac2f88717b48d00f596a8c
2016-11-01 22:57:58 +00:00
Phil Weaver
06ffff6132 Don't invalidate list data during layout.
am: 456158ffc2

Change-Id: I550b63d3fd6b5f451083627dc16f369729b1e1d7
2016-11-01 22:55:11 +00:00
vinodkrishnan
89e653ccc7 Merge "DO NOT MERGE Wear Fwk: Disable Animations for A11y" into cw-f-dev 2016-11-01 22:54:11 +00:00
Michael Kwan
6c8e3bb43d Tweak AlertDialog and Preference layout for nonround watches.
Update the title layouts of AlertDialog and Preference for
nonround watches with proper padding.

Bug: 31271003
Change-Id: I9305c1f52297ee6658de2e84295509d5f06f8aaf
2016-11-01 15:44:17 -07:00
Jorim Jaggi
8d78693157 The big keyguard transition refactor (6/n)
Cleanup:
- Make sure all the state is nicely dumped.
- Remove some unused stuff.
- Fix a flicker when occluded -> unlocked

Bug: 32057734
Change-Id: Id87e26adccef740d608b325c2dc1f6db14dd4ec3
2016-11-01 15:36:40 -07:00
Jorim Jaggi
ab7ad3898c The big keyguard transition refactor (5/n)
Also save surface for the home task, so unlocking to the homescreen
is as fast as before. Note that originally it was not possible to
save surface for home task because of artifacts when clicking the
home button. However, we added logic since then to disallow save
surface if it's a different intent, which is the case when pressing
the home button.

Also consolidate some relayout for less overhead.

Bug: 32057734
Change-Id: I53ede527cb1ff438001d4023ee3740283ee302ee
2016-11-01 15:36:21 -07:00
Jorim Jaggi
73294b6cf7 The big keyguard transition refactor (4/n)
Nuke KeyguardScrim

Test: Kill SystemUI while lockscreen is showing, make sure nothing
is visible when being killed.

Bug: 32057734
Change-Id: I9f8d1e5a0e0f968460d8170627a849623c6a7245
2016-11-01 15:36:21 -07:00
Philip P. Moltmann
7d6e325b6c Revert "Exit enteringAccessoryMode when entered."
This reverts commit a025c89858.

Change-Id: I550583606444a2d79ec911adf5b14b8783b03286
2016-11-01 22:36:12 +00:00
Jorim Jaggi
77e1043229 The big keyguard transition refactor (3/n)
Notify activity manager when dreaming showing state changed so
KeyguardController can update the occluded state when the device
is dreaming.

Test: Set dreaming while charging, wait until screen times out,
make sure that dream is occluding Keyguard.
Bug: 32057734
Change-Id: Ied6f485d9b4a1526cb4cd5f0701f86b1ea05830a
2016-11-01 15:36:00 -07:00
Bryce Lee
f6b74dea04 Add a way to query for supported Bluetooth profiles.
Currently there is no way to get the profiles supported by the Bluetooth
adapter. Asking for a profile proxy of an unsupported profile does not
fail and can lead to code indefinitely waiting for the proxy response. This
new code will allow for checking the supported profiles before asking for
the proxies.

Bug: 26451648
Change-Id: I4b48e7151f5ca53851aa3b967c143fae140ecd34
(cherry picked from commit b1301fa284)
2016-11-01 15:13:04 -07:00
Garfield Tan
3f6b68a697 Iteration on findDocumentPath() API.
Rename findPath() to findDocumentPath() per comment in ag/1588156.

Bug: 30948740
Change-Id: I84ef4d9c0ed1f854e0e33f3552a1805b944c2791
2016-11-01 22:07:45 +00:00
Phil Weaver
a3230467d1 Merge "Fixing outdated Javadoc for getAccessibilityViewId" 2016-11-01 22:02:12 +00:00
Jorim Jaggi
5a108c225a The big keyguard transition refactor (2/n)
Introduce UnknownVisibilityController, which keeps track of apps that
may or may not be visible when launching an activity behind Keyguard.
When Keyguard is occluded and we launch another activity, we don't
know whether we still have to keep Keyguard occluded until the app
has gone through the resume path and issued a relayout call to update
the Keyguard flags.

This class keeps track of that state and defers the app transition
until the unknown visibility of all apps is resolved.

Test:
1) Have an occluding activity that starts another occluding
activity, ensure that there is no flicker.
2) Have an occluding activity while the Keyguard is insecure, start
a DISMISS_KEYGUARD activity, ensure there is no flicker.
3) runtest frameworks-services -c com.android.server.wm.UnknownVisibilityControllerTest

Bug: 32057734
Change-Id: I5145b272722ab8c31dd7c5383286f5c9473e26a4
2016-11-01 14:06:49 -07:00
Winson Chung
c7c4dbb147 Removing forced layout when the window is translated.
Test: Manual, ensure that the accessibility focus is still visible on 
      a moved window (enable talkback, focus a view, then move the 
      window).
Change-Id: Ifd67afe355cac2f1df01ddd16f960282f4d36132
2016-11-01 21:00:59 +00:00
Jorim Jaggi
fe762344f4 The big keyguard transition refactor (1/n)
The heart of this change are two things:
1) Instead of using the force hide mechanism to hide windows behind
Keyguard, we actually make the activities invisible in activity manager.
2) When Keyguard is going away, we change the visibilities in activity
manager and run an app transition.

At the very core we move the responsibility of hiding activities to
ActivityStack, which checks whether Keyguard is showing, and then
hides all non-show-when-locked activities. For that, we need to check
whether any window of an activity has SHOW_WHEN_LOCKED set. We
introduce a callback from WM -> AM in case these Keyguard flags have
changed.

Furthermore, we decide whether to occlude Keyguard in KeyguardController,
which just checks whether the top activity has SHOW_WHEN_LOCKED set. When
this state changes, we prepare an occlude/unocclude app transition, and
in PWM we just inform the Keyguard about the animation so SysUI can play
along this animations in a mostly synchronized manner.

Since we now use an app transition when unlocking the phone, we get
lockscreen launch animations for free - window manager automatically
waits until the activity is drawn, or directly executes the transition
if there is nothing to animate. Thus, we can remove all the infrastructure
around "waitingForActivityDrawn".

The logic to show/hide non-app windows is moved to policy, and we add the
ability to run animations on non-app windows when executing an app
transition.

Test:
1) runtest frameworks-services -c com.android.server.wm.AppTransitionTests
2) Manually test unlocking Keyguard:
2a) Without security
2b) With security
2c) With security but trusted
2d) Portrait while activity behind is in landscape
3) Test launching things from Keyguard
3a) Without security
3b) With security
3c) Launch camera without security
3d) Launch camera with security
3e) Launch camera with securtiy and trusted
3f) Launch voice affordance
4) Set no notifications on lockscreen, drag down, make sure you get
the correct animation
5) Test clicking "emergency" on bouncer
5b) Test "Emergency info" on emergency dialer
5c) Test clicking edit button on emergency info, should show pattern on
Keyguard

Bug: 32057734
Change-Id: Icada03cca74d6a612c1f988845f4d4f601087558
2016-11-01 13:53:32 -07:00
Phil Weaver
7e5b229f31 Fixing outdated Javadoc for getAccessibilityViewId
Test: N/A. Only changing comments.
Change-Id: I2e994c8df0bf71463858090345c3a96f85b7b706
2016-11-01 13:13:51 -07:00
Andrii Kulian
0863156efd Merge "Update SEND_CONFIGURATION message to use displayId param" 2016-11-01 19:49:15 +00:00
TreeHugger Robot
c557ede6fa Merge "Fixed typo." 2016-11-01 19:46:57 +00:00
Sergei Vasilinetc
97cc85fd4b Merge "Routine to upload hardware bitmaps" 2016-11-01 19:32:19 +00:00
Julia Reynolds
85769915e7 Some channel model updates
- Apps cannot update their channel settings after creation.
- Importance is required when creating a channel.
- Some method name changes.
- Ranker can't modify fields a user has changed.
- High and Max importance mean the same thing.
- The default channel adopts app wide settings on creation.
- The default channel is limited to importance low once target api is post n mr1
  unless the user changed it.

Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/notification

Change-Id: I73c449a6abe6d709046de79c5c54339cb2edf0b8
2016-11-01 19:31:34 +00:00
Mark Renouf
b236e8dd55 Merge "Workaround for javac compilation issue of lambda code" into cw-f-dev am: 1b6da1f928 am: a0f2404725
am: 1bc74b53b3

Change-Id: Ic64d696ecece2387274417325cf53414d016fe8b
2016-11-01 19:29:42 +00:00
Mark Renouf
815fc3e539 Workaround for javac compilation issue of lambda code am: e065f7c5a9 am: 6ce06e63a7
am: 72f59dd7cb

Change-Id: I603a1709e35ba1d34cdd6b8abe9fd981e59166c8
2016-11-01 19:28:34 +00:00
Mark Renouf
1bc74b53b3 Merge "Workaround for javac compilation issue of lambda code" into cw-f-dev am: 1b6da1f928
am: a0f2404725

Change-Id: I13c96d992efcaf9b205032839840be4b03256c68
2016-11-01 19:25:29 +00:00
Mark Renouf
72f59dd7cb Workaround for javac compilation issue of lambda code am: e065f7c5a9
am: 6ce06e63a7

Change-Id: I9a43b4843667bdab5909765b1afa99c9f7b11053
2016-11-01 19:24:26 +00:00
Phil Weaver
f74ce2764f Merge "Don't invalidate list data during layout." 2016-11-01 19:20:52 +00:00
Mark Renouf
a0f2404725 Merge "Workaround for javac compilation issue of lambda code" into cw-f-dev
am: 1b6da1f928

Change-Id: Id8bef52d6b5f45202217c303ad30302694dac3e4
2016-11-01 19:19:40 +00:00
Mark Renouf
6ce06e63a7 Workaround for javac compilation issue of lambda code
am: e065f7c5a9

Change-Id: I247477c4155ddc154e7fe3f1057a767d1ab74336
2016-11-01 19:19:28 +00:00
Mark Renouf
1b6da1f928 Merge "Workaround for javac compilation issue of lambda code" into cw-f-dev 2016-11-01 19:13:44 +00:00
Bill Yi
47a6e312c3 Merge "Import translations. DO NOT MERGE" into cw-f-dev am: dc359e7b8d -s ours am: ea46f852a8 -s ours
am: 1c069cef57  -s ours

Change-Id: Ifcbbd22037eec5867a5e750b5a8f1fe23fe526ce
2016-11-01 18:40:25 +00:00
Bill Yi
4ea7c8a8ba Import translations. DO NOT MERGE am: 5ac1b67317 -s ours am: 49f81e3c88 -s ours
am: 797f837722  -s ours

Change-Id: Ia71df19f5844945bb624aeaeec2684488d558fe6
2016-11-01 18:39:28 +00:00
Fyodor Kupolov
965fa697c9 Reuse single AssetManager for lite/full parses
parseClusterPackage/parseMonolithicPackageLite now share a single instance
of AssetManager, avoiding loading resources twice.

Test: manual

Bug: 29273545
Bug: 30792387
Change-Id: I2209cf6f09886d444dc62993aace00c356718cdb
2016-11-01 11:36:56 -07:00
Phil Weaver
456158ffc2 Don't invalidate list data during layout.
When a FastScroller is enabled, we were invalidating the
list data during layout, which left the UI in a bad state.
Long-presses didn't work properly, and TalkBack touches
were impossible to perform.

Bug: 31160338

Test: Manually tested long pressing, and verified
that TalkBack now works with the TestActivity in ag/1567328.
Change-Id: Iecd2d597259748a3ecbf5573950e565a0e9faa42
2016-11-01 18:36:16 +00:00
Bill Yi
1c069cef57 Merge "Import translations. DO NOT MERGE" into cw-f-dev am: dc359e7b8d -s ours
am: ea46f852a8  -s ours

Change-Id: Iff4d29701c6e127938f310e52ed04f8ab6d2a8d7
2016-11-01 18:33:35 +00:00
Bill Yi
797f837722 Import translations. DO NOT MERGE am: 5ac1b67317 -s ours
am: 49f81e3c88  -s ours

Change-Id: I53e3ac253896d7829fe2066e34d1b8a83e0c50aa
2016-11-01 18:32:23 +00:00