2542 Commits

Author SHA1 Message Date
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
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
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
Jean-Michel Trivi
1f4b92a2d6 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 16:02:31 -07:00
Guang Zhu
3dfd0e131e Fixed issue where code for extracting scripts was eclipsed by runTest method. 2009-06-02 15:42:48 -07:00
Android (Google) Code Review
bb09b2e554 am 1a21de56: Merge change 2961 into donut
Merge commit '1a21de56b9e3e69413ee6addc0e776b40f79782e'

* commit '1a21de56b9e3e69413ee6addc0e776b40f79782e':
  Addressed comments of change 2515 for the TtsService class:
2009-06-02 15:37:23 -07:00
Android (Google) Code Review
1a21de56b9 Merge change 2961 into donut
* changes:
  Addressed comments of change 2515 for the TtsService class:  - made the SpeechItem and SoundResource inner classes static,  - prefixed the TtsService member variables by 'm',  - changed indentation from 2 to 4 characters.
2009-06-02 15:35:46 -07:00
Android (Google) Code Review
b716ab3755 am 432900bf: Merge change 2962 into donut
Merge commit '432900bffb816f56f5f8058c90fed7731df46e23'

* commit '432900bffb816f56f5f8058c90fed7731df46e23':
  Fixes #1890914.
2009-06-02 15:18:31 -07:00
Android (Google) Code Review
432900bffb Merge change 2962 into donut
* changes:
  Fixes #1890914.
2009-06-02 15:16:34 -07:00
Romain Guy
ce16d787bd Fixes #1890914.
Bright theme's background color should be #fff9f9f9 instead of pure white (#ffffffff).
2009-06-02 15:15:12 -07:00
Jean-Michel Trivi
78ebbabfe1 Addressed comments of change 2515 for the TtsService class:
- made the SpeechItem and SoundResource inner classes static,
 - prefixed the TtsService member variables by 'm',
 - changed indentation from 2 to 4 characters.
2009-06-02 15:09:51 -07:00
Doug Kramer
60a42866d1 am b42e1ff6: am b33940ab: AI 149494: Minor improvements to wording in design tips for missing activity and notifications See latest document at: http://doog:9000/guide/practices/ui_guidelines/activity_task_design.html
Merge commit 'b42e1ff65ae44a0873959c5defe3ba4826109490'

* commit 'b42e1ff65ae44a0873959c5defe3ba4826109490':
  AI 149494: Minor improvements to wording in design tips for missing activity and notifications
2009-06-02 14:37:43 -07:00
Dmitri Plotnikov
c926054072 Consolidating data needed for contact aggregator into the data1 and data2 fields.
The aggregator will then only read data1 and
data2 and do the matching on those (taking mime type into account, of course).
2009-06-02 14:11:01 -07:00
Doug Kramer
b42e1ff65a am b33940ab: AI 149494: Minor improvements to wording in design tips for missing activity and notifications See latest document at: http://doog:9000/guide/practices/ui_guidelines/activity_task_design.html
Merge commit 'b33940abca9d43891575f58a1107c8ec247afed1' into donut

* commit 'b33940abca9d43891575f58a1107c8ec247afed1':
  AI 149494: Minor improvements to wording in design tips for missing activity and notifications
2009-06-02 13:15:15 -07:00
Android (Google) Code Review
7174bc48dc Merge change 2898
* changes:
  Implement bulk read and writes for Bluetooth sockets.
2009-06-02 12:44:35 -07:00
Nick Pelly
47e82dee6b Implement bulk read and writes for Bluetooth sockets.
Before: 0.1 kB/s
After: 100 kB/s
(in my java BT speed test app)
2009-06-02 12:35:48 -07:00
Jean-Michel Trivi
1352b615be am a74303d8: Trying to fix sim-eng build: when building the simulator on linux, link (only) with libdl, as opposed to also making libdl a build target.
Merge commit 'a74303d80637c0d63057fc4b501a4f93cf01ea85'

* commit 'a74303d80637c0d63057fc4b501a4f93cf01ea85':
  Trying to fix sim-eng build: when building the simulator on linux, link (only) with libdl, as opposed to also making libdl a build target.
2009-06-02 12:26:17 -07:00
Doug Kramer
b33940abca AI 149494: Minor improvements to wording in design tips for missing activity and notifications
See latest document at:
  http://doog:9000/guide/practices/ui_guidelines/activity_task_design.html

