2455 Commits

Author SHA1 Message Date
Romain Guy
1e09597512 Fixes #1963217. Increases the invalidate region in compatibility mode.
To account for rounding errors when scaling the invalidate regions, increase
the dirty rectangle by 1 pixel in each direction
2009-07-07 11:22:45 -07:00
Marco Nelissen
7e566a7926 Add virtual destructor. 2009-07-07 11:03:13 -07:00
Android (Google) Code Review
c1c44a5614 Merge change 6363 into donut
* changes:
  LocationManagerService: Use Context.checkCallingOrSelfPermission for permission checks
2009-07-07 11:02:04 -07:00
San Mehat
0310f9aa21 WifiService: Fix build (missing import)
Signed-off-by: San Mehat <san@google.com>
2009-07-07 10:50:39 -07:00
Android (Google) Code Review
b61479ae86 Merge change 6314 into donut
* changes:
  Use the current Locale as the default language when TTS settings are not found, rather than a hardcoded value stored in TextToSpeech.Engine.
2009-07-07 10:35:40 -07:00
Mike Lockwood
b7e9922722 LocationManagerService: Use Context.checkCallingOrSelfPermission for permission checks
so other services running in the system process can use the location manager.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-07 13:18:21 -04:00
San Mehat
fa6c7111fe WifiService: use wifi association state to determine if we should suspend wifi instead of
the existance of an IP address.

Signed-off-by: San Mehat <san@google.com>
2009-07-07 09:41:39 -07:00
Eric Laurent
88e209dcf8 Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate to twice of the ouputSR
Store sample rate on 32 bits instead of 16 bits in audio_track_cblk_t.
Removed sampleRate() methods from AudioTrack and AudioRecord: replaced by getSampleRate().
AudioTrack::setSampleRate() no returns a status.
2009-07-07 07:10:45 -07:00
Android (Google) Code Review
37ea711225 Merge change 6338 into donut
* changes:
  septet-align UD after any UDH for GSM-7bit coding
2009-07-06 23:48:25 -07:00
Tammo Spalink
0fd833a50f septet-align UD after any UDH for GSM-7bit coding 2009-07-07 14:17:28 +08:00
Mitsuru Oshima
569076c9f6 widgets scaling fix. Use container's compatibility info and display metrics when container and widgets disagree. 2009-07-06 21:13:39 -07:00
Android (Google) Code Review
dbee95cacf Merge change 6317 into donut
* changes:
  Make enable/provisioning of the backup service a two-step process
2009-07-06 18:24:26 -07:00
Jean-Michel Trivi
d478cf09df Use the current Locale as the default language when TTS settings are not
found, rather than a hardcoded value stored in TextToSpeech.Engine.
2009-07-06 18:02:08 -07:00
Christopher Tate
8031a3df2f Make enable/provisioning of the backup service a two-step process
This CL adds the concept of 'provisioned' to the backup manager.  No backups
will be scheduled until the user has indicated that backups are to be enabled
*and* has clicked all the way through the setup wizard.

When the user first turns on the backup system, the delay before the initial
backup pass is different from the periodic backup interval.  Currently that
initial delay is 12 hours.  The intent here is to guess at a less-active time
for performing that first backup pass.

NOTE: currently the backup service defaults to 'provisioned'.  Once the real
code goes live in Setup Wizard, this will be changed to default to
not-provisioned until the user has confirmed all the relevant UI.
2009-07-06 17:43:03 -07:00
Android (Google) Code Review
b71951591d Merge change 6287 into donut
* changes:
  Restore GPS state and ringer/vibrate toggles.
