Commit Graph

41235 Commits

Author SHA1 Message Date
Svet Ganov
c799d6e437 am 60632d7c: am 48c6c70e: am a00c7eb9: Merge "Clicking on partially coverd views by other views or windows." into lmp-dev
* commit '60632d7c75cbacc373edd4762f82baa1c4620237':
  Clicking on partially coverd views by other views or windows.
2014-09-08 19:17:25 +00:00
Dharmesh Mokani
7bd7480d27 am 5d115ecb: am f21cd716: am e70ac872: Merge "Remove old methods : AlwaysOnHotwordDetector" into lmp-dev
* commit '5d115ecb0f1e6e8ffbda68f7e8cf5057f4d40440':
  Remove old methods : AlwaysOnHotwordDetector
2014-09-08 19:17:19 +00:00
Svet Ganov
c956c88093 am 48c6c70e: am a00c7eb9: Merge "Clicking on partially coverd views by other views or windows." into lmp-dev
* commit '48c6c70eca05698f94d1b97884e29c2b03ae8f89':
  Clicking on partially coverd views by other views or windows.
2014-09-08 19:03:43 +00:00
Dharmesh Mokani
5c84168b93 am f21cd716: am e70ac872: Merge "Remove old methods : AlwaysOnHotwordDetector" into lmp-dev
* commit 'f21cd7160ecf482d7f00b301f844355b43bb90e9':
  Remove old methods : AlwaysOnHotwordDetector
2014-09-08 19:03:35 +00:00
George Mount
da8ec6f42b am d5f92cb6: am 055417d3: am f7b281a6: Merge "Use Alpha instead of TransitionAlpha for Activity Transitions." into lmp-dev
* commit 'd5f92cb668532757e06258918fa184703f96c809':
  Use Alpha instead of TransitionAlpha for Activity Transitions.
2014-09-08 18:59:33 +00:00
George Mount
7f03e02dc4 am 055417d3: am f7b281a6: Merge "Use Alpha instead of TransitionAlpha for Activity Transitions." into lmp-dev
* commit '055417d3255810a5d940fe5a94b8713906370344':
  Use Alpha instead of TransitionAlpha for Activity Transitions.
2014-09-08 18:49:27 +00:00
Svet Ganov
2bb02c799c Merge "Clicking on partially coverd views by other views or windows." into lmp-dev 2014-09-08 18:45:04 +00:00
Dharmesh Mokani
2b02f88737 Merge "Remove old methods : AlwaysOnHotwordDetector" into lmp-dev 2014-09-08 18:43:14 +00:00
George Mount
214e7ad175 Merge "Use Alpha instead of TransitionAlpha for Activity Transitions." into lmp-dev 2014-09-08 18:25:03 +00:00
Jeff Sharkey
ec099dad3b am a1a90815: am fa8211c5: am 2f0ed017: Merge "Delayed ASEC allocation, refine progress handling." into lmp-dev
* commit 'a1a9081520ab95dcaf234174143e2ebcd88d71ce':
  Delayed ASEC allocation, refine progress handling.
2014-09-08 18:17:59 +00:00
Jeff Sharkey
6098a3acc9 am fa8211c5: am 2f0ed017: Merge "Delayed ASEC allocation, refine progress handling." into lmp-dev
* commit 'fa8211c5f7b8939e230f5643cd94a6e8686571b6':
  Delayed ASEC allocation, refine progress handling.
2014-09-08 17:00:42 +00:00
Jeff Sharkey
e016605981 Merge "Delayed ASEC allocation, refine progress handling." into lmp-dev 2014-09-08 16:38:42 +00:00
Nicolas Prevot
7068faf4ce am b329d04e: am de896104: am 09286405: Merge "Marking two flags as final." into lmp-dev
* commit 'b329d04ec7ab0818d9deeb644d363151d278a48d':
  Marking two flags as final.
2014-09-08 16:33:00 +00:00
Jeff Sharkey
77d218e186 Delayed ASEC allocation, refine progress handling.
For restore use-case, session creation needs to complete quickly, so
delay ASEC allocation until session is opened.  When preflighting
size checks, only consider external when we have a known size for the
container.  Also relax size checks when using MODE_INHERIT_EXISTING
on external, since we don't know how much of existing app will be
copied over.

Consider session as "active" while commit is ongoing, until we're
either finished or pending user interaction.

