57189 Commits

Author SHA1 Message Date
Nick Pelly
e432de8493 Merge "Improve NDEF push API" 2011-08-26 17:31:02 -07:00
Nick Pelly
c84c89a6ca Improve NDEF push API
Introduce
  setNdefPushMessage()
  setNdefPushMessageCallback()
  setNdefPushCompleteCallback()

Deprecate public API
  enableForegroundNdefPush()
  disableForegroundNdefPush()

Hide & Deprecate staged (public but never released) API
  enableForegroundNdefPushCallback()

The new API's do not require the application to explicitly call
enable()/disable() in onPause()/onResume(), we use a Fragment behind
the scenes to manager this automatically.

NDEF Push can be disabled by using a null parameter, so each
enable()/disable() pair is collapsed to a single set() call.

Application code should now look something like:

    public void onCreate() {
        NfcAdapter adapter = NfcAdapter.getDefaultAdapter(this);
        if (adapter != null) {  // check that NFC is available on this device
            adapter.setNdefPushMessage(myNdefMessage, this);
        }
    }

And that's it - no need to explicitly hook into onPause() and onResume() events.

Also - introduce a generic NfcEvent class that is provided as a parameter on
all NFC callbacks. Right now it just provides the NfcAdapter, but using
the wrapper classes allows us to add more fields later without changing
the callback signature. (i'm thinking Bluetooth).

Change-Id: I371dcb026b535b8199225c1262eca64ce644458a
2011-08-26 17:28:45 -07:00
Wink Saville
3ffb889746 Merge "Add timezone to the terminal response for provide local information command" 2011-08-26 16:53:39 -07:00
Jake Hamby
bbf6a409e9 Merge "Add ISIM application support for LTE devices." 2011-08-26 16:47:45 -07:00
Martijn Coenen
6a85a48831 Merge "Add getMaxTransceiveLength() API." 2011-08-26 16:36:29 -07:00
Martijn Coenen
faca12adc6 Add getMaxTransceiveLength() API.
Also moved canMakeReadOnly() down in the stack, and
cleaned up TransceiveResult.

Change-Id: I85576c52478ab79f0726606659b0c17d00b222e6
2011-08-26 16:30:58 -07:00
Chet Haase
4c340652f8 Merge "Fixed error in invalidation/LayoutTransition logic" 2011-08-26 16:26:22 -07:00
Christopher Tate
97c06141f0 Merge "Warn if we're tearing down "live" DeathRecipient content [take 2]" 2011-08-26 16:17:50 -07:00
Eric Fischer
03b1fecd53 Merge "Import revised translations." 2011-08-26 16:17:31 -07:00
Chet Haase
aceafe63ee Fixed error in invalidation/LayoutTransition logic
A recent fix for invalidation noop'd calls to invalidate() on
GONE/INVISIBLE views. This logic also noop'd views which might
be GONE, but which are in the process of fading in/out via
LayoutTransition animations. These views should invalidate as
usual.

Change-Id: Ie90a340f70290391a3aa4e68df535c6aabf4e5eb
2011-08-26 16:05:29 -07:00
Gilles Debunne
754289a895 Merge "Changed PreferenceCategory left padding." 2011-08-26 15:58:17 -07:00
Gilles Debunne
e1770fd1ab Merge "Text selection handle animations made faster." 2011-08-26 15:57:57 -07:00
Jeff Sharkey
e598cd0143 Merge "Always splice historical data stats, debug info." 2011-08-26 15:46:19 -07:00
John Reck
2c5423da4e Merge "Better touch rects" 2011-08-26 15:31:16 -07:00
John Reck
335f454753 Better touch rects
Bug: 5164486
 Get the focus rings from webkit instead of the navcache
 and draw them in Java.

Change-Id: Ib44d3f6972b3cdbca4d2f0a3034f53d9ae5bb2a8
2011-08-26 15:17:55 -07:00
Makoto Onuki
754b394bdf Merge "Define mime-types for stream items" 2011-08-26 14:50:12 -07:00
Eric Fischer
6a51343975 Import revised translations.
Change-Id: I51e1fc94b7fa3fec13f7dddad62b978dd9a71d43
2011-08-26 14:49:23 -07:00
Christopher Tate
ac5e350e56 Warn if we're tearing down "live" DeathRecipient content [take 2]
If the native-side bookkeeping still has strong references to VM-side
DeathRecipient objects at the time when it's being torn down, that
suggests that the app is doing unwholesome.  Log a warning to that
effect, with the class name of the objects to try to help the developer
figure out what they're mishandling.

Fixes bug 5202777 -- in particular, it no longer logs in the
working-as-intended case following delivery of the death notices,
when we've got the existing list shell but the weak refs have properly
cleared.  Also step down from "error" to "warning" logging as befits
the nature of the actual situation now being described.

This new patch fixes the JNI bug present in the earlier version.

Change-Id: I095862777a8d0e3905cb7f416af658878280041d
2011-08-26 14:34:21 -07:00
Jean-Michel Trivi
fedd53b82b Merge "Don't try to rescale when no bitmap in RemoteControlClient" 2011-08-26 14:25:05 -07:00
Jeff Sharkey
47eb102b40 Always splice historical data stats, debug info.
When reading network counters, always splice in xt_qtaguid values
to avoid counting backwards. Test to verify.

Remove verbose logging around global alerts, and add dumpsys debug
info for NMS and MDST. Also fix subtle bug around stats persisting
and dumping.

Bug: 5212893, 5211028
Change-Id: I783e5286637a67ee2dd2b09878198711a926d0cb
2011-08-26 14:19:54 -07:00
Peter Ng
31c272ae7e Merge "Textfield search items updated thickness on vertical bars Bug: 5076695" 2011-08-26 14:06:33 -07:00
Fabrice Di Meglio
d32f27aec0 Merge "Fix bug #5199577 TextView with android:password="true" is showing the "dots" on the left even if the password chars are RTL" 2011-08-26 14:05:09 -07:00
Irfan Sheriff
2589c93733 Merge "Fixed WifiWatchdog notification bugs" 2011-08-26 14:04:55 -07:00
Andreas Huber
539340fe2c Merge "Support for posting messages and synchronously waiting for a response." 2011-08-26 13:47:26 -07:00
Justin Ho
dae908a391 Merge "Updated sysbar icons Bug: 5076695" 2011-08-26 13:43:48 -07:00
Romain Guy
80122c2a7a Merge "Prevent crash in VPN settings Bug #5217245" 2011-08-26 13:37:35 -07:00
Romain Guy
eca9b1f53c Prevent crash in VPN settings
Bug #5217245

Change-Id: Ibacf4cbd40537cd417f1518b5ac4367a3f3d7d03
2011-08-26 13:36:37 -07:00
Gilles Debunne
87a4d87ecf Merge "Bug 5218421. Spell check crash with Japanese characters" 2011-08-26 13:28:28 -07:00
Scott Main
9fe4459797 docs: fix vendor ids
Change-Id: I8f1d4c657fb974b87b56dd859aac8b5312025160
2011-08-26 12:42:49 -07:00
Jake Hamby
463f221145 Add ISIM application support for LTE devices.
- Add methods to TelephonyManager to provide access to IMS records on
  the ISIM application of the UICC, as well as access to the ISIM
  AKA authentication algorithm.

- Add support for the new IMS methods to CDMALTEPhone, using the helper class
  ImsUiccRecords to load the IMS records from the ISIM. The same approach
  can be used to implement IMS support for UMTS/LTE devices.

- There is a new RIL request, RIL_REQUEST_ISIM_AUTHENTICATION, which is
  used to perform IMS AKA authentication using the algorithm on the ISIM
  application of the UICC. The challenge nonce and response are both encoded
  as Base64 strings.

Change-Id: I73367c7d9bc573d0d883d68adf09891de1319129
2011-08-26 12:33:11 -07:00
Daniel Sandler
829559d284 Merge "Stop spamming the user with unchanged tickers." 2011-08-26 12:11:32 -07:00
Jean-Michel Trivi
6e679d5a53 Don't try to rescale when no bitmap in RemoteControlClient
If a RemoteControlClient has a null artwork, do no attempt to
 rescale the bitmap, it's ok to send a null bitmap to the
 IRemoteControlDisplay.

Change-Id: I8332ccfcf18107ea0b41d4e7fa232d7f68798efc
2011-08-26 11:57:42 -07:00
Scott Main
9ebea5bd41 Merge "docs: update device doc with missing changes from hc mr2" 2011-08-26 11:56:54 -07:00
Isaac Levy
8136de08ff Fixed WifiWatchdog notification bugs
- Space was truncated on 'disabled' notification
- Disable reason was getting wiped out on subsequent disabled
- disable reason was not propogating to WifiSettings

Change-Id: I2e57ee33d285aad39aabe1b048e7436d364b02f3
2011-08-26 11:55:33 -07:00
Scott Main
692249286b docs: update device doc with missing changes from hc mr2
Change-Id: I655897d8a7780e4ecf400d5dc9156539133b542e
2011-08-26 11:55:23 -07:00
Andreas Huber
b59997f7ce Merge "Properly reset the number of frames we think we've written to the audio sink" 2011-08-26 11:35:33 -07:00
Scott Main
093d0f0190 Merge "docs: typo" 2011-08-26 11:32:02 -07:00
Scott Main
a84b5cdf00 Merge "docs: add pegatron vendor ID and driver download link" 2011-08-26 11:31:43 -07:00
Scott Main
f0dd587170 docs: typo
Change-Id: Icf9c9ae5a97a36cf6fb2d0c648576c4a730b7c36
2011-08-26 11:30:56 -07:00
Andreas Huber
9ba16f6c54 Properly reset the number of frames we think we've written to the audio sink
in order to compute the final delay before posting end-of-stream correctly.

Change-Id: I4ff6d7142fdf1ea2d19d12ec78c1e84322d22e5f
related-to-bug: 5216930
2011-08-26 11:26:25 -07:00
John Reck
f4565a91a5 Merge "After calling loadData invalidate the content" 2011-08-26 11:15:29 -07:00
Wink Saville
d0b6ad9ec9 Merge "Allow 15 strings in RIL_REQUEST_VOICE_REGISTRATION_STATE response" 2011-08-26 10:33:15 -07:00
Naveen Kalla
f976cf25f9 Add timezone to the terminal response for provide local information command
If timezone is sent in the NITZ message it needs to be part of the
terminal response sent to the provide local information command for
Date and time Setting. This is as per TS 31.111 section 6.4.15/ETSI TS 102 223
and 3GPP spec 22.042.

Change-Id: I3516911223bd5655dbe8189bba307f0765c63fa1
2011-08-26 10:14:11 -07:00
Gilles Debunne
d6e3494421 Bug 5218421. Spell check crash with Japanese characters
The word iterator returns no word in that case, and this is not
supported by TextInfo.

Change-Id: Iaf31c58638c02d3cdc7b88bc0d1201e793e84f17
2011-08-26 10:13:18 -07:00
Daniel Sandler
2a58af3756 Stop spamming the user with unchanged tickers.
Bug: 5217613
Change-Id: I63e9a9853803ff770155f1c69e09e5d3e57f2abf
2011-08-26 09:39:13 -07:00
Justin Ho
fdfbbf62e6 New alarm clock for Phone stat_sys area
Change-Id: I7eae1f87afdd92f7979ab03db9f96273edaf7a72
2011-08-26 08:51:27 -07:00
Daniel Sandler
298d975049 Merge "Righting a wrong." 2011-08-26 07:16:06 -07:00
satok
7926f62a07 Fix newSpellCheckerSession
Change-Id: Ia862dba70666c69b81d18836561b7e9a1c2d81b3
2011-08-26 21:13:35 +09:00
satok
f39daef102 Reset subtype when the current spell checker was changed.
Change-Id: I79099695337dbc5577871458b24c6710fc0ecca7
2011-08-26 19:54:27 +09:00
satok
ca6d29da77 Merge "Support system locale as the locale of the spell checkers" 2011-08-26 02:55:06 -07:00