2009-07-06 17:32:09 -07:00
Amith Yamasani
70c874ba20 Restore GPS state and ringer/vibrate toggles.
Inform backup manager when sync flags change. Set ringer/vibrate mode.
2009-07-06 17:18:46 -07:00
Romain Guy
870e09fcd2 Fixes #1963229. Introduces Context#isRestricted().
A restricted Context is a special type of Context that prevents specific features
from being used. For instance, android:onClick, used by View, can be dangerous when
used from within apps widgets. By using a restricted Context to inflate apps widgets,
widgets providers are prevented from using android:onClick.
2009-07-06 16:45:17 -07:00
Android (Google) Code Review
453dd50e70 Merge change 6307 into donut
* changes:
  Fixes a compatibility issue with users that have the old TTS installed already.
2009-07-06 16:28:03 -07:00
Charles Chen
52ae06521a Fixes a compatibility issue with users that have the old TTS
installed already.
2009-07-06 16:10:32 -07:00
Android (Google) Code Review
8d07c06846 Merge change 6305 into donut
* changes:
  Fix up permissions for 'dumpsys backup'
2009-07-06 15:49:26 -07:00
Christopher Tate
34ebd0e1bb Fix up permissions for 'dumpsys backup' 2009-07-06 15:44:54 -07:00
Android (Google) Code Review
da93c26a3d Merge change 6271 into donut
* changes:
  Propagating the error codes through the TtsService