Always publish first client needle movement away from 0.  Use 25% of
internal progress to reflect ASEC allocation.

Avoid CloseGuard messages about leaking PFDs.

Bug: 17405741, 17402982
Change-Id: I6247a1d335d26621549c701c4c4575a8d16ef8c2
2014-09-08 09:31:49 -07:00
Nicolas Prevot
1d793d1e53 am de896104: am 09286405: Merge "Marking two flags as final." into lmp-dev
* commit 'de89610479d59f55de4ef3cbeca62ec27a1c9031':
  Marking two flags as final.
2014-09-08 16:23:15 +00:00
Dharmesh Mokani
50c290406a Remove old methods : AlwaysOnHotwordDetector
Bug: 17389896
Change-Id: I47d0ae3ecad0ce8a74ed65a73309faa541b74a06
2014-09-08 09:22:16 -07:00
Nicolas Prevot
97e75e1da9 Merge "Marking two flags as final." into lmp-dev 2014-09-08 16:06:30 +00:00
George Mount
7aeb663cee am eada4f05: am 2c84e65e: am 850bca01: Merge "Only call setHasTransientState in captureHierarchy." into lmp-dev
* commit 'eada4f0565a1d6311bba2112feae90ca80fcca41':
  Only call setHasTransientState in captureHierarchy.
2014-09-08 15:21:00 +00:00
George Mount
d6ccafaf3f am 2c84e65e: am 850bca01: Merge "Only call setHasTransientState in captureHierarchy." into lmp-dev
* commit '2c84e65e87d266a7d9b15a9e6719b9f14137fd45':
  Only call setHasTransientState in captureHierarchy.
2014-09-08 15:10:54 +00:00
George Mount
a740b2bf9a Merge "Only call setHasTransientState in captureHierarchy." into lmp-dev 2014-09-08 14:52:34 +00:00
George Mount
cfdfb2262c am baf19d8c: am 27858e18: am c452d4c9: Merge "Improve Visibility parent value check." into lmp-dev
* commit 'baf19d8ceadf195c1ea2cc6201b016a6430db455':
  Improve Visibility parent value check.
2014-09-08 14:29:27 +00:00
George Mount
d652526fbe am 27858e18: am c452d4c9: Merge "Improve Visibility parent value check." into lmp-dev
* commit '27858e18146c867e7328ea45f461a4e54ed4b33d':
  Improve Visibility parent value check.
2014-09-08 14:18:58 +00:00
George Mount
24e08d0692 Merge "Improve Visibility parent value check." into lmp-dev 2014-09-08 13:59:40 +00:00
Kenny Guy
b7451e4923 am 444c3a9e: am f919288d: am b78a0a11: Merge "Ensure ApplicationInfo is for correct user for system/android package." into lmp-dev
* commit '444c3a9eb36e5a2fa9e19c0aed2691503ace43e4':
  Ensure ApplicationInfo is for correct user for system/android package.
2014-09-08 13:57:09 +00:00
Kenny Guy
1cc7212086 am f919288d: am b78a0a11: Merge "Ensure ApplicationInfo is for correct user for system/android package." into lmp-dev
* commit 'f919288dc7c7fc0d7e1897fe107508b46ce5838c':
  Ensure ApplicationInfo is for correct user for system/android package.
2014-09-08 13:46:36 +00:00
Kenny Guy
6a28a8d55c Merge "Ensure ApplicationInfo is for correct user for system/android package." into lmp-dev 2014-09-08 13:25:02 +00:00
Robin Lee
2c22d1920f Merge "Revert DevicePolicyManager PrivateKey APIs" 2014-09-08 11:18:24 +00:00
Nicolas Prevot
86a967312a Marking two flags as final.
Marking FLAG_PARENT_CAN_ACCESS_MANAGED and FLAG_MANAGED_CAN_ACCESS_PARENT
as final.

BUG:17387998

Change-Id: I1562b8638e7cce5706df4517493d1732f19ece8f
2014-09-08 12:15:35 +01:00
Przemyslaw Szczepaniak
eb6e3e5ade am 1e95f1df: am 8d4ecfbf: am 4dc1f927: Merge "API review requests for the TTS package." into lmp-dev
* commit '1e95f1df440ef1c8b4fcc11c1b27f33976ecf967':
  API review requests for the TTS package.
