summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-02-08 15:32:53 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-02-08 15:32:54 +0000
commitd8dcd06e4703dae1927020cbcbafd85226492946 (patch)
tree700cfe4904cdf1144b848a14ed73e0fda0361f26
parent7c306fd58062476e53d3f424b4b7a5797069c235 (diff)
parent4bd5eb59b4c1db8a7b81539c57862f210c756e8d (diff)
downloadandroid_hardware_ril-d8dcd06e4703dae1927020cbcbafd85226492946.tar.gz
android_hardware_ril-d8dcd06e4703dae1927020cbcbafd85226492946.tar.bz2
android_hardware_ril-d8dcd06e4703dae1927020cbcbafd85226492946.zip
Merge "Removal of dead code and adding log messages to make it easier for debugging"
-rw-r--r--libril/ril.cpp10
-rw-r--r--libril/ril_event.cpp5
2 files changed, 10 insertions, 5 deletions
diff --git a/libril/ril.cpp b/libril/ril.cpp
index 415e487..bfdeea5 100644
--- a/libril/ril.cpp
+++ b/libril/ril.cpp
@@ -687,6 +687,7 @@ dispatchSmsWrite (Parcel &p, RequestInfo *pRI) {
int32_t t;
status_t status;
+ ALOGD("dispatchSmsWrite");
memset (&args, 0, sizeof(args));
status = p.readInt32(&t);
@@ -739,6 +740,7 @@ dispatchDial (Parcel &p, RequestInfo *pRI) {
int32_t uusPresent;
status_t status;
+ ALOGD("dispatchDial");
memset (&dial, 0, sizeof(dial));
dial.address = strdupReadString(p);
@@ -843,6 +845,7 @@ dispatchSIM_IO (Parcel &p, RequestInfo *pRI) {
int size;
status_t status;
+ ALOGD("dispatchSIM_IO");
memset (&simIO, 0, sizeof(simIO));
// note we only check status at the end
@@ -920,6 +923,7 @@ dispatchSIM_APDU (Parcel &p, RequestInfo *pRI) {
status_t status;
RIL_SIM_APDU apdu;
+ ALOGD("dispatchSIM_APDU");
memset (&apdu, 0, sizeof(RIL_SIM_APDU));
// Note we only check status at the end. Any single failure leads to
@@ -989,6 +993,7 @@ dispatchCallForward(Parcel &p, RequestInfo *pRI) {
int32_t t;
status_t status;
+ ALOGD("dispatchCallForward");
memset (&cff, 0, sizeof(cff));
// note we only check status at the end
@@ -1332,6 +1337,7 @@ dispatchCdmaSmsAck(Parcel &p, RequestInfo *pRI) {
status_t status;
int32_t digitCount;
+ ALOGD("dispatchCdmaSmsAck");
memset(&rcsa, 0, sizeof(rcsa));
status = p.readInt32(&t);
@@ -4180,11 +4186,7 @@ static void
wakeTimeoutCallback (void *param) {
// We're using "param != NULL" as a cancellation mechanism
if (param == NULL) {
- //RLOGD("wakeTimeout: releasing wake lock");
-
releaseWakeLock();
- } else {
- //RLOGD("wakeTimeout: releasing wake lock CANCELLED");
}
}
diff --git a/libril/ril_event.cpp b/libril/ril_event.cpp
index 6bdf59d..84b8b72 100644
--- a/libril/ril_event.cpp
+++ b/libril/ril_event.cpp
@@ -120,18 +120,20 @@ static void addToList(struct ril_event * ev, struct ril_event * list)
static void removeFromList(struct ril_event * ev)
{
- dlog("~~~~ Removing event ~~~~");
+ dlog("~~~~ +removeFromList ~~~~");
dump_event(ev);
ev->next->prev = ev->prev;
ev->prev->next = ev->next;
ev->next = NULL;
ev->prev = NULL;
+ dlog("~~~~ -removeFromList ~~~~");
}
static void removeWatch(struct ril_event * ev, int index)
{
+ dlog("~~~~ +removeWatch ~~~~");
watch_table[index] = NULL;
ev->index = -1;
@@ -150,6 +152,7 @@ static void removeWatch(struct ril_event * ev, int index)
nfds = n + 1;
dlog("~~~~ nfds = %d ~~~~", nfds);
}
+ dlog("~~~~ -removeWatch ~~~~");
}
static void processTimeouts()