61667 Commits

Author SHA1 Message Date
Amith Yamasani
9e7caa0b27 Tie the lockscreen sounds with the ringer volume.
Actual volume is a ratio of the ringer volume and drops along with
but slower than the ringer volume, so that at lowest ringer volume,
the lockscreen sounds are still somewhat audible.

Don't start the sounds if the ringer is muted.

Bug: 5394473
Change-Id: Ifcf242b3198b4ec8f12334e26ec23ebf05a96b83
2011-10-09 12:24:35 -07:00
Marco Nelissen
803ce0f9fd Use SoundPool instead of Ringtone.
The lock screen was using Ringtone for the lock/unlock sounds, which
meant two new MediaPlayers were created every time a sound needed to
be played. In addition, the Ringtone was assigned to a local variable,
which means it could go be garbage collected and finalized while it
was still playing.
For short sounds that need to be played repeatedly, SoundPool is a
better option anyway, so use that instead.
b/5382634

Change-Id: I8794cbb24604fa7c03032bd5e32ceab37a858054
2011-10-09 12:03:09 -07:00
James Dong
8d7956d368 am 650c53aa: Merge "SurfaceFlinger: screenshots w/ protected buffers"
* commit '650c53aad5a49c793bbcddad9bfce63a3b3d0360':
  SurfaceFlinger: screenshots w/ protected buffers
2011-10-09 09:18:47 -07:00
James Dong
650c53aad5 Merge "SurfaceFlinger: screenshots w/ protected buffers" 2011-10-09 09:16:37 -07:00
Manuel Roman
d27233fde4 Merge "Modified AIDL to support authentication" into ics-aah 2011-10-08 20:57:32 -07:00
Roman Nurik
f31b0e8a56 am 8765ebf9: Merge "Update Icon Guidelines and Icon Templates Pack for ICS"
* commit '8765ebf9b5c5256dfbf8232b11bcf5f0045c5ac1':
  Update Icon Guidelines and Icon Templates Pack for ICS
2011-10-08 16:25:49 -07:00
Roman Nurik
8765ebf9b5 Merge "Update Icon Guidelines and Icon Templates Pack for ICS" 2011-10-08 16:23:16 -07:00
Manuel Roman
2c5eb269bb Modified AIDL to support authentication
We need to pass an RpcContext with information
such as the caller's certificate. I also modified
the compiler so it does not use Container anymore
and uses Context

Change-Id: Ie1d247e8cac21f7f207a87b2eb77f3d1dd7215d4
2011-10-08 08:17:06 -07:00
Amith Yamasani
5c18ac6514 Save the click position and restore it on orientation change.
Bug: 5417556
Change-Id: I817890a3ff2910aa49ec44a30edb1a39d0d97095
2011-10-07 18:33:13 -07:00
Costin Manolache
db582d17a2 am 6d288bd2: Merge "b/5399355 StringIndexOutOfBoundsException from AccountManagerService"
* commit '6d288bd2f3596ce268a3a3278f005d8757c79d63':
  b/5399355 StringIndexOutOfBoundsException from AccountManagerService
2011-10-07 17:56:05 -07:00
Costin Manolache
6d288bd2f3 Merge "b/5399355 StringIndexOutOfBoundsException from AccountManagerService" 2011-10-07 17:54:05 -07:00
Jamie Gennis
830d083bf7 SurfaceFlinger: screenshots w/ protected buffers
This change modifies SurfaceFlinger's screenshot behavior when a layer
with a protected buffer is visible.  The previous behavior was to simply
fail the screenshot.  The new behavior is to render the screenshot using
a placeholder texture where the protected buffer would have been.

Change-Id: I5e50cb2f3b31b2ea81cfe291c9b4a42e9ee71874
2011-10-07 17:53:37 -07:00
Eric Fischer
03e9d8ae07 Import revised translations.
Change-Id: Id046f8008aef32a1b94b4fa5b57e2beb2f9f2e80
2011-10-07 16:09:10 -07:00
Mathias Agopian
184df101c0 enable EGL_IMG_context_priority for the omap4 platform
Bug: 5311015
Change-Id: Icaad3d1c963d382ac0a4b9121fe20d3408846c2b
2011-10-07 15:42:53 -07:00
Mathias Agopian
f347b25512 am da71e80c: Merge "don\'t log EGL errors due to unimplemented proprietary extensions"
* commit 'da71e80c5c53a8078a107f451bc222c81d3c1f3f':
  don't log EGL errors due to unimplemented proprietary extensions
2011-10-07 15:40:29 -07:00
Mathias Agopian
da71e80c5c Merge "don't log EGL errors due to unimplemented proprietary extensions" 2011-10-07 15:38:51 -07:00
Roman Nurik
ced7edda54 Update Icon Guidelines and Icon Templates Pack for ICS
Change-Id: I2e0f132e636a288d21989095bac0da443e128d04
2011-10-07 15:23:18 -07:00
Dianne Hackborn
be870e81e8 am ba8ecd20: Merge "Fix how we hide and show the nav bar."
* commit 'ba8ecd206cc6f175767f952d380c88f70ece04cf':
  Fix how we hide and show the nav bar.