2014-09-08 10:54:59 +00:00
Przemyslaw Szczepaniak
4577511570 am 8d4ecfbf: am 4dc1f927: Merge "API review requests for the TTS package." into lmp-dev
* commit '8d4ecfbf0b78bc6eb6f16df2e6d409f350b14532':
  API review requests for the TTS package.
2014-09-08 10:44:44 +00:00
Przemyslaw Szczepaniak
2dbf3eac53 Merge "API review requests for the TTS package." into lmp-dev 2014-09-08 10:23:25 +00:00
Przemyslaw Szczepaniak
35c7698a1b API review requests for the TTS package.
- New TextToSpeechService methods are no longer protected.
- s/getRequiresNetworkConnection/isNetworkConnectionRequired
- New TextToSpeec#play.. methods use a Bundle instead of a HashMap
- New synthesizeToFile(), addSpeech(), addEarcon() methods
take a File instead of a String with filepath.
- TextToSpeechService#s/isValidVoiceName/onIsValidVoiceName

Bug:17389935,17253934
Change-Id: Iec76f59015c34104683c050fe1ff1ceccd604134
2014-09-08 11:04:19 +01:00
Svet Ganov
7498efdc5e Clicking on partially coverd views by other views or windows.
In touch exploration mode an accessibility service can move
accessibility focus in response to user gestures. In this case
when the user double-taps the system is sending down and up
events at the center of the acessibility focused view. This
works fine until the clicked view's center is covered by another
clickable view. In such a scenario the user thinks he is clicking
on one view but the click is handled by another. Terrible.

This change solves the problem of clicking on the wrong view
and also solves the problem of clicking on the wrong window.
The key idea is that when the system detects a double tap or
a double tap and hold it asks the accessibility focused node
(if such) to compute a point at which a click can be performed.
In respinse to that the node is asking the source view to
compute this.

If a view is partially covered by siblings or siblings of
predecessors that are clickable, the click point will be
properly computed to ensure the click occurs on the desired
view. The click point is also bounded in the interactive
part of the host window.

The current approach has rare edge cases that may produce false
positives or false negatives. For example, a portion of the
view may be covered by an interactive descendant of a
predecessor, which we do not compute (we check only siblings of
predecessors). Also a view may be handling raw touch events
instead of registering click listeners, which we cannot compute.
Despite these limitations this approach will work most of the
time and it is a huge improvement over just blindly sending
the down and up events in the center of the view.

Note that the additional computational complexity is incurred
only when the user wants to click on the accessibility focused
view which is very a rare event and this is a good tradeoff.

bug:15696993

Change-Id: I85927a77d6c24f7550b0d5f9f762722a8230830f
2014-09-07 23:36:20 -07:00
Yohei Yukawa
5285ee7aa0 am d4a6a75a: am 7d413caf: am 888edbfe: L API proposal: Introduce IS_RTL flag
* commit 'd4a6a75abf83d1749316018381864615bcad1627':
  L API proposal: Introduce IS_RTL flag
2014-09-08 03:51:39 +00:00
Yohei Yukawa
bb97c8a6a3 am 7d413caf: am 888edbfe: L API proposal: Introduce IS_RTL flag
* commit '7d413caf7b2a85bfbb46050410771267db6bdd8f':
  L API proposal: Introduce IS_RTL flag
2014-09-08 03:43:33 +00:00
Yohei Yukawa
5f183f0671 L API proposal: Introduce IS_RTL flag
This CL introduces CursorAnchorInfo.FLAG_IS_RTL for better
RTL support. This CL also renames *CharacterRect() with
*CharacterBounds() so that they can look more consistent
with other existing APIs.

Rationale:

CursorAnchorInfo.FLAG_IS_RTL addresses following issues.
1. There is no way to associate the RTL information with
   the insertion marker.
2. Returning mirrored (right < left) RectF for RTL in
   CursorAnchorInfo#getCharacterRect() is turned out
   to be bug-prone. Such usage of RectF is not fully
   supported. For example, RectF#isEmpty() always returns
   false when right < left.
3. There is no reliable to provide the RTL information
   when CursorAnchorInfo#getCharacterRect() returns an
   empty (right == left) RectF. Perhaps we could use +0.0
   and -0.0, but I'm afraid that it is also bug-prone.

BUG: 17365414
BUG: 17335734
Change-Id: Ic8c6fab58c01206872a34e7ee604cdda1581364d
2014-09-08 02:17:54 +00:00
Alan Viverette
bc9e3b701d am f1c3a704: am 7332e1f9: am d8bbf4cd: Merge "Add first day of week API to date picker" into lmp-dev
* commit 'f1c3a7046c385053edfbde2ab9c48ff7eb895e8f':
  Add first day of week API to date picker
2014-09-07 23:39:59 +00:00
Alan Viverette
b0465be3f5 am 7332e1f9: am d8bbf4cd: Merge "Add first day of week API to date picker" into lmp-dev
* commit '7332e1f9ba1c217cacfd5986e4722e4698d3b08d':
  Add first day of week API to date picker
2014-09-07 23:29:30 +00:00
Amith Yamasani
755d7a5877 am c0c51adc: am 630dfb41: am 081ba853: Merge "Use correct API for badging" into lmp-dev
* commit 'c0c51adc77aca5fcdb7cd08f0fa3b73395848eb0':
  Use correct API for badging
2014-09-07 23:25:20 +00:00
Amith Yamasani
bcc8ac2ce9 am 630dfb41: am 081ba853: Merge "Use correct API for badging" into lmp-dev
* commit '630dfb410afd44c9db401a1679d12aa1edcfcdea':
  Use correct API for badging
2014-09-07 23:15:17 +00:00
Alan Viverette
a3ca5a31a5 Merge "Add first day of week API to date picker" into lmp-dev 2014-09-07 23:13:46 +00:00
Amith Yamasani
d28665b3c8 Merge "Use correct API for badging" into lmp-dev 2014-09-07 22:56:19 +00:00
Amith Yamasani
fdf169cbea Use correct API for badging
Bug: 17414778
Change-Id: I7c0321d9435b0787a90cd62be80862069ba2d790
2014-09-07 15:45:57 -07:00
George Mount
9f1ac3976e Improve Visibility parent value check.
Bug 17412818
Bug 16398271

The Visibility Transition must not run against children that
are already disappearing or there will be, for example, a double
fade-out effect. Before this change, if a parent matched another
view, it would prevent its child from disappearing.

This change also removes using the overlay for children that have
been removed from the view hierarchy indirectly. This prevents
ListView and RecyclerView children from being added to the overlay.

Change-Id: Iac0610f0939da8643b98812ee1ec1c8d1d70a215
2014-09-07 15:04:03 -07:00
Winson Chung
2604908350 am df52495c: am 3004eee6: am 04682c2f: Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)
* commit 'df52495ccc0b655031bb92b4961d7298076f2a72':
  Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)
2014-09-07 20:35:10 +00:00
George Mount
0f0c473488 Use Alpha instead of TransitionAlpha for Activity Transitions.
Bug 17406204

Chrome needs to be notified when the shared element
should be hidden. The alpha setter can be overridden,
but setTransitionAlpha cannot. By setting alpha as
well as transitionAlpha, we get the immediate effect
from transitionAlpha along with enabling a trigger
for Chrome's shared element to hide.

Change-Id: I6ecb44872fd237afe89dbb36e43aa50c98693b52
2014-09-07 13:26:57 -07:00
Winson Chung
2e29a6dc03 am 3004eee6: am 04682c2f: Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)
* commit '3004eee618c3fad547768210f9252bad5abb0f69':
  Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)
2014-09-07 20:25:59 +00:00
Winson Chung
2e7f3bdcc9 Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)
Change-Id: Ic104876c5fe16997eca00e0a2b3d8644c927120c
2014-09-07 20:08:40 +00:00
Eric Laurent
38088d9419 am 5a8793f6: am 987ce7dc: am 2ff0e25f: Merge "SoundTrigger: fix capture format in recognition event" into lmp-dev
* commit '5a8793f6d5d6cb28cc6548aa2e3bfca598f9059e':
  SoundTrigger: fix capture format in recognition event
2014-09-07 19:40:43 +00:00
Dianne Hackborn
963ed62ba5 am f307a884: am 459f3911: am 9a77bddd: Merge "Fix issue #17391969: Only exception on Message.recycle() when target-sdk > 20" into lmp-dev
* commit 'f307a8847ec546401a5d5e1aaecb7f29a097cf66':
  Fix issue #17391969: Only exception on Message.recycle() when target-sdk > 20
2014-09-07 19:31:03 +00:00