2673 Commits

Author SHA1 Message Date
Wei Huang
e87b2f0276 add Gservices settings for adaptive heartbeat parameters and wifi heartbeat interval. 2009-06-03 16:09:59 -07:00
Android (Google) Code Review
ddb69f5c00 Merge change 3083
* changes:
  Generalize bitmap support and add remaining GL formats. Fix bug in command fifo looping case.
2009-06-03 16:05:59 -07:00
Jason Sams
e2ae85fc5a Generalize bitmap support and add remaining GL formats.
Fix bug in command fifo looping case.
2009-06-03 16:04:54 -07:00
Guang Zhu
53003de64e Skip empty lines in test url list. 2009-06-03 16:01:58 -07:00
Suchi Amalapurapu
701f5164c1 Grant permissions to older package when deleting an updated system application.
When a system app gets updated, the permissions are granted to the new pkg. Similary when this updated pkg(from data partition)
gets removed, the older pkg from system partition is restored. but the permissions are'nt being granted explicitly and so the restore fails.
This fix addresses specific bugs related to uninstall of updated system apps. These code paths will be revisited later but this fix is needed for OTA's that might
fall back to older versions of system apps.
2009-06-03 15:52:04 -07:00
Amith Yamasani
eaeb663bcd Track activity foreground CPU usage for battery stats.
Track the foreground CPU time of an activity so that we can tell if apps are
spending more time in the background compared to foreground.
Update power profile values for screen backlight and GPS.
Fix some javadoc bugs (milliseconds vs. microseconds).
2009-06-03 15:38:24 -07:00
Evan Millar
ab5742dd63 Adds "is_primary" and "is_super_primary" columns to DataColumns.
Replaces the "primary" values stored in generic data fields with
standard "is_primary" and "is_super_primary" fields in the DataColumns
class. This makes it much easier to watch for changes to these fields
and enforce the uniqueness of primary fields.
2009-06-03 15:16:58 -07:00
Mathias Agopian
3b2c69d3b5 am cede1ed3: fix [1610840] Positional light doesn\'t work correctly on emulator
Merge commit 'cede1ed3e1721dc4a697a540388ef0f4b51c60eb'

* commit 'cede1ed3e1721dc4a697a540388ef0f4b51c60eb':
  fix [1610840] Positional light doesn't work correctly on emulator
2009-06-03 15:12:30 -07:00
Android (Google) Code Review
411c77df9e am 5de674e1: Merge change 3013 into donut
Merge commit '5de674e1cbd6e43b6d7954ccacf5cd709b30265d'

* commit '5de674e1cbd6e43b6d7954ccacf5cd709b30265d':
  Adding missing callback onJsConfirm to dismiss any confirmation dialogs
  fix a bug in GL lighting where the specular component could be ommited when vertex material was disabled.
2009-06-03 15:12:28 -07:00
Mathias Agopian
cede1ed3e1 fix [1610840] Positional light doesn't work correctly on emulator
This bug was introduced when lighting computations was changed from eye-space to object-space.
The light position need to be transformed back to object-space each time the modelview matrix changes which requires us to compute the inverse of the modelview matrix. This computation was done with the assumption that normals where transformed (which was the case when the computation was made in eye-space), however, normals only require the inverse of the upper 3x3 matrix while transforming positions requires the inverse of the whole matrix.
This caused the interesting behavior that lights were more-or-less transformed properly, but not translated at all, which caused improper lighting with directional lights in particular.

There was also another smaller bug affecting directional lights: when vertices are read, only the active component are read, the other ones are ignored, later, the transformation operations are set up to ignore the unset values, howver, in the case of lighting, we use the vertex in object space (that is, before it is transformed), and therefore were using uninitalized values; in particular w.
2009-06-03 15:09:52 -07:00
Android (Google) Code Review
5de674e1cb Merge change 3013 into donut
* changes:
  fix a bug in GL lighting where the specular component could be ommited when vertex material was disabled.
