A B C D E F G H I J K L M N O P Q R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addCoordinates(double, double) - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
- addDataPlugin(DataPlugin) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
- addDays(Date, int) - Static method in class fi.moprim.tmd.sdk.utilities.DateUtils
- addMinutes(Date, int) - Static method in class fi.moprim.tmd.sdk.utilities.DateUtils
- addSource(LiveData<S>, Observer<? super S>) - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
- addVehicleProfile(Context, String, Mode, Energy, String, String, String, String, String, Boolean, boolean) - Method in class fi.moprim.tmd.sdk.data.VehicleProfileRepository
- AIR - fi.moprim.tmd.sdk.model.Mode
- ALREADY_RUNNING - fi.moprim.tmd.sdk.model.TmdStartReturnCode
- annotate(Context, long, long, String, String, VehicleProfile) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Label an interval of time with a mode and metadata This information will be forwarded to the cloud even if no corresponding data is available locally
- annotate(Context, long, long, String, String, String, VehicleProfile) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Label an interval of time with a mode and metadata This information will be forwarded to the cloud even if no corresponding data is available locally
- annotate(Context, Trip, String, String[], String, boolean) - Static method in class fi.moprim.tmd.sdk.trips.TripApi
-
Annotate the trip with a purpose, metadata and the validation
- annotateActivity(Context, TmdActivity, String, VehicleProfile) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Annotate the activity with new metadata
- ANY - fi.moprim.tmd.sdk.model.Mode
- appExecutors - Variable in class fi.moprim.tmd.sdk.data.NetworkBoundResource
- appExecutors - Variable in class fi.moprim.tmd.sdk.data.NetworkBoundResourceItem
- AppExecutors - Class in fi.moprim.tmd.sdk.utilities
- AppExecutors() - Constructor for class fi.moprim.tmd.sdk.utilities.AppExecutors
- attachInfo(Context, ProviderInfo) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
-
This function is used to initialise the URI matcher
- attachInfo(Context, ProviderInfo) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
-
This function is used to initialise the URI matcher
B
- BICYCLE - fi.moprim.tmd.sdk.model.Mode
- BICYCLE - fi.moprim.tmd.sdk.synthetic.model.Request
- build() - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
- build() - Method in class fi.moprim.tmd.sdk.trips.plugin.TripPlugin.Builder
- Builder() - Constructor for class fi.moprim.tmd.sdk.trips.plugin.TripPlugin.Builder
- Builder(Context) - Constructor for class fi.moprim.tmd.sdk.TmdConfig.Builder
- BUS - fi.moprim.tmd.sdk.model.Mode
C
- CABLE - fi.moprim.tmd.sdk.model.Mode
- CAR - fi.moprim.tmd.sdk.model.Mode
- CAR - fi.moprim.tmd.sdk.synthetic.model.Request
- ceilingDate(Date, int) - Static method in class fi.moprim.tmd.sdk.utilities.DateUtils
- ContentObserverNetworkBoundResource<T> - Class in fi.moprim.tmd.sdk.data
- ContentObserverNetworkBoundResource(String, AppExecutors, ContentProviderLiveData<T>, long) - Constructor for class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
- ContentProviderLiveData<T> - Class in fi.moprim.tmd.sdk.data
- ContentProviderLiveData(ContentResolver, Uri) - Constructor for class fi.moprim.tmd.sdk.data.ContentProviderLiveData
- ContentProviderLiveData(Context, Uri) - Constructor for class fi.moprim.tmd.sdk.data.ContentProviderLiveData
- Coordinates - Class in fi.moprim.tmd.sdk.synthetic.model
- Coordinates(double, double) - Constructor for class fi.moprim.tmd.sdk.synthetic.model.Coordinates
- copyInto(Resource<?>, T) - Static method in class fi.moprim.tmd.sdk.data.Resource
- correctActivity(Context, TmdActivity, String) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Correct the label of activity
- COULD_NOT_CONNECT_TO_THE_INTERNET - fi.moprim.tmd.sdk.model.TmdError
-
Triggered when the network operation was not successful
- createNetworkRequest() - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
- createNetworkRequest() - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResourceItem
- CREATOR - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- CREATOR - Static variable in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
- CROSS_COUNTRY_SKIING - fi.moprim.tmd.sdk.model.Mode
D
- data - Variable in class fi.moprim.tmd.sdk.data.Resource
- DataPlugin - Interface in fi.moprim.tmd.sdk.plugin
- dataWasUploaded() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
-
Check if some data (TMD or Location) was uploaded
- DateUtils - Class in fi.moprim.tmd.sdk.utilities
- DateUtils() - Constructor for class fi.moprim.tmd.sdk.utilities.DateUtils
- dbSource - Variable in class fi.moprim.tmd.sdk.data.NetworkBoundResource
- dbSource - Variable in class fi.moprim.tmd.sdk.data.NetworkBoundResourceItem
- decode(String) - Static method in class fi.moprim.tmd.sdk.utilities.PolylineUtils
-
decode a polyline to a GeoJSON coordinates array Code for encoded and decoded paths is adapted from https://github.com/googlemaps/google-maps-services-java/blob/master/src/main/java/com/google/maps/internal/PolylineEncoding.java
- DEFAULT - fi.moprim.tmd.sdk.data.RefreshMode
- DEFAULT_ALLOW_MOBILE_DATA - Static variable in class fi.moprim.tmd.sdk.TmdCloudApi
- delete(Uri, String, String[]) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
- delete(Uri, String, String[]) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
- deleteVehicleProfile(Context, String) - Method in class fi.moprim.tmd.sdk.data.VehicleProfileRepository
- describeContents() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- describeContents() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
- DIESEL - fi.moprim.tmd.sdk.model.Energy
- diskIO() - Method in class fi.moprim.tmd.sdk.utilities.AppExecutors
- doSaveRequestResult(T) - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
- DOWNHILL_SKIING - fi.moprim.tmd.sdk.model.Mode
E
- E_BICYCLE - fi.moprim.tmd.sdk.model.Mode
- E_CAR - fi.moprim.tmd.sdk.model.Mode
- E_SCOOTER - fi.moprim.tmd.sdk.model.Mode
- ELECTRIC - fi.moprim.tmd.sdk.model.Energy
- ELEVATOR - fi.moprim.tmd.sdk.model.Mode
- EMPTY - Static variable in interface fi.moprim.tmd.sdk.trips.model.Trip
- encode(JSONArray) - Static method in class fi.moprim.tmd.sdk.utilities.PolylineUtils
-
encode a GeoJSON coordinates array to a polyline Code for encoded and decoded paths is adapted from https://github.com/googlemaps/google-maps-services-java/blob/master/src/main/java/com/google/maps/internal/PolylineEncoding.java
- Energy - Enum in fi.moprim.tmd.sdk.model
- energyFromString(String) - Static method in class fi.moprim.tmd.sdk.model.VehicleProfile
- equals(Object) - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- error(TmdError, String, T) - Static method in class fi.moprim.tmd.sdk.data.Resource
- ERROR - fi.moprim.tmd.sdk.data.Status
- ESCALATOR - fi.moprim.tmd.sdk.model.Mode
- extractResult(Intent) - Static method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
-
Extract the result embedded in the intent
F
- FERRY - fi.moprim.tmd.sdk.model.Mode
- fetchData(Context, long, long) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Fetching data from the Moprim cloud
- fetchData(Context, long, long, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Fetching data from the Moprim cloud
- fetchData(Context, Date) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Fetch TMD activity data from the Moprim Cloud for the defined date
- fetchData(Context, Date, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Fetch TMD activity data from the Moprim Cloud for the defined date
- fetchData(Context, Date, int) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Fetch TMD activity data from the Moprim Cloud for the defined date
- fetchData(Context, Date, int, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Fetch TMD activity data from the Moprim Cloud for the defined date
- fetchMetadata(Context) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Fetch the metadata from the Cloud.
- fetchMetadata(Context, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Fetch the metadata from the Cloud.
- fetchStats(Context, int) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Fetching stats from the Moprim cloud
- fi.moprim.tmd.sdk - package fi.moprim.tmd.sdk
-
This package includes classes, interfaces, and enumerations related to the TMD for our Android SDK.
- fi.moprim.tmd.sdk.data - package fi.moprim.tmd.sdk.data
-
This package includes classes pertaining to the data and their repositories.
- fi.moprim.tmd.sdk.model - package fi.moprim.tmd.sdk.model
-
This package includes model classes, interfaces, and enumerations of the TMD for our Android SDK.
- fi.moprim.tmd.sdk.plugin - package fi.moprim.tmd.sdk.plugin
-
This package includes interfaces for the different plugins used by the TMD.
- fi.moprim.tmd.sdk.synthetic - package fi.moprim.tmd.sdk.synthetic
- fi.moprim.tmd.sdk.synthetic.model - package fi.moprim.tmd.sdk.synthetic.model
- fi.moprim.tmd.sdk.trips - package fi.moprim.tmd.sdk.trips
- fi.moprim.tmd.sdk.trips.data - package fi.moprim.tmd.sdk.trips.data
- fi.moprim.tmd.sdk.trips.model - package fi.moprim.tmd.sdk.trips.model
- fi.moprim.tmd.sdk.trips.plugin - package fi.moprim.tmd.sdk.trips.plugin
- fi.moprim.tmd.sdk.utilities - package fi.moprim.tmd.sdk.utilities
-
This package includes utilities such as String utilities and Polyline utilities.
- firstUpper(String) - Static method in class fi.moprim.tmd.sdk.utilities.StringUtils
- FORCE_FETCH - fi.moprim.tmd.sdk.data.RefreshMode
- forceUpload(Context) - Method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
-
Force the upload of TMD data to the Moprim Cloud.
- forceUpload(Context) - Method in class fi.moprim.tmd.sdk.data.VehicleProfileRepository
-
Force the upload of TMD data to the Moprim Cloud.
- forceUpload(Context) - Method in class fi.moprim.tmd.sdk.trips.data.TripRepository
-
Force the upload of TMD data to the Moprim Cloud.
- fromJson(JSONObject) - Static method in class fi.moprim.tmd.sdk.model.VehicleProfile
- fromString(String) - Static method in enum fi.moprim.tmd.sdk.model.Mode
- fromString(String) - Static method in class fi.moprim.tmd.sdk.model.VehicleProfile
- fromValue(int) - Static method in enum fi.moprim.tmd.sdk.model.TmdStatus.Category
G
- generate(List<TmdActivity>) - Static method in class fi.moprim.tmd.sdk.trips.model.MapData
- generateSyntheticData(Context, Coordinates, Coordinates, Request, String) - Static method in class fi.moprim.tmd.sdk.synthetic.SyntheticApi
-
Generate synthetic data between the origin and destination, starting at the current time of the request
- generateSyntheticData(Context, Coordinates, Coordinates, Request, String, Listener) - Static method in class fi.moprim.tmd.sdk.synthetic.SyntheticApi
-
Generate asynchronously synthetic data between the origin and destination, starting at the current time of the request
- generateSyntheticDataWithStart(Context, Coordinates, Coordinates, Request, String, long) - Static method in class fi.moprim.tmd.sdk.synthetic.SyntheticApi
-
Generate synthetic data between the origin and destination, starting at the the time specified in the request
- generateSyntheticDataWithStart(Context, Coordinates, Coordinates, Request, String, long, Listener) - Static method in class fi.moprim.tmd.sdk.synthetic.SyntheticApi
-
Generate asynchronously synthetic data between the origin and destination, starting at the the time specified in the request
- generateSyntheticDataWithStop(Context, Coordinates, Coordinates, Request, String, long) - Static method in class fi.moprim.tmd.sdk.synthetic.SyntheticApi
-
Generate synthetic data between the origin and destination, ending at the the time specified in the request
- generateSyntheticDataWithStop(Context, Coordinates, Coordinates, Request, String, long, Listener) - Static method in class fi.moprim.tmd.sdk.synthetic.SyntheticApi
-
Generate asynchronously synthetic data between the origin and destination, ending at the the time specified in the request
- getActivity() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
- getApiEndpoint() - Method in class fi.moprim.tmd.sdk.TmdConfig
- getApiEndpointRegions() - Method in class fi.moprim.tmd.sdk.TmdConfig
- getAuthority(Context) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
-
Returns the authority string for this content provider
- getAuthority(Context) - Static method in class fi.moprim.tmd.sdk.trips.TripContentProvider
-
Returns the authority string for this content provider
- getBounds() - Method in class fi.moprim.tmd.sdk.trips.model.MapData
- getBoundsOfActivity(TmdActivity) - Static method in class fi.moprim.tmd.sdk.trips.model.MapBounds
- getCallbackIntent() - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Deprecated.since 0.5.0, use @link{TMD#getSdkMessenger} instead
- getCategory() - Method in interface fi.moprim.tmd.sdk.model.TmdStatus
- getCleaningIntervalDays() - Method in class fi.moprim.tmd.sdk.TmdConfig
- getCo2() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
- getCo2() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
- getCo2() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
The co2 produced during this trip
- getContentProviderValue() - Method in class fi.moprim.tmd.sdk.data.ContentProviderLiveData
- getCreatedAt() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- getDataPlugins() - Method in class fi.moprim.tmd.sdk.TmdConfig
-
Unmodified list of data plugins
- getDate() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
- getDestination() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
- getDestination() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
The destination of the trip
- getDistance() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
- getDistance() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
- getDistance() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
The distance of the trip in meters
- getDuration() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
- getDuration() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
- getDuration() - Method in interface fi.moprim.tmd.sdk.model.TmdStatus
- getDuration() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
- getDuration(double) - Static method in class fi.moprim.tmd.sdk.utilities.StringUtils
- getDuration(double, boolean) - Static method in class fi.moprim.tmd.sdk.utilities.StringUtils
- getEnergy() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- getError() - Method in class fi.moprim.tmd.sdk.model.Result
- getError() - Method in exception fi.moprim.tmd.sdk.model.TmdException
- getErrorMessage() - Method in class fi.moprim.tmd.sdk.model.TmdBackgroundError
- getFirstLatitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
- getFirstLongitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
- getFirstTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- getGeojson() - Method in class fi.moprim.tmd.sdk.trips.model.MapData
- getId() - Method in interface fi.moprim.tmd.sdk.model.TmdUploadData
- getId() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- getIdentityPlugin() - Method in class fi.moprim.tmd.sdk.TmdConfig
- getIdentityPoolId() - Method in class fi.moprim.tmd.sdk.TmdConfig
- getInstallationId() - Method in class fi.moprim.tmd.sdk.TMD
-
Retrieve the unique application installation id of application using the SDK
- getInstance() - Static method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
-
Getting an instance of the repository with default executors
- getInstance() - Static method in class fi.moprim.tmd.sdk.data.TmdStatsRepository
- getInstance() - Static method in class fi.moprim.tmd.sdk.data.VehicleProfileRepository
-
Getting an instance of the repository with default executors
- getInstance() - Static method in class fi.moprim.tmd.sdk.TMD
- getInstance() - Static method in class fi.moprim.tmd.sdk.trips.data.TripRepository
- getLabel() - Method in interface fi.moprim.tmd.sdk.model.TmdStatus
- getLastActivityTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- getLastLatitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
- getLastLocationTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- getLastLongitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
- getLastModified() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
- getLastTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- getLastTimestamp() - Method in interface fi.moprim.tmd.sdk.model.TmdUploadData
- getLastTimestampOfLocationUploaded() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
-
Get the timestamp of the last location point that was just uploaded
- getLastTimestampOfTmdActivityUploaded() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
-
Get the end timestamp of last activity that was just uploaded
- getLastTmdActivity(Context) - Method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
- getLastTmdTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- getLastTrip(Context) - Method in class fi.moprim.tmd.sdk.trips.data.TripRepository
-
Loads the last Trip data from the cloud
- getLastTrips(Context, int) - Method in class fi.moprim.tmd.sdk.trips.data.TripRepository
-
Loads the last Trip data from the cloud or the cache
- getLastTrips(Context, int, boolean) - Method in class fi.moprim.tmd.sdk.trips.data.TripRepository
-
Loads the last Trip data from the cloud or the cache
- getLastUpdate() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
- getLastUploadedLocationTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- getLastUploadedTmdTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- getLatitude() - Method in class fi.moprim.tmd.sdk.synthetic.model.Coordinates
- getLeg(int) - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
- getLegs() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
- getLegs() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
Get the list of legs for this trip
- getLocationPollingInterval() - Method in class fi.moprim.tmd.sdk.TmdConfig
- getLocationRequiredAccuracy() - Method in class fi.moprim.tmd.sdk.TmdConfig
- getLongitude() - Method in class fi.moprim.tmd.sdk.synthetic.model.Coordinates
- getMainMode() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
- getMake() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- getMakeAlt() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- getMapData() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
- getMaxLatitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
- getMaxLongitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
- getMessage() - Method in class fi.moprim.tmd.sdk.model.Result
- getMessage() - Method in class fi.moprim.tmd.sdk.synthetic.model.Output
- getMetadata() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
-
The metadata annotated to the TMD activity
- getMetadata() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
The metadata for the trip
- getMinLatitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
- getMinLongitude() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
- getMode() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
- getMode() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- getModel() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- getModelAlt() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- getName() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- getNbLocationsUploaded() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
-
Get the number of location data points that were uploaded
- getNbOfActivities() - Method in class fi.moprim.tmd.sdk.synthetic.model.Output
- getNbOfLocations() - Method in class fi.moprim.tmd.sdk.synthetic.model.Output
- getNbTmdActivitiesUploaded() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
-
Get the number of tmd activities that were just uploaded
- getOperation() - Method in class fi.moprim.tmd.sdk.model.TmdBackgroundEvent
- getOrigin() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
- getOrigin() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
The name of the origin for the trip
- getPolyline() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
-
To decode the polyline, check
PolylineUtils.decode(String)
- getPurpose() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
The purpose for the trip
- getReason() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
Deprecated.use instead @link{getPurpose}
- getReasons() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
The reasoning for this trip
- getResult() - Method in class fi.moprim.tmd.sdk.model.Result
- getRootMode() - Method in enum fi.moprim.tmd.sdk.model.Mode
- getSdkInfo() - Static method in class fi.moprim.tmd.sdk.model.SdkInfo
- getSize() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
- getSize() - Method in class fi.moprim.tmd.sdk.trips.model.MapBounds
- getSpeed() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
- getStackTrace() - Method in class fi.moprim.tmd.sdk.model.TmdBackgroundError
- getStartCallbackIntent() - Method in class fi.moprim.tmd.sdk.TMD
-
Deprecated.since v.0.5.0
- getStartCallbackWorkerClass() - Method in class fi.moprim.tmd.sdk.TMD
- getTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdBackgroundEvent
- getTimestampEnd() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
- getTimestampEnd() - Method in interface fi.moprim.tmd.sdk.model.TmdStatus
- getTimestampEnd() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
- getTimestampStart() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
- getTimestampStart() - Method in interface fi.moprim.tmd.sdk.model.TmdStatus
- getTimestampStart() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
- getTmdActivities(Context, int) - Method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
- getTmdActivities(Context, long, long) - Method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
-
Loads TmdActivity data from the cloud or the cache between the selected timestamps
- getTmdActivityUri(Context) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
-
Returns the URI to retrieve TMD activity data from the provider
- getTmdActivityUri(Context, long) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
-
Returns the URI to retrieve TMD activity data from the provider
- getTmdCredentialsProvider() - Method in interface fi.moprim.tmd.sdk.plugin.IdentityPlugin
- getTmdStats(Context, int) - Method in class fi.moprim.tmd.sdk.data.TmdStatsRepository
- getTmdStatsUri(Context) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
-
Returns the URI to retrieve TMD Stats data from the provider
- getTmdStatsUri(Context, long) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
-
Returns the URI to retrieve TMD Stats data from the provider
- getTmdStatusUri(Context) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
-
Returns the URI to retrieve TMD Status data from the provider
- getTmdStatusUri(Context, long) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
-
Returns the URI to retrieve TMD Status data from the provider
- getTrips(Context, long, long) - Method in class fi.moprim.tmd.sdk.trips.data.TripRepository
-
Loads Trip data from the cloud or the cache between the selected timestamps
- getTripUri(Context) - Static method in class fi.moprim.tmd.sdk.trips.TripContentProvider
-
Returns the URI to retrieve TMD Trip data from the provider
- getTripUri(Context, long) - Static method in class fi.moprim.tmd.sdk.trips.TripContentProvider
-
Returns the URI to retrieve TMD Trip data from the provider
- getTrueMode() - Method in enum fi.moprim.tmd.sdk.model.Mode
- getType(Uri) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
-
Returns the MIME type for a specific URI TODO add the other URIs
- getType(Uri) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
-
Returns the MIME type for a specific URI TODO add the other URIs
- getUnsynced(String) - Method in interface fi.moprim.tmd.sdk.plugin.DataPlugin
- getUnsynced(String) - Method in class fi.moprim.tmd.sdk.trips.plugin.TripPlugin
- getUpdatedAt() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- getUploadIntervalMinutes() - Method in class fi.moprim.tmd.sdk.TmdConfig
- getUploadTimestamp() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
-
Get the upload timestamp of the last upload
- getUUID(Context) - Method in class fi.moprim.tmd.sdk.TMD
- getValue() - Method in enum fi.moprim.tmd.sdk.model.TmdStatus.Category
- getVehicleProfile() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
-
The vehicle profile associated to the TMD activity
- getVehicleProfile(Context, String) - Method in class fi.moprim.tmd.sdk.data.VehicleProfileRepository
- getVehicleProfiles(Context) - Method in class fi.moprim.tmd.sdk.data.VehicleProfileRepository
-
Loads vehicle profiles from the cloud or the cache
- getVehicleProfileUri(Context) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
-
Returns the URI to retrieve TMD activity data from the provider
- getVehicleProfileUri(Context, String) - Static method in class fi.moprim.tmd.sdk.TmdContentProvider
-
Returns the URI to retrieve TMD activity data from the provider
- getVersionCode() - Method in class fi.moprim.tmd.sdk.model.SdkInfo
- getVersionName() - Method in class fi.moprim.tmd.sdk.model.SdkInfo
- getYear() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
H
- hasData() - Method in class fi.moprim.tmd.sdk.trips.model.MapData
- hasError() - Method in class fi.moprim.tmd.sdk.model.Result
-
Return if the result contains an error
- hashCode() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- hasLegs() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
Check whether the trip has legs
- hasMessage() - Method in class fi.moprim.tmd.sdk.model.Result
-
Return if the result contains a message
- hasResult() - Method in class fi.moprim.tmd.sdk.model.Result
-
Return if the result contains an output
- hasResult(Intent) - Static method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
-
Check from an intent if it includes TMD_UPLOAD_METADATA
- HYBRID - fi.moprim.tmd.sdk.model.Energy
I
- ICE - fi.moprim.tmd.sdk.model.Mode
- ICE_SKATE - fi.moprim.tmd.sdk.model.Mode
- IdentityPlugin - Interface in fi.moprim.tmd.sdk.plugin
- IDLE - fi.moprim.tmd.sdk.model.Mode
- IGNORE - fi.moprim.tmd.sdk.model.Mode
- init(Context, TmdConfig) - Method in class fi.moprim.tmd.sdk.TMD
-
Initialize Moprim TMD for a given Application.
- initialize(Context) - Method in interface fi.moprim.tmd.sdk.plugin.DataPlugin
- initialize(Context) - Method in class fi.moprim.tmd.sdk.trips.plugin.TripPlugin
- insert(Uri, ContentValues) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
- insert(Uri, ContentValues) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
- isAggregatedUserStats() - Method in interface fi.moprim.tmd.sdk.model.TmdStats
- isCheckedByUser() - Method in interface fi.moprim.tmd.sdk.model.TmdActivity
- isCompleted() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
This fields tells if the trip is completed and thus, may be not be modified without the user's input
- isConfigured(Context) - Method in class fi.moprim.tmd.sdk.TMD
-
Returns true if the TMD was able to receive the configuration from the Cloud
- isDefaultMobileDataAllowed() - Method in class fi.moprim.tmd.sdk.TmdConfig
- isDefaultVehicle() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- isInGarage() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- isInitialized() - Method in class fi.moprim.tmd.sdk.TMD
- isMobileDataAllowed(Context) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
- isMobility() - Method in enum fi.moprim.tmd.sdk.model.Mode
- isMotorized() - Method in enum fi.moprim.tmd.sdk.model.Mode
- isNonMotorized() - Method in enum fi.moprim.tmd.sdk.model.Mode
- isNotEmpty(String) - Static method in class fi.moprim.tmd.sdk.utilities.StringUtils
- isOwner() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- isPedestrian() - Method in enum fi.moprim.tmd.sdk.model.Mode
- isPublicTransport() - Method in enum fi.moprim.tmd.sdk.model.Mode
- isStationary() - Method in enum fi.moprim.tmd.sdk.model.Mode
- isStationary(boolean) - Method in enum fi.moprim.tmd.sdk.model.Mode
- isSyncedWithCloud() - Method in interface fi.moprim.tmd.sdk.model.TmdUploadData
- isTmdRunning(Context) - Static method in class fi.moprim.tmd.sdk.TMD
- isUnknown() - Method in enum fi.moprim.tmd.sdk.model.Mode
- isValidated() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
This field is important for reporting
J
- JSON_PARSING_ERROR - fi.moprim.tmd.sdk.model.TmdError
-
Triggered when JSON object was not parsable
K
- KICKSCOOTER - fi.moprim.tmd.sdk.model.Mode
L
- LABEL_APPLICATION_NOT_RUNNING - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
- LABEL_IDLE - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
- LABEL_RECORDING - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
- LABEL_RUNNING - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
- LABEL_TMD_NOT_RUNNING - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
- LABEL_TMD_STOPPED_INSUFFICIENT_PERMISSIONS - Static variable in interface fi.moprim.tmd.sdk.model.TmdStatus
- LAST_TIMESTAMP_ACTIVITY - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- LAST_TIMESTAMP_LOCATION - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- LAST_TIMESTAMP_TMD - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- LAST_TIMESTAMP_UPLOADED_LOCATION - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- LAST_TIMESTAMP_UPLOADED_TMD - Static variable in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- Listener - Interface in fi.moprim.tmd.sdk.synthetic.model
- load() - Method in class fi.moprim.tmd.sdk.data.ContentProviderLiveData
- loadFromDb() - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
- loadFromDb() - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
- loadFromDb() - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResourceItem
- loading(T) - Static method in class fi.moprim.tmd.sdk.data.Resource
- LOADING - fi.moprim.tmd.sdk.data.Status
M
- mainThread() - Method in class fi.moprim.tmd.sdk.utilities.AppExecutors
- MapBounds - Class in fi.moprim.tmd.sdk.trips.model
- MapBounds() - Constructor for class fi.moprim.tmd.sdk.trips.model.MapBounds
- MapData - Class in fi.moprim.tmd.sdk.trips.model
- marshall(Parcelable) - Static method in class fi.moprim.tmd.sdk.utilities.ParcelableUtils
- marshall(Trip) - Static method in interface fi.moprim.tmd.sdk.trips.model.Trip
- message - Variable in class fi.moprim.tmd.sdk.data.Resource
- METRO - fi.moprim.tmd.sdk.model.Mode
- MISSING - fi.moprim.tmd.sdk.model.Mode
- Mode - Enum in fi.moprim.tmd.sdk.model
- MOTORBIKE - fi.moprim.tmd.sdk.model.Mode
- MOTORBOAT - fi.moprim.tmd.sdk.model.Mode
- MOTORIZED - fi.moprim.tmd.sdk.model.Mode
- MOTORIZED_WATER - fi.moprim.tmd.sdk.model.Mode
- MULTIPLE - fi.moprim.tmd.sdk.model.Mode
N
- NATURAL_GAS - fi.moprim.tmd.sdk.model.Energy
- NetworkBoundResource<T> - Class in fi.moprim.tmd.sdk.data
- NetworkBoundResource(String, AppExecutors) - Constructor for class fi.moprim.tmd.sdk.data.NetworkBoundResource
- NetworkBoundResource(String, AppExecutors, LiveData<T>) - Constructor for class fi.moprim.tmd.sdk.data.NetworkBoundResource
- NetworkBoundResourceItem<T> - Class in fi.moprim.tmd.sdk.data
- NetworkBoundResourceItem(AppExecutors) - Constructor for class fi.moprim.tmd.sdk.data.NetworkBoundResourceItem
- networkIO() - Method in class fi.moprim.tmd.sdk.utilities.AppExecutors
- NO_FETCH - fi.moprim.tmd.sdk.data.RefreshMode
- NON_MOTORIZED - fi.moprim.tmd.sdk.model.Mode
- NON_MOTORIZED_WATER - fi.moprim.tmd.sdk.model.Mode
- NONE - fi.moprim.tmd.sdk.model.Energy
- NOT_CONFIGURED - fi.moprim.tmd.sdk.model.TmdStartReturnCode
- NOT_FOUND - fi.moprim.tmd.sdk.model.Mode
- NOT_INITIALIZED - fi.moprim.tmd.sdk.model.TmdStartReturnCode
- NOT_RUNNING - fi.moprim.tmd.sdk.model.TmdStatus.Category
O
- onActive() - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
- onActive() - Method in class fi.moprim.tmd.sdk.data.ContentProviderLiveData
- onCreate() - Method in class fi.moprim.tmd.sdk.TmdContentProvider
- onCreate() - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
- onError(Exception) - Method in interface fi.moprim.tmd.sdk.model.TmdCallback
- onFailure(TmdError) - Method in interface fi.moprim.tmd.sdk.model.OnSetUUIDListener
-
This function is called when the change of UUID was unsuccessful
- onFailure(TmdError) - Method in interface fi.moprim.tmd.sdk.synthetic.model.Listener
- onFetchFailed() - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
- onFetchFailed() - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResourceItem
- onInactive() - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
- onInactive() - Method in class fi.moprim.tmd.sdk.data.ContentProviderLiveData
- onResult(R) - Method in interface fi.moprim.tmd.sdk.model.TmdCallback
- OnSetUUIDListener - Interface in fi.moprim.tmd.sdk.model
-
An interface to listen to the operation of the initialisation of the TMD.
- onSuccess(Output) - Method in interface fi.moprim.tmd.sdk.synthetic.model.Listener
- onSuccess(String) - Method in interface fi.moprim.tmd.sdk.model.OnSetUUIDListener
-
This function is called when the change was successful.
- OTHER - fi.moprim.tmd.sdk.model.Energy
- Output - Class in fi.moprim.tmd.sdk.synthetic.model
- Output(String, int, int) - Constructor for class fi.moprim.tmd.sdk.synthetic.model.Output
P
- ParcelableUtils - Class in fi.moprim.tmd.sdk.utilities
-
How to use - Make a simple object (POJO) - Create a parcelable in ONE CLICK! http://devk.it/proj/parcelabler/ - Convert to POJO to and from byte[] Example MyParcelable happy = new MyParcelable(); byte[] toByte = ParcelableUtil.marshall(happy); // Save to DB? Send via socket? // ...
- ParcelableUtils() - Constructor for class fi.moprim.tmd.sdk.utilities.ParcelableUtils
- PEDESTRIAN - fi.moprim.tmd.sdk.model.Mode
- PETROL - fi.moprim.tmd.sdk.model.Energy
- PLANE - fi.moprim.tmd.sdk.model.Mode
- PolylineUtils - Class in fi.moprim.tmd.sdk.utilities
- PolylineUtils() - Constructor for class fi.moprim.tmd.sdk.utilities.PolylineUtils
- PRAM - fi.moprim.tmd.sdk.model.Mode
Q
- query(Uri, String[], String, String[], String) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
- query(Uri, String[], String, String[], String) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
R
- RAIL - fi.moprim.tmd.sdk.model.Mode
- refresh() - Method in class fi.moprim.tmd.sdk.data.RefreshLiveData
- refresh(RefreshMode) - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
- refresh(RefreshMode) - Method in class fi.moprim.tmd.sdk.data.RefreshLiveData
- RefreshLiveData<T> - Class in fi.moprim.tmd.sdk.data
-
A class to provide LiveData with a possibility to refresh the data
- RefreshLiveData() - Constructor for class fi.moprim.tmd.sdk.data.RefreshLiveData
- RefreshMode - Enum in fi.moprim.tmd.sdk.data
- Request - Enum in fi.moprim.tmd.sdk.synthetic.model
- Resource<T> - Class in fi.moprim.tmd.sdk.data
-
A generic class that holds a value with its loading status.
- Result<T> - Class in fi.moprim.tmd.sdk.model
-
A class that takes encapsulate the returned values from the SDK APIs
- Result(TmdError, String) - Constructor for class fi.moprim.tmd.sdk.model.Result
-
Basic error, comes always with a message
- Result(T) - Constructor for class fi.moprim.tmd.sdk.model.Result
-
Basic result with no error and no message
- Result(T, TmdError, String) - Constructor for class fi.moprim.tmd.sdk.model.Result
-
Default constructor
- Result(T, String) - Constructor for class fi.moprim.tmd.sdk.model.Result
-
Basic result with message
- ROAD - fi.moprim.tmd.sdk.model.Mode
- ROWBOAT - fi.moprim.tmd.sdk.model.Mode
- RUN - fi.moprim.tmd.sdk.model.Mode
- RUNNING - fi.moprim.tmd.sdk.model.TmdStatus.Category
S
- SAILBOAT - fi.moprim.tmd.sdk.model.Mode
- same(String, String) - Static method in class fi.moprim.tmd.sdk.utilities.StringUtils
- sameTmdActivities(TmdActivity, TmdActivity) - Static method in interface fi.moprim.tmd.sdk.model.TmdActivity
- sameTrip(Trip, Trip) - Static method in interface fi.moprim.tmd.sdk.trips.model.Trip
- sameTrips(List<Trip>, List<Trip>) - Static method in interface fi.moprim.tmd.sdk.trips.model.Trip
- saveRequestResult(T) - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
- saveRequestResult(T) - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
- saveRequestResult(T) - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResourceItem
- scheduleDownload(Context, int, long) - Method in interface fi.moprim.tmd.sdk.plugin.DataPlugin
- scheduleDownload(Context, int, long) - Method in class fi.moprim.tmd.sdk.trips.plugin.TripPlugin
- SCOOTER - fi.moprim.tmd.sdk.model.Mode
- SdkInfo - Class in fi.moprim.tmd.sdk.model
-
A small container to access the version name and code of the SDK
- SdkInfo(String, int) - Constructor for class fi.moprim.tmd.sdk.model.SdkInfo
- setCallbackIntent(PendingIntent) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Deprecated.since 0.5.0
- setCleaningIntervalDays(int) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
- setDefaultMobileDataAllowed(boolean) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
- setDefaultMobileDataAllowed(Context, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
This method should be called in the Application class to initialize the default use of mobile data for background data upload.
- setEndpoint(String) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
- setIdentityPlugin(IdentityPlugin) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
- setKey(String) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
- setMetadata(Context, Trip, String) - Static method in class fi.moprim.tmd.sdk.trips.TripApi
-
Set the metadata for the trip
- setMinimumIntervalBetweenNetworkRequests(long) - Method in class fi.moprim.tmd.sdk.data.TmdActivityRepository
- setMinimumIntervalBetweenNetworkRequests(long) - Method in class fi.moprim.tmd.sdk.data.TmdStatsRepository
- setMinimumIntervalBetweenNetworkRequests(long) - Method in class fi.moprim.tmd.sdk.data.VehicleProfileRepository
- setMinimumIntervalBetweenNetworkRequests(long) - Method in class fi.moprim.tmd.sdk.trips.data.TripRepository
- setMobileDataAllowed(Context, boolean) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
- setPurpose(Context, Trip, String) - Static method in class fi.moprim.tmd.sdk.trips.TripApi
-
Set the purpose for the trip
- setReasons(Context, Trip, String[]) - Static method in class fi.moprim.tmd.sdk.trips.TripApi
-
Set the reasons for the trip
- setStartCallbackIntent(PendingIntent) - Method in class fi.moprim.tmd.sdk.TMD
-
Deprecated.since v.0.5.0
- setStartCallbackWorkerClass(Context, Class<? extends ListenableWorker>) - Method in class fi.moprim.tmd.sdk.TMD
-
Sets an callback worker for the background start of the TMD.
- setSynced(boolean) - Method in interface fi.moprim.tmd.sdk.model.TmdUploadData
- setUploadIntervalMinutes(int) - Method in class fi.moprim.tmd.sdk.TmdConfig.Builder
- setUUID(Context, String, OnSetUUIDListener) - Method in class fi.moprim.tmd.sdk.TMD
-
Set an unique user id to gather data from multiple installations.
- setValue(Resource<T>) - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
- setValue(Resource<T>) - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResourceItem
- shorten(String, int, int) - Static method in class fi.moprim.tmd.sdk.utilities.StringUtils
-
Shortens a given String "text" down to size length, indicating the shortening by three dots ("...").
- SHORTEN_END - Static variable in class fi.moprim.tmd.sdk.utilities.StringUtils
- SHORTEN_MIDDLE - Static variable in class fi.moprim.tmd.sdk.utilities.StringUtils
- SHORTEN_START - Static variable in class fi.moprim.tmd.sdk.utilities.StringUtils
- shouldFetch() - Method in class fi.moprim.tmd.sdk.data.ContentObserverNetworkBoundResource
- shouldFetch() - Method in class fi.moprim.tmd.sdk.data.NetworkBoundResource
- shutdown() - Method in class fi.moprim.tmd.sdk.TmdContentProvider
- shutdown() - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
- size() - Method in interface fi.moprim.tmd.sdk.trips.model.Trip
-
The size of the trip
- SKATE - fi.moprim.tmd.sdk.model.Mode
- SKATEBOARD - fi.moprim.tmd.sdk.model.Mode
- SNOW - fi.moprim.tmd.sdk.model.Mode
- SNOWBOARD - fi.moprim.tmd.sdk.model.Mode
- STAIRS - fi.moprim.tmd.sdk.model.Mode
- STARTED - fi.moprim.tmd.sdk.model.TmdStartReturnCode
- startForeground(Context, int, Notification) - Static method in class fi.moprim.tmd.sdk.TMD
-
Starts the TMD service for the given context
- startsWith(Mode) - Method in enum fi.moprim.tmd.sdk.model.Mode
- STATIONARY - fi.moprim.tmd.sdk.model.Mode
- status - Variable in class fi.moprim.tmd.sdk.data.Resource
- Status - Enum in fi.moprim.tmd.sdk.data
-
Status of a resource that is provided to the UI.
- stop(Context) - Static method in class fi.moprim.tmd.sdk.TMD
-
Stops the TMD service
- stop(Context, boolean) - Static method in class fi.moprim.tmd.sdk.TMD
-
Stops the TMD service
- StringUtils - Class in fi.moprim.tmd.sdk.utilities
- StringUtils() - Constructor for class fi.moprim.tmd.sdk.utilities.StringUtils
- success(T) - Static method in class fi.moprim.tmd.sdk.data.Resource
- SUCCESS - fi.moprim.tmd.sdk.data.Status
- SyntheticApi - Class in fi.moprim.tmd.sdk.synthetic
- SyntheticApi() - Constructor for class fi.moprim.tmd.sdk.synthetic.SyntheticApi
T
- testInit(Context, TmdConfig) - Method in class fi.moprim.tmd.sdk.TMD
- TMD - Class in fi.moprim.tmd.sdk
-
Use this class to initialize the TMD
TMD.init(Context, TmdConfig)
as soon as possible in yourApplication
subclassApplication.onCreate()
method. - TMD_ACTIVITY_ITEM_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.TmdContentProvider
-
MIME type for tmd activity item
- TMD_ACTIVITY_LIST_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.TmdContentProvider
-
MIME type for tmd activity list
- TMD_ANALYSIS_START - fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Triggered when the MOPRIM TMD Service has noticed significant motion and starts analyzing motion sensor data
- TMD_ANALYSIS_STOP - fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Triggered when the MOPRIM TMD Service is going to IDLE state
- TMD_CLOUD_COULD_NOT_READ_STREAM - fi.moprim.tmd.sdk.model.TmdError
-
Triggered when the I/O operation could not be achieved
- TMD_CLOUD_FETCH_TOO_LONG - fi.moprim.tmd.sdk.model.TmdError
-
Triggered when start/stop parameters include a two big gap.
- TMD_CLOUD_STATUS_CODE_NOT_OK - fi.moprim.tmd.sdk.model.TmdError
-
Triggered when the Cloud is not responsive or has internal error
- TMD_CLOUD_UNAUTHORIZED_OPERATION - fi.moprim.tmd.sdk.model.TmdError
- TMD_DATA_UPLOAD - fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Triggered when the MOPRIM TMD SDK uploads regular data
- TMD_DATABASE_OPERATION_ON_MAIN_THREAD - fi.moprim.tmd.sdk.model.TmdError
- TMD_INITIALIZATION - fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Triggered when the MOPRIM TMD SDK is being initialized
- TMD_INITIALIZATION_FAILED - fi.moprim.tmd.sdk.model.TmdError
-
Triggered if the initialization failed
- TMD_INVALID_CONFIGURATION - fi.moprim.tmd.sdk.model.TmdError
-
The SDK is not configure properly
- TMD_INVALID_PARAMETER - fi.moprim.tmd.sdk.model.TmdError
- TMD_NETWORK_OPERATION_ON_MAIN_THREAD - fi.moprim.tmd.sdk.model.TmdError
-
Triggered when one starts a long lasting network operation on the main thread
- TMD_NOT_INITIALIZED - fi.moprim.tmd.sdk.model.TmdError
-
Triggered if one starts the TMD service without a successful initialisation
- TMD_PAYLOAD_TOO_LARGE - fi.moprim.tmd.sdk.model.TmdError
-
Triggered when too much data to be sent at once
- TMD_RAW_DATA_UPLOAD - fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Triggered when the MOPRIM TMD SDK uploads raw data
- TMD_SDK_DEPRECATED_API - fi.moprim.tmd.sdk.model.TmdError
-
The SDK API is deprecated
- TMD_SDK_ENDPOINT_INVALID - fi.moprim.tmd.sdk.model.TmdError
-
The SDK endpoint is invalid, in this condition the SDK cannot operate
- TMD_SDK_KEY_INVALID - fi.moprim.tmd.sdk.model.TmdError
-
Triggered the SDK key is invalid
- TMD_SERVICE_ERROR - fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Triggered when the MOPRIM TMD SDK produces an error
- TMD_SERVICE_RUNNING - fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Triggered when the MOPRIM TMD Service is running
- TMD_SERVICE_START - fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Triggered when the MOPRIM TMD Service is started
- TMD_SERVICE_STOP - fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Triggered when the MOPRIM TMD Service is stopped
- TMD_STATS_ITEM_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.TmdContentProvider
-
MIME type for tmd stats item
- TMD_STATS_LIST_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.TmdContentProvider
-
MIME type for tmd stats list
- TMD_TRIP_ITEM_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.trips.TripContentProvider
-
MIME type for tmd stats item
- TMD_TRIP_LIST_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.trips.TripContentProvider
-
MIME type for tmd stats list
- TMD_USER_DATA_UPLOAD - fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Triggered when the MOPRIM TMD SDK uploads user data data (phone model, OS, etc.)
- TmdActivity - Interface in fi.moprim.tmd.sdk.model
- TmdActivityRepository - Class in fi.moprim.tmd.sdk.data
-
Repository singleton module for handling TmdActivity data operations.
- TmdBackgroundError - Class in fi.moprim.tmd.sdk.model
- TmdBackgroundError(TmdBackgroundOperation, String) - Constructor for class fi.moprim.tmd.sdk.model.TmdBackgroundError
- TmdBackgroundError(TmdBackgroundOperation, String, String) - Constructor for class fi.moprim.tmd.sdk.model.TmdBackgroundError
- TmdBackgroundError(String) - Constructor for class fi.moprim.tmd.sdk.model.TmdBackgroundError
- TmdBackgroundError(String, String) - Constructor for class fi.moprim.tmd.sdk.model.TmdBackgroundError
- TmdBackgroundEvent - Class in fi.moprim.tmd.sdk.model
- TmdBackgroundEvent(long, TmdBackgroundOperation) - Constructor for class fi.moprim.tmd.sdk.model.TmdBackgroundEvent
- TmdBackgroundEvent(TmdBackgroundOperation) - Constructor for class fi.moprim.tmd.sdk.model.TmdBackgroundEvent
- TmdBackgroundOperation - Enum in fi.moprim.tmd.sdk.model
- TmdCallback<R> - Interface in fi.moprim.tmd.sdk.model
-
TmdCallback async operations.
- TmdCloudApi - Class in fi.moprim.tmd.sdk
-
This class offers static functions to interact with the Moprim Cloud.
- TmdCloudApi() - Constructor for class fi.moprim.tmd.sdk.TmdCloudApi
- TmdCloudMetadata - Class in fi.moprim.tmd.sdk.model
- TmdCloudMetadata(long, long, long, long, long, long, long) - Constructor for class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- TmdCloudMetadata(Parcel) - Constructor for class fi.moprim.tmd.sdk.model.TmdCloudMetadata
-
Parcel constructor
- TmdConfig - Class in fi.moprim.tmd.sdk
-
This class embodies the core variable that are needed to initiate any TMD processes
- TmdConfig.Builder - Class in fi.moprim.tmd.sdk
- TmdContentProvider - Class in fi.moprim.tmd.sdk
-
The TmdContentProvider should enable access to - TmdActivity data - TmdStats data - TmdStatus data (idle, etc..)
- TmdContentProvider() - Constructor for class fi.moprim.tmd.sdk.TmdContentProvider
- tmdError - Variable in class fi.moprim.tmd.sdk.data.Resource
- TmdError - Enum in fi.moprim.tmd.sdk.model
-
Enum of the possible error
- TmdException - Exception in fi.moprim.tmd.sdk.model
- TmdException(TmdError, String, Object...) - Constructor for exception fi.moprim.tmd.sdk.model.TmdException
- TmdStartReturnCode - Enum in fi.moprim.tmd.sdk.model
- TmdStats - Interface in fi.moprim.tmd.sdk.model
- TmdStatsRepository - Class in fi.moprim.tmd.sdk.data
- TmdStatus - Interface in fi.moprim.tmd.sdk.model
-
"0_tmd_not_running": At Tmd init, before the services start "1_idle": TMD is active and monitoring motion "1_recording": TMD is recording "1_running": TMD is running locally "1_location_permission_change_location_available" "1_location_permission_change_location_unavailable" "0_tmd_stopped_insufficient_permissions": TMD has stopped because location permission changed "0_tmd_stopped_manually": TMD has been stopped manually via TMD#stop() "0_tmd_start_failed_cause_insufficient_motion_fitness_services": TMD could not start because of a problem with Motion & Fitness service availability/permissions "0_tmd_start_failed_cause_insufficient_location_services": TMD could not start because of a problem with Location service availability/permissions "0_application_killed": Application was killed "0_application_not_running": Application was not running and the reason for that is unkown "2_unknown_event": Unknown event
- TmdStatus.Category - Enum in fi.moprim.tmd.sdk.model
- TmdUploadData - Interface in fi.moprim.tmd.sdk.model
-
An interface used by the uploader to send data to the cloud
- TmdUploadMetadata - Class in fi.moprim.tmd.sdk.model
-
A class that summarizes the results of an upload
- TmdUploadMetadata() - Constructor for class fi.moprim.tmd.sdk.model.TmdUploadMetadata
-
Default constructor when nothing was set
- TmdUploadMetadata(long, int, long, int, long) - Constructor for class fi.moprim.tmd.sdk.model.TmdUploadMetadata
-
Default constructor
- TmdUploadMetadata(Parcel) - Constructor for class fi.moprim.tmd.sdk.model.TmdUploadMetadata
-
Parcel constructor
- toJson() - Method in interface fi.moprim.tmd.sdk.model.TmdUploadData
- toJson() - Method in class fi.moprim.tmd.sdk.synthetic.model.Coordinates
- toJson(VehicleProfile) - Static method in class fi.moprim.tmd.sdk.model.VehicleProfile
- toString() - Method in class fi.moprim.tmd.sdk.data.Resource
- toString() - Method in enum fi.moprim.tmd.sdk.model.Mode
- toString() - Method in class fi.moprim.tmd.sdk.model.Result
- toString() - Method in class fi.moprim.tmd.sdk.model.TmdBackgroundError
- toString() - Method in class fi.moprim.tmd.sdk.model.TmdBackgroundEvent
- toString() - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- toString() - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
- toString() - Method in class fi.moprim.tmd.sdk.model.VehicleProfile
- toString() - Method in class fi.moprim.tmd.sdk.synthetic.model.Coordinates
- toString() - Method in class fi.moprim.tmd.sdk.TmdConfig
- toString(VehicleProfile) - Static method in class fi.moprim.tmd.sdk.model.VehicleProfile
- TRAIN - fi.moprim.tmd.sdk.model.Mode
- TRAM - fi.moprim.tmd.sdk.model.Mode
- TRANSIT - fi.moprim.tmd.sdk.synthetic.model.Request
- Trip - Interface in fi.moprim.tmd.sdk.trips.model
-
This interface to represent Trip.
- TripApi - Class in fi.moprim.tmd.sdk.trips
- TripApi() - Constructor for class fi.moprim.tmd.sdk.trips.TripApi
- TripContentProvider - Class in fi.moprim.tmd.sdk.trips
-
The TmdTripContentProvider should enable access to - Trip data
- TripContentProvider() - Constructor for class fi.moprim.tmd.sdk.trips.TripContentProvider
- TripPlugin - Class in fi.moprim.tmd.sdk.trips.plugin
- TripPlugin.Builder - Class in fi.moprim.tmd.sdk.trips.plugin
- TripRepository - Class in fi.moprim.tmd.sdk.trips.data
- truncateDate(Date, int) - Static method in class fi.moprim.tmd.sdk.utilities.DateUtils
U
- UNKNOWN - fi.moprim.tmd.sdk.model.Energy
- UNKNOWN - fi.moprim.tmd.sdk.model.Mode
- UNKNOWN - fi.moprim.tmd.sdk.model.TmdStatus.Category
- UNKNOWN_ERROR - fi.moprim.tmd.sdk.model.TmdError
-
Triggered when an unknown error occurred
- unmarshall(byte[]) - Static method in class fi.moprim.tmd.sdk.utilities.ParcelableUtils
- unmarshall(byte[], Parcelable.Creator<T>) - Static method in class fi.moprim.tmd.sdk.utilities.ParcelableUtils
- unmarshall(String) - Static method in interface fi.moprim.tmd.sdk.trips.model.Trip
- update(Uri, ContentValues, String, String[]) - Method in class fi.moprim.tmd.sdk.TmdContentProvider
- update(Uri, ContentValues, String, String[]) - Method in class fi.moprim.tmd.sdk.trips.TripContentProvider
- updateActivity(Context, TmdActivity, String, String, VehicleProfile) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Update the activity with new metadata and a corrected label
- updateSync(String, List<TmdUploadData>, boolean) - Method in interface fi.moprim.tmd.sdk.plugin.DataPlugin
- updateSync(String, List<TmdUploadData>, boolean) - Method in class fi.moprim.tmd.sdk.trips.plugin.TripPlugin
- updateVehicleProfile(Context, String, String, Mode, Energy, String, String, String, String, String, Boolean, boolean) - Method in class fi.moprim.tmd.sdk.data.VehicleProfileRepository
- uploadData(Context) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Upload the collected data to the cloud pro-actively
V
- validateActivity(Context, TmdActivity) - Static method in class fi.moprim.tmd.sdk.TmdCloudApi
-
Validate the label of activity
- validateTrip(Context, Trip, boolean) - Static method in class fi.moprim.tmd.sdk.trips.TripApi
-
Set the validation for the trip
- valueOf(String) - Static method in enum fi.moprim.tmd.sdk.data.RefreshMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum fi.moprim.tmd.sdk.data.Status
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum fi.moprim.tmd.sdk.model.Energy
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum fi.moprim.tmd.sdk.model.Mode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum fi.moprim.tmd.sdk.model.TmdError
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum fi.moprim.tmd.sdk.model.TmdStartReturnCode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum fi.moprim.tmd.sdk.model.TmdStatus.Category
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum fi.moprim.tmd.sdk.synthetic.model.Request
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum fi.moprim.tmd.sdk.data.RefreshMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum fi.moprim.tmd.sdk.data.Status
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum fi.moprim.tmd.sdk.model.Energy
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum fi.moprim.tmd.sdk.model.Mode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum fi.moprim.tmd.sdk.model.TmdBackgroundOperation
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum fi.moprim.tmd.sdk.model.TmdError
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum fi.moprim.tmd.sdk.model.TmdStartReturnCode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum fi.moprim.tmd.sdk.model.TmdStatus.Category
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum fi.moprim.tmd.sdk.synthetic.model.Request
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VEHICLE_PROFILE_ITEM_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.TmdContentProvider
-
MIME type for vehicle profile item
- VEHICLE_PROFILE_LIST_MIME_TYPE - Static variable in class fi.moprim.tmd.sdk.TmdContentProvider
-
MIME type for vehicle profile list
- VehicleProfile - Class in fi.moprim.tmd.sdk.model
- VehicleProfile(Energy) - Constructor for class fi.moprim.tmd.sdk.model.VehicleProfile
- VehicleProfile(Mode, Energy) - Constructor for class fi.moprim.tmd.sdk.model.VehicleProfile
- VehicleProfile(String, Mode, Energy) - Constructor for class fi.moprim.tmd.sdk.model.VehicleProfile
- VehicleProfile(String, Mode, String, long) - Constructor for class fi.moprim.tmd.sdk.model.VehicleProfile
- VehicleProfile(String, Mode, String, long, long) - Constructor for class fi.moprim.tmd.sdk.model.VehicleProfile
- VehicleProfile(String, Mode, String, Energy, String, String, String, String, String, Boolean, boolean, boolean, long) - Constructor for class fi.moprim.tmd.sdk.model.VehicleProfile
- VehicleProfile(String, Mode, String, Energy, String, String, String, String, String, Boolean, boolean, boolean, long, long) - Constructor for class fi.moprim.tmd.sdk.model.VehicleProfile
- VehicleProfileRepository - Class in fi.moprim.tmd.sdk.data
-
Repository singleton module for handling vehicle profile data operations.
W
- WALK - fi.moprim.tmd.sdk.model.Mode
- WALK - fi.moprim.tmd.sdk.synthetic.model.Request
- wasTmdStarted(Context) - Static method in class fi.moprim.tmd.sdk.TMD
- WHEELCHAIR - fi.moprim.tmd.sdk.model.Mode
- writeToParcel(Parcel, int) - Method in class fi.moprim.tmd.sdk.model.TmdCloudMetadata
- writeToParcel(Parcel, int) - Method in class fi.moprim.tmd.sdk.model.TmdUploadMetadata
All Classes All Packages