2739 Commits

Author SHA1 Message Date
Android (Google) Code Review
f762589d1f Merge change 3145 into donut
* changes:
  Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).
2009-06-04 06:10:37 -07:00
Mike LeBeau
3a27803b29 Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)). 2009-06-04 14:09:42 +01:00
Android (Google) Code Review
c08fc64ff6 Merge change 2845 into donut
* changes:
  Allow making AssetFileDescriptors from SQLite blobs.
2009-06-04 03:09:43 -07:00
Android (Google) Code Review
df9f69dbec Merge change 1526 into donut
* changes:
  cdma getNeighboringCids to fail with an exception
2009-06-03 23:30:02 -07:00
Tammo Spalink
90cb947c22 cdma getNeighboringCids to fail with an exception 2009-06-04 14:07:13 +08:00
Android (Google) Code Review
261dbd7706 Merge change 2978
* changes:
  Adds "is_primary" and "is_super_primary" columns to DataColumns.
2009-06-03 21:23:11 -07:00
Christopher Tate
043dadc751 More backup work
* Put in some permission enforcement around agent connection notification
  and full-backup scheduling.
* Full backup now applies to any package, not just backup participants who
  have declared their own android:backupAgent
* The process of running the backup operation on the set of apps who have
  been queued for it is now done in a separate thread, with a notification
  mechanism from the main Backup Manager service to pass along new-agent
  binding knowledge.  There's no longer one do-backup message on the primary
  Handler per target application.
* The new backup thread sets up the desired transport now and passes
  along the newly backed-up data to it for each backup target.  Two
  transports have been defined so far, GoogleTransport and AdbTransport;
  both are stubs at present.

Note that at present the backup data output file seems to be properly
created, but after doBackup() is called on the test app's agent it's
still zero size.
2009-06-03 20:42:15 -07:00
Jaikumar Ganesh
9c2a3be8ba Fix thread safety in DataConnectionTracker.
All the methods in DataConnectionTracker should be called only through
the handler. Fix this as trySetupData was being called in the broadcast receiver.

Tested: Airplane mode and GPRS retry.
2009-06-03 19:09:48 -07:00
Jason Sams
33c824d17b Remove pointer hacks from script and use standard load/store functions. 2009-06-03 18:29:04 -07:00
Android (Google) Code Review
55db8aec8f am 4ee0a751: Merge change 3095 into donut
Merge commit '4ee0a751682e713d3d6ca97fa1271df12d352ee0'

* commit '4ee0a751682e713d3d6ca97fa1271df12d352ee0':
  Skip empty lines in test url list.
2009-06-03 17:02:49 -07:00
Android (Google) Code Review
4ee0a75168 Merge change 3095 into donut
* changes:
  Skip empty lines in test url list.
2009-06-03 17:01:01 -07:00
Android (Google) Code Review
a2fe677487 am 9654cba8: Merge change 3094 into donut
Merge commit '9654cba89ebf02b68bd7109df2d9f758a30fb8bf'

* commit '9654cba89ebf02b68bd7109df2d9f758a30fb8bf':
  Grant permissions to older package when deleting an updated system application.
2009-06-03 16:34:53 -07:00
Mitsuru Oshima
342d59d319 am 9189cabb: * Moved supports-density tag under manifest * Refactored Compatibility code * Added CompatibilityInfo class * Removed getApplicationScale from Context * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context * Expandable support * Added expandable tag under manifest * Old application w/o expandable is given the default screen size ([320, 480] x density). * The non-expandable window is centered.
Merge commit '9189cabb0b6c6c28232fe6f412b7ba7a37352a6a'

* commit '9189cabb0b6c6c28232fe6f412b7ba7a37352a6a':
  * Moved supports-density tag under manifest
2009-06-03 16:34:47 -07:00
Android (Google) Code Review
9654cba89e Merge change 3094 into donut
* changes:
  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 16:32:18 -07:00
Mitsuru Oshima
9189cabb0b * Moved supports-density tag under manifest
* Refactored Compatibility code
  * Added CompatibilityInfo class
  * Removed getApplicationScale from Context
  * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context
* Expandable support
  * Added expandable tag under manifest
  * Old application w/o expandable is given the default screen size  ([320, 480] x density).
  * The non-expandable window is centered.
2009-06-03 16:28:10 -07:00
Amith Yamasani
138197f961 am eaeb663b: Track activity foreground CPU usage for battery stats.
Merge commit 'eaeb663bcd7a82b654954b42663232cbd7bef7e7'

* commit 'eaeb663bcd7a82b654954b42663232cbd7bef7e7':
  Track activity foreground CPU usage for battery stats.
2009-06-03 16:21:13 -07:00
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