2009-06-03 15:07:26 -07:00
Wei-Ta Chen
2a2c5cd741 Modify the decoding logic in the FD case when a purgeable flag is set,
and lower the threshold of bitmap size for using ashmem().

For the decoding logic, we now go through the "non-purgeable" path if isShareable is false,
irrespective of the value of the purgeable flag.
2009-06-03 14:27:52 -07:00
Guang Zhu
b9a39cd300 Adding missing callback onJsConfirm to dismiss any confirmation dialogs 2009-06-03 14:14:27 -07:00
Android (Google) Code Review
a6cfdb1c73 Merge change 3049
* changes:
  Adding a new type: aggregation_exception.
2009-06-03 13:40:44 -07:00
Leon Scroggins
e3225673f7 Remove handling of ENTER key from WebView.
WebView was (incorrectly) handling the ENTER key as if it could start
a long press like CENTER key does.  Separate the two behaviors.  Now,
the ENTER key does not do anything unless it is part of a textfield or
the DOM otherwise handles it.

As a result, I was able to remove some orphaned code.  Before this
change, pressing ENTER would play a click noise, and animate the
focus ring as if its link were being followed, but do nothing. In
WebViewCore, do not pass the ENTER key back to the Activity.
2009-06-03 16:39:31 -04:00
Guang Zhu
f48c283b59 am 3e8950c0: Added new parameter to enable a manual pause between pages
Merge commit '3e8950c0c73f9c1574ce3388c754009edf6bc930'

* commit '3e8950c0c73f9c1574ce3388c754009edf6bc930':
  Added new parameter to enable a manual pause between pages
2009-06-03 13:00:28 -07:00
Android (Google) Code Review
7d0abd8ce6 am be512bff: Merge change 3038 into donut
Merge commit 'be512bff60626efc9a4b85d271d6210b9115e5fc'

* commit 'be512bff60626efc9a4b85d271d6210b9115e5fc':
  Cleaning up makefile for libttssynthproxy for the simulator.
2009-06-03 12:59:59 -07:00
Guang Zhu
3e8950c0c7 Added new parameter to enable a manual pause between pages 2009-06-03 12:23:09 -07:00
Dmitri Plotnikov
ceaafa5f1f Adding a new type: aggregation_exception. 2009-06-03 10:47:35 -07:00
Android (Google) Code Review
23306f6098 Merge change 3041
* changes:
  Remove obsolete flags from WebViewCore and WebView
2009-06-03 10:29:43 -07:00
Android (Google) Code Review
3ddc43945c Merge change 2969
* changes:
  Implement and expose SCO socket support in BluetoothSocket.java.
2009-06-03 10:11:29 -07:00
Android (Google) Code Review
be512bff60 Merge change 3038 into donut
* changes:
  Cleaning up makefile for libttssynthproxy for the simulator.
2009-06-03 10:08:46 -07:00
Leon Scroggins
82aa2f5eec Remove obsolete flags from WebViewCore and WebView
Remove NO_FOCUS_CHANGE_BLOCK and BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP, which were
part of SET_FINAL_FOCUS (which is no longer used) from WebViewCore.  In WebView,
do not pass BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP with SET_MOVE_MOUSE, since the
receiver does not care about it.
2009-06-03 13:01:32 -04:00
Jean-Michel Trivi
8aeac9408f Cleaning up makefile for libttssynthproxy for the simulator. 2009-06-03 09:43:14 -07:00
Cary Clark
2f1d60cd55 remove unused text parameters from WebView
The additional parameters are no longer used.
2009-06-03 12:25:34 -04:00
Derek Sollenberger
2e5c150e74 Centralized debug flags and enabled more granular control of debug settings. 2009-06-03 12:02:59 -04:00
Android (Google) Code Review
93e50888fe Merge change 2941
* changes:
  make FEATURE_OPENGL public (but hidden for now) so we can test with it
2009-06-03 06:55:19 -07:00
Bjorn Bringert
868443a947 am 33a22dc9: Close icon input stream in SuggestionsAdapter.
Merge commit '33a22dc9c84ef12006b0c12f6d169d2a74c15284'

