diff options
author | Narayan Kamath <narayan@google.com> | 2013-09-06 12:25:27 +0100 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2013-09-11 13:00:01 +0000 |
commit | 3f94640e2657a4afa10e05ecd32845bd688e5b92 (patch) | |
tree | ffcf28729216b9ce5bc70dae62089fd28b5cfd39 /packages/DocumentsUI/res/values-en-rIN/strings.xml | |
parent | 9ddfa0e28396cb92803a493d4d8c0fbc701a8a7d (diff) | |
download | frameworks_base-3f94640e2657a4afa10e05ecd32845bd688e5b92.zip frameworks_base-3f94640e2657a4afa10e05ecd32845bd688e5b92.tar.gz frameworks_base-3f94640e2657a4afa10e05ecd32845bd688e5b92.tar.bz2 |
Fix a few synchronization issues in WifiMonitor.
- Guard all field accesses in WifiMonitorSingleton with
a lock.
- WifiMonitorSingleton is now responsible for dispatching
events to a given monitor (or all monitors if it can't
find a matching monitor).
- Individual WifiMonitors are now responsible for dispatching
events sent to them. This makes WifiMonitorThread a dumb
object. All it does is wait for events and feed them back
into the WifiMonitorSingleton.
- Also fixes a bug where we weren't telling the WifiMonitor
that we're disconnected and another where we don't check whether
a monitor is connected or not before asking it to dispatch
an event.
- Also, replaces a few uses of entrySet() with a values() iterator
when the keys are never used. The performance of both methods
is identical for a HashMap, but the latter is a bit more concise
and easier to read.
Change-Id: I7ce00174a78c72836666d25ccc5e6e9e687c2570
Diffstat (limited to 'packages/DocumentsUI/res/values-en-rIN/strings.xml')
0 files changed, 0 insertions, 0 deletions