2011-10-07 15:14:55 -07:00
Dianne Hackborn
ba8ecd206c Merge "Fix how we hide and show the nav bar." 2011-10-07 15:12:17 -07:00
Jeff Brown
f27eeeb28b am 270928bd: Merge changes Idbfeb3cc,I03e8e2e7,Iff9eed78
* commit '270928bd4a1db1dc0d989f4e9897a81ab865e30e':
  Fix regression in CursorWindow.getString() Bug: 5332296
  Clean up CursorWindow lifetime. Bug: 5332296
  Fix regression in CursorWindow.copyStingToBuffer. Bug: 5332296
2011-10-07 15:09:29 -07:00
Jeff Brown
18f5752436 am 4cc8bafb: Merge "Restore broken CursorWindow.getType behavior. Bug: 5430009"
* commit '4cc8bafb4b10614dc881ed8121ce4754811e161d':
  Restore broken CursorWindow.getType behavior. Bug: 5430009
2011-10-07 15:09:26 -07:00
Michael Kolb
d4fd84dabc am b762d1e5: Merge "Handle audio focus in HTML5 audio"
* commit 'b762d1e5eaae9f04f1141feaa402e3f8939d28cc':
  Handle audio focus in HTML5 audio
2011-10-07 15:09:24 -07:00
Jeff Brown
270928bd4a Merge changes Idbfeb3cc,I03e8e2e7,Iff9eed78
* changes:
  Fix regression in CursorWindow.getString() Bug: 5332296
  Clean up CursorWindow lifetime. Bug: 5332296
  Fix regression in CursorWindow.copyStingToBuffer. Bug: 5332296
2011-10-07 15:08:24 -07:00
Jeff Brown
4cc8bafb4b Merge "Restore broken CursorWindow.getType behavior. Bug: 5430009" 2011-10-07 15:07:56 -07:00
Michael Kolb
b762d1e5ea Merge "Handle audio focus in HTML5 audio" 2011-10-07 15:07:29 -07:00
Romain Guy
25cfe925c5 am 69f906e0: Merge "Stupid fixed point math. Bug #5423215"
* commit '69f906e075753328e6da0b7f6f7638dd453092ed':
  Stupid fixed point math. Bug #5423215
2011-10-07 15:05:27 -07:00
Romain Guy
69f906e075 Merge "Stupid fixed point math. Bug #5423215" 2011-10-07 15:04:15 -07:00
Romain Guy
5a6d3a4c03 Stupid fixed point math.
Bug #5423215

Change-Id: I39379e1f8fb4d59de4ede6e4fe7cf7a2c7cc625a
2011-10-07 15:03:24 -07:00
Steven Ross
074a6a856a am 705a6642: Merge "Fixing alarm clock bug"
* commit '705a6642c40156648d9b426e142975cf86c93bd8':
  Fixing alarm clock bug
2011-10-07 14:38:05 -07:00
Steven Ross
705a6642c4 Merge "Fixing alarm clock bug" 2011-10-07 14:36:25 -07:00
Dianne Hackborn
df89e65bf0 Fix how we hide and show the nav bar.
The PhoneWindowManager is now responsible for hiding and showing
the nav bar.

For hiding, it just moves it off the screen (easy way to get a
nice slide animation on and off).  At the same time, we use a
new WM facility to put up a fake input window to capture all
touch events.

When a touch event is received, we force the system UI to clear
the navigation hiding bit so it will be shown again.

This removes a bunch of code from the system UI for hiding and
showing the nav bar.  Also removes the code calling from userActivity()
to the system UI, which was bad.  (Also no longer using userActivity()
fixes bugs around re-showing the nav bar due to key presses and
other wrong things.)

Change-Id: I8c3174873b5bcaa36a92322a51e8f7993e88e551
2011-10-07 14:32:01 -07:00
Michael Kolb
889453b892 Handle audio focus in HTML5 audio
Bug: 5416191

    Video will follow later

Change-Id: I51da05aa0e3c8c0f33151df84d84a65cb7003080
2011-10-07 14:22:29 -07:00
Jeff Brown
715311fa5a Fix regression in CursorWindow.getString()
Bug: 5332296

NewStringUTF expects modified UTF-8, so it barfs on UTF-8 strings
that contain high codepoints.  Even though it results in an extra
copy being performed, first convert to UTF-16, then call NewString.

Change-Id: Idbfeb3cc2c4b731834e4482848dcac2fa33ec2d0
2011-10-07 14:17:09 -07:00
Jim Miller
19eb7014bd Fix 5406921: Register for receiving phone state changes when KGSVM gets created.
This fixes a bug where the state wasn't being updated because it wasn't
registered for KeyguardUpdateMonitor state changes when the view first created, like on first boot.

Change-Id: Ic6838afffd0de51decdc43a8e8a796696aed49df
2011-10-07 13:47:46 -07:00
Christopher Tate
b317fde4a1 am e47b89ca: Merge "Fix wallpaper restore"
* commit 'e47b89cabe38bb0a711c3b2a87be9696c7a1f074':
  Fix wallpaper restore
