6855 Commits

Author SHA1 Message Date
Amith Yamasani
9b4742cf25 Revert volume if it wasn't okayed by user.
During orientation changes or homing, the volume is reverted. Also,
during pause/resume, the original and modified values are remembered and
restored if the dialog was up.
2009-08-24 17:28:17 -07:00
Dianne Hackborn
2f4f63b501 am cf3a0830: Merge change 22400 into eclair
Merge commit 'cf3a08307d1599eaa91d7cc4e7c601e5fa13037f' into eclair-plus-aosp

* commit 'cf3a08307d1599eaa91d7cc4e7c601e5fa13037f':
  Add more control over a service's start state.
2009-08-24 17:04:01 -07:00
Android (Google) Code Review
cf3a08307d Merge change 22400 into eclair
* changes:
  Add more control over a service's start state.
2009-08-24 17:01:50 -07:00
Dianne Hackborn
f6f9f2d025 Add more control over a service's start state.
One of the problems I have been noticing is background services
sitting around running and using resources.  Some times this is
due to the app developer doing this when they shouldn't, but there
are also a number of issues with the current Service interaction
model that make it very difficult (or impossible) to avoid
getting services stuck in the started state.  This is a
change/enhancement to the Service API to try to address this.

The main change is that Service.onStart() has been deprecated,
replaced with a new Service.onStartCommand() that allows the
service to better control how the system should manage it.  The
key part here is a new result code returned by the function, telling
the system what it should do with the service afterwards:

- START_STICKY is basically the same as the previous behavior,
  where we usually leave the service running.  The only difference
  is that it if it gets restarted because its process is killed,
  onStartCommand() will be called on the new service with a null
  Intent instead of not being called at all.

- START_NOT_STICKY says that, upon returning to the system, if
  its process is killed with no remaining start commands to
  deliver, then the service will be stopped instead of restarted.
  This makes a lot more sense for services that are intended to
  only run while executing commands sent to them.

