summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-02-19 02:57:37 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-02-19 02:57:37 +0000
commit3b97887e21aaa07a82a3593ecc4246315b941968 (patch)
tree79a07c82d1226efb97a8e83bb5e57a8005d357ae /libs
parente9fdc94a6fe004d26413ed0a6a07c1dbaa91d193 (diff)
parenta17800612ba45e9ca1826cb67adf0ca2e7883561 (diff)
Merge "[WifiTrackerLib] Add subscription management API to WifiEntry"
Diffstat (limited to 'libs')
-rw-r--r--libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java
index 4753cf3c3..4f186ef26 100644
--- a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java
+++ b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/WifiEntry.java
@@ -386,6 +386,17 @@ public abstract class WifiEntry implements Comparable<WifiEntry> {
/** Returns whether subscription of the entry is expired */
public abstract boolean isExpired();
+ /** Returns whether a user can manage their subscription through this WifiEntry */
+ public boolean canManageSubscription() {
+ // Subclasses should implement this method.
+ return false;
+ };
+
+ /** Allows the user to manage their subscription via an external flow */
+ public void manageSubscription() {
+ // Subclasses should implement this method.
+ };
+
/** Returns the ScanResult information of a WifiEntry */
abstract String getScanResultDescription();