Automated import of CL 149494
2009-06-02 12:17:49 -07:00
Jean-Michel Trivi
a74303d806 Trying to fix sim-eng build: when building the simulator on linux, link (only) with libdl, as opposed to also making libdl a build target. 2009-06-02 12:05:18 -07:00
Wei-Ta Chen
df1235f691 am eb949674: Unhide inPurgeable in BitmapFactory.Options.
Merge commit 'eb949674fd3b83b706f795fc6b16ab1c66250c93'

* commit 'eb949674fd3b83b706f795fc6b16ab1c66250c93':
  Unhide inPurgeable in BitmapFactory.Options.
2009-06-02 11:55:19 -07:00
Wei-Ta Chen
eb949674fd Unhide inPurgeable in BitmapFactory.Options.
The correctness and effectiveness of the usage of the parameter are evaluated in:
https://android-git.corp.google.com/g/Gerrit#change,2768
2009-06-02 11:01:43 -07:00
Jean-Michel Trivi
94afa2e574 am 30b70cec: Trying to fix the build for simulator: modifying makefile to not link against libdl.
Merge commit '30b70cec05190c8fcfa5aeb175a37bf81ed3966d'

* commit '30b70cec05190c8fcfa5aeb175a37bf81ed3966d':
  Trying to fix the build for simulator: modifying makefile to not link against libdl.
2009-06-02 11:01:13 -07:00
Jean-Michel Trivi
30b70cec05 Trying to fix the build for simulator: modifying makefile to not link against libdl. 2009-06-02 10:43:58 -07:00
Android (Google) Code Review
b621a3fd7a am b2decbe2: Merge change 2515 into donut
Merge commit 'b2decbe2f168a82d674ea699a809a702bad51f54'

* commit 'b2decbe2f168a82d674ea699a809a702bad51f54':
  Adding the TtsService class for text-to-speech synthesis.
2009-06-02 10:13:54 -07:00
Android (Google) Code Review
b2decbe2f1 Merge change 2515 into donut
* changes:
  Adding the TtsService class for text-to-speech synthesis.
2009-06-02 10:11:58 -07:00
Charles Chen
a042a740d3 Adding the TtsService class for text-to-speech synthesis. 2009-06-02 09:57:53 -07:00
Android (Google) Code Review
82182122bf Merge change 2912
* changes:
  Rename the TextDialog to WebTextView.
2009-06-02 09:13:14 -07:00
Android (Google) Code Review
b642908a22 am abf3c80c: Merge change 2572 into donut
Merge commit 'abf3c80c60c6584a2cc77a0971078f85a877bc6f'

* commit 'abf3c80c60c6584a2cc77a0971078f85a877bc6f':
  Adding java/jni code for the Java TTS SynthProxy class, which relays calls from the TTS service to the native TTS plugin library.
2009-06-02 08:57:14 -07:00
Android (Google) Code Review
abf3c80c60 Merge change 2572 into donut
* changes:
  Adding java/jni code for the Java TTS SynthProxy class, which relays calls from the TTS service to the native TTS plugin library.
2009-06-02 08:55:25 -07:00
Leon Scroggins
d3465f6021 Rename the TextDialog to WebTextView.
Rename the TextDialog to be a more accurate description of what it is.
Also rename some methods and variables which pertain to it, and preload
the newly created class.
2009-06-02 10:57:54 -04:00
Karl Rosaen
ba90ed49e5 am a058f02b: progress towards impression and click stats on all sources, plus some internal cleanup
Merge commit 'a058f02b591d971a829cb1e28d48a992e46ad85e'

* commit 'a058f02b591d971a829cb1e28d48a992e46ad85e':
  progress towards impression and click stats on all sources, plus some internal cleanup
2009-06-02 07:04:31 -07:00
Karl Rosaen
a058f02b59 progress towards impression and click stats on all sources, plus some internal cleanup
(framework portion)

suggestionCursor has new callbacks for impressions and clicks
- impressions now used to trigger "more" UI, cleanup apis around that

search dialog reports which position was clicked on via cursor#respond
- can now detect when sources under "more results" are clicked
- also used to simplify existing stuff:
  - can detect when "more results" entry is clicked and toggle base on that (no longer need INTENT_ACTION_CURSOR_RESPOND one off)
  - use response from click reporting to instruct which position should be selected
2009-06-02 15:00:37 +01:00
Android (Google) Code Review
5fd3dc2541 Merge change 2713
* changes:
  in the browser, make the trackball more like a mouse
2009-06-02 06:24:16 -07:00