Android Open Source - anti-piracy-android-app Asam Constants






From Project

Back to project page anti-piracy-android-app.

License

The source code is released under:

Apache License

If you think the Android project anti-piracy-android-app 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 mil.nga.giat.asam.util;
//  ww  w . ja va 2s  . c  o  m
import mil.nga.giat.asam.R;

import com.google.android.gms.maps.model.BitmapDescriptor;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;


public class AsamConstants {
    
    public static final String ASAM_KEY = "asam";
    public static final int QUERY_TIMEOUT_THRESHOLD_IN_MILLISECONDS = 20 * 1000;
    public static final String LAST_SYNC_TIME = "last_sync_time";
    public static final String HIDE_DISCLAIMER_KEY = "hide_disclaimer";
    public static final String TABLET_IS_LAUNCHING_KEY = "tablet_is_launching";
    public static final String INITIAL_MAP_POSITION_KEY = "initial_map_position";
    public static final String SUBREGION_MAP_EXPECTING_RESULT_CODE_KEY = "subregion_map_expecting_result_code";
    public static final String LEGAL_DETAILS_TITLE_KEY = "legal_deatails_title";
    public static final String LEGAL_DETAILS_TEXT_KEY = "legal_deatails_text";
    public static final String TEXT_QUERY_DIALOG_TAG = "text_query_dialog";
    public static final String DISCLAIMER_DIALOG_TAG = "disclaimer_dialog";
    public static final String PREFERENCES_DIALOG_TAG = "preferences_dialog";
    public static final String INFO_DIALOG_TAG = "info_dialog";
    
    public static final String MAP_TYPE_KEY = "map_type_key";
    public static final int MAP_TYPE_OFFLINE_110M = 100;
    
    public static final String SORT_DIRECTION_KEY = "sort_direction";
    public static final String SPINNER_SELECTION_KEY = "sort_popup_spinner_selection";
    public static final int SORT_ASCENDING = 0;
    public static final int SORT_DESCENDING = 1;
    
    public static final int OCURRENCE_DATE_SORT = 0;
    public static final int SUBREGION_SORT = 1;
    public static final int REFERENCE_NUMBER_SORT = 2;
    public static final int VICTIM_SORT = 3;
    public static final int AGGRESSOR_SORT = 4;
    
    public static final String QUERY_TYPE_KEY = "query_type_key";
    public static final int ALL_ASAMS_QUERY = 0;
    public static final int SUBREGION_QUERY = 1;
    public static final int TEXT_QUERY = 2;
    
    public static final String SUBREGION_QUERY_TIME_SPAN_KEY = "subregion_query_time_span_key";
    public static final String SUBREGION_QUERY_SUBREGIONS_LIST_KEY = "subregion_query_subregions_list_key";
    public static final String TEXT_QUERY_PARAMETERS_KEY = "text_query_parameters";
    public static final int TIME_SPAN_60_DAYS = 60;
    public static final int TIME_SPAN_90_DAYS = 90;
    public static final int TIME_SPAN_180_DAYS = 180;
    public static final int TIME_SPAN_1_YEAR = 365; // days
    public static final int TIME_SPAN_5_YEARS = 365 * 5; // days
    public static final int TIME_SPAN_ALL = 365 * 50; // days
    
    public static final int ZOOM_LEVEL_TO_DRAW_ALL_CLUSTERS = 4;
    public static final int MIN_ZOOM_LEVEL_FOR_CLUSTERING = 5;
    public static final int MAX_ZOOM_LEVEL_FOR_CLUSTERING = 11;
    public static final int MAX_ZOOM_LEVEL_FOR_MERGE_CLUSTERING = 9;
    public static final int MAX_NUM_ASAMS_FOR_NO_CLUSTERING_WITH_ZOOM_LEVEL = 1000;
    
    public static final int SINGLE_ASAM_ZOOM_LEVEL = 5;
    public static final int CLUSTER_TEXT_POINT_SIZE = 13;
    public static final BitmapDescriptor PIRATE_MARKER = BitmapDescriptorFactory.fromResource(R.drawable.ic_pirate_marker);
    public static final BitmapDescriptor CLUSTER_MARKER = BitmapDescriptorFactory.fromResource(R.drawable.ic_cluster);
}




Java Source Code List

mil.nga.giat.asam.AsamListActivity.java
mil.nga.giat.asam.AsamListFragment.java
mil.nga.giat.asam.AsamListReportTabletActivity.java
mil.nga.giat.asam.AsamReportActivity.java
mil.nga.giat.asam.AsamReportFragment.java
mil.nga.giat.asam.Asam.java
mil.nga.giat.asam.DisclaimerActivity.java
mil.nga.giat.asam.DisclaimerDialogFragment.java
mil.nga.giat.asam.InfoActivity.java
mil.nga.giat.asam.InfoDialogFragment.java
mil.nga.giat.asam.InfoFragment.java
mil.nga.giat.asam.LaunchScreenActivity.java
mil.nga.giat.asam.LegalActivity.java
mil.nga.giat.asam.LegalDetailsActivity.java
mil.nga.giat.asam.LegalDetailsFragment.java
mil.nga.giat.asam.LegalFragment.java
mil.nga.giat.asam.LegalTabletActivity.java
mil.nga.giat.asam.MainActivity.java
mil.nga.giat.asam.PreferencesActivity.java
mil.nga.giat.asam.PreferencesDialogFragment.java
mil.nga.giat.asam.SortAsamListDialogFragment.java
mil.nga.giat.asam.TextQueryActivity.java
mil.nga.giat.asam.TextQueryDialogFragment.java
mil.nga.giat.asam.connectivity.NetworkChangeReceiver.java
mil.nga.giat.asam.connectivity.OfflineBannerFragment.java
mil.nga.giat.asam.db.AsamDbHelper.java
mil.nga.giat.asam.jackson.deserializer.Deserializer.java
mil.nga.giat.asam.jackson.deserializer.FeatureDeserializer.java
mil.nga.giat.asam.jackson.deserializer.GeometryDeserializer.java
mil.nga.giat.asam.map.AllAsamsMapActivity.java
mil.nga.giat.asam.map.AllAsamsMapTabletActivity.java
mil.nga.giat.asam.map.BackgroundTileProvider.java
mil.nga.giat.asam.map.OfflineMap.java
mil.nga.giat.asam.map.SingleAsamMapActivity.java
mil.nga.giat.asam.map.SubregionMapActivity.java
mil.nga.giat.asam.model.AsamBean.java
mil.nga.giat.asam.model.AsamJsonParser.java
mil.nga.giat.asam.model.AsamMapClusterBean.java
mil.nga.giat.asam.model.LegalBean.java
mil.nga.giat.asam.model.SubregionBean.java
mil.nga.giat.asam.model.SubregionTextParser.java
mil.nga.giat.asam.model.TextQueryParametersBean.java
mil.nga.giat.asam.net.AsamWebService.java
mil.nga.giat.asam.util.AsamConstants.java
mil.nga.giat.asam.util.AsamListContainer.java
mil.nga.giat.asam.util.AsamLog.java
mil.nga.giat.asam.util.AsamUtils.java
mil.nga.giat.asam.util.CurrentSubregionHelper.java
mil.nga.giat.asam.util.ManifestMetaData.java
mil.nga.giat.asam.util.SyncTime.java
mil.nga.giat.asam.widget.AsamArrayAdapter.java