30970 Commits

Author SHA1 Message Date
Jeff Brown
27d8383414 Fix possible leak in bitmap decoding.
In one particular error case, we might exit the function without
destroying the bitmap.

Bug: 6467873 (tangentially related)
Change-Id: I3a213cc0a53023d9d0d2a080aed15774f4c4c10c
2012-05-09 17:30:31 -07:00
Irfan Sheriff
c12a244632 Merge "Use Map for DnsSd TXT record" into jb-dev 2012-05-09 16:37:11 -07:00
Dianne Hackborn
518a3d82f7 Remove auto-brightness adjustment knob.
Not yet ready for release.

Change-Id: I75bc87f35af47c6baac1f26953d8bf3e38062c92
2012-05-09 16:30:49 -07:00
Irfan Sheriff
527ba07b63 Use Map for DnsSd TXT record
Bug: 6434844
Change-Id: I767077585f501b46026ed34ec3e778d3e53209cc
2012-05-09 16:25:00 -07:00
Eric Fischer
78ad92ab35 Merge "Import translations. DO NOT MERGE" into jb-dev 2012-05-09 16:24:20 -07:00
Svetoslav Ganov
e4abc512aa Remove activation gestures form reported and add a touch explore requesting flag.
1. Delegating activation gestures has several issues that we should
   decide how to handle if possible before allowing an accessibility
   service to take over them:

   A) It is needed that every view than can be clicked or long pressed on
      reacts to such as a response to calling performClick and performLongPress
      which is not necessary true since the view may watch the touch
      events and do its own click long click detection. As a result it may
      be possible that there are view a user cannot interact with in
      touch exploration mode but can if not in that mode.

   B) Clicking or long pressing on a different location in a view may yield
      different results, for example NumberPicker. Ideally such views have
      to implement AccessibilityNodeProvide which provider handles correctly
      the request for click long press on virtual nodes. Some apps however
      just fire different hover accessibility events when the user is over
      a specific semantic portion of the view but do not provide virtual
      nodes. Hence, a user will not be able to interact with such semantic
      regions but the system can achieve that by sending the click/long click
      at the precise location in the view that was last touch explored.

2. Adding a flag on accessibility service info to request explore by touch
   mode. There is no need to put the device in this mode if node of the currently
   enabled accessibility services supports it. Now the problem is inverted and
   the service has to explicitly state its capability.

3. Fixing a bug where includeImportantViews was ignored for automation
   services.

Change-Id: I3b29a19f24ab5e26ee29f974bbac2197614c9e2a
2012-05-09 16:17:20 -07:00
Uriel Rodriguez
363b60527c Merge "changed pokeWakelock() callback to take time in milliseconds" into jb-dev 2012-05-09 16:12:18 -07:00
Uriel Rodriguez
dff307697d changed pokeWakelock() callback to take time in milliseconds
Changed the pokeWakelock() call back to take one argument - the duration to stay awake in ms.  This
change was needed in order to poke the wakelock for the duration of the watchdog timeout.  This
must be done in the service because the duration of the watchdog timeout is unknown at this point.

Moved pokeWakelock() from start() to handleServiceConnected() to make sure that this poke happens
before the poke in the service.  This poke is still needed to account for when devices are rotated.

Change-Id: I19d62df1489514de0588ebb937678358e70ffc95
2012-05-09 19:08:22 -04:00
Chris Craik
a76f823c7f Merge "Fix locking for skip draw" into jb-dev 2012-05-09 15:37:03 -07:00
Guang Zhu
0fa152912e Merge "Make UiTestAutomationBridge see non-important views again" into jb-dev 2012-05-09 15:11:14 -07:00
Dianne Hackborn
a53de0629f Add callback hack to find out when to load system properties.
Use this to reload the trace and layout bounds properties.

This is ONLY for debugging.

Change-Id: I1c4bdb52c823520c352c5bac45fa9ee31160793c
2012-05-09 14:53:20 -07:00
Michael Jurka
8b2e37e5a0 Improve recents on sw600dp devices
Bug: 6405276

- Make thumbnails bigger
- Make thumbnails higher-res
- In landscape, start the thumbnails on the right
- Fix issue where you'd sometimes see "No recent 
apps" flash before the thumbnails appeared
- Fix issue where the first time recents was run
you'd see double the amount of thumbnails

Change-Id: I878caf57a955cb6a0c1b4f0a72b5b993609047f2
2012-05-09 14:43:33 -07:00
Jeff Sharkey
6367b1669d Merge "Recover from Throwable in FileRotator, dump." into jb-dev 2012-05-09 14:36:40 -07:00
Guang Zhu
df549f8381 Make UiTestAutomationBridge see non-important views again
This problem was introduced in I74df9c24. The intention of the
change was still let UiTestAutomationBridge see the
non-important views, but there were bugs in the implementation:

1. AccessibilityManagerService was not really updating
   mIncludeNotImportantViews when mIsAutomation is true

2. Wrong constant is used to set the flag

Change-Id: Ia0a2e9ed9720bd0ea3a563e0b492e870a6ec1586
2012-05-09 14:32:15 -07:00
Jeff Brown
7873d5b3ff Deprecate certain AbstractCursor fields.
Bug: 6353797
Change-Id: I52b67f35c867378849ceb77356d0065161157ac9
2012-05-09 14:32:14 -07:00
John Reck
55c68f14e1 Fix locking for skip draw
Bug: 6469098

Change-Id: I3e6903072994a5a0437c40dcf211ddb707883a69
2012-05-09 14:08:01 -07:00
Irfan Sheriff
1a11e33b91 am 9669a0ce: Merge "API review fixes" into jb-dev
* commit '9669a0ce574745ba0b0ebd32e8337811973fb7dc':
  API review fixes
2012-05-09 14:06:12 -07:00
Irfan Sheriff
9669a0ce57 Merge "API review fixes" into jb-dev 2012-05-09 14:04:04 -07:00
Svetoslav Ganov
cd26d63ffa am f103758b: Merge "Delegate list item focus and click actions to the parent list." into jb-dev
* commit 'f103758b7c78f4dc1c5bd57383d245ec138576a1':
  Delegate list item focus and click actions to the parent list.
2012-05-09 13:49:33 -07:00
Svetoslav Ganov
f103758b7c Merge "Delegate list item focus and click actions to the parent list." into jb-dev 2012-05-09 13:46:57 -07:00
Jeff Sharkey
6de357e4d1 Recover from Throwable in FileRotator, dump.
In rewriteSingle(), catch Throwable to rollback to backup file,
instead of just IOException. Also add dumpAll() to pack up contents
for later debugging, and use it when encountering bad stats.

Bug: 6467868
Change-Id: Ic8e287cf5a235706811a304a88d71d11d3a79cd4
2012-05-09 13:43:19 -07:00
Jeff Brown
fd23e3ed97 Fix bugs in fallback key handling.
If a fallback key is generated using a key plus a modifier,
then it's possible we might get a different fallback key
generated if the modifier has changed.  PhoneWindowManager
needs to remember which fallback is last generated for a
given key code so that it can apply the same fallback action.

When generating cancellation events, it's important to have
preserved the policyFlags of the original event.  Otherwise
we may not dispatch the cancellation properly.  For example,
some actions are not performed if the POLICY_FLAG_TRUSTED
is not specified.

Remember the metaState associated with a key event so we can
include it when canceled.

Tell the policy when a fallback is being cancelled so that it
can clean up its state.

After a SEARCH shortcut is invoked, clear the flag indicating
that a shortcut is pending.  This is to prevent SEARCH from
getting stuck down in the case where we might forget to send
the up.  (Shouldn't happen anymore after the prior fixes.)

Bug: 5616255
Change-Id: I68f0a9679c7af464eaf31c099f2aa50b53fecf1f
2012-05-09 13:34:28 -07:00
Kenny Root
7a7d8f182a am bad417df: Merge "Throw RemoteException when MountService is not yet up" into jb-dev
* commit 'bad417df657128a988b23a6b70b4d08633e4ac5a':
  Throw RemoteException when MountService is not yet up
2012-05-09 13:28:54 -07:00
Kenny Root
bad417df65 Merge "Throw RemoteException when MountService is not yet up" into jb-dev 2012-05-09 13:27:08 -07:00
Eric Fischer
0022e1eb2c Import translations. DO NOT MERGE
Change-Id: I57a86231283cbe04171cf895c2a9bac6b1851904
2012-05-09 12:20:18 -07:00
Gilles Debunne
4f9e7490e7 am 12ff1492: Merge "Spell checker underlines words even when there are no suggestions" into jb-dev
* commit '12ff149265ba599627896f6c1a0e3ea9721b54c1':
  Spell checker underlines words even when there are no suggestions
2012-05-09 11:52:13 -07:00
Gilles Debunne
12ff149265 Merge "Spell checker underlines words even when there are no suggestions" into jb-dev 2012-05-09 11:49:08 -07:00
Irfan Sheriff
22af38c526 API review fixes
- Remove the notion of channel from an application perspective
- Remove the use of DnsSd as part of API and add a protocol type to allow
future extensions
- Use the listener object as a handler for stop and unregister operations. Also,
we now allow multiple active discovery operations.
- Remove init/deinit operations in favour of setting up construction

Bug:6434844
Change-Id: Id15521d571aac9c4053d81184ad66dfc54f636de
2012-05-09 11:48:42 -07:00
Adam Cohen
88f295d72b am 6a080bff: Merge "Accounting for widget padding in dips instead of pixels" into jb-dev
* commit '6a080bff83b59c44b4eee493b8bf684f25871e2b':
  Accounting for widget padding in dips instead of pixels
2012-05-09 11:24:58 -07:00
Adam Cohen
6a080bff83 Merge "Accounting for widget padding in dips instead of pixels" into jb-dev 2012-05-09 11:23:12 -07:00
Adam Cohen
f065c96631 Accounting for widget padding in dips instead of pixels
Change-Id: I29c4290274f8b9fa6d9b49072d3cf37cf6f1acb8
2012-05-09 11:13:54 -07:00
Daisuke Miyakawa
6cf8be39cc am 57b09882: Merge "Have a new constant for "vibrate when ringing" setting" into jb-dev
* commit '57b098829f5960bc2fd29f0b0917189911b18338':
  Have a new constant for "vibrate when ringing" setting
2012-05-09 10:17:54 -07:00
Daisuke Miyakawa
57b098829f Merge "Have a new constant for "vibrate when ringing" setting" into jb-dev 2012-05-09 10:16:07 -07:00
satok
5f74536732 am d422ade3: Merge "Fix the issue that the ime switch icon is remaining after closing VoiceInput" into jb-dev
* commit 'd422ade3d5e4993e90d63c926ca0452fe2dd8bc0':
  Fix the issue that the ime switch icon is remaining after closing VoiceInput
2012-05-09 10:06:06 -07:00
satok
2f913d951c Fix the issue that the ime switch icon is remaining after closing VoiceInput
Change-Id: I4fd6b7b6c1e8a2603626d82ed3587716bea519d3
2012-05-10 01:48:03 +09:00
Kenny Root
07ba2ae327 Throw RemoteException when MountService is not yet up
Instead of throwing NullPointerException when getMountService() returns
null, simply throw RemoteException so the code calling getMountService()
can fail gracefully.

Bug: 6461657
Change-Id: Ibefc17de3e0024eb73bbd24914759c0a404f538e
2012-05-09 09:14:30 -07:00
Insun Kang
8902097bb6 Improve notifying TimedText by reducing marshall/unmarshalling.
o Removes mParcel from TimedText class.
o Converts native parcel into java parcel object directly without
copying to an intermediate byte array.
o JNIMediaPlayerListener::notify checks for Java exceptions, logs them,
and clears the exception state.

related-to-bug: 6405934

Change-Id: I8b82d3cd5b9b3ef8cad27e805202a0e445a88a45
2012-05-09 20:14:09 +09:00
Adam Powell
217477e013 am ea3f8cc7: Merge "Forgive me monkeys, for I have sinned." into jb-dev
* commit 'ea3f8cc71e0bb89840e727e22ba332bae228ac36':
  Forgive me monkeys, for I have sinned.
2012-05-09 01:50:08 -07:00
satok
957f1e3e1a am d1e323b2: Merge "Not to add invalid spell check spans Bug: 6464197" into jb-dev
* commit 'd1e323b272db90db426a4add18af4993f41ae361':
  Not to add invalid spell check spans Bug: 6464197
2012-05-09 01:49:57 -07:00
Xia Wang
cae2b331b8 am 72e95cfe: Merge "Fix Wifi test" into jb-dev
* commit '72e95cfef014c9354812717982bf312880d2bab5':
  Fix Wifi test
2012-05-09 01:49:51 -07:00
Dianne Hackborn
9d2947f80f am feecf9d7: Merge "Support for changing traces from development settings." into jb-dev
* commit 'feecf9d7869c87dfe11d594640d0c7ad2045d1fb':
  Support for changing traces from development settings.
2012-05-09 01:49:47 -07:00
Jeff Brown
8ab3f090c0 am 8c680128: Merge "Check for null fd when constructing AssetFileDescriptor." into jb-dev
* commit '8c68012809ab9a1593f295463624774975bec1e1':
  Check for null fd when constructing AssetFileDescriptor.
2012-05-09 01:49:44 -07:00
Svetoslav Ganov
939a09089f am 2aaa6bbd: Merge "Renaming the constants for activation and long press." into jb-dev
* commit '2aaa6bbd53319012e5eba107880c68dbc5b2d8db':
  Renaming the constants for activation and long press.
2012-05-09 01:49:35 -07:00
Adam Powell
c23411e6db am 13740708: Merge "Fix bug in TaskStackBuilder#addParentStack" into jb-dev
* commit '137407087b069b3418e49b260f64e48e7a6a3144':
  Fix bug in TaskStackBuilder#addParentStack
2012-05-09 01:49:17 -07:00
Svetoslav Ganov
72912116cf am a3b67289: Merge "Fixing View.getBoundsOnScreen()" into jb-dev
* commit 'a3b6728933c13599f3b2f22aad7016cdaa04d706':
  Fixing View.getBoundsOnScreen()
2012-05-09 01:49:10 -07:00
Chris Craik
4a5c01631e am b010601c: Merge "Pass webview instance when getting base layer / color, and prevent null value" into jb-dev
* commit 'b010601c41423e80eaf20297073a4ad56787bd1c':
  Pass webview instance when getting base layer / color, and prevent null value
2012-05-09 01:49:08 -07:00
George Mount
0d612c0d61 am 5602d023: Merge "Scroll edit text into view when keyboard shows." into jb-dev
* commit '5602d02389c2b945e8d78ea34990933a8e1ddc8b':
  Scroll edit text into view when keyboard shows.
2012-05-09 01:49:04 -07:00
Adam Cohen
d6e752831c am 8a7eff18: Merge "Account for auto-padding in AppWidgetHostView#updateAppWidgetSize (issue 6454251)" into jb-dev
* commit '8a7eff18f3f83e0d41de47b84052723f337bf53b':
  Account for auto-padding in AppWidgetHostView#updateAppWidgetSize (issue 6454251)
2012-05-09 01:48:50 -07:00
Adam Powell
eb0890da4c am a87f2346: Merge "More fun with AbsListView smooth scrolling" into jb-dev
* commit 'a87f23468182f64373f549e3f63666215e00f7eb':
  More fun with AbsListView smooth scrolling
2012-05-09 01:48:47 -07:00
Carlos Valdivia
e0ea02c20e am 3fcf1c85: Merge "Fix a race condition with respect to clients of SyncStorageEngine." into jb-dev
* commit '3fcf1c85873008df43ee80f896216fb39e4c630e':
  Fix a race condition with respect to clients of SyncStorageEngine.
2012-05-09 01:48:37 -07:00