22184 Commits

Author SHA1 Message Date
Mattias Falk
0ae2ec88ec Dismissing AlertDialog before destroying WebView.
Added dismiss method for the Alertdialog in destroy to avoid
a leaked window.

Change-Id: Ia6a6e733b8bdd583dae15b854e4d69ef4f5cbff1
2010-10-04 13:13:25 +02:00
Jean-Baptiste Queru
7d9c73fb6f Merge "Prevent unhandled exception in NinePatchDrawable" 2010-09-26 08:22:15 -07:00
Jean-Baptiste Queru
dcfb271b7f Merge "Fix if ACTION_DOWN and lost focus time too close, it will become long press." 2010-09-26 08:16:26 -07:00
Raphael
91512f579e Layoutlib_create: Unittest for ClassHasNativeVisitor.
Change-Id: Id101bb3fc2644e450847e73c933cb6f616982f24
2010-09-24 14:04:04 -07:00
Raphael Moll
f2960b8d66 Refresh the layoutlib_create doc.
Change-Id: I43e92c33d824ace9edd77d90a1b36a5f69d85e7f
2010-09-21 17:39:35 -07:00
Jean-Baptiste Queru
7869f08c55 Merge "MOTOYA Japanese fonts" 2010-09-21 10:09:12 -07:00
Shin-ichiro Fukuda
4234d40eae MOTOYA Japanese fonts
These fonts were contributed by MOTOYA.

Change-Id: I97879b4e163f6b547305da732c8604d1ac759df4
2010-09-17 15:45:23 +09:00
Joe Onorato
b01e10c5bc There is no @note javadoc tag.
Change-Id: I4bb4e0be518b01f2a81d870ff4ec9da81555afbd
2010-09-16 17:00:42 -04:00
Sonia Serafimova
279d006b1d Prevent unhandled exception in NinePatchDrawable
Added null check in computeBitmapSize() to avoid unhandled
exception "java.lang.NullPointerException" at
android.graphics.Rect.<init>(Rect.java:72).

This problem was discovered in the wild.

Change-Id: I8a4729ceadcfc9744f11b8ceafdf24d6de88c645
2010-09-15 13:22:43 +02:00
Tony Wu
26edf20a0b Fix if ACTION_DOWN and lost focus time too close, it will become long press.
It will become long press because CheckForTap is still posted in background.
So remove the callback when lose focus, or it will become long press event.

Change-Id: I4f98a6fc077d256edbe555464095b2b81e75dd41
2010-09-13 19:54:53 +08:00
Romain Guy
15f0a79a81 Merge "fix typo in comment @beamsOverlap" 2010-09-12 11:42:49 -07:00
madan ankapura
44e8ec7197 fix typo in comment @beamsOverlap
Change-Id: I7c7f8e94391ed71a54b65badea164286281df7e3
2010-09-12 09:09:05 -07:00
Jean-Baptiste Queru
36edb2028a Merge "Make DRM libraries optional" 2010-09-12 08:42:48 -07:00
Romain Guy
89e05fd560 Merge "Fix the layouting of the checkbox." 2010-09-11 14:06:07 -07:00
Romain Guy
01937f63dc Merge "Memory leak in TextKeyListener." 2010-09-11 14:03:11 -07:00
Jean-Baptiste Queru
ca6de93a9d Merge "Fix number counter will keep going after window losed focus." 2010-09-10 16:13:13 -07:00
Jean-Baptiste Queru
962e482606 Merge "Allow two SurfaceViews inbetween the app and the wallpaper." 2010-09-10 14:36:21 -07:00
Jean-Baptiste Queru
7c65585feb Merge "Make sure OutOfMemoryError is handled by WallpaperManager" 2010-09-10 14:25:14 -07:00
Jean-Baptiste Queru
3802949f5c Make DRM libraries optional
Change-Id: I0b591b75a035bc6d8049c85b595966845fedaa15
2010-09-10 12:46:57 -07:00
Brett Chabot
4940ff85d5 Update to new ddmlib-prebuilt api.
Change-Id: Ib99f5eab2b4ecfde8461f93676f0dbd1f1b38241
2010-09-09 20:38:54 -07:00
Xavier Ducrohet
89fef4183a Merge "Avoid pre-processing images when they won't be used" 2010-09-09 18:30:59 -07:00
Jean-Baptiste Queru
beeb71dfd4 fix build
Change-Id: Iccb40c8c5df879288f35e0940c721d306fb75c12
2010-09-09 16:16:14 -07:00
Jean-Baptiste Queru
862438eb69 fix build
Change-Id: Idccb3f2499bbaac61099d8232cadd633b93ad846
2010-09-09 16:10:32 -07:00
Jean-Baptiste Queru
7547b8eac6 fix build
Change-Id: I4aba42eabb2f959b5301bfd16f65fa6141d86ddc
2010-09-09 16:02:22 -07:00
Jean-Baptiste Queru
93548db645 fix build
Change-Id: I603e317b774758add127d7fe386fd60dc16d3101
2010-09-09 15:34:27 -07:00
Jean-Baptiste Queru
56aa3c761d Merge " Initial contribution from Sony Corporation." 2010-09-09 14:22:50 -07:00
Henrik Backlund
a79c82918e Fix to get A2DP to connect after unpairing
In this fix, A2DP profile will be connected when pairing with a
previously paired headset. The reason for this error was that the
connection of the A2DP profile was sent before the callback
onCreatePairedDeviceResult was receied in BluetoothEventLoop.java.
By not going to the state BOND_BONDED until after this callback has been
received, the problem is fixed. However the use case is different if the
pairing is initiated by the remote device. In these cases state
BOND_BONDED will be set when onDevicePropertyChanged instead.

