Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gaket/Earthquakes
/ functions
Functions
326 in github.com/Gaket/Earthquakes
⨍
Functions
326
◇
Types & classes
64
↓ 1 callers
Method
putAlertMaxDistance
Save maximal distance for alert @param value in meters
app/src/main/java/ru/inno/earthquakes/repositories/settings/SettingsRepository.java:44
↓ 1 callers
Method
putAlertMinMagnitude
Save minimal magnitude for alert @param value in Richter scale
app/src/main/java/ru/inno/earthquakes/repositories/settings/SettingsRepository.java:53
↓ 1 callers
Method
putEarthquakes
@param earthquakeEntities to store
app/src/main/java/ru/inno/earthquakes/repositories/earthquakes/EarthquakesCache.java:41
↓ 1 callers
Method
saveAlertSettings
Save settings for the alert @param maxDistance in meters @param minMagnitude in Richter scale
app/src/main/java/ru/inno/earthquakes/business/settings/SettingsInteractor.java:42
↓ 1 callers
Method
setAdapter
(RecyclerView.Adapter adapter)
app/src/main/java/ru/inno/earthquakes/presentation/common/views/EmptyRecyclerView.java:72
↓ 1 callers
Method
setDefaultCity
(String name)
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsView.java:18
↓ 1 callers
Method
setEmptyViewLayout
Add view layout that will be shown when there are no elements in {@link EmptyRecyclerView}
app/src/main/java/ru/inno/earthquakes/presentation/common/views/EmptyRecyclerView.java:65
↓ 1 callers
Method
setItems
(List<EarthquakeWithDist> earthquakeWithDists)
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListAdapter.java:52
↓ 1 callers
Method
setLayoutManager
(LinearLayoutManager lm)
app/src/main/java/ru/inno/earthquakes/presentation/common/views/EmptyRecyclerView.java:84
↓ 1 callers
Method
setLocation
Set the to-one relation including its ID property.
app/src/main/java/ru/inno/earthquakes/models/db/EarthquakeDb.java:110
↓ 1 callers
Method
setMagnitude
(Double magnitude)
app/src/main/java/ru/inno/earthquakes/models/db/EarthquakeDb.java:70
↓ 1 callers
Method
setMarginProvider
(MarginProvider marginProvider)
app/src/main/java/ru/inno/earthquakes/presentation/common/SmartDividerItemDecoration.java:207
↓ 1 callers
Method
setMaxDistance
(Double dist)
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsView.java:14
↓ 1 callers
Method
setMinMagnitude
(Double mag)
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsView.java:16
↓ 1 callers
Method
setName
(String name)
app/src/main/java/ru/inno/earthquakes/models/entities/Location.java:49
↓ 1 callers
Method
setOrientation
Sets the orientation for this divider. This should be called if {@link RecyclerView.LayoutManager} changes orientation. @param orientation {@link #HO
app/src/main/java/ru/inno/earthquakes/presentation/common/SmartDividerItemDecoration.java:79
↓ 1 callers
Method
showDistanceFormatError
()
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsView.java:29
↓ 1 callers
Method
showEarthquakes
(List<EarthquakeWithDist> earthquakeWithDists)
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListView.java:18
↓ 1 callers
Method
showGoogleApiMessage
(int status)
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertView.java:37
↓ 1 callers
Method
showNoDataAlert
()
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertView.java:28
↓ 1 callers
Method
showNotImplementedError
()
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsView.java:20
↓ 1 callers
Method
showPermissionDeniedAlert
()
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertView.java:25
Method
AlertPresenter
(EarthquakesInteractor earthquakesInteractor, LocationInteractor locationInteractor,
app/src/main/java/ru/inno/earthquakes/presentation/alertscreen/AlertPresenter.java:27
Method
AppModule
(Context aContext)
app/src/main/java/ru/inno/earthquakes/di/application/AppModule.java:25
Method
BasePresenter
()
app/src/main/java/ru/inno/earthquakes/presentation/common/BasePresenter.java:16
Method
Builder
Start building a new {@link SmartDividerItemDecoration} instance.
app/src/main/java/ru/inno/earthquakes/presentation/common/SmartDividerItemDecoration.java:200
Method
ComponentsManager
(Context context)
app/src/main/java/ru/inno/earthquakes/di/ComponentsManager.java:18
Method
Coordinates
(double latitude, double longtitude)
app/src/main/java/ru/inno/earthquakes/models/entities/Location.java:66
Method
CoordinatesDb
(long id, double longtitude, double latitude)
app/src/main/java/ru/inno/earthquakes/models/db/CoordinatesDb.java:20
Method
EarthquakeDb
(long id, String title, Double magnitude, Date time, String detailsUrl, long locationId)
app/src/main/java/ru/inno/earthquakes/models/db/EarthquakeDb.java:36
Method
EarthquakeViewHolder
(View itemView, Context context, OnEarthquakeClickListener listener)
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListAdapter.java:71
Method
EarthquakeWithDist
()
app/src/main/java/ru/inno/earthquakes/models/entities/EarthquakeWithDist.java:16
Method
EarthquakesCache
(BoxStore boxStore, EarthquakesMapper earthquakesMapper)
app/src/main/java/ru/inno/earthquakes/repositories/earthquakes/EarthquakesCache.java:26
Method
EarthquakesInteractor
(EarthquakesRepository earthquakesRepository, SettingsRepository settingsReposi
app/src/main/java/ru/inno/earthquakes/business/earthquakes/EarthquakesInteractor.java:27
Method
EarthquakesListAdapter
(OnEarthquakeClickListener listener)
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListAdapter.java:31
Method
EarthquakesListPresenter
(EarthquakesInteractor earthquakesInteractor, LocationInteractor locationInteractor
app/src/main/java/ru/inno/earthquakes/presentation/earthquakeslist/EarthquakesListPresenter.java:28
Method
EarthquakesRepository
(EarthquakesApiService apiService, EarthquakesMapper earthquakesMapper, Earthqu
app/src/main/java/ru/inno/earthquakes/repositories/earthquakes/EarthquakesRepository.java:21
Method
EmptyRecyclerView
(Context context)
app/src/main/java/ru/inno/earthquakes/presentation/common/views/EmptyRecyclerView.java:47
Method
EntitiesWrapper
(@NonNull State state, @Nullable T data)
app/src/main/java/ru/inno/earthquakes/models/EntitiesWrapper.java:18
Method
Location
()
app/src/main/java/ru/inno/earthquakes/models/entities/Location.java:14
Method
LocationAnswer
(Coordinates coordinates, State state)
app/src/main/java/ru/inno/earthquakes/business/location/LocationInteractor.java:79
Method
LocationDb
(long id, String name, long coordsId)
app/src/main/java/ru/inno/earthquakes/models/db/LocationDb.java:32
Method
LocationInteractor
(LocationRepository repository, PermissionsRepository permissionsRepository,
app/src/main/java/ru/inno/earthquakes/business/location/LocationInteractor.java:20
Method
LocationRepository
(FusedLocationProviderClient fusedLocationClient, GoogleApiAvailability googleApiA
app/src/main/java/ru/inno/earthquakes/repositories/location/LocationRepository.java:22
Method
PermissionsRepository
(RxPermissions rxPermissions)
app/src/main/java/ru/inno/earthquakes/data/permissions/PermissionsRepository.java:16
Method
SettingsInteractor
(SettingsRepository repository)
app/src/main/java/ru/inno/earthquakes/business/settings/SettingsInteractor.java:17
Method
SettingsPresenter
(SettingsInteractor settingsInteractor)
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsPresenter.java:17
Method
SettingsRepository
(SharedPreferences sharedPreferences)
app/src/main/java/ru/inno/earthquakes/repositories/settings/SettingsRepository.java:21
Method
SmartDividerItemDecoration
Creates a divider {@link RecyclerView.ItemDecoration} that can be used with a {@link LinearLayoutManager}. @param context Current context, it wil
app/src/main/java/ru/inno/earthquakes/presentation/common/SmartDividerItemDecoration.java:62
Method
UnknownLocationException
(String message)
app/src/main/java/ru/inno/earthquakes/repositories/location/UnknownLocationException.java:10
Method
Utils
()
app/src/main/java/ru/inno/earthquakes/presentation/common/Utils.java:14
Method
addOnScrollListener
(RecyclerView.OnScrollListener scrollListener)
app/src/main/java/ru/inno/earthquakes/presentation/common/views/EmptyRecyclerView.java:88
Method
arrayToCoords
(double[] coords)
app/src/main/java/ru/inno/earthquakes/models/mappers/EarthquakesMapper.java:36
Method
cachedValuesReturnedIfNetworkError
()
app/src/test/java/ru/inno/earthquakes/business/earthquakes/EarthquakesInteractorTest.java:86
Method
clearEarthquakesComponent
()
app/src/main/java/ru/inno/earthquakes/di/ComponentsManager.java:40
Method
close
()
app/src/main/java/ru/inno/earthquakes/presentation/settings/SettingsActivity.java:142
Method
computation
()
app/src/main/java/ru/inno/earthquakes/presentation/common/SchedulersProvider.java:18
Method
correctLocationReturnedIfPermissionIsGiven
()
app/src/test/java/ru/inno/earthquakes/business/location/LocationInteractorTest.java:57
Method
defaultLocationReturnedIfPermissionIsNotGiven
()
app/src/test/java/ru/inno/earthquakes/business/location/LocationInteractorTest.java:73
Method
defaultLocationReturnedIfThereAreNoPreviousLocationsInDevice
()
app/src/test/java/ru/inno/earthquakes/business/location/LocationInteractorTest.java:87
Method
distanceIsCorrect
()
app/src/test/java/ru/inno/earthquakes/models/entities/LocationTest.java:14
Method
earthquakeDataToEntity
(EarthquakeNetwork earthquakeNetwork)
app/src/main/java/ru/inno/earthquakes/models/mappers/EarthquakesMapper.java:52
Method
earthquakeNotReturnedIfItDoesNotPassMaxDistanceSettings
()
app/src/test/java/ru/inno/earthquakes/business/earthquakes/EarthquakesInteractorTest.java:118
Method
earthquakeNotReturnedIfItDoesNotPassMinMagnitudeSettings
()
app/src/test/java/ru/inno/earthquakes/business/earthquakes/EarthquakesInteractorTest.java:134
Method
earthquakeReturnedIfItPassesSettings
()
app/src/test/java/ru/inno/earthquakes/business/earthquakes/EarthquakesInteractorTest.java:101
Method
earthquakeToEntity
(EarthquakeDb earthquakeDb)
app/src/main/java/ru/inno/earthquakes/models/mappers/EarthquakesMapper.java:24
Method
earthquakesToEntities
(List<EarthquakeDb> earthquakeDbs)
app/src/main/java/ru/inno/earthquakes/models/mappers/EarthquakesMapper.java:28
Method
entityToDb
(Earthquake earthquakes)
app/src/main/java/ru/inno/earthquakes/models/mappers/EarthquakesMapper.java:26
Method
firstCachedThenActualValuesReturned
()
app/src/test/java/ru/inno/earthquakes/business/earthquakes/EarthquakesInteractorTest.java:70
Method
formatDistanceString
()
app/src/test/java/ru/inno/earthquakes/presentation/common/UtilsTest.java:11
Method
getAlertMaxDistance
@return maximal distance to which an Earthquake alert should be shown
app/src/main/java/ru/inno/earthquakes/repositories/settings/SettingsRepository.java:28
Method
getAlertMinMagnitude
@return maximal magnitude from which an Earthquake alert should be shown
app/src/main/java/ru/inno/earthquakes/repositories/settings/SettingsRepository.java:35
Method
getCoordinates
()
app/src/main/java/ru/inno/earthquakes/business/location/LocationInteractor.java:84
Method
getCurrentCoordinates
@return Current coordinates, taken from the Android system @throws {@link UnknownLocationException} if the last position is unknown @throws {@link Sec
app/src/main/java/ru/inno/earthquakes/repositories/location/LocationRepository.java:34
Method
getCurrentPosition
()
app/src/main/java/ru/inno/earthquakes/models/entities/EarthquakeWithDist.java:38
Method
getDefaultLocation
Get default location to use if there are problems getting user's actual location Å @return default location
app/src/main/java/ru/inno/earthquakes/repositories/settings/SettingsRepository.java:63
Method
getDetailsUrl
()
app/src/main/java/ru/inno/earthquakes/models/entities/Earthquake.java:48
Method
getDetailsUrl
()
app/src/main/java/ru/inno/earthquakes/models/entities/EarthquakeWithDist.java:79
Method
getEarthquakes
@return all {@link EarthquakeDb} from the cache
app/src/main/java/ru/inno/earthquakes/repositories/earthquakes/EarthquakesCache.java:48
Method
getFeatures
()
app/src/main/java/ru/inno/earthquakes/models/network/EarthquakesResponse.java:15
Method
getGeometry
()
app/src/main/java/ru/inno/earthquakes/models/network/EarthquakeNetwork.java:26
Method
getId
()
app/src/main/java/ru/inno/earthquakes/models/db/EarthquakeDb.java:90
Method
getId
()
app/src/main/java/ru/inno/earthquakes/models/db/LocationDb.java:51
Method
getId
()
app/src/main/java/ru/inno/earthquakes/models/db/CoordinatesDb.java:33
Method
getItemOffsets
(Rect outRect, View view, RecyclerView parent, RecyclerView.State state)
app/src/main/java/ru/inno/earthquakes/presentation/common/SmartDividerItemDecoration.java:140
Method
getLayoutManager
()
app/src/main/java/ru/inno/earthquakes/presentation/common/views/EmptyRecyclerView.java:100
Method
getLocation
()
app/src/main/java/ru/inno/earthquakes/models/entities/Earthquake.java:40
Method
getMag
()
app/src/main/java/ru/inno/earthquakes/models/network/EarthquakeNetwork.java:47
Method
getMagnitude
()
app/src/main/java/ru/inno/earthquakes/models/entities/Earthquake.java:24
Method
getMagnitude
()
app/src/main/java/ru/inno/earthquakes/models/entities/EarthquakeWithDist.java:55
Method
getMargin
(int position, RecyclerView parent)
app/src/main/java/ru/inno/earthquakes/presentation/common/SmartDividerItemDecoration.java:176
Method
getName
()
app/src/main/java/ru/inno/earthquakes/models/entities/Location.java:45
Method
getPlace
()
app/src/main/java/ru/inno/earthquakes/models/network/EarthquakeNetwork.java:55
Method
getProperties
()
app/src/main/java/ru/inno/earthquakes/models/network/EarthquakeNetwork.java:18
Method
getRefWatcher
(Context context)
app/src/main/java/ru/inno/earthquakes/EarthquakesApp.java:33
Method
getState
()
app/src/main/java/ru/inno/earthquakes/business/location/LocationInteractor.java:92
Method
getTime
()
app/src/main/java/ru/inno/earthquakes/models/network/EarthquakeNetwork.java:63
Method
getTime
()
app/src/main/java/ru/inno/earthquakes/models/entities/Earthquake.java:32
Method
getTime
()
app/src/main/java/ru/inno/earthquakes/models/entities/EarthquakeWithDist.java:63
Method
getTitle
()
app/src/main/java/ru/inno/earthquakes/models/network/EarthquakeNetwork.java:38
← previous
next →
101–200 of 326, ranked by callers