summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-10-11 14:25:22 +0000
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-10-11 14:25:22 +0000
commitd36f1ce4c72406a41b9a8846a5b8bb6a363566ef (patch)
tree395841ecabc419a1e47ba0041e454b695e4d86ed /src
parent975b55a87470fb94164e2a324f4e16dab4db04d0 (diff)
parentb8fb3301f2b7cab0be72bcd8d6873a9841a77c2c (diff)
downloadandroid_frameworks_opt_hardware-d36f1ce4c72406a41b9a8846a5b8bb6a363566ef.tar.gz
android_frameworks_opt_hardware-d36f1ce4c72406a41b9a8846a5b8bb6a363566ef.tar.bz2
android_frameworks_opt_hardware-d36f1ce4c72406a41b9a8846a5b8bb6a363566ef.zip
Merge "Hardware: Long Term Orbits (LTO)" into cm-10.2cm-10.2.1cm-10.2.0cm-10.2-M1stable/cm-10.2cm-10.2
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/hardware/LongTermOrbits.java57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/hardware/LongTermOrbits.java b/src/org/cyanogenmod/hardware/LongTermOrbits.java
new file mode 100644
index 0000000..29a3219
--- /dev/null
+++ b/src/org/cyanogenmod/hardware/LongTermOrbits.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright (C) 2013 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.cyanogenmod.hardware;
+
+import java.io.File;
+
+/**
+ * Long Term Orbits (LTO) support.
+ */
+public class LongTermOrbits {
+
+ /**
+ * Whether device supports the LTO technology.
+ *
+ * @return boolean Supported devices must return always true.
+ */
+ public static boolean isSupported() { return false; }
+
+ /**
+ * Returns the source location of the LTO data.
+ *
+ * @return String The LTO source location.
+ */
+ public static String getSourceLocation() { return null; }
+
+ /**
+ * Returns the source location of the LTO data.
+ *
+ * @return File The LTO source location.
+ */
+ public static File getDestinationLocation() { return null; }
+
+ /**
+ * Returns the interval in milliseconds to trigger the LTO data download.<br/>
+ * <br/>
+ * As convenience, implementations should set the download interval to the half of the
+ * validity of the downloaded data.
+ *
+ * @return long The download interval in milliseconds
+ */
+ public static long getDownloadInterval() { return 0; }
+
+}