Change-Id: I5dedca87d0a6872705ff3a933a99cce6eb37618a
2010-09-09 10:07:15 +02:00
Anthony Newnam
578a57fc6b Avoid pre-processing images when they won't be used
Change-Id: Iffa31228ca95a2e29ccc0aa81bda0fc66922d577
2010-09-03 15:17:09 -05:00
Pal Szasz
73dc2592be Allow two SurfaceViews inbetween the app and the wallpaper.
When two SurfaceViews are used by an application, which is
transparent and uses the wallpaper, only one of the SurfaceViews
will be visible.

The problem is that when trying to find the correct location
for the wallpaper, the window manager locates the activity
window and skips every window below it which is related.
For the first SurfaceView this will be ok, since the
SurfaceViews's attached window is the previous window.
However for the second SurfaceView this condition will fail
(the 2nd SurfaceViews attached window is not the previous
window (which is the 1st SurfaceView)).

The fix adds an extra check which detects this usecase
(the windows are related if the attached window is the same
as the attached window of the previous window).

Change-Id: I368e9dd53455dc310f48d6d8c0be68350ff2b79e
2010-09-03 11:46:26 +02:00
Mathias Jeppsson
7f8069b16f Memory leak in TextKeyListener.
If a call to getPrefs is made after weak reference to content resolver
is gone, a new observer will be created and registered at the
resolver. At registration, the resolver will allocate ObserverEntry
objects that will eventually fill the JNI global reference pool.
There is no need to create and register a new observer if one is already
registered.

Change-Id: If8442b3370299980b73d4ea83757c5eae6a85408
2010-09-03 11:35:00 +02:00
Johan Alfven
2c4a56af4d Make sure OutOfMemoryError is handled by WallpaperManager
Make sure exception OutOfMemoryError is handled when calling
BitmapFactory.decodeFileDescriptor and BitmapFactory.decodeStream
to avoid crash in the system server.

Change-Id: I954a6388d1225dab86d2617ab0602154b2a7f493
2010-09-03 08:43:24 +02:00
Tony Wu
3d456a4fc0 Fix number counter will keep going after window losed focus.
Use Time pick in AlarmClock, long press on + or -, make an
incoming call or press power key to suspend the device,
after resumed, the counter will keep going without press.

Change-Id: I5e69d5e17d3be9aa78648e6f8e28665ec305b36f
2010-09-03 12:06:20 +08:00
Xavier Ducrohet
bd6abed3c8 Merge "Add a --debug-mode option to aapt." 2010-09-02 11:08:03 -07:00
aimitakeshi
d074e30ce4 Initial contribution from Sony Corporation.
Add DRM Framework to support DRM content playback
  together with StageFright.

  - DRM Framework code is added
     - include/drm
     - drm
  - api/current.xml is updated to include DRM Framework Java APIs
  - cmds/servicemanager/service_manager.c is modified
    to add drmManager and drmIOService.

Change-Id: I6d7bc9c7067362b500e530988a9ce241761866fb
2010-09-01 15:40:00 +09:00
Xavier Ducrohet
8e9bfab2a3 Add a --debug-mode option to aapt.
When passed (with no needed parameters) to the aapt command line,
aapt will insert debuggable=true in the application node of the manifest
automatically.

This is to be used by the SDK tools to make true "debug" builds
that require no code/file change.

Change-Id: I909759caef499a91d10cc9a0902c6448c87e75ef
2010-08-31 15:46:59 -07:00
Mike Lockwood
75a2ae937f Merge "GPS: Initialize XTRA support when GPS is enabled" 2010-08-31 13:56:00 -07:00
Mike Lockwood
9e64fcb5b5 Merge "GPS: Don't set XTRA download pending flag at boot time." 2010-08-31 13:55:39 -07:00
Jean-Baptiste Queru
d3e803ae28 Revert "Shutdown when capacity is 0% and no charging or when battery is dead"
This reverts commit fd04143a47770256dabcfa4d8447127b3ec8b2bf.

