diff options
author | Jake Hamby <jhamby@google.com> | 2014-01-15 13:08:03 -0800 |
---|---|---|
committer | Jake Hamby <jhamby@google.com> | 2014-02-03 15:52:18 -0800 |
commit | 8f9b33e77686de8e917ba61c5e2f2e31a1e0e49b (patch) | |
tree | 40fe31d23a5e47aaec0cab9ff93872e18b31fca8 /services/core/java | |
parent | 6c90d439758add5981dee67674d0aafc5208f427 (diff) | |
download | frameworks_base-8f9b33e77686de8e917ba61c5e2f2e31a1e0e49b.zip frameworks_base-8f9b33e77686de8e917ba61c5e2f2e31a1e0e49b.tar.gz frameworks_base-8f9b33e77686de8e917ba61c5e2f2e31a1e0e49b.tar.bz2 |
Add new RIL commands to read/write NV items and reset NV config.
Add new RIL commands and generic code cleanups.
The only changes required for OMA DM support are the
addition of five new methods in ITelephony.aidl for
reading/writing NV items and performing NV config and
radio resets (requires MODIFY_PHONE_STATE), along with
the new RIL request IDs in RILConstants.java.
Bug: 12864208
Change-Id: I958d2571580d98a49936ef2e6822e5ac086acbe2
Diffstat (limited to 'services/core/java')
-rw-r--r-- | services/core/java/com/android/server/ConnectivityService.java | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 015185f..9349730 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -169,9 +169,9 @@ public class ConnectivityService extends IConnectivityManager.Stub { private static final String TAG = "ConnectivityService"; private static final boolean DBG = true; - private static final boolean VDBG = false; + private static final boolean VDBG = true; - private static final boolean LOGD_RULES = false; + private static final boolean LOGD_RULES = true; // TODO: create better separation between radio types and network types @@ -4495,11 +4495,16 @@ public class ConnectivityService extends IConnectivityManager.Stub { * @param seconds */ private static void sleep(int seconds) { - try { - Thread.sleep(seconds * 1000); - } catch (InterruptedException e) { - e.printStackTrace(); + log("XXXXX sleeping for " + seconds + " sec"); + long stopTime = System.nanoTime() + (seconds * 1000000000); + long sleepTime; + while ((sleepTime = stopTime - System.nanoTime()) > 0) { + try { + Thread.sleep(sleepTime / 1000000); + } catch (InterruptedException ignored) { + } } + log("XXXXX returning from sleep"); } private static void log(String s) { |