39125 Commits

Author SHA1 Message Date
Xavier Ducrohet
6c740cf71e LayoutLib: Improve error reporting.
Change-Id: I37cad7e2efb959202960c57b271c55c759867139
2011-01-11 13:21:57 -08:00
Xavier Ducrohet
0de1607093 LayoutLib: fix XmlUtils.convertValueToInt
It looks like the device implementation of Integer.parseInt
is able to handle converting hexa value > 80000000 while the
desktop VM cannot.

This patch provide a fix for this.

While implementing it and running the TestDegates test I realized
that some delegate methods for Region were mising, so this adds them
too.

Change-Id: Ifee1efd47c8c52adc2f4658ec4fc8bd55adb84b4
2011-01-11 12:15:15 -08:00
Xavier Ducrohet
b3830b8978 LayoutLib: only support animator-type animations.
Change-Id: Ia3609fc5d11555190bc323d61a3577144a4692fd
2011-01-11 10:54:12 -08:00
Xavier Ducrohet
eb87b3bb53 LayoutLib: fix some issue with resource resolution.
TypedArray.getResourceId() is not only about id/foo,
it can be any type of resources.

Change-Id: Ia5e147bc078bb349a3fa500a04c596ae44ea34ce
2011-01-10 21:51:55 -08:00
Xavier Ducrohet
a57ca45d5d Merge "LayoutLib: move asserts around." into honeycomb 2011-01-10 17:44:16 -08:00
Joe Onorato
9c3850f24e Merge "current.xml" into honeycomb 2011-01-10 17:41:54 -08:00
Adam Powell
5c5fa339b4 Merge "Fix bug 3333015 - Overflow menu item submenus do not open" into honeycomb 2011-01-10 17:35:34 -08:00
Joe Onorato
77bbf6f066 current.xml
Change-Id: I58cacb79f4d44a0cf90ddbe5efcdcb50f6db81ce
2011-01-10 17:35:21 -08:00
Joe Onorato
94d7eef3be Merge "Make AppWidgetService handle components enabling and disabling." into honeycomb 2011-01-10 17:33:28 -08:00
Joe Onorato
e5e9558871 Merge "add ComponentInfo.isEnabled()" into honeycomb 2011-01-10 17:33:18 -08:00
Romain Guy
58818ab5b5 Merge "Fix the build" into honeycomb 2011-01-10 17:30:57 -08:00
Romain Guy
c71ad30f0c Fix the build
Change-Id: I39fde4140240bdd7fdb5d2823e990efbfde4a83e
2011-01-10 17:33:55 -08:00
Leon Scroggins
86e1fa647f Remove nativeCursorMatchesFocus, which is no longer necessary.
Bug:3335014

Requires a change in external/webkit.

Change-Id: I1dbaa73e86f312c6142c915e8cb252cf238f09c3
2011-01-10 17:28:02 -08:00
Joe Onorato
d070e89396 Make AppWidgetService handle components enabling and disabling.
Change-Id: Ie6b75cb90be38bbce694ccf2d5a342d7f0172fa4
2011-01-10 17:26:39 -08:00
Joe Onorato
a85a91573a add ComponentInfo.isEnabled()
Change-Id: I5ce59f62dc0ce3ce446bdbe397d1515e43031d76
2011-01-10 17:26:39 -08:00
Adam Powell
f0ad6e6eaf Fix bug 3333015 - Overflow menu item submenus do not open
Submenus of action bar menus will open as new menus.

Change-Id: I924b87bbea91b0df5e3608ec894530302c0e1d8d
2011-01-10 17:14:51 -08:00
Robert Greenwalt
55ccb88775 Merge "Don't check for services before boot-complete" into honeycomb 2011-01-10 17:13:24 -08:00
Jeff Brown
f900fed882 Merge "Fix NPEs in detached views." into honeycomb 2011-01-10 17:11:34 -08:00
Robert Greenwalt
03b15b976c Don't check for services before boot-complete
fixes the build

