MCPcopy Create free account

hub / github.com/Gaket/Earthquakes / functions

Functions326 in github.com/Gaket/Earthquakes

↓ 11 callersMethodgetTodaysEarthquakesFromApi
Get earthquakes from API, clear cache and put new ones there @return list of todays earthquakes
app/src/main/java/ru/inno/earthquakes/repositories/earthquakes/EarthquakesRepository.java:33
↓ 10 callersMethodgetCurrentCoordinates
Check for permission and get current coordinates. Use states to show if location found successfully, or permission denied. @return state of request a
app/src/main/java/ru/inno/earthquakes/business/location/LocationInteractor.java:37
↓ 10 callersMethodio
()
app/src/main/java/ru/inno/earthquakes/presentation/common/SchedulersProvider.java:14
↓ 9 callersMethodgetEarthquakeAlert
Get the closest to the given position Earthquake that satisfies program settings (maximal distance and minimal magnitude, details in {@link SettingsIn
app/src/main/java/ru/inno/earthquakes/business/earthquakes/EarthquakesInteractor.java:44
↓ 8 callersMethodgetState
()
app/src/main/java/ru/inno/earthquakes/models/EntitiesWrapper.java:23
↓ 8 callersMethodshowLoading
(boolean show)
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertView.java:20
↓ 7 callersMethodrequestLocationPermissions
Checks if the location permissions are given @return true if permission granted
app/src/main/java/ru/inno/earthquakes/data/permissions/PermissionsRepository.java:25
↓ 5 callersMethodbuild
()
app/src/main/java/ru/inno/earthquakes/presentation/common/SmartDividerItemDecoration.java:222
↓ 5 callersMethodcheckIfEmpty
()
app/src/main/java/ru/inno/earthquakes/presentation/common/views/EmptyRecyclerView.java:116
↓ 5 callersMethodgetAlertMaxDistance
@return maximal distance to which an Earthquake alert should be shown
app/src/main/java/ru/inno/earthquakes/business/settings/SettingsInteractor.java:25
↓ 5 callersMethodgetCachedTodaysEarthquakes
Get earthquakes from cache @return list of cached earthquakes
app/src/main/java/ru/inno/earthquakes/repositories/earthquakes/EarthquakesRepository.java:52
↓ 5 callersMethodgetDistance
()
app/src/main/java/ru/inno/earthquakes/models/entities/EarthquakeWithDist.java:34
↓ 5 callersMethodshowNetworkError
(boolean show)
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertView.java:22
↓ 4 callersMethodgetAlertMinMagnitude
@return maximal magnitude from which an Earthquake alert should be shown
app/src/main/java/ru/inno/earthquakes/business/settings/SettingsInteractor.java:32
↓ 4 callersMethodgetDefaultLocation
Get default location to use if there are problems getting user's actual location @return default location
app/src/main/java/ru/inno/earthquakes/business/settings/SettingsInteractor.java:60
↓ 4 callersMethodgetMagnitude
()
app/src/main/java/ru/inno/earthquakes/models/db/EarthquakeDb.java:66
↓ 4 callersMethodshowThereAreNoAlerts
()
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertView.java:16
↓ 4 callersMethodui
()
app/src/main/java/ru/inno/earthquakes/presentation/common/SchedulersProvider.java:22
↓ 4 callersMethodunsubscribeOnDestroy
(Disposable disposable)
app/src/main/java/ru/inno/earthquakes/presentation/common/BasePresenter.java:20
↓ 3 callersMethoddpToPx
Converts values from pixels to density independent pixels
app/src/main/java/ru/inno/earthquakes/presentation/common/Utils.java:20
↓ 3 callersMethodequals
(Object o)
app/src/main/java/ru/inno/earthquakes/models/entities/Location.java:87
↓ 3 callersMethodformatDistanceString
Formats double to {@link String} like "1 220 000"
app/src/main/java/ru/inno/earthquakes/presentation/common/Utils.java:30
↓ 3 callersMethodgetComponentsManager
()
app/src/main/java/ru/inno/earthquakes/EarthquakesApp.java:29
↓ 3 callersMethodgetCoords
To-one relationship, resolved on first access.
app/src/main/java/ru/inno/earthquakes/models/db/LocationDb.java:70
↓ 3 callersMethodgetName
()
app/src/main/java/ru/inno/earthquakes/models/db/LocationDb.java:59
↓ 3 callersMethodgetTodaysEartquakesSortedByLocation
Get all earthquakes sorted by location @param coords of user @return {@link Observable} that first emits cached data, then - actual data if it is suc
app/src/main/java/ru/inno/earthquakes/business/earthquakes/EarthquakesInteractor.java:65
↓ 3 callersMethodinitializeViews
(Context context)
app/src/main/java/ru/inno/earthquakes/presentation/common/views/EmptyRecyclerView.java:108
↓ 3 callersMethodinject
(SettingsActivity settingsActivity)
app/src/main/java/ru/inno/earthquakes/di/application/AppComponent.java:19
↓ 3 callersMethodupdateDistance
()
app/src/main/java/ru/inno/earthquakes/models/entities/EarthquakeWithDist.java:87
↓ 2 callersMethodcheckLocationServicesAvailability
@return if location services, needed for the app are available
app/src/main/java/ru/inno/earthquakes/business/location/LocationInteractor.java:58
↓ 2 callersMethoddistance
Calculate distance in meters given two {@link Coordinates} @return distance in meters
app/src/main/java/ru/inno/earthquakes/models/entities/Location.java:30
↓ 2 callersMethodgetApiDataSorted
Download earthquakes list from server, calculate distance to the given location, and return list of {@link EarthquakeWithDist} sorted by distance
app/src/main/java/ru/inno/earthquakes/business/earthquakes/EarthquakesInteractor.java:80
↓ 2 callersMethodgetAppComponent
()
app/src/main/java/ru/inno/earthquakes/di/ComponentsManager.java:24
↓ 2 callersMethodgetCoordinates
()
app/src/main/java/ru/inno/earthquakes/models/network/EarthquakeNetwork.java:89
↓ 2 callersMethodgetData
()
app/src/main/java/ru/inno/earthquakes/models/EntitiesWrapper.java:32
↓ 2 callersMethodgetDoubleFromLongFromPrefs
Convenient method to read double without losing precision while converting to float
app/src/main/java/ru/inno/earthquakes/repositories/settings/SettingsRepository.java:79
↓ 2 callersMethodgetEarthquake
()
app/src/main/java/ru/inno/earthquakes/models/entities/EarthquakeWithDist.java:25
↓ 2 callersMethodgetEarthquakes
@return all earthquakes that happened in this day
app/src/main/java/ru/inno/earthquakes/data/network/EarthquakesApiService.java:15
↓ 2 callersMethodgetEarthquakesComponent
()
app/src/main/java/ru/inno/earthquakes/di/ComponentsManager.java:33
↓ 2 callersMethodgetEarthquakesList
Download earthquakes and inform user about problems, if they were encountered
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListPresenter.java:45
↓ 2 callersMethodgetLatitude
()
app/src/main/java/ru/inno/earthquakes/models/entities/Location.java:79
↓ 2 callersMethodgetLatitude
()
app/src/main/java/ru/inno/earthquakes/models/db/CoordinatesDb.java:49
↓ 2 callersMethodgetLongtitude
()
app/src/main/java/ru/inno/earthquakes/models/entities/Location.java:71
↓ 2 callersMethodgetSettingsChangeObservable
@return stream which notifies observers when settings are changed
app/src/main/java/ru/inno/earthquakes/business/settings/SettingsInteractor.java:51
↓ 2 callersMethodgetSupportActionBar
()
app/src/main/java/ru/inno/earthquakes/presentation/common/ActionBarProvider.java:13
↓ 2 callersMethodonRefreshAction
()
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertPresenter.java:57
↓ 2 callersMethodputDoubleAsLongToPrefs
Convenient method to store double without losing precision while converting to float
app/src/main/java/ru/inno/earthquakes/repositories/settings/SettingsRepository.java:70
↓ 2 callersMethodsaveSettings
()
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsActivity.java:91
↓ 2 callersMethodsetCoords
(Coordinates coords)
app/src/main/java/ru/inno/earthquakes/models/entities/Location.java:57
↓ 2 callersMethodshowEarthquakeAlert
(EarthquakeWithDist earthquake)
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertView.java:18
↓ 2 callersMethodshowLoading
(boolean show)
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListView.java:22
↓ 2 callersMethodshowNetworkError
(boolean show)
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListView.java:20
↓ 2 callersMethodupdateCurrentState
Call to update current data
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertPresenter.java:72
↓ 1 callersMethodaddItemDecoration
(RecyclerView.ItemDecoration itemDecoration)
app/src/main/java/ru/inno/earthquakes/presentation/common/views/EmptyRecyclerView.java:96
↓ 1 callersMethodbind
(EarthquakeWithDist model)
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListAdapter.java:81
↓ 1 callersMethodcheckPlayServicesAvailable
@return if location services, needed for the app are available
app/src/main/java/ru/inno/earthquakes/repositories/location/LocationRepository.java:70
↓ 1 callersMethodclearCache
Remove all {@link EarthquakeDb from cache}
app/src/main/java/ru/inno/earthquakes/repositories/earthquakes/EarthquakesCache.java:34
↓ 1 callersMethodclose
()
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsView.java:26
↓ 1 callersMethodcoords
(Location.Coordinates coordinates)
app/src/main/java/ru/inno/earthquakes/models/mappers/EarthquakesMapper.java:34
↓ 1 callersMethoddistFrom
(double lat1, double lng1, double lat2, double lng2)
app/src/main/java/ru/inno/earthquakes/models/entities/Location.java:34
↓ 1 callersMethodentitiesToDb
(List<Earthquake> earthquakes)
app/src/main/java/ru/inno/earthquakes/models/mappers/EarthquakesMapper.java:30
↓ 1 callersMethodgetCachedDataSorted
Read earthquakes from cache, calculate distance to the given location, and return list of {@link EarthquakeWithDist} sorted by distance
app/src/main/java/ru/inno/earthquakes/business/earthquakes/EarthquakesInteractor.java:93
↓ 1 callersMethodgetCoords
()
app/src/main/java/ru/inno/earthquakes/models/entities/Location.java:53
↓ 1 callersMethodgetDetailsUrl
()
app/src/main/java/ru/inno/earthquakes/models/db/EarthquakeDb.java:82
↓ 1 callersMethodgetEarthquakeAlert
Get earthquake alert and show user if there are any problems
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertPresenter.java:106
↓ 1 callersMethodgetItemCount
()
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListAdapter.java:47
↓ 1 callersMethodgetLastLocation
Get last known location of the user. If there are no Google services on phone, we will have an error
app/src/main/java/ru/inno/earthquakes/repositories/location/LocationRepository.java:43
↓ 1 callersMethodgetLocation
()
app/src/main/java/ru/inno/earthquakes/models/entities/EarthquakeWithDist.java:71
↓ 1 callersMethodgetLocation
To-one relationship, resolved on first access.
app/src/main/java/ru/inno/earthquakes/models/db/EarthquakeDb.java:101
↓ 1 callersMethodgetLocationServicesStatus
@return status code from the location services
app/src/main/java/ru/inno/earthquakes/business/location/LocationInteractor.java:66
↓ 1 callersMethodgetLongtitude
()
app/src/main/java/ru/inno/earthquakes/models/db/CoordinatesDb.java:41
↓ 1 callersMethodgetMargin
Returns left margin for a divider in dp @param position of item to decorate @param parent RecyclerView @return left margin in dp
app/src/main/java/ru/inno/earthquakes/presentation/common/SmartDividerItemDecoration.java:159
↓ 1 callersMethodgetPlayServicesStatus
@return status code from the location services
app/src/main/java/ru/inno/earthquakes/repositories/location/LocationRepository.java:83
↓ 1 callersMethodgetSortedEarthquakesObservable
()
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListPresenter.java:70
↓ 1 callersMethodgetStartInfo
(Context callingContext)
app/src/main/java/ru/inno/earthquakes/presentation/info/InfoActivity.java:24
↓ 1 callersMethodgetStartIntent
(Context callingContext)
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListActivity.java:87
↓ 1 callersMethodgetStartIntent
(Context callingContext)
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsActivity.java:153
↓ 1 callersMethodgetTime
()
app/src/main/java/ru/inno/earthquakes/models/db/EarthquakeDb.java:74
↓ 1 callersMethodgetTitle
()
app/src/main/java/ru/inno/earthquakes/models/db/EarthquakeDb.java:58
↓ 1 callersMethodgetVisibility
Returns if a divider should be shown @param position of item to decorate @param parent RecyclerView @return true if it should be visible, false oth
app/src/main/java/ru/inno/earthquakes/presentation/common/SmartDividerItemDecoration.java:171
↓ 1 callersMethodhandleEarthquakeData
(EntitiesWrapper<EarthquakeWithDist> earthquakeWithDists)
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertPresenter.java:86
↓ 1 callersMethodhandleNetworkStateMessage
(EntitiesWrapper<EarthquakeWithDist> earthquakeWithDists)
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertPresenter.java:94
↓ 1 callersMethodinitAppComponent
()
app/src/main/java/ru/inno/earthquakes/EarthquakesApp.java:47
↓ 1 callersMethodinitComponentsTree
()
app/src/main/java/ru/inno/earthquakes/EarthquakesApp.java:51
↓ 1 callersMethodinitLeakCanary
()
app/src/main/java/ru/inno/earthquakes/EarthquakesApp.java:38
↓ 1 callersMethodinitLogging
()
app/src/main/java/ru/inno/earthquakes/EarthquakesApp.java:55
↓ 1 callersMethodinitRecyclerView
()
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListActivity.java:73
↓ 1 callersMethodisDigitsOnly
Returns whether the given CharSequence contains only digits.
app/src/main/java/ru/inno/earthquakes/presentation/common/Utils.java:40
↓ 1 callersMethodnavigateToEarthquakeDetails
(EarthquakeWithDist earthquakeWithDist)
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListView.java:24
↓ 1 callersMethodnavigateToEarthquakesList
()
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertView.java:31
↓ 1 callersMethodnavigateToInfo
()
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsView.java:23
↓ 1 callersMethodnavigateToSettings
()
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertView.java:34
↓ 1 callersMethodonEarthquakeClick
(EarthquakeWithDist earthquakeWithDist)
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListPresenter.java:81
↓ 1 callersMethodonEarthquakeClicked
(EarthquakeWithDist earthquakeWithDist)
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListAdapter.java:100
↓ 1 callersMethodonInfoAction
()
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsPresenter.java:42
↓ 1 callersMethodonOpenSettings
()
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertPresenter.java:65
↓ 1 callersMethodonRefreshAction
()
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListPresenter.java:77
↓ 1 callersMethodonSave
Save user input
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsPresenter.java:32
↓ 1 callersMethodonShowAll
()
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertPresenter.java:61
↓ 1 callersMethodplusEarthquakesComponent
(EarthquakesModule module)
app/src/main/java/ru/inno/earthquakes/di/application/AppComponent.java:17
next →1–100 of 326, ranked by callers