2391 Commits

Author SHA1 Message Date
Irfan Sheriff
43d8a95fa8 Merge "Improve Wi-Fi hand-off" 2012-02-29 19:33:06 -08:00
Irfan Sheriff
07573b3249 Improve Wi-Fi hand-off
When Wi-fi connects at L2 layer, the beacons reach and the device
can maintain a connection to the access point, but the application
connectivity can be flaky (due to bigger packet size exchange).

We now use Watchdog to monitor the quality of the last hop on
Wi-Fi using signal strength and ARP connectivity as indicators
to decide if the link is good enough to switch to Wi-Fi as the uplink.

ARP pings are useful for link validation but can still get through
when the application traffic fails to go through and thus not best indicator
real packet loss since they are tiny packets (28 bytes) and have
much low chance of packet corruption than the regular data
packets.

Signal strength and ARP used together ends up working well in tests.
The goal is to switch to Wi-Fi after validating ARP transfer
and RSSI and then switching out of Wi-Fi when we hit a low
signal strength threshold and waiting until the signal strength
improves and validating ARP transfer.

Change-Id: Ica593291ec7772da892f03cf45b649635b730c47
2012-02-29 17:33:36 -08:00
Michael Jurka
fa73c1fd3e Merge "Fix alpha when swiping recents on tablets" 2012-02-29 17:30:05 -08:00
Michael Jurka
4eaa983f25 Fix alpha when swiping recents on tablets
When you swipe to dismiss a recent item on a
tablet, fade the item to 0 alpha

Also, create common interface for Recents-specific
methods for Recents[Horizontal/Vertical]ScrollView

Bug: 5953654

Change-Id: I0a72b49b3cfae0607b42dbf8f6d4da9898d7e491
2012-02-29 16:49:01 -08:00
Michael Jurka
a267f0a707 Merge "Add shortcut for voice search" 2012-02-28 14:40:33 -08:00
Michael Jurka
7a3489552c Add shortcut for voice search
On phones with soft nav bar, make long press on
home launch a voice search intent

Change-Id: I69840a96a08524a76e33a306b799222c879db095
2012-02-28 14:37:35 -08:00
Eric Fischer
6fa13b5a02 Merge "Import translations. DO NOT MERGE" 2012-02-28 13:56:29 -08:00
Ying Wang
04a3a4350e Disable ProGuard for FakeOemFeatures to fix build.
Change-Id: If0ccf16712bf43adb5fe490906be2a13b484f726
2012-02-28 12:53:19 -08:00
Eric Fischer
18634b34e6 Import translations. DO NOT MERGE
Change-Id: I2761d2e7bb8795ab23a0024ed41ec299abc400e1
2012-02-28 12:23:51 -08:00
Dianne Hackborn
ef437848ca Merge "You could think of this as what an OEM might do." 2012-02-28 11:26:02 -08:00
Dianne Hackborn
d459f4bbfc You could think of this as what an OEM might do.
Except it does nothing.

But eat resources.

Yum, yum!

Current we create five processes.  The main process sucks up 16MB of
RAM and creates a full-screen window; only on high-end devices does
the window (and process) use the GPU.

The second through fourth processes just sits there not really doing
anything except using process overhead.

The fifth process runs a background service, slowing eating RAM until
it gets killed by the system (as the system will ultimately do with
background services).  It also creates a full-screen window, and always
uses the GPU even on low-end devices.

Change-Id: Ibe9e25f7dbd889f4dc83eed6a3c09b9b0437b4e3
2012-02-27 18:46:29 -08:00
Chia-chi Yeh
eb8ab685c2 Merge "VpnDialogs: hide the fields when the statistic numbers are unavailable." 2012-02-27 17:35:06 -08:00
Chia-chi Yeh
b0736abca9 VpnDialogs: hide the fields when the statistic numbers are unavailable.
Bug: 5954284
Change-Id: I2321984d4f423e951989d799073a9da17a577ef9
2012-02-27 17:30:41 -08:00
Michael Jurka
cbaa666955 Merge "Remove unnecessary code" 2012-02-27 17:15:41 -08:00
Michael Jurka
f16fc51d96 Remove unnecessary code
Found cleaner way to improve recents scrolling
performance on crespo-- instead of rendering the
background in the items, instead we just set
a window flag. Removed need for a lot of code.
2012-02-27 15:34:52 -08:00
Daniel Sandler
fc6fda3950 Fix fullScreenIntents.
The intruder alert stuff was getting activated, but it's not
really ready yet.

Bug: 6070420
Change-Id: If65165e96bddf1e5e4c89ed26131e45639d5cf2d
2012-02-24 22:05:27 -05:00
Daniel Sandler
3f0c58eb70 Merge "New notification priority and related APIs." 2012-02-24 10:53:42 -08:00
Daniel Sandler
2561b0b10a New notification priority and related APIs.
This change introduces a few new bits of data on
Notification that will help the Notification Manager and
System UI route and display them more intelligently:

 -> priority: an integer in a predefined range that
    indicates the app's best guess as to the relative
    importance (to the user, right now) of that information

 -> kind: a tag (really, set of tags) indicating the general
    type of notification (realtime, asynchronous, etc)

 -> extras: a Bundle of additional key/value pairs
    associated with this notification (currently @hidden)