Change-Id: I2ee55d9aaad53dac16fa8182df3a7b43b57eb719
2011-01-10 17:09:25 -08:00
Mike Lockwood
f9a04233c1 @hide android.permission.WRITE_MEDIA_STORAGE
This permission is not needed for non-system or unbundled apps,
so we don't need it in the public API

Change-Id: I1a2a0349c6c5b7b5dc3104d69f4e39e95b878db9
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-10 19:59:02 -05:00
Romain Guy
3b703f2d11 Hide Canvas.getGL()
Change-Id: I6d81cf9f43ce0c990fe30b3b3159c95ac738ae79
2011-01-10 16:42:55 -08:00
Jeff Brown
b3ea92235c Fix NPEs in detached views.
Bug: 3297518
Change-Id: Ife1384f3a5bebbd28a29f97dc6d519f8a0b10ba9
2011-01-10 16:26:36 -08:00
Alex Sakhartchouk
fe852e216f Updating cubemap loading code.
Change-Id: I93bb00e5fd1ccc622d17eba70a510664c2093723
2011-01-10 15:57:57 -08:00
Vasu Nori
3045bbaf58 bug:3330569 print better message to help debug the problem
methods such as SQLiteStatement.simpleQueryForString() expect
one and only row to be returned when the query is executed.
if the application provides a query that doesn't return any data,
then the error message printed is pretty confusing.

make it less confusing and print the query itself to help debug
the error.

Change-Id: Ife2066f3a3eab0b98845a49e8f72b518458a7757
2011-01-10 15:37:47 -08:00
Dmitri Plotnikov
817b3f9342 Fixing field description.
PhoneLookup._ID is the contact id, not the data row id.

Change-Id: I51a308e26b93e178fde43123d0dfcb2b46630d6e
2011-01-10 15:29:54 -08:00
Huahui Wu
0904c0dcfb b/3302354 Always pass multi-touch events into WebKit, then handle them in WebView if preventDefault is not set.
WebViewCore.java: add a MotionEvent field into TouchEventData for multi-touch so the extra data such as pressure, size can be preserved.
WebView.java:
  1. Extracted the common code for multi-touch and single touch to a new private function: handleTouchEventCommon()
  2. Extracted the multi-touch code, including zooming and panning, to a new private function: handleMultiTouchInWebView()
  3. In onTouchEvent(), single touch events keep the code path, but multi-touch events are always passed to Webkit first.
  4. In Privatehandler.handleMessage(), if WebKit didn't consume the multi-touch event, the private handler calls the handleMultiTouchInWebView() to zoom and pan.

Change-Id: I3eba8812bd7cf6a298ff12e0b66223dae6725060
2011-01-10 15:22:03 -08:00
Romain Guy
d2c78b3972 Fix the build.
Change-Id: Ief8734697e8fdacb6fdbfdbd78793e06beb86d26
2011-01-10 15:01:13 -08:00
Subir Jhanb
e896be71c7 Making the sync manager take the data connected value from ConnectivityManager and not from the intent.
BUG:3337128

Change-Id: Ife2705569fcdde1b201773d6622a8a9d0b7ccfa1
2011-01-10 14:18:09 -08:00
Stephen Hines
d94988bb0c Merge "Split time functions into rs_time.rsh header." into honeycomb 2011-01-10 14:14:35 -08:00
Romain Guy
778f5f95d7 Merge "Make sure onCancelled() is called if cancel() is called early." into honeycomb 2011-01-10 13:39:41 -08:00
Elliott Hughes
6452c259e0 Merge "Remove tests for dead API." into honeycomb 2011-01-10 13:39:30 -08:00
Romain Guy
5ba812b9e9 Make sure onCancelled() is called if cancel() is called early.
In some situations, when cancel() was called before the task had a
chance to start its execution, onCancelled() would not be invoked.

Change-Id: I6c1f4cd28a209fb8cc779bb212f500565dfceaae
2011-01-10 13:33:12 -08:00
Elliott Hughes
ffcac1a127 Remove tests for dead API.
We removed the implementation, so there's no point trying to test it. (The
methods are still there for binary compatibility, which is why this still
compiled.)