- START_REDELIVER_INTENT is like START_NOT_STICKY, except if
  the service's process is killed before it calls stopSelf()
  for a given intent, that intent will be re-delivered to it
  until it completes (unless after 4 or more tries it still
  can't complete, at which point we give up).

Change-Id: I978f5ca420d70023d1b5e7f97de639d09381f8ad
2009-08-24 17:00:54 -07:00
Robert Greenwalt
123d6f372f am ec9fe467: Fix a race condition for data change notification
Merge commit 'ec9fe4672a46eb928ab710d8e3caf2ce046100d4' into eclair-plus-aosp

* commit 'ec9fe4672a46eb928ab710d8e3caf2ce046100d4':
  Fix a race condition for data change notification
2009-08-24 16:39:35 -07:00
Robert Greenwalt
ec9fe4672a Fix a race condition for data change notification
We could sometimes not be told about network state changes breaking subsequent mms access.
Turning on more logging too.

bug: 2069106
2009-08-24 16:19:42 -07:00
Mike Lockwood
ce80db469b am 2e951b55: Merge change 22493 into eclair
Merge commit '2e951b5511750ebfbba28263ee5384bfa7f45128' into eclair-plus-aosp

* commit '2e951b5511750ebfbba28263ee5384bfa7f45128':
  Add resources to specify display rotation when in keyboard open or docked state.
2009-08-24 15:43:29 -07:00
Android (Google) Code Review
2e951b5511 Merge change 22493 into eclair
* changes:
  Add resources to specify display rotation when in keyboard open or docked state.
2009-08-24 15:41:30 -07:00
Mike Lockwood
391305e740 Add resources to specify display rotation when in keyboard open or docked state.
Also added constant for SW_LID input event.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-24 15:38:47 -07:00
Scott Main
639dfb2ed7 am e120cfd4: am b385508d: Add more code samples to the online docs. Add build rules to include the development samples in the droiddoc build process. Add all the sample screenshots to a new samples/images/ directory Revise the samples homepage to include links to new
Merge commit 'e120cfd49fa27d04ed119e6922568eca2a9d6f9e' into eclair-plus-aosp

* commit 'e120cfd49fa27d04ed119e6922568eca2a9d6f9e':
  Add more code samples to the online docs.
2009-08-24 15:37:08 -07:00
Scott Main
e120cfd49f am b385508d: Add more code samples to the online docs. Add build rules to include the development samples in the droiddoc build process. Add all the sample screenshots to a new samples/images/ directory Revise the samples homepage to include links to new samples
Merge commit 'b385508d89747e4c383979f1cc6fa2814b1cedbd' into eclair

* commit 'b385508d89747e4c383979f1cc6fa2814b1cedbd':
  Add more code samples to the online docs.
2009-08-24 15:35:28 -07:00
Wei Huang
b664235fd3 am 5e6ad478: Merge change 22496 into eclair
Merge commit '5e6ad4786d599e17c1736cf52e5846a44e19d374' into eclair-plus-aosp

* commit '5e6ad4786d599e17c1736cf52e5846a44e19d374':
  fix typo
2009-08-24 15:07:01 -07:00
Android (Google) Code Review
5e6ad4786d Merge change 22496 into eclair
* changes:
  fix typo
2009-08-24 15:04:46 -07:00
Scott Main
b385508d89 Add more code samples to the online docs.
Add build rules to include the development samples in the droiddoc build process.
Add all the sample screenshots to a new samples/images/ directory
Revise the samples homepage to include links to new samples
2009-08-24 14:45:00 -07:00
Cynthia Wong
9633f56591 am cb7d3838: Subscribe to subscribedfeeds whenever the accounts change, this is basically a giant hack to let the gsync server know about the subscriptions for accounts.
Merge commit 'cb7d38380cb2ca57e98cd39a96b32a1e804bf00b' into eclair-plus-aosp

* commit 'cb7d38380cb2ca57e98cd39a96b32a1e804bf00b':
  Subscribe to subscribedfeeds whenever the accounts change, this is basically a giant hack to let the gsync server know about the subscriptions for accounts.
2009-08-24 14:44:11 -07:00
Cynthia Wong
cb7d38380c Subscribe to subscribedfeeds whenever the accounts change, this is basically a giant hack to let the gsync server know about the subscriptions for accounts. 2009-08-24 14:31:28 -07:00
Wei Huang
cc6bd5a0d3 fix typo 2009-08-24 14:29:44 -07:00
Leon Scroggins
d0dcd10116 am 7bc08e9d: Merge change 21944 into eclair
Merge commit '7bc08e9d51d3142717a94098f897a776f7b7bd71' into eclair-plus-aosp

* commit '7bc08e9d51d3142717a94098f897a776f7b7bd71':
  Implement new title bar hiding/showing behavior.
2009-08-24 14:15:47 -07:00
Android (Google) Code Review
7bc08e9d51 Merge change 21944 into eclair
* changes:
  Implement new title bar hiding/showing behavior.
2009-08-24 14:13:05 -07:00
Mike Lockwood
2bca061c21 am ac8ebcd1: Merge change 22478 into eclair
Merge commit 'ac8ebcd1071b433c1c5093e7a5bcb67224f5f620' into eclair-plus-aosp

* commit 'ac8ebcd1071b433c1c5093e7a5bcb67224f5f620':
  DockObserver: minor cleanup.
2009-08-24 14:01:21 -07:00
Android (Google) Code Review
ac8ebcd107 Merge change 22478 into eclair
* changes:
  DockObserver: minor cleanup.
2009-08-24 13:59:29 -07:00
Leon Scroggins
b2359262b4 Implement new title bar hiding/showing behavior.
Remove the code that hides the title bar when the page finishes loading.
When the user double taps, if it did not result in changing the viewing
mode (i.e. on a mobile site), send a message to the client so we can
toggle the title bar's visibility.  Required for a change to
packages/apps/Browser

Change-Id: I0040fd183ce5673a4069e943f38eb31599c0ca7d
2009-08-24 16:55:42 -04:00
Mike Lockwood
e4465e2eac DockObserver: minor cleanup.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-24 13:51:58 -07:00
Satish Roddom
aae6751c48 am c0234a9d: Merge change 22474 into eclair
Merge commit 'c0234a9df9cffc0166c39eb0e8561d664a5438a3' into eclair-plus-aosp

* commit 'c0234a9df9cffc0166c39eb0e8561d664a5438a3':
  Compose Message "To" field allows adding sequence of characters as contact
2009-08-24 13:47:45 -07:00
Android (Google) Code Review
c0234a9df9 Merge change 22474 into eclair
* changes:
  Compose Message "To" field allows adding sequence of characters as contact
2009-08-24 13:45:30 -07:00
Mike Lockwood
2f6d42fc43 am 4df8dd8a: Merge change 22470 into eclair
Merge commit '4df8dd8aea518644a4f937eff5e7ac87f77ad9c2' into eclair-plus-aosp

* commit '4df8dd8aea518644a4f937eff5e7ac87f77ad9c2':
  Fix some Javadoc typos.
2009-08-24 13:17:23 -07:00
Romain Guy
ade12b8854 am 40ed81ec: Merge change 22472 into eclair
Merge commit '40ed81ec98e4c221e90273a8b842b1d110d8258b' into eclair-plus-aosp

* commit '40ed81ec98e4c221e90273a8b842b1d110d8258b':
  Remove Galaxy Render Script, replaced by its wallpaper equivalent.
2009-08-24 13:16:01 -07:00
Android (Google) Code Review
4df8dd8aea Merge change 22470 into eclair
* changes:
  Fix some Javadoc typos.
2009-08-24 13:15:47 -07:00
Android (Google) Code Review
40ed81ec98 Merge change 22472 into eclair
* changes:
  Remove Galaxy Render Script, replaced by its wallpaper equivalent.
2009-08-24 13:14:25 -07:00
Romain Guy
463a60830f Remove Galaxy Render Script, replaced by its wallpaper equivalent.
Change-Id: I28c91d648fe5ab6e794bf55d11879388b139dbe9
2009-08-24 13:12:40 -07:00
Mike Lockwood
725fcbf5ec Fix some Javadoc typos.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-24 13:09:20 -07:00
Derek Sollenberger
7a47a74cee am df8a3f31: adding harness for plugin testing to be built upon
Merge commit 'df8a3f31d871db25e952972c2eb346a71186e9e3' into eclair-plus-aosp

* commit 'df8a3f31d871db25e952972c2eb346a71186e9e3':
  adding harness for plugin testing to be built upon
2009-08-24 12:19:20 -07:00
Derek Sollenberger
df8a3f31d8 adding harness for plugin testing to be built upon 2009-08-24 15:10:48 -04:00
Cary Clark
decbc3dbc4 am 840b856d: Merge change 22452 into eclair
Merge commit '840b856d2a7287e98526d3957715eba3677e872f' into eclair-plus-aosp

* commit '840b856d2a7287e98526d3957715eba3677e872f':
  don't center zoom on size change if zoom is in progress
2009-08-24 11:50:15 -07:00
Android (Google) Code Review
840b856d2a Merge change 22452 into eclair
* changes:
  don't center zoom on size change if zoom is in progress
2009-08-24 11:47:53 -07:00
Cary Clark
a91874d1f9 don't center zoom on size change if zoom is in progress
The onSizeChange code is called when the device is rotated and
when the title bar is hidden. In the latter case, it is in response
to the zooming transition from overview mode to reading mode, and
the zoom center should not be recomputed.

http://b/issue?id=2060720
2009-08-24 14:08:43 -04:00
Patrick Scott
ab3803bd8d am d507ff21: Merge change 22449 into eclair
Merge commit 'd507ff21296b10ed57feec1200a8fe7eb09c0fc4' into eclair-plus-aosp

* commit 'd507ff21296b10ed57feec1200a8fe7eb09c0fc4':
  Check for a null history item to avoid crashing.
2009-08-24 11:02:28 -07:00
Android (Google) Code Review
d507ff2129 Merge change 22449 into eclair
* changes:
  Check for a null history item to avoid crashing.
2009-08-24 11:00:30 -07:00
Patrick Scott
af31c3a42d Check for a null history item to avoid crashing.
The history item may be null if this page is loaded through loadDataWithBaseURL
so we cannot count on the item being non-null.

Bug: 2073490
2009-08-24 13:59:55 -04:00
Steve Block
dbaf246ef7 am ba9f5f3f: Merge change 22440 into eclair
Merge commit 'ba9f5f3f6b0e499708fb9aa05f30f4a2e7d8b616' into eclair-plus-aosp

* commit 'ba9f5f3f6b0e499708fb9aa05f30f4a2e7d8b616':
  Java-side changes to persist Geolocation permissions between browser sessions.
2009-08-24 10:57:54 -07:00
Android (Google) Code Review
ba9f5f3f6b Merge change 22440 into eclair
* changes:
  Java-side changes to persist Geolocation permissions between browser sessions.
2009-08-24 10:56:10 -07:00
Scott Su
cd5a2960bc am b321625b: Merge change 22430 into eclair
Merge commit 'b321625b859f2db4407810929ca6fa6074f65403' into eclair-plus-aosp

* commit 'b321625b859f2db4407810929ca6fa6074f65403':
  Remove frameworks/base/im since these stuff are only used by IM app
2009-08-24 10:36:49 -07:00
Yu Shan Emily Lau
c703dc405c am b91c52f7: am 8c937a17: Merge change 22379 into donut
Merge commit 'b91c52f77387a95b4ae554b369644e0f41e401ea' into eclair-plus-aosp

* commit 'b91c52f77387a95b4ae554b369644e0f41e401ea':
  modified:   MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerApiTest.java
2009-08-24 10:35:15 -07:00
Android (Google) Code Review
b321625b85 Merge change 22430 into eclair
* changes:
  Remove frameworks/base/im since these stuff are only used by IM app
2009-08-24 10:34:32 -07:00
Yu Shan Emily Lau
b91c52f773 am 8c937a17: Merge change 22379 into donut
Merge commit '8c937a17667704ee9ba60663f4c4b76f3c3a0f78' into eclair

* commit '8c937a17667704ee9ba60663f4c4b76f3c3a0f78':
  modified:   MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerApiTest.java
2009-08-24 10:14:25 -07:00
Android (Google) Code Review
8c937a1766 Merge change 22379 into donut
* changes:
  	modified:   MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerApiTest.java         Fixed the passing incorrect media names and add the localH263AMRprepareAsync test.
2009-08-24 10:11:00 -07:00
Satish Roddom
e43a6a02dd Compose Message "To" field allows adding sequence of characters as contact
When we select this option, this sequence of characters (which is neither a
valid email address nor a phone number), gets stored in contact with type MOBILE.

Fix: In function canAddToContacts, adding a check to validate whether the contact
to be added is a valid email address or phone number. If not, user will not be shown
with the option "Add to Contacts".
2009-08-24 09:19:08 -07:00
Patrick Scott
1aa196ef7a am 4e9718d6: Fix synchronous xml requests with ssl errors.
Merge commit '4e9718d6ae3433a3f78fddf158a15701101ba781' into eclair-plus-aosp

* commit '4e9718d6ae3433a3f78fddf158a15701101ba781':
  Fix synchronous xml requests with ssl errors.
2009-08-24 09:05:24 -07:00
Patrick Scott
4e9718d6ae Fix synchronous xml requests with ssl errors.
Use the in-memory ssl preference table before posting a message to the WebCore
thread. Since the WebCore thread is blocked waiting for the ssl resource, we
cannot query the user for their preference. If the table does not contain the
user's decision, bail on the request to avoid a deadlock.

Also mark a few of the ssl handler's method's as synchronized. This was reported
by findbugs.
2009-08-24 12:02:51 -04:00
Grace Kloba
92bd45f944 am 7fdab7f9: Merge change 22377 into eclair
Merge commit '7fdab7f9674aadf90c3be1f06d7d34b60151c658' into eclair-plus-aosp

* commit '7fdab7f9674aadf90c3be1f06d7d34b60151c658':
  The new webkit won't keep RAM cache if http header has "no-store". So remove
2009-08-24 08:47:01 -07:00