summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhavya Sokke Mallikarjunappa <bsokke@codeaurora.org>2014-10-10 16:39:31 -0700
committerBhavya Sokke Mallikarjunappa <bsokke@codeaurora.org>2014-10-10 16:39:31 -0700
commita41aebd62d9051272e642522475db686ab134dd3 (patch)
treef56a2ed28280958af97e7489c958da67b81333ad
parent114b6b72580d81793ab7692e9c153ee3e2d02239 (diff)
downloadandroid_vendor_qcom_opensource_dpm-a41aebd62d9051272e642522475db686ab134dd3.tar.gz
android_vendor_qcom_opensource_dpm-a41aebd62d9051272e642522475db686ab134dd3.tar.bz2
android_vendor_qcom_opensource_dpm-a41aebd62d9051272e642522475db686ab134dd3.zip
TCM (TCP Connection Management) support
Add TCM interface support for HTTP stacks. TCM service indicates to close the TCP idle connections on time so that the application servers do not time out on connection and wake the modem cellular data connection up and cost power. Change-Id: I7b18bcb5632d111e8021d4fca9e0d6ede3f8bb19
-rw-r--r--Android.mk18
-rw-r--r--src/com/quicinc/tcmiface/DpmTcmIface.java39
2 files changed, 57 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..ad4f0bd
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,18 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE_TAGS := optional
+LOCAL_NO_STANDARD_LIBRARIES := true
+LOCAL_MODULE:= tcmiface
+LOCAL_JAVA_LIBRARIES := core-libart
+LOCAL_SRC_FILES := $(call all-subdir-java-files)
+include $(BUILD_JAVA_LIBRARY)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE_TAGS := optional
+LOCAL_NO_STANDARD_LIBRARIES := true
+LOCAL_MODULE:= tcmiface-hostdex
+LOCAL_JAVA_LIBRARIES := core-libart-hostdex
+LOCAL_SRC_FILES := $(call all-subdir-java-files)
+LOCAL_BUILD_HOST_DEX := true
+include $(BUILD_HOST_JAVA_LIBRARY)
diff --git a/src/com/quicinc/tcmiface/DpmTcmIface.java b/src/com/quicinc/tcmiface/DpmTcmIface.java
new file mode 100644
index 0000000..0d254f0
--- /dev/null
+++ b/src/com/quicinc/tcmiface/DpmTcmIface.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2014, The Linux Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+ * Neither the name of The Linux Foundation nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+package com.quicinc.tcmiface;
+
+/**
+ * @hide
+ */
+public interface DpmTcmIface {
+
+ /** @hide */
+ public void OnCloseIdleConn();
+}