* commit '33a22dc9c84ef12006b0c12f6d169d2a74c15284':
  Close icon input stream in SuggestionsAdapter.
2009-06-03 05:04:09 -07:00
Bjorn Bringert
33a22dc9c8 Close icon input stream in SuggestionsAdapter.
Before, SuggestionsAdapter would not close input streams after
reading icons from them. This leaks file descriptors and,
in the case of MemoryFiles, virtual address space.
2009-06-03 13:01:24 +01:00
Bjorn Bringert
b15a5348e6 am c1823701: Handle EOF correctly in MemoryFile input stream.
Merge commit 'c1823701cc76790494fb622fe58f0942236cd7d0'

* commit 'c1823701cc76790494fb622fe58f0942236cd7d0':
  Handle EOF correctly in MemoryFile input stream.
2009-06-03 04:56:52 -07:00
Bjorn Bringert
c0cbfda0fe am 963cd006: Allow creating AssetFileDescriptors for MemoryFiles.
Merge commit '963cd006c45716b034f656bf7e7179e6476f7e4d'

* commit '963cd006c45716b034f656bf7e7179e6476f7e4d':
  Allow creating AssetFileDescriptors for MemoryFiles.
2009-06-03 04:56:49 -07:00
Bjorn Bringert
c55e08e3fc Allow making AssetFileDescriptors from SQLite blobs.
This change adds a new class SQLiteContentHelper, which contains
a static method for creating an AssetFileDescriptor from
an SQLite query that returns a blob.

Internally, this uses a file descriptor for a MemoryFile.

The implementation is temporary. Ideally, the data should be copied
directly from SQLite to the MemoryFile ashmem region, using
sqlite3_blob_read().

This is part of the implementation of http://b/issue?id=1871731
2009-06-03 12:53:43 +01:00
Bjorn Bringert
c1823701cc Handle EOF correctly in MemoryFile input stream.
Before, the variants of MemoryFile.MemoryInputStream.read() would throw
IOException or  IndexOutOfBoundsException if EOF was encountered
before the requested number of bytes was read. This violates
the contract of InputStream.read().

This patch makes read() return the number of bytes available, if any.
If already at EOF, -1 is returned. The patch also adds new tests,
which checks cases where MemoryFile.MemoryInputStream.read()
should throw IndexOutOfBoundsException or return -1. several of these
tests failed with the old code and pass now.

This fixes http://b/issue?id=1881894
2009-06-03 12:53:42 +01:00
Bjorn Bringert
963cd006c4 Allow creating AssetFileDescriptors for MemoryFiles.
This allows content providers to use in-memory data to implement
ContentProvider.openAssetFile(), instead of just normal files
and sockets as before.

To test cross-process use of AssetFileDescriptors for MemoryFiles,
a test content provider and a client for it are added to
AndroidTests.

Fixes http://b/issue?id=1871731
2009-06-03 12:53:42 +01:00
Satish Sampath
ae8c5b868f am 8dbe612d: Adding internal method replacePreferredActivity.
Merge commit '8dbe612dc60526d635e57257b58627b33a099678'

* commit '8dbe612dc60526d635e57257b58627b33a099678':
  Adding internal method replacePreferredActivity.
2009-06-03 00:05:36 -07:00
Satish Sampath
8dbe612dc6 Adding internal method replacePreferredActivity.
This was required because we need a way to set the preferred activity for a
particular intent filter based on user selection (in our case the
ACTION_WEB_SEARCH intent filter for selecting the preferred search engine from
the list of available search engines providers). The current
addPreferredActivity call was not sufficient since it leaves the existing
preferred activities in the list and does not remove them, which this call
does.
2009-06-03 07:54:42 +01:00
Android (Google) Code Review
9081cd5778 am 5f784df5: Merge change 3011 into donut
Merge commit '5f784df5680e07f6cbc5d929560dfadc0e22db3b'