The notification manager takes these data into account when
assigning to each notification a score which is passed with
the notification on to the system UI, where it can be used to
affect presentation. For example:

  - Spammy apps (identified explicitly by the user or by
    some other means) will have their notifications scored
    very negatively by the notification manager, allowing
    the UI to suppress them
  - Notifications of higher score might be shown larger
    or in a different way
  - Very important notifications (indicated by a very high
    score) might interrupt the user during an otherwise
    important task (videochat, game, etc)

Implementation note: This replaces/extends the old internal
notion of "priority", which was mostly used to organize
ongoings and system notifications at the top of the panel.

Change-Id: Ie063dc75f198a68e2b5734a3aa0cacb5aba1ac39
2012-02-24 13:47:00 -05:00
Michael Jurka
2db72fce6c Fix blip after notifications are swiped
Bug #6035662

Change-Id: I7f0274c9011247d0fd5ef09a05b7630eda0ca77f
2012-02-23 17:51:02 -08:00
Mike Lockwood
79f5a0416f WifiStateTracker: add support for overriding DCHP max retry count in an overlay
Bug: 5551068

Signed-off-by: Mike Lockwood <lockwood@google.com>

Conflicts:

	packages/SettingsProvider/res/values/defaults.xml

Change-Id: I6a6519316a87bd1af39ea9dc51e0d312011135ef
2012-02-16 10:01:44 -08:00
Michael Jurka
693ce6447d Fix recents on crespo 2012-02-14 23:25:08 -08:00
Michael Jurka
a17a7953f9 Merge "Making recents faster" 2012-02-14 13:57:14 -08:00
John Wang
286b364c7b am 0b17fc36: am 252c64f9: am 63b59666: Merge "Only use CDMA rssi for config_alwaysUseCdmaRssi." into ics-mr1
* commit '0b17fc360185ca7b9d05a096b0033ddd8d883940':
  Only use CDMA rssi for config_alwaysUseCdmaRssi.
2012-02-14 13:07:58 -08:00
John Wang
0b17fc3601 am 252c64f9: am 63b59666: Merge "Only use CDMA rssi for config_alwaysUseCdmaRssi." into ics-mr1
* commit '252c64f9c3e2e357f8687e18d8a066cc1cdb8c15':
  Only use CDMA rssi for config_alwaysUseCdmaRssi.
2012-02-14 12:42:40 -08:00
John Wang
252c64f9c3 am 63b59666: Merge "Only use CDMA rssi for config_alwaysUseCdmaRssi." into ics-mr1
* commit '63b596664c3fdb70ad32c8f641f477ec9140d6ec':
  Only use CDMA rssi for config_alwaysUseCdmaRssi.
2012-02-14 12:37:14 -08:00
Michael Jurka
99a9655b93 Making recents faster
Improving load time by:
- using window animation for fade-in and not
    waiting to create HW layer
- starting loading of thumbnails/icons earlier
- only initially creating views for the first
    screenful of items
- recycling views

Change-Id: I529b1085fe35d81aaafeb7433ccaed8e0537f01c
2012-02-13 19:11:40 -08:00
John Wang
d55cde1384 Only use CDMA rssi for config_alwaysUseCdmaRssi.
If config_alwaysUseCdmaRssi is true, the RSSI signal bar only
shows the CDMA value, no matter it connects to EVDO or WiMax .

bug:5941743
Change-Id: I4187571898a9fb47162e1ccf0cc4c59c3136ae0b
2012-02-13 17:48:24 -08:00
Mike Lockwood
d3c5e1eca1 Allow disabling network stats support in a resource overlay
Bug: 5771240

Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-02-10 14:44:08 -08:00
Mike Lockwood
2395527c9b SettingsProvider: Allow overridding default value for Setttings.Secure.DEVICE_PROVISIONED
Signed-off-by: Mike Lockwood <lockwood@android.com>
2012-02-10 10:51:24 -08:00
Mike Lockwood
86aeb06635 Load lockscreen.disabled setting on database create as well as upgrade
Signed-off-by: Mike Lockwood <lockwood@android.com>
2012-02-10 10:51:24 -08:00
Mike Lockwood
c33d576661 SystemUI: Log an error instead of throwing an exception if navigation bar is enabled in tablet UI
Signed-off-by: Mike Lockwood <lockwood@android.com>
2012-02-10 10:51:24 -08:00
Mike Lockwood
7bef73900b SettingsProvider: Add support for overriding lockscreen.disabled default value
Signed-off-by: Mike Lockwood <lockwood@android.com>
2012-02-10 10:51:23 -08:00
Mike Lockwood
4b797dd8c1 Allow overriding default STAY_ON_WHILE_PLUGGED_IN setting value in an overlay
Signed-off-by: Mike Lockwood <lockwood@android.com>
2012-02-10 10:51:23 -08:00
Justin Ho
448249d1a7 am 744c5b0b: Merge "Import translations. DO NOT MERGE" into ics-mr1
* commit '744c5b0bdee6a26e2dc7e740a695d53c32104326':
  Import translations. DO NOT MERGE
