Commit Graph

23681 Commits

Author SHA1 Message Date
Wink Saville
d38e766e5e Merge "Fix calcuation of CMD_TO_STRING_COUNT." 2012-04-19 09:53:52 -07:00
Chet Haase
f37d87b35b Merge "Fix init of Animation in View drawing code" 2012-04-19 09:36:49 -07:00
John Reck
9687433dc6 Merge "Cleanup PositionMetadata recycles" 2012-04-19 09:28:16 -07:00
Chet Haase
1fb8a9e44a Fix init of Animation in View drawing code
The refactor of ViewGroup.drawChild() resulted in an error
in a new method (View.drawAnimation) where animations were being
initialized with their view dimensions instead of the parent dimensions.

Issue #6292681 RotateAnimationTest#testRotateAgainstPoint fails on JRN04
Issue #6293275 TranslateAnimationTest#testInitialize fails on JRN04

Change-Id: Ia90711cadd7a6c20fd788e5b8b18a5b28551e68c
2012-04-19 09:22:34 -07:00
Daniel Sandler
0da673f02e Notifications may now be disabled on a per-package basis.
When a package's ability to post notifications is disabled,
all outstanding notifications from that package are
immediately canceled, and the score of any future
notification from that package is set so low that the
notification manager won't even send it to the status bar.

No UI for this yet, but you can try it out:

  adb shell service call notification 8 s16 $PKG i32 (1|0)

Bug: 5547401

Change-Id: Ieccac5746b40f60debd902a45d1dedbc91dcdc89
2012-04-19 11:39:49 -04:00
Wu-cheng Li
f66bc73fa7 Merge "Remove new camera open API." 2012-04-19 00:29:39 -07:00
Wu-cheng Li
7bc1b21a52 Remove new camera open API.
Applications are not resumed under the lock screen now.
This API is not needed anymore.

bug:5584464
Change-Id: I1c18efb5ba1ecd39320eb5fd252c6e1229d7b89c
2012-04-19 14:18:44 +08:00
Wu-cheng Li
3c3b5b5e0b Merge "Unhide MediaColumns.WIDTH and MediaColumns.HEIGHT." 2012-04-18 23:13:10 -07:00
Wink Saville
01ce0ce472 Fix calcuation of CMD_TO_STRING_COUNT.
Change-Id: I03ae1a545474d7dcd4e65c58d9befd020d5b9c54
2012-04-18 21:42:44 -07:00
Wu-cheng Li
ac13cc06ee Unhide MediaColumns.WIDTH and MediaColumns.HEIGHT.
bug:5224359
Change-Id: I3dcaa2ed383e12ae308b28db45cbe8e503610cdc
2012-04-19 12:11:17 +08:00
Daniel Sandler
6b31880838 Remove intruder alert APIs from JB.
Change-Id: I27042d604fbe15879e7b7aaaac860db2d1efa47f
2012-04-18 20:53:24 -07:00
Jeff Brown
83cb5807b0 Merge "Add more dead keys. Use NFC tables for composition." 2012-04-18 19:12:18 -07:00
Jeff Brown
c3643b9013 Add more dead keys. Use NFC tables for composition.
Bug: 6110399
Change-Id: I343d24df21dac2c069136b016e70e39f0feb6df9
2012-04-18 19:09:08 -07:00
Svetoslav Ganov
2c23a14a3b Merge "Adding API for getting the root node info in the active window." 2012-04-18 18:55:24 -07:00
Svetoslav Ganov
0846e29d0b Adding API for getting the root node info in the active window.
1. This APIs is useful for accessibility services since very often
   they want to get access to the root node in the current window
   to determine where accessibility focus is and subsequently find
   a next view to take accessibility focus.

Change-Id: Ide5231f832d9ce2e9b14dc411dfd675f753a4edb
2012-04-18 18:50:57 -07:00
Quddus Chong
8f05a120c9 am 0691f70a: am 13bb0791: Merge "docs: Added missing comma in code snippet. Bug: 6322757" into ics-mr1
* commit '0691f70ad8833e9a2b042d7a56b07ad0ee561f87':
  docs: Added missing comma in code snippet. Bug: 6322757
2012-04-18 17:04:57 -07:00
Quddus Chong
0691f70ad8 am 13bb0791: Merge "docs: Added missing comma in code snippet. Bug: 6322757" into ics-mr1
* commit '13bb0791a1cec6a678db3bd7ab23060b3bb911ae':
  docs: Added missing comma in code snippet. Bug: 6322757
2012-04-18 17:02:48 -07:00
Philip Milne
eaa0a04f83 Merge "Share Insets instances between views that have the same background (Drawable)" 2012-04-18 16:17:33 -07:00
Philip Milne
bbd51f1e36 Share Insets instances between views that have the same background (Drawable)
Change-Id: I47d93ccca6f553b678d25966d10d7a0a97cfa5ea
2012-04-18 16:06:27 -07:00
Jeff Brown
0b9de5336d Merge "Improve selection of dead key accent chars." 2012-04-18 15:58:54 -07:00
Jeff Brown
accce945e5 Improve selection of dead key accent chars.
The '^', '`', and '~' characters that we use for circumflex,
grave and tilde accents are ugly.  Use the appropriate printing
modifier characters instead.

Bug: 6110399
Change-Id: I53891139ed1cef3010f5319ff49df1eeb1c6feeb
2012-04-18 15:47:48 -07:00
John Reck
820b236adc Cleanup PositionMetadata recycles
Bug: 6360817

Change-Id: I428014be20447d074d378901a289e090b4e4e777
2012-04-18 14:15:00 -07:00
Svetoslav Ganov
f01d3dd710 Merge "Adding some more gestures and actions for accessibility." 2012-04-18 14:14:37 -07:00
Svetoslav Ganov
005b83b0c6 Adding some more gestures and actions for accessibility.
1. Added more gesture for accessibility. After a meeting
   with the access-eng team we have decided that the current
   set of gestures may be smaller than needed considering
   that we will use four gestures for home, back, recents,
   and notifications.

2. Adding actions for going back, home, opening the recents,
   and opening the notifications.

3. Added preliminary mapping from some of the new gestures
   to the new actions.

4. Fixed a bug in the accessibility interaction controller
   which was trying to create a handled on the main looper
   thread which may be null if the queried UI is in the
   system process. Now the context looper of the root view
   is used.

5. Fixed a bug of using an incorrect constant.

6. Added a missing locking in a couple of places.

7. Fixed view comparison for accessibilityt since it was
   not anisymmetric.

bug:5932640
bug:5605641

Change-Id: Icc983bf4eafefa42b65920b3782ed8a25518e94f
2012-04-18 13:43:55 -07:00
Jeff Sharkey
4b12171c64 Merge "Update Environment fallback defaults." 2012-04-18 12:23:54 -07:00
Jeff Sharkey
e7d9cd363d Merge "Add ALLOW_METERED column to DownloadManager." 2012-04-18 12:22:49 -07:00
Michael Kolb
23a2ce1fad Merge "Prevent dialog from invalid context" 2012-04-18 10:40:59 -07:00
Jeff Sharkey
15ec7d6d7f Add ALLOW_METERED column to DownloadManager.
Also allow isActiveNetworkMetered() to inspect networks without
requiring ACCESS_WIFI_STATE.

Bug: 3001465
Change-Id: Ibc23577d4ad941e4f93db417be6b046881dcbfb1
2012-04-18 10:12:09 -07:00
Michael Kolb
dfceaf2cdb Prevent dialog from invalid context
Bug: 6346748

Change-Id: Ia65ecc1ecb882b480127aca0034db25a9e51ed3c
2012-04-18 08:37:41 -07:00
Daniel Sandler
6a858c347f Gestures for expanding notifications.
Change-Id: I104c157ffcc2d60b3f0a95c59d4322b07103b69f
2012-04-18 11:21:19 -04:00
Chet Haase
3d100d97a5 Merge "Fix logic of animator start/cancel/end callbacks" 2012-04-18 07:41:45 -07:00
Daniel Sandler
b9a6d4d052 Merge "New InboxStyle template for expanded notifications." 2012-04-18 05:28:00 -07:00
satok
e1e874854a Optimize the timing to query sentence level spell checking
Bug: 6354647
Change-Id: I52e6c21387c7f4d6fc05b4c50bbb0a5a6c75194b
2012-04-18 16:52:44 +09:00
Michael Chan
2c1dcfdabb Merge "Added identity and namespace to Calendar Attendees" 2012-04-17 21:27:53 -07:00
Daniel Sandler
879c5e07c0 New InboxStyle template for expanded notifications.
Bug: 6336834
Change-Id: I67b273350b984673cbfb19267451a3782d0477fc
2012-04-17 23:41:58 -04:00
Svetoslav Ganov
6da9677f49 Merge "Views with zero alpha are shown for accessibility." 2012-04-17 19:29:42 -07:00
Svetoslav Ganov
b3830f6737 Views with zero alpha are shown for accessibility.
1. Views that a user cannot see should not be reported for
   accessibility. The check for zero alpha was missing.

bug:6291855

Change-Id: I3cb4c19cccf0dc2427677df630d124c36bd4770b
2012-04-17 19:27:38 -07:00
Michael Chan
37f1d29784 Added identity and namespace to Calendar Attendees
Bug: 6353721
Change-Id: I8cf7a5bbeb5380320b9bb11875168bef4e180b31
2012-04-17 19:03:38 -07:00
Michael Chan
62d52f9ff8 Fix build
Change-Id: I56d6305b6c28dab8c6d4d04d56df277e0ca39d91
2012-04-17 18:39:00 -07:00
Michael Chan
4db3ca7f81 Merge "Add support for identity in calendar attendees" 2012-04-17 17:56:25 -07:00
Craig Mautner
1b66766f62 Merge "Add call-stack reporting methods into Debug" 2012-04-17 17:28:20 -07:00
Craig Mautner
a51a9564fd Add call-stack reporting methods into Debug
Added two public methods to Debug. These methods return a String
indicating the caller (getCaller()) or callers (getCallers(int depth))
of the calling method. The String indicates the class, method and line
number of the caller(s). Similar to using Throwable.fillInStackTrace()
but much more concise.

Change-Id: I53d0085aa50e4501d28e8eb3ad5b91ef700ac218
2012-04-17 17:25:50 -07:00
Jeff Sharkey
e704a15bbf Update Environment fallback defaults.
Change-Id: Ia385b03023e38c01546e57635ccf9b29d017220a
2012-04-17 16:28:44 -07:00
Michael Chan
48ec622265 Add support for identity in calendar attendees
Bug: 6353721
Change-Id: I8667f55e09adf09b070323484342fc296240ff51
2012-04-17 15:58:28 -07:00
John Reck
06fd472390 Merge "Fix a bug with enterTouchMode removing focus" 2012-04-17 15:37:48 -07:00
John Reck
09dd116cd3 Fix a bug with enterTouchMode removing focus
Bug: 6347083
 Fix an issue where enterTouchMode would remove focus from the
 view that already has focus and is focusableInTouchMode. This
 causes issues with WebView, as it updates internal state when
 losing and gaining focus.

Change-Id: I5c1f72cc08baf3445e2be9e0496606a53fb9929e
2012-04-17 14:29:05 -07:00
Chet Haase
17cf42cb85 Fix logic of animator start/cancel/end callbacks
The callbacks for animators in some corner cases were not being
called correctly. For example, startDelayed animators that were
started and then ended didn't send out the proper events.

This CL fixes that logic. Specifically:
- An animator that is end()'d will implicitly start() itself and then
assign an end value. This was already the case, but listeners were not
getting notified. Now this situation causes callbacks to listeners for
both the start and end events.
- startDelayed animators that are end()'d or cancel()'d prior to finishing
the startDelay phase will send out events (start and cancel/end, as appropriate)
to listeners.

Change-Id: I40a0f2fdb19d9ec7c3726a91363686c6ecb7d915
2012-04-17 13:58:44 -07:00
Chet Haase
df1423e28c Merge "Adding new CHANGING transition to LayoutTransition." 2012-04-17 13:56:28 -07:00
John Reck
6849e4dd45 Merge "Add destroyed check" 2012-04-17 13:54:54 -07:00
Chet Haase
7dd4a536a1 Adding new CHANGING transition to LayoutTransition.
LayoutTransition used to depend on child views being added/removed or
shown/hidden in the transition container. These evens would trigger animations
to fade the child view as well as those to animate the side-affected changes
to sibling views. This CL enables a new feature in LayoutTransition that
enables animating any changes to the layout of the children in the container
whenever a layout occurs. For example, you can change the LayoutParams of a
child view and call requestLayout() to automatically animate those changes.

This capability is not enabled by default. To enable, call the new
LayoutTransition.enableTransitionType(LayoutTransition.CHANGING) method.

Change-Id: I4d07a3b36245353b2151f0dca4f75080ab6a4592
2012-04-17 13:33:55 -07:00