* commit '5f784df5680e07f6cbc5d929560dfadc0e22db3b':
  simplify this test
2009-06-02 22:56:05 -07:00
Android (Google) Code Review
5f784df568 Merge change 3011 into donut
* changes:
  simplify this test
2009-06-02 22:54:04 -07:00
Mathias Agopian
7c7dface99 fix a bug in GL lighting where the specular component could be ommited when vertex material was disabled.
the specular enable flag wasn't computed in that case.
2009-06-02 22:51:09 -07:00
Romain Guy
e52b3659ce am 9af0b4f7: Add new listener to GestureOverlayView. This listener fires whenever the overlay thinks the user is starting a new gesture. This allows Home to snap the workspace back to its original position during a gesture operation.
Merge commit '9af0b4f7be14f2b3ed0ecc843c57ea47ec288e55'

* commit '9af0b4f7be14f2b3ed0ecc843c57ea47ec288e55':
  Add new listener to GestureOverlayView. This listener fires whenever the overlay thinks the user is starting a new gesture. This allows Home to snap the workspace back to its original position during a gesture operation.
2009-06-02 22:48:36 -07:00
Romain Guy
9af0b4f7be Add new listener to GestureOverlayView. This listener fires whenever the overlay thinks the user is starting a new gesture. This allows Home to snap the workspace back to its original position during a gesture operation. 2009-06-02 21:59:42 -07:00
Mathias Agopian
de15ddc86c simplify this test 2009-06-02 18:35:48 -07:00
Android (Google) Code Review
ab304022af am 97c2fdfc: Merge change 2957 into donut
Merge commit '97c2fdfc2e1cb4f51c624dd8e30e6bdb63ea21be'

* commit '97c2fdfc2e1cb4f51c624dd8e30e6bdb63ea21be':
  Allow response payload on RIL_REQUEST error
2009-06-02 18:21:53 -07:00
Android (Google) Code Review
97c2fdfc2e Merge change 2957 into donut
* changes:
  Allow response payload on RIL_REQUEST error
2009-06-02 18:19:29 -07:00
Android (Google) Code Review
367152c8f4 am 2c159ec0: Merge change 2971 into donut
Merge commit '2c159ec05b8fc52166e22d7c4f49cf43d10b487b'

* commit '2c159ec05b8fc52166e22d7c4f49cf43d10b487b':
  Corrected the name of the native library the SynthProxy class loads (libttssynthproxy instead of libsynthproxy) to match the lib name from frameworks/base/tts/jni/Android.mk.
2009-06-02 17:23:52 -07:00
johnwang
03228fa8f9 Allow response payload on RIL_REQUEST error
Handle response payload while RIL_REQUEST returns error.

	modified:   gsm/GsmServiceStateTracker.java
2009-06-02 17:23:08 -07:00
Android (Google) Code Review
2c159ec05b Merge change 2971 into donut
* changes:
  Corrected the name of the native library the SynthProxy class loads (libttssynthproxy instead of libsynthproxy) to match the lib name from frameworks/base/tts/jni/Android.mk.
2009-06-02 17:22:18 -07:00
Android (Google) Code Review
cabee5b864 am 7322c96c: Merge change 2967 into donut
Merge commit '7322c96cc0c2524d399fb43fb406fb6324a795c8'

* commit '7322c96cc0c2524d399fb43fb406fb6324a795c8':
  Fixed issue where code for extracting scripts was eclipsed by runTest method.
2009-06-02 17:03:28 -07:00
Android (Google) Code Review
7322c96cc0 Merge change 2967 into donut
* changes:
  Fixed issue where code for extracting scripts was eclipsed by runTest method.
2009-06-02 16:42:42 -07:00
Nick Pelly
6a669fac38 Implement and expose SCO socket support in BluetoothSocket.java.
Implement L2CAP socket support, but do not expose it (untested).

NEXT: Switch to Builder style constructor instead of factory method.
2009-06-02 16:05:09 -07:00