This break most automated tests because with this change, if the
device is fully charged, it will simply turn off the screen, regardless
if USB is connected to hsot PC or not; so for our tests, most of them
are always connected to host PC, and fully charged 99% of the time,
as soon as the screen turns off, the front-end test Activity will be
suspended.

Change-Id: I1e6590611af43812f1bac223dd31570d1d90cfc5
2010-08-31 12:32:55 -07:00
Mike Lockwood
b445946dea GPS: Initialize XTRA support when GPS is enabled
BUG: 2923148

Change-Id: If9a643e385c6c567b30f47d4caa35fa812a2ba43
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-08-30 19:42:26 -04:00
Mike Lockwood
3e34d135f7 GPS: Don't set XTRA download pending flag at boot time.
XTRA data downloads are now strictly on demand from the GPS engine.
Also fix typo in handleDownloadXtraData()

Change-Id: Ied1a6e2e62134add4d965326aae909c86f834682
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-08-30 19:38:45 -04:00
Mattias Falk
12dbee8273 Avoid NullPointerException in BrowserFrame
Avoid NullPointerException in BrowserFrame in
method createWindow. getWebViewCore can return
null if WebView has been destroyed. Crash found
in live environment.

Change-Id: I49c3549a037d8f424a0abaee1f8933974b1ec9d7
2010-08-30 15:10:55 -07:00
Jean-Baptiste Queru
1d22e122a6 Merge "Fix a monkey crash when the new WebView is destroyed." 2010-08-30 15:03:06 -07:00
Jean-Baptiste Queru
55a2df8c77 Merge "Telephony: Control operator selection using EF_CSP data." 2010-08-30 13:00:48 -07:00
Banavathu, Srinivas Naik
0e67c8926b Telephony: Control operator selection using EF_CSP data.
As per CPHS4_2.WW6, CPHS B.4.7.1, the most significant bit of
Value Added Services Group(0xC0) info, controls operator selection menu.
   -If this bit is set, display operator selection menu to user.
   -If this bit is not set do not display operator selection menu to user,
	 set Network Selection Mode to Automatic.

Change-Id: Icca4898abced0b0beb94c3434448a26eae72008b
2010-08-30 11:05:38 -07:00
Jean-Baptiste Queru
f470ed8630 Merge "Support surrogate pairs when layouting text" 2010-08-30 09:15:42 -07:00
Patrick Scott
35e719794b Fix a monkey crash when the new WebView is destroyed.
Grab the WebViewCore immediately so that if the Tab is destroyed, we have the
old WebViewCore object and can return the BrowserFrame.

Bug: 2733004
Change-Id: Ic3e4c5417f2165f412f60f05aea3ed403d8cecfd
2010-08-26 14:05:21 -07:00
Imre Sunyi
fd04143a47 Shutdown when capacity is 0% and no charging or when battery is dead
Android framework does not shutdown when battery capacity is 0% and a
charger is attached (USB or AC). This handling is incomplete since a
charger might very well be attached but charging has stopped because
USB suspended or the charging algorithm has stopped because of
battery safety handling. Also shutdown when battery is reported 'dead'.
This might happen although charging is present.

Change-Id: If328260ebf4d38f912e4d2fad204431cbb19c993
2010-08-26 09:23:42 +02:00
Takako Ishibashi
12122bf792 Support surrogate pairs when layouting text
The current framework does not consider surrogate pairs
when getting the index of the character. This bug becomes
visible when creating the text including Emojis. For
example cursor breaks up when it moves around the Emojis.

Our proposed solution will consider the surrogate pairs
when calculating the index. It will fix not only the Emoji
case, but also the letters that use surrogate pairs.

Change-Id: I4983f2e4df933c8af9d5f0cc27df871e8e10fed4
2010-08-26 08:15:47 +02:00
Pal Szasz
342da2a5a6 Fix the layouting of the checkbox.
Sometimes (very rarely) the checkbox is not layouted correctly
(it's partly visible only). The reason is that the checkbox
(and the hint text below it) has layout_width set to
"wrap_content" as well, which means it needs more then one
layout runs to get the final layout.

Change-Id: I460bb29e2d9b4fdcf3df314e2baf9c45b2a6259b
2010-08-25 10:09:38 +02:00
Banavathu, Srinivas Naik
f3ee6f87a3 Telephony: Remove references to mExitECMRunnable object.
Free mExitECMRunnable object while destroying CDMA phone.

Change-Id: I411b3e5e41a9cc76c3571a98f13f91d84523f623
2010-08-23 22:03:28 -07:00