Android Open Source - MobileConnectTestApp Discovery Serving Operator Settings






From Project

Back to project page MobileConnectTestApp.

License

The source code is released under:

MIT License

If you think the Android project MobileConnectTestApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.gsma.android.xoperatorapidemo.discovery;
//  w  w w  . jav  a2 s. com

public class DiscoveryServingOperatorSettings {
  
  private static final ServingOperatorSetting etel=new ServingOperatorSetting("ETel Sandbox (000-01)", false, "000", "01", null);
  private static final ServingOperatorSetting dialog_lk=new ServingOperatorSetting("Dialog Sri Lanka (413-02)", false, "413", "02", null);
  private static final ServingOperatorSetting mobitel_lk=new ServingOperatorSetting("Mobitel Sri Lanka (413-01)", false, "413", "01", null);
  private static final ServingOperatorSetting telia_se=new ServingOperatorSetting("Telia Sweden (240-01)", false, "240", "01", null);
  private static final ServingOperatorSetting auto=new ServingOperatorSetting("Auto (device MCC/MNC)", true, null, null, "5.5.5.5");
  private static final ServingOperatorSetting none=new ServingOperatorSetting("No auto assist", false, null, null, "5.5.5.5");
  
  private static final ServingOperatorSetting[] operators={auto, etel, telia_se, dialog_lk, mobitel_lk, none};
  
  private static String[] operatorNames=null;
  
  static {
    operatorNames=new String[operators.length];
    int index=0;
    for (ServingOperatorSetting operator:operators) {
      operatorNames[index++]=operator.getName();
    }
  }
  
  public static String[] getOperatorNames() { return operatorNames; }
  
  public static ServingOperatorSetting getOperator(int index) { return operators[index]; }
}




Java Source Code List

com.gsma.android.xoperatorapidemo.activity.MainActivity.java
com.gsma.android.xoperatorapidemo.activity.SettingsActivity.java
com.gsma.android.xoperatorapidemo.activity.discovery.ActiveDiscoveryTask.java
com.gsma.android.xoperatorapidemo.activity.discovery.DiscoveryProcessEndpoints.java
com.gsma.android.xoperatorapidemo.activity.discovery.DisplayDiscoveryWebsiteActivity.java
com.gsma.android.xoperatorapidemo.activity.discovery.PassiveDiscoveryTask.java
com.gsma.android.xoperatorapidemo.activity.discovery.ProcessDiscoveryToken.java
com.gsma.android.xoperatorapidemo.activity.identity.AuthorizationCompleteActivity.java
com.gsma.android.xoperatorapidemo.activity.identity.DisplayIdentityWebsiteActivity.java
com.gsma.android.xoperatorapidemo.activity.identity.OpenIDConnectAbstractActivity.java
com.gsma.android.xoperatorapidemo.activity.identity.RetrieveTokenTask.java
com.gsma.android.xoperatorapidemo.activity.identity.RetrieveUserinfoTask.java
com.gsma.android.xoperatorapidemo.discovery.Api.java
com.gsma.android.xoperatorapidemo.discovery.DeveloperOperatorSetting.java
com.gsma.android.xoperatorapidemo.discovery.DiscoveryData.java
com.gsma.android.xoperatorapidemo.discovery.DiscoveryDeveloperOperatorSettings.java
com.gsma.android.xoperatorapidemo.discovery.DiscoveryServingOperatorSettings.java
com.gsma.android.xoperatorapidemo.discovery.DiscoveryStartupSettings.java
com.gsma.android.xoperatorapidemo.discovery.LinkConstants.java
com.gsma.android.xoperatorapidemo.discovery.Link.java
com.gsma.android.xoperatorapidemo.discovery.Response.java
com.gsma.android.xoperatorapidemo.discovery.ServingOperatorSetting.java
com.gsma.android.xoperatorapidemo.identity.UserinfoAddress.java
com.gsma.android.xoperatorapidemo.identity.Userinfo.java
com.gsma.android.xoperatorapidemo.logo.LogoCacheItem.java
com.gsma.android.xoperatorapidemo.logo.LogoCache.java
com.gsma.android.xoperatorapidemo.logo.LogoLoaderTask.java
com.gsma.android.xoperatorapidemo.logo.LogoResponseArray.java
com.gsma.android.xoperatorapidemo.logo.LogoResponse.java
com.gsma.android.xoperatorapidemo.utils.HttpUtils.java
com.gsma.android.xoperatorapidemo.utils.JsonUtils.java
com.gsma.android.xoperatorapidemo.utils.KeyValuePair.java
com.gsma.android.xoperatorapidemo.utils.ParameterList.java
com.gsma.android.xoperatorapidemo.utils.PhoneState.java
com.gsma.android.xoperatorapidemo.utils.PhoneUtils.java
com.gsma.android.xoperatorapidemo.utils.PreferencesUtils.java