2011-10-07 13:38:37 -07:00
Christopher Tate
e47b89cabe Merge "Fix wallpaper restore" 2011-10-07 13:36:09 -07:00
Jeff Brown
7ce745248d Clean up CursorWindow lifetime.
Bug: 5332296

Removed dead code in SQLiteCursor related to the use of a background
query thread.  This code could result in CursorWindows being modified
concurrently or used after free.  This code is broken, unused and
is just in the way.

Added comments to explain how CursorWindow ownership is
supposed to work for AbstractWindowedCursors.  (There are still cases
where cursor windows get dropped on the floor without being closed.
Those will be taken care of in a subsequent patch.)

Cleaned up SQLiteQuery.fillWindow to eliminate duplicate code and
remove bits that were only needed for background loading, like
returning -1.

Change-Id: I03e8e2e73ff0c11df76d63f57df4c5ada06ae1cb
2011-10-07 13:31:00 -07:00
John Reck
4a1ad5c1ea am 25d888b5: Merge "Fix calc visible to account for action bar"
* commit '25d888b5ff23acf1a9d41bef3e74ee897baf5ad7':
  Fix calc visible to account for action bar
2011-10-07 13:28:33 -07:00
Matthew Xie
035d25170d am cf6bc99b: Merge "Turn off debug messge"
* commit 'cf6bc99b97d398c13bbf7a2d8656670f197d8220':
  Turn off debug messge
2011-10-07 13:28:27 -07:00
Fabrice Di Meglio
0b522abeb2 am 75b071e7: Merge "Fix bug #5371117 Regression : The Hebrew / Arabic text behavior in ICS latest build is wrong"
* commit '75b071e74437535b827125da00dabed8e6619e40':
  Fix bug #5371117 Regression : The Hebrew / Arabic text behavior in ICS latest build is wrong
2011-10-07 13:28:25 -07:00
Jeff Brown
d0ff68da6a Fix regression in CursorWindow.copyStingToBuffer.
Bug: 5332296

Change-Id: Iff9eed786f0a8293b6156f883a66a322ddad5e99
2011-10-07 13:28:18 -07:00
Gilles Debunne
287d6c6e12 Bug 5250788: LatinIME slows down as amount of Text increases
Removed unnecessary CharSequenceIterator and made the WordIterator
work on String instead of CharSequence

Submit words to the spell checker by batches.

Refactored WordIterator to make it intrinsically local.

Change-Id: Ie9e30691985a130fa55cd052005ddb22a21761cb
2011-10-07 13:27:52 -07:00
Jeff Brown
aa32c30b81 Restore broken CursorWindow.getType behavior.
Bug: 5430009

Some CTS tests try to call getType on fields in empty
cursor windows or with out of bound column indices (-1).
Restoring the previous behavior of returning FIELD_TYPE_NULL
instead of throwing.  Fix this later.

Change-Id: I782bd02012474e7dabc5bb7ea2dc45e8b0c7ef25
2011-10-07 13:17:18 -07:00
Steven Ross
9c2df26179 Fixing alarm clock bug
The alarm clock doesn't actually hide the view until AFTER Facelock starts
hence the need to kill Facelock after it has started when the even is caught
Also fixing phone black box background in case the user cancels the call quickly

Also eliminating blackscreen after 4s for multiple reasons
so people can login if lockscreen locks up
also so cancel fade is to the backup lock

Change-Id: I8162ff67453038559f289408f4f0d452d4f79ab3
2011-10-07 16:11:08 -04:00
John Reck
25d888b5ff Merge "Fix calc visible to account for action bar" 2011-10-07 13:10:55 -07:00
Matthew Xie
cf6bc99b97 Merge "Turn off debug messge" 2011-10-07 12:57:08 -07:00
Christopher Tate
bf6ee4f509 Fix wallpaper restore
Following a restore of the wallpaper data files, the settingsRestored()
method was binding the new wallpaper by passing null as the component,
because once upon a time that meant just use the configuration that had
just been loaded from the [newly restored] settings filed.  However, at
some point this broke when the load from settings was made a staging
operation, not also the commitment of the changes.

This CL passes the newly-determined component configuration explicitly
to the bind, overriding the product default that may already have been
emplaced by the time the restore happens.

It also turns off the (minor) debugging that had been enabled in
WallpaperBackupHelper while digging into the issue.

Bug 5416839

Change-Id: I963893c236e24c75d10dde75836805295ea42cbb
2011-10-07 12:37:42 -07:00
Fabrice Di Meglio
75b071e744 Merge "Fix bug #5371117 Regression : The Hebrew / Arabic text behavior in ICS latest build is wrong" 2011-10-07 12:30:58 -07:00
Jason Sams
41bf381c52 am 05f876e1: Merge "Simplify the way we get the version info. Reduces startup overhead."
* commit '05f876e19d8ba7009c195e9a898c0bad3fda24ed':
  Simplify the way we get the version info. Reduces startup overhead.
2011-10-07 12:00:07 -07:00
Jason Sams
05f876e19d Merge "Simplify the way we get the version info. Reduces startup overhead." 2011-10-07 11:58:15 -07:00