Commit Graph

43689 Commits

Author SHA1 Message Date
Kenny Guy
3e3fcdf742 am 4e9c9518: Merge "Renaming of LauncherApps apis" into lmp-dev
* commit '4e9c9518f937377fab1afd78c09d5d47a1a11ed1':
  Renaming of LauncherApps apis
2014-09-08 20:51:05 +00:00
Kenny Guy
d9037a48c6 Merge "Renaming of LauncherApps apis" into lmp-dev 2014-09-08 20:47:07 +00:00
Kenny Guy
5856bcfd5f am 652e64d3: Merge "Revert "Ensure ApplicationInfo is for correct user for system/android package." Cache in ActivityThread means this still doesn\'t make sure we will get an ApplicationInfo for the user being requested. So reverting." into lmp-dev
* commit '652e64d30c2b1d499dbcba93056eaf40b270ad09':
  Revert "Ensure ApplicationInfo is for correct user for system/android package." Cache in ActivityThread means this still doesn't make sure we will get an ApplicationInfo for the user being requested. So reverting.
2014-09-08 20:13:08 +00:00
Kenny Guy
48f0b48555 Merge "Revert "Ensure ApplicationInfo is for correct user for system/android package." Cache in ActivityThread means this still doesn't make sure we will get an ApplicationInfo for the user being requested. So reverting." into lmp-dev 2014-09-08 20:02:10 +00:00
Jorim Jaggi
80be90606e am 5d629572: Merge "Restrict line count for BigTextStyle" into lmp-dev
* commit '5d629572c2e3c8142ed437efbd1ebdd4bde4220c':
  Restrict line count for BigTextStyle
2014-09-08 19:57:10 +00:00
Jorim Jaggi
f98fbb710b Merge "Restrict line count for BigTextStyle" into lmp-dev 2014-09-08 19:46:45 +00:00
Kenny Guy
c2a4060005 Revert "Ensure ApplicationInfo is for correct user for system/android package."
Cache in ActivityThread means this still doesn't make sure we will
get an ApplicationInfo for the user being requested. So reverting.

This reverts commit 4a3b8aa08d743b28d53b327597abf03a925641f2.

Bug:17002733
Change-Id: Ie40eb31c4074cea09de3d6a41fe38b14e00eb059
2014-09-08 18:53:56 +00:00
Svet Ganov
a8ea00af2a am a00c7eb9: Merge "Clicking on partially coverd views by other views or windows." into lmp-dev
* commit 'a00c7eb909b043ce5c915604087438d06b7d164e':
  Clicking on partially coverd views by other views or windows.
2014-09-08 18:51:42 +00:00
Dharmesh Mokani
ca1459bb0f am e70ac872: Merge "Remove old methods : AlwaysOnHotwordDetector" into lmp-dev
* commit 'e70ac872c6655c6ab8c0e3ce48a7ed13df99494f':
  Remove old methods : AlwaysOnHotwordDetector
2014-09-08 18:51:39 +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
539909ae96 am f7b281a6: Merge "Use Alpha instead of TransitionAlpha for Activity Transitions." into lmp-dev
* commit 'f7b281a624c76d0bb744cf4bb47e92d35b66e34b':
  Use Alpha instead of TransitionAlpha for Activity Transitions.
2014-09-08 18:34:47 +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
4736043809 am 2f0ed017: Merge "Delayed ASEC allocation, refine progress handling." into lmp-dev
* commit '2f0ed01789f305506426b67139146b634457fd5a':
  Delayed ASEC allocation, refine progress handling.
2014-09-08 16:48:39 +00:00
Jeff Sharkey
e016605981 Merge "Delayed ASEC allocation, refine progress handling." into lmp-dev 2014-09-08 16:38:42 +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
Jorim Jaggi
457a10d29c Restrict line count for BigTextStyle
Also fixes paddings for the first line for InboxStyle notifications.

Bug: 17161340
Change-Id: I00a92f256d9ccad7cfbcecb591e84bb0d68ba635
2014-09-08 18:31:03 +02:00
Dharmesh Mokani
50c290406a Remove old methods : AlwaysOnHotwordDetector
Bug: 17389896
Change-Id: I47d0ae3ecad0ce8a74ed65a73309faa541b74a06
2014-09-08 09:22:16 -07:00
Nicolas Prevot
6d9a8d3465 am 09286405: Merge "Marking two flags as final." into lmp-dev
* commit '09286405d1c3b3ace460521049989a6d662ba203':
  Marking two flags as final.
2014-09-08 16:16:41 +00:00
Nicolas Prevot
97e75e1da9 Merge "Marking two flags as final." into lmp-dev 2014-09-08 16:06:30 +00:00
George Mount
a9e7c21f14 am 850bca01: Merge "Only call setHasTransientState in captureHierarchy." into lmp-dev
* commit '850bca013baf35c99895009e94943f3f127b9e70':
  Only call setHasTransientState in captureHierarchy.
2014-09-08 15:00:07 +00:00
George Mount
a740b2bf9a Merge "Only call setHasTransientState in captureHierarchy." into lmp-dev 2014-09-08 14:52:34 +00:00
George Mount
cce205119c am c452d4c9: Merge "Improve Visibility parent value check." into lmp-dev
* commit 'c452d4c91358b97ef996eca624a081c4ad9547f2':
  Improve Visibility parent value check.
2014-09-08 14:08:02 +00:00
George Mount
24e08d0692 Merge "Improve Visibility parent value check." into lmp-dev 2014-09-08 13:59:40 +00:00
Kenny Guy
fa9c7aa844 am b78a0a11: Merge "Ensure ApplicationInfo is for correct user for system/android package." into lmp-dev
* commit 'b78a0a111f7a52954eea6bdba5ade08870cee035':
  Ensure ApplicationInfo is for correct user for system/android package.
2014-09-08 13:35: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
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
fa1746a56b am 4dc1f927: Merge "API review requests for the TTS package." into lmp-dev
* commit '4dc1f927d49c3999c5079f72fc09f364b29505d6':
  API review requests for the TTS package.
2014-09-08 10:34:52 +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
eb2776b5f5 am 888edbfe: L API proposal: Introduce IS_RTL flag
* commit '888edbfe1790878361f7dfad6d63c6263765665a':
  L API proposal: Introduce IS_RTL flag
2014-09-08 03:35:08 +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
f9477fdf8c am d8bbf4cd: Merge "Add first day of week API to date picker" into lmp-dev
* commit 'd8bbf4cd4477f5485da368ed579b687700c1644d':
  Add first day of week API to date picker
2014-09-07 23:20:00 +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
7ebb8a6526 am 081ba853: Merge "Use correct API for badging" into lmp-dev
* commit '081ba8539011ed84abf6c5e9f7de02b26d86fbdf':
  Use correct API for badging
2014-09-07 23:05:45 +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
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
4590c3b30c am 04682c2f: Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)
* commit '04682c2fa9f825cb2d09b6303c2b9b3b24e6bd19':
  Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)
2014-09-07 20:16:01 +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
83e9d6dcdd am 2ff0e25f: Merge "SoundTrigger: fix capture format in recognition event" into lmp-dev
* commit '2ff0e25f376ea6aee0961f99bd15fd9fd3e01033':
  SoundTrigger: fix capture format in recognition event
2014-09-07 19:20:33 +00:00
Dianne Hackborn
3035829d4c am 9a77bddd: Merge "Fix issue #17391969: Only exception on Message.recycle() when target-sdk > 20" into lmp-dev
* commit '9a77bddd11c76c06b5fb45cada0a871f75ae66bd':
  Fix issue #17391969: Only exception on Message.recycle() when target-sdk > 20
2014-09-07 19:10:42 +00:00
Dianne Hackborn
bbb3b4cf6c am 6a83e4d1: Merge "Work on issue #17357238: Recents is often slow if not used in a while" into lmp-dev
* commit '6a83e4d1c445658f1e489b744119755c976e9eb0':
  Work on issue #17357238: Recents is often slow if not used in a while
2014-09-07 19:10:38 +00:00
Eric Laurent
8232d822aa Merge "SoundTrigger: fix capture format in recognition event" into lmp-dev 2014-09-07 19:10:07 +00:00
Dianne Hackborn
b30c9920df Merge "Fix issue #17391969: Only exception on Message.recycle() when target-sdk > 20" into lmp-dev 2014-09-07 19:04:05 +00:00
Dianne Hackborn
66d557875d Merge "Work on issue #17357238: Recents is often slow if not used in a while" into lmp-dev 2014-09-07 19:03:20 +00:00
Unsuk Jung
95d18b709e am 2ba17d31: Merge "Add a hardware feature definition corresponding to audio output support." into lmp-dev
* commit '2ba17d31623e05fbeb934d8def89aec9041ff15e':
  Add a hardware feature definition corresponding to audio output support.
2014-09-07 03:03:52 +00:00
Unsuk Jung
68c936f77d Merge "Add a hardware feature definition corresponding to audio output support." into lmp-dev 2014-09-07 01:54:13 +00:00