2009-07-06 14:38:39 -07:00
Android (Google) Code Review
21509240b0 Merge change 6283 into donut
* changes:
  Fix a bug where clicking the "more results" suggestion with the trackball did not seem to expand to show the corpus selectors. (http://b/1906643)
2009-07-06 14:37:54 -07:00
Android (Google) Code Review
d2882fa179 Merge change 6282 into donut
* changes:
  Fixes #1963214. ProgressDialog was using the wrong indeterminate progress asset.
2009-07-06 14:32:18 -07:00
Romain Guy
7ac6f3dac0 Fixes #1963214. ProgressDialog was using the wrong indeterminate progress asset. 2009-07-06 14:31:39 -07:00
Mike LeBeau
617202a53a Fix a bug where clicking the "more results" suggestion with the trackball
did not seem to expand to show the corpus selectors. (http://b/1906643)

It turns out that when the trackball was used to select this item, onItemClick
was getting called on the listener twice in AutoCompleteTextView#onKeyUp:
once when we call onKeyUp on the DropDownListView, and once a little further
down when we call performCompletion(). In our case, performCompletion() is
useless since it was intended for normal AutoCompleteTextViews which populate
text into the TextView when an item in the list is clicked, but we do not
rely on this. So the easiest fix is just to make performCompletion() do nothing
in our SearchAutoComplete subclass.
2009-07-06 14:29:25 -07:00
Charles Chen
a3f89295ad Propagating the error codes through the TtsService 2009-07-06 14:14:52 -07:00
Android (Google) Code Review
991eec03a7 Merge change 6252 into donut
* changes:
  Don't re-parse the framework resources all the time.
2009-07-06 14:09:16 -07:00
Android (Google) Code Review
79ec07b333 Merge change 6241 into donut
* changes:
  Fixes #1444844. Set a maximum fling velocity in scrollable views.
2009-07-06 13:10:50 -07:00
Android (Google) Code Review
56fbd8d86a Merge change 6258 into donut
* changes:
  Fix the comment -- "charged" not "sharted."  Also, the other strings on that screen seem to have periods.  I think that's wrong, but it's better to be consistent that right.
2009-07-06 12:56:32 -07:00
Joe Onorato
3a3b6a12bf Fix the comment -- "charged" not "sharted." Also, the other
strings on that screen seem to have periods.  I think that's
wrong, but it's better to be consistent that right.
2009-07-06 15:49:04 -04:00
Android (Google) Code Review
57f2cba2db Merge change 6255 into donut
* changes:
  Fix the comments for the string resources for the charge status.
2009-07-06 12:39:28 -07:00
Joe Onorato
55c05e3ed3 Fix the comments for the string resources for the charge status. 2009-07-06 15:38:30 -04:00
Android (Google) Code Review
6eb987aca7 Merge change 6246 into donut
* changes:
  Fix bugs 1317754 - "Idle screen displays "Charging (100%)" even when fully charged." and 1885870 - "Shorten 'Clear notification' button to 'Clear' to match latest design"
2009-07-06 12:09:34 -07:00
Joe Onorato
c83edf47f4 Fix bugs 1317754 - "Idle screen displays "Charging (100%)" even when fully charged."
and 1885870 - "Shorten 'Clear notification' button to 'Clear' to match latest design"
2009-07-06 14:56:53 -04:00
Android (Google) Code Review
0d725f7d5a Merge change 6162 into donut
* changes:
  Hold a wakelock during backup/restore/clear operations
2009-07-06 11:54:34 -07:00
Christopher Tate
b6787f2ee5 Hold a wakelock during backup/restore/clear operations
We need to make sure we stay alive for the duration of a backup or (especially)
restore operation.  The existing Handler-based timing system was simply not
properly functional, so it's been retooled to use a repeating alarm delivering a
broastcast PendingIntent to our registered receiver.

We acquire a partial wake lock in the broadcast receiver [i.e. while the Alarm
Manager is holding one for the duration of broadcast delivery] and pass the
wakelock object to the backup thread, which eventually releases it when it's
finsihed operations.  A similar pattern is used for the threads handling restore
and clear.
2009-07-06 11:49:49 -07:00
Romain Guy
4296fc4d32 Fixes #1444844. Set a maximum fling velocity in scrollable views. 2009-07-06 11:48:52 -07:00
Android (Google) Code Review
9479a516cf Merge change 6154 into donut
* changes:
  Fix bug (#1947162)
2009-07-06 11:37:13 -07:00
Android (Google) Code Review
70421cf6b4 Merge change 6237 into donut
* changes:
  Add a silent ringtone.
2009-07-06 11:34:28 -07:00
Marco Nelissen
a6e45b4bb3 Add a silent ringtone. 2009-07-06 11:33:06 -07:00
James Dong
aa00e390c1 Fix bug (#1947162)
The bug (1947162) is caused by the fact that sometimes, surfaceChanged() is called after onCompletion().
In surfaceChanged(), start() is called automatically. The fix is to use a flag is avoid calling start()
when onCompletion() has been called already.
2009-07-06 11:30:29 -07:00
Android (Google) Code Review
87e393f1c8 Merge change 6227 into donut
* changes:
  Adding tts result codes.
2009-07-06 11:26:15 -07:00
Dianne Hackborn
78c405178c Don't re-parse the framework resources all the time.
A small optimization to the resource code, to not re-parse the framework
resources every time we build a new AssetManager.  Instead, you can now
construct a ResTable from a previously created one...  of course, like the
existing code for using the data in-place, you can't delete the original
ResTable until you have deleted the one that has been constructed from it.
2009-07-06 11:12:37 -07:00
Android (Google) Code Review
ef1f21b34f Merge change 6231 into donut
* changes:
  Don't trim() in the mediascanner, as that would remove the special "sort first" character.
2009-07-06 11:09:20 -07:00
Marco Nelissen
73bb511ade Don't trim() in the mediascanner, as that would remove the special "sort first" character. 2009-07-06 11:07:27 -07:00
Android (Google) Code Review
8ad422adaf Merge change 6221 into donut
* changes:
  Remove links to wikipedia; fix typo; remove .vsd file (bug 1918247).
2009-07-06 11:01:43 -07:00
Marco Nelissen
899725b05d Make sure ringtones are sorted correctly. 2009-07-06 10:57:01 -07:00
Charles Chen
35b86c273a Adding tts result codes. 2009-07-06 10:51:48 -07:00
Katarina Stenstedt
014a59bf40 Remove links to wikipedia; fix typo; remove .vsd file (bug 1918247). 2009-07-06 10:10:19 -07:00