2012-02-10 10:09:42 -08:00
Eric Fischer
351fc6b1e3 Import translations. DO NOT MERGE
Change-Id: Icc9762f02ccee5f0f4fe1dc1adb66ef82f42fdf6
2012-02-09 11:33:43 -08:00
Eric Fischer
e42fe553a7 Import translations. DO NOT MERGE
Change-Id: Id6eb7d951bbbd8d01ce11670946282eecd7bc984
2012-02-08 18:46:47 -08:00
Xavier Ducrohet
9e194a1557 Add some lint control for the frameworks.
Change-Id: Ie80ffee31ca87da3e7f1031317f2d4c1a36640c8
2012-02-03 13:27:52 -08:00
Jeff Sharkey
0e2e5f8b56 Support snoozing of data warning notification.
Introduce second snooze timestamp to support dismissal of data usage
warning notification.  Also explicitly set notification "when" to
avoid fighting with other notifications, such as ongoing downloads.

Bug: 5443756, 5262414
Change-Id: I03342c25b0410b1b2db84de9a40884f04cb1d8ae
2012-02-02 16:22:33 -08:00
Kazuhiro Ondo
bc92613cf7 Display roaming indicator icon only based on ERI in CDMA case.
Fixing CV failure. In some scenario where ERI table expects
"Roaming Indicator OFF", R icon was still displayed on
the status bar. This patch is to update the logic so that
only ERI table is used to display R icon in case of CDMA.

Bug:5932154
Change-Id: I125087cc8d700b102e05c3050d88a70485c9a86e
2012-01-30 13:42:21 -08:00
Jeff Sharkey
5e61331da5 Move away from deprecated NetworkInfo extra.
Because the NetworkInfo included in CONNECTIVITY_ACTION broadcast
extra does not reflect the state applicable to the calling UID, and
the last sticky broadcast may have stale state, transition to calling
ConnectivityManager.getActiveNetworkInfo() directly.

Change-Id: I86b316fbedd0273585ad5f1248b091bc3a3a5520
2012-01-30 11:21:35 -08:00
Eric Fischer
fb197c2654 Import translations. DO NOT MERGE
Change-Id: I853c3fd2a3ada0c78e461550dc6c61bb5e09404a
2012-01-27 11:55:32 -08:00
Daniel Sandler
bbbf6b9c49 am 70828a1d: am 5b08738a: Merge "Suppress mobile-out-of-service label if wifi connected." into ics-mr1
* commit '70828a1d40c9bf0e5066166216013093298de034':
  Suppress mobile-out-of-service label if wifi connected.
2012-01-26 15:47:06 -08:00
Eric Fischer
3b5e2c3bde Import translations. DO NOT MERGE
Change-Id: I9ecc6b7fd129f9b430d96e4d65c656a2b71bd0af
2012-01-26 14:21:26 -08:00
Daniel Sandler
70828a1d40 am 5b08738a: Merge "Suppress mobile-out-of-service label if wifi connected." into ics-mr1
* commit '5b08738a62ece5bf0ca5d22a6f062e2fb67af272':
  Suppress mobile-out-of-service label if wifi connected.
2012-01-26 13:04:17 -08:00
Daniel Sandler
62a1eb8972 Suppress mobile-out-of-service label if wifi connected.
Carrier name is shown if
 - in service and connected to mobile data
 - in service and connected to wifi

Carrier name is blanked if out of service and connected to
wifi.

"No internet connection" is shown if out of service without
any other route.

Bug: 5903914
Change-Id: I59d4d0c90e4153d73c38f7f0e150becf7e021a5b
2012-01-26 15:35:03 -05:00
Daniel Sandler
efbf376afd am 416a1c1a: am 185c0ef7: Merge "Stop showing "No internet connection" when there is one." into ics-mr1
* commit '416a1c1ada0ad553613eb439823a68d3f51b1579':
  Stop showing "No internet connection" when there is one.
2012-01-25 08:57:27 -08:00
Winson Chung
2ca25cd6d6 Merge "Call ActivityManager to get the proper icon dpi." 2012-01-24 15:51:53 -08:00
Winson Chung
43e34f61f0 Call ActivityManager to get the proper icon dpi.
Change-Id: Iaec2a9a3cc1ea5febe60e0b675f1deff8e77d011
2012-01-24 15:27:17 -08:00
Daniel Sandler
416a1c1ada am 185c0ef7: Merge "Stop showing "No internet connection" when there is one." into ics-mr1
* commit '185c0ef7e4aaa4bb978a6eb5c93c569585a07f56':
  Stop showing "No internet connection" when there is one.
2012-01-24 12:57:14 -08:00
Daniel Sandler
185c0ef7e4 Merge "Stop showing "No internet connection" when there is one." into ics-mr1 2012-01-24 12:54:48 -08:00