Commit Graph

6875 Commits

Author SHA1 Message Date
Teng-Hui Zhu
76817faf29 Add TestApi to ValueAnimator for AnimationScaleListDrawable CTS test. am: 0a815bb94f am: 3687be955f
am: d607d75790

Change-Id: Id83875c14472af2ba44f0194c897460ec6aa427d
2016-08-29 22:39:09 +00:00
Abodunrinwa Toki
afc0c73a91 Merge "FloatingActionMode: Use DisplayMetrics.getRealSize for screen size." 2016-08-29 17:17:44 +00:00
Michael Kwan
7fa10b3a0d Add offset to round screens when an AlertDialog list item is shown. am: 44f854acd7
am: 8aa5b6ac24

Change-Id: I86007173228d55eac99d03f72aaa5bef3467778a
2016-08-26 22:14:20 +00:00
Colin Cross
2268fc12b5 resolve merge conflicts of 1095b21 to master
Change-Id: I611579044234435a07cad2f64930b731e53aec77
2016-08-25 22:18:33 -07:00
Teng-Hui Zhu
2b769c4dde Add an new internal DrawableContainer to handle animation scale == 0 case. am: 0c03664fa6 am: 0bc9fa9896
am: ab2ed1a4e7

Change-Id: I2de378da33ca93639c03544c8702e17eaefee514
2016-08-26 02:15:07 +00:00
Teng-Hui Zhu
d607d75790 Add TestApi to ValueAnimator for AnimationScaleListDrawable CTS test. am: 0a815bb94f
am: 3687be955f

Change-Id: I3de20fb11eaf1fc98c769f0aae1751a2b5549b1f
2016-08-25 18:36:06 +00:00
Teng-Hui Zhu
3687be955f Add TestApi to ValueAnimator for AnimationScaleListDrawable CTS test.
am: 0a815bb94f

Change-Id: I9b5d851f95349a7c8981ab8868608e21996a1bb5
2016-08-25 18:28:21 +00:00
Michael Kwan
8aa5b6ac24 Add offset to round screens when an AlertDialog list item is shown.
am: 44f854acd7

Change-Id: Ibfaa7c431c4bacf31d217850749c8df5a8660c6e
2016-08-25 06:12:02 +00:00
Michael Kwan
a064b9bb01 Merge "Add offset to round screens when an AlertDialog list item is shown." into cw-f-dev 2016-08-25 06:06:07 +00:00
Teng-Hui Zhu
0a815bb94f Add TestApi to ValueAnimator for AnimationScaleListDrawable CTS test.
Also rename an internal class.

b/30877925

Change-Id: Ib971ed090907a0ab387dd7c768e2b77eb9b69f75
2016-08-24 16:12:20 -07:00
Alan Viverette
ff40d08fd9 Override LinearLayout's onLayout pass in AlertDialogLayout am: 1bb8f51e76
am: ab508dd52b

Change-Id: I7a5999488de62d391bf0a33dca223e77cebff86d
2016-08-24 18:40:51 +00:00
Alan Viverette
ab508dd52b Override LinearLayout's onLayout pass in AlertDialogLayout
am: 1bb8f51e76

Change-Id: I63af639e859e2b7c72d93233c5b9ec7da2bb01cf
2016-08-24 18:28:40 +00:00
Teng-Hui Zhu
ab2ed1a4e7 Add an new internal DrawableContainer to handle animation scale == 0 case. am: 0c03664fa6
am: 0bc9fa9896

Change-Id: I10fe7a99a8857ce76181c98da30287916dc7aab4
2016-08-24 16:36:30 +00:00
Teng-Hui Zhu
0bc9fa9896 Add an new internal DrawableContainer to handle animation scale == 0 case.
am: 0c03664fa6

Change-Id: I7feae01c6302e2942087c6dfe1948109467f1326
2016-08-24 16:28:55 +00:00
Alan Viverette
1bb8f51e76 Override LinearLayout's onLayout pass in AlertDialogLayout
LinearLayout sets up internal state during onLayout that's missing when
we override onMeasure. Avoid calling super.onMeasure() by re-implementing
onLayout without the internal state dependencies.

Bug: 30494039
Change-Id: I1149517a2fe5f5afdb4125db5e7f573588fea740
2016-08-24 12:26:27 -04:00
Teng-Hui Zhu
0c03664fa6 Add an new internal DrawableContainer to handle animation scale == 0 case.
This will help ProgressBar to show something meaningful when animation scale is 0.
b/30877925

Change-Id: Ieb2e78712999d2e3f3a2a234bc605b4821ae41c0
2016-08-22 15:36:32 -07:00
Michael Kwan
44f854acd7 Add offset to round screens when an AlertDialog list item is shown.
Bug: 30950051
Change-Id: I4546c2381fef68bc9e2d080c6b50f5df17810044
2016-08-18 15:15:26 -07:00
Jorim Jaggi
6fb0e52b85 Fix a flicker when returning to the lockscreen am: d11d1a9486 am: afaf4ac7a9
am: 9322632f6a

Change-Id: I9cd7ead4caa2843e3063d55ea357e9e989c72f0e
2016-08-18 00:17:02 +00:00
Chong Zhang
921f8e35d8 resolve merge conflicts of 9391bc5 to master
Change-Id: I6de231781233826b399688dc8ead70ba515b1ccb
2016-08-17 14:38:12 -07:00
Glenn Kasten
d21cb15584 resolve merge conflicts of c76a3ac to stage-aosp-master am: 67ffd5e617
am: f7b4fd24e3

Change-Id: Ib06db403955ae0056c1fee0e09f9249d0b887ea1
2016-08-17 21:10:59 +00:00
Glenn Kasten
67ffd5e617 resolve merge conflicts of c76a3ac to stage-aosp-master
Change-Id: Ifff16bdc42e8326f3f60cf4b92688c445cb4db25
2016-08-17 13:28:04 -07:00
Jorim Jaggi
9322632f6a Fix a flicker when returning to the lockscreen am: d11d1a9486
am: afaf4ac7a9

Change-Id: I26eb19aba2c68fea5faa82bf1e41286b8999bf4a
2016-08-17 18:54:20 +00:00
Jorim Jaggi
afaf4ac7a9 Fix a flicker when returning to the lockscreen
am: d11d1a9486

Change-Id: Ia0b617be2bb00db24115f04f362cd072d59ebe71
2016-08-17 18:28:59 +00:00
Chong Zhang
9391bc557c Add new window type TYPE_DRAWN_APPLICATION am: fea963edee
am: 5e09ceb641

Change-Id: I955b985c47ca10a17dec6921af0277d1d6a7431d
2016-08-17 18:22:10 +00:00
TreeHugger Robot
edddb17a67 Merge "Fix a flicker when returning to the lockscreen" into nyc-mr1-dev 2016-08-17 18:11:49 +00:00
Jorim Jaggi
d11d1a9486 Fix a flicker when returning to the lockscreen
If we return to the lockscreen from a FLAG_SHOW_WHEN_LOCKED activity,
there was an additional black flicker as the wallpaper wasn't shown
for a couple of frames. The issue is that we didn't set the wallpaper
flag again, to fix another flicker with lockscreen wallpapers. Now,
we pass the state whether we currently have a lockscreen wallpaper
and if we don't have one, we immediately set the wallpaper flag
again.

Bug: 30829255
Bug: 30883413
Change-Id: I9faeaa77b98eb02058171ce19cf90b43826ebe9e
2016-08-17 18:10:54 +00:00
Michael Kwan
0792dd1f21 Hide space for title if the title is GONE. am: 790a34e1a9
am: 9019052e96

Change-Id: I533e56cc90316ed23c3a0499c30b48d4a3993ad5
2016-08-17 18:07:34 +00:00
Michael Kwan
9019052e96 Hide space for title if the title is GONE.
am: 790a34e1a9

Change-Id: I515514013819133228f3185166fe7962ab2f27c8
2016-08-17 17:48:32 +00:00
Chong Zhang
5e09ceb641 Add new window type TYPE_DRAWN_APPLICATION
am: fea963edee

Change-Id: If7acf1349b87d4be88a9b4f9fbd984bbd4aca8ad
2016-08-17 17:16:18 +00:00
Glenn Kasten
1fda533936 Squashed commit of the following:
commit efa6f355b06675aa4d0879fd279e22c16d5c046c
Author: Mikhail Naganov <mnaganov@google.com>
Date:   Wed Aug 10 12:25:13 2016 -0700

    MIDI: Use server-side socket in blocking mode for virtual devices

    Since virtual MIDI servers may misbehave, blocking mode will throttle
    them if clients are not coping with their sending speed.

    Bug: 29413812
    Change-Id: I9c4a2a7a7ea3ea060c93fedc7d0f033427c557c9

commit 755dfb5f83749d3963c63d98d692307f8271c804
Author: Mikhail Naganov <mnaganov@google.com>
Date:   Fri Jul 8 13:26:19 2016 -0700

    Protect MIDI framework against client blocks in MidiReceiver.onSend

    Make the server-side socket non-blocking when creating MidiOutputPort
    for clients. Thus if a client ceases to read from its side of the
    socket pair, the server will just fail to write instead of blocking.

    One drawback is that the MidiOutputPort on the client can't indicate
    that it has become dysfunctional, but it's not possible without
    changing the API.

    Bug: 29413812
    Change-Id: I9dfcbdd214a815cea8fd1365324fd78ca459268a

commit c740b13953761f58233ac651a0b5227733b1bdcc
Author: Mikhail Naganov <mnaganov@google.com>
Date:   Fri Jun 17 04:11:25 2016 -0700

    UsbMidiDevice: Clean up terminology and fix comments

    When working with physical MIDI devices, an *input* stream is used
    for reading from *output* port of the device, and vice versa. Thus,
    using "input" and "output" without specifying whether it's a stream
    or a port is confusing.

    Clarify names of counter variables, and fix a couple of comments
    that were incorrect due to this confusion. No functional changes.

    Change-Id: If561eaca4bade94e9296d2c703c9fcebc91296e2

commit 4269c6417287737624f6165a8bbeb5aa427de9a0
Author: Glenn Kasten <gkasten@google.com>
Date:   Thu May 5 18:49:16 2016 -0700

    Update MIDI package summary

    Bug: 28625060
    Change-Id: If552ca8e1a0666d402b5f536699bf3fb09c1e324

commit 862d40b73168bde7d0be5280d997985c18061014
Author: Phil Burk <philburk@google.com>
Date:   Tue Apr 19 15:56:24 2016 -0700

    MidiDevice: do not open ports on closed device

    Fix involves client side mIsDeviceClosed flag.

    Bug: 24949216
    Change-Id: I666284a787fbb9a710d2372fb424e8e54f6a2825
    Signed-off-by: Phil Burk <philburk@google.com>

commit 6f1de358b9f2616e03f4655f01454770915ddd66
Author: Phil Burk <philburk@google.com>
Date:   Mon Apr 18 16:05:28 2016 -0700

    MidiService: fix resource leak

    The proxy object was being used to match when adding or removing objects.
    But they are different each time. So now we use an asBinder() object.

    Bug: 28153736
    Change-Id: I1bccebf1e9464668db757ff08b41902d0cf0e3a7
    Signed-off-by: Phil Burk <philburk@google.com>

commit f7386bd535bb8a1d7f8df8f44a1748ab770c991a
Author: Phil Burk <philburk@google.com>
Date:   Tue Apr 5 14:19:53 2016 -0700

    MidiDevice: fix connectPorts for same Process

    If connectPorts() was called for a device in the same process then
    the connection would die when the ParcelFileDescriptor was closed.

    Bug: 26406775
    Change-Id: Id0538452593b4761ac2a93d366ade76d2e35ce73
    Signed-off-by: Phil Burk <philburk@google.com>

Change-Id: I4dfc2a2cbaf04bf1a790ae2cb39bf74fb5bb16ac
2016-08-17 08:45:39 -07:00
Michael Kwan
dc0735676b Merge "Hide space for title if the title is GONE." into cw-f-dev 2016-08-16 17:56:42 +00:00
Chong Zhang
fea963edee Add new window type TYPE_DRAWN_APPLICATION
This type behaves like a normal TYPE_APPLICATION, except that WM
will always wait for it to be drawn before starting a transition.

WM always waits for TYPE_BASE_APPLICATION (main window), but for
TYPE_APPLICATION, it only waits if the window relayouts to visible
and gets a surface before the main window is drawn. If main window
itself is ready very fast, transition could start without the other
window.

bug: 30830849
Change-Id: Ife71a9812db7c8eba6ee4ead10ce4f31d9e93b40
2016-08-15 17:36:40 -07:00
Mitchell Wills
af34bd5cae Merge "Add Log.wtf when transitionTo is used improperly" 2016-08-15 18:34:50 +00:00
Adam Lesinski
3e1cd845e6 SamplingTimer: Fix issue with summary recording too much am: 9edd6be542 am: e5852eb501
am: 4e4e50cd02

Change-Id: If5f2313532774ef113fbb682beba6b51de45b45c
2016-08-14 00:45:24 +00:00
Adrian Roos
1fafcc6f64 Assist: Allow disabling the disclosure animation am: 2335bd6787 am: 57d1601849
am: ae96089711

Change-Id: I3d086e48a7ea312ae972495a157f18b62bc36e13
2016-08-14 00:34:13 +00:00
Adam Lesinski
4e4e50cd02 SamplingTimer: Fix issue with summary recording too much am: 9edd6be542
am: e5852eb501

Change-Id: Ie4ab1a86f0c28a41ed84e861c83d38bf1a90a4c8
2016-08-13 00:59:35 +00:00
Adam Lesinski
e5852eb501 SamplingTimer: Fix issue with summary recording too much
am: 9edd6be542

Change-Id: Id423f0343c2d435281d47cd6edacb6816baaace8
2016-08-13 00:52:03 +00:00
TreeHugger Robot
8aacc3cf98 Merge "SamplingTimer: Fix issue with summary recording too much" into nyc-mr1-dev 2016-08-13 00:40:53 +00:00
Adrian Roos
ae96089711 Assist: Allow disabling the disclosure animation am: 2335bd6787
am: 57d1601849

Change-Id: I5954913f4f210e47d5e3a297f25d3f646cdd2a4b
2016-08-12 23:16:53 +00:00
Adam Lesinski
9edd6be542 SamplingTimer: Fix issue with summary recording too much
The summary is supposed to just hold enough data to continue counting
once the device has reset. Since kernel stats reset when the device
resets, and the first update is ignored to account for soft resets where the
kernel continues running, SamplingTimer should not be recording the last value
it saw from /proc/wakelocks in the summary.

Bug:30575302
Change-Id: Ic193bc5af9a0ede514e3abc8146523d7316c47d3
2016-08-12 15:49:44 -07:00
Adrian Roos
57d1601849 Assist: Allow disabling the disclosure animation
am: 2335bd6787

Change-Id: I2a88e088da3062b7bd10581650de526629973c67
2016-08-12 20:35:22 +00:00
TreeHugger Robot
1ee928a62a Merge "Assist: Allow disabling the disclosure animation" into nyc-mr1-dev 2016-08-12 20:28:12 +00:00
Adrian Roos
2335bd6787 Assist: Allow disabling the disclosure animation
Change-Id: I6e7ed00f066fda7cc268119e7aa4133010aa69c1
Fixes: 30809067
2016-08-12 12:04:53 -07:00
Michael Kwan
790a34e1a9 Hide space for title if the title is GONE.
Bug: 30676030
Change-Id: I5e61d00dadbfffbc7b04ee3431f591e9d2d2ce29
2016-08-12 11:10:58 -07:00
Phil Weaver
9332022807 Don't preserve a11y focus in hierarchy state. am: f40ee509c6 am: 711d7260ba
am: 99633b3700

Change-Id: I681bd187bc1bc8621a82d177e11033e2845bb437
2016-08-11 21:11:49 +00:00
Phil Weaver
99633b3700 Don't preserve a11y focus in hierarchy state. am: f40ee509c6
am: 711d7260ba

Change-Id: I7b2f1b2955c279f21f8f7a5ffc7b615ddaa50ff5
2016-08-11 21:03:19 +00:00
Mitchell Wills
8d3ed21583 Add Log.wtf when transitionTo is used improperly
Using transitionTo in exit/enter (except in the terminal state) is
documented as undefined behavior and may cause unexpected results.
The current implementation appears to finish the current transition and
then transition to the new target state.

TEST=flash and play with the phone, no sign of immediate WTFs

Change-Id: I38a34b85c43d53c51514339587fc1269a069a454
2016-08-11 13:54:48 -07:00
Phil Weaver
711d7260ba Don't preserve a11y focus in hierarchy state.
am: f40ee509c6

Change-Id: I14ba7354058eef6942286483b3f61ea0404135ea
2016-08-11 20:53:37 +00:00
Phil Weaver
aefa892035 Merge "Don't preserve a11y focus in hierarchy state." into nyc-mr1-dev 2016-08-11 20:34:42 +00:00
Adrian Roos
367e0761c5 Only disable trust agents after lockout am: 9d6fc9246b am: 73b2f5981e
am: bbf52f2e85

Change-Id: I4606854b24313cc8231aaa0ce3ea33ea909f68b0
2016-08-11 02:51:07 +00:00