Change-Id: I51f392f3dab542fca0c80fab4974354e2c689b9e
2011-01-10 12:57:36 -08:00
Jesse Wilson
eb97c0ddc0 Patch new JSON APIs with changes informed by GSON.
Change-Id: I86c12a123080cc06ab23d11d1563bb52c5902517
2011-01-10 12:56:31 -08:00
Gilles Debunne
b3fbd7e0fd Merge "Stop text selection mode when new text replaces selection." into honeycomb 2011-01-10 12:49:23 -08:00
Leon Scroggins
e0b1912480 Merge "Do not store the find callback until action mode starts." into honeycomb 2011-01-10 12:41:20 -08:00
Jamie Gennis
fbab3b67af Merge "Fix a bug in SurfaceTexture::setBufferCount." into honeycomb 2011-01-10 12:30:33 -08:00
Jamie Gennis
ffe3f1cb16 Merge "Add method logging to the SurfaceTexture C++ class." into honeycomb 2011-01-10 12:30:14 -08:00
Jamie Gennis
c936c5cec6 Merge "Initialize the SurfaceTexture buffer slots." into honeycomb 2011-01-10 12:29:51 -08:00
Leon Scroggins
19abf2d7a5 Do not store the find callback until action mode starts.
Bug:3331652

Prevents a bug where showFindDialog was apparently
called twice.

Change-Id: Ida473ef1b9b1b8b641fa3432b55d7a92eb7d0808
2011-01-10 15:29:01 -05:00
Andy McFadden
155b552b1d Merge "Fix start-time setreuid complaints." into honeycomb 2011-01-10 12:07:03 -08:00
Xavier Ducrohet
419e8296ea LayoutLib: move asserts around.
Change-Id: I6fcfcf2e6fad1d9fa172b9a8c20c72fa2533e7fa
2011-01-10 11:57:49 -08:00
Andreas Huber
b736cb28ab Return a runtime error instead of asserting if the M4vH263Decoder fails in start()
Change-Id: Ie704a72685f749613fa0ed5fa6f461abc0406371
related-to-bug: 3328200
2011-01-10 11:57:30 -08:00
Gilles Debunne
d94f8c5055 Stop text selection mode when new text replaces selection.
Rationalized the use of hideControllers and stopSelectionActionMode.

Hiding the selection controller should be done exclusively by stoping text selection
mode.

Bug 3322636

Change-Id: I30b4a651aa5fb5a865d636bec495a2b96ef114cd
2011-01-10 11:29:15 -08:00
Andreas Huber
748ba9a951 Merge "NuPlayer now properly sends MEDIA_SET_VIDEOSIZE notifications." into honeycomb 2011-01-10 11:26:38 -08:00
Andy McFadden
05554a4ee9 Fix start-time setreuid complaints.
The code was checking errno instead of the return value from the call.
This fixes calls to setreuid(), setregid(), and setpgid().

Bug 3131052

Change-Id: I8b6155bd4fa9b941895b35fed62cfc163b420fff
2011-01-10 11:22:43 -08:00
Leon Scroggins
9cac3c31d2 Remove the option to use shift to start selection mode.
Bug:3329956

Also ensure that keys dispatched while the WebTextView
is attached get sent to the WebTextView.

Change-Id: Icd9125a85929089a6f376b71c1cb40e885264168
2011-01-10 13:57:38 -05:00
Xavier Ducrohet
5c6b786e1c Merge "LayoutLib: display warning when a resource reference fails to resolve." into honeycomb 2011-01-10 10:54:18 -08:00
Xavier Ducrohet
0f83b571e2 Merge "LayoutLib: Fix moveChild animation." into honeycomb 2011-01-10 10:53:37 -08:00
Andreas Huber
7caa130a98 NuPlayer now properly sends MEDIA_SET_VIDEOSIZE notifications.
Change-Id: I99b4223ad6ecfd8839a3c0e737fef3165565d76d
related-to-bug: 3336496
2011-01-10 10:38:31 -08:00