MCPcopy Create free account

hub / github.com/DaylightingSociety/WhereAreTheEyes / functions

Functions145 in github.com/DaylightingSociety/WhereAreTheEyes

↓ 21 callersMethoddebug
(msg)
website/log.rb:35
↓ 12 callersMethodwarning
(msg)
website/log.rb:23
↓ 9 callersMethodgetUsername
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:213
↓ 8 callersFunctiongetPostNumber
To sort posts numerically we need to get their number This is everything up to the "_", converted to an int
website/util.rb:13
↓ 7 callersMethodnotice
(msg)
website/log.rb:31
↓ 6 callersFunctiongetMarkdown
(filename)
website/util.rb:17
↓ 5 callersMethodsetMapDimensions
(boolean scoresEnabled)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:503
↓ 5 callersMethodverifies
How many people have verified this pin?
website/map.rb:62
↓ 4 callersMethodgetAllPins
Note: This function is for administrators to view the state of the map as a whole, and is not intended for user-use
website/map.rb:329
↓ 4 callersMethodscoresEnabled
(String username)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Score.java:48
↓ 4 callersMethodupdateScore
(final String username)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Score.java:86
↓ 3 callersMethoderror
(msg)
website/log.rb:27
↓ 3 callersMethodgetLocation
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/GPS.java:87
↓ 3 callersMethodrefreshPins
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/GPS.java:70
↓ 3 callersMethodvalidLogin?
(username)
website/auth.rb:53
↓ 2 callersMethodacquireLocationPerms
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:413
↓ 2 callersMethodaddRecord
Records than an IP has marked a camera, tracks frequency so we can detect anyone abusing the map and marking cameras everywhere.
website/ratelimit.rb:41
↓ 2 callersMethodalertNoUsername
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:303
↓ 2 callersMethodclearScore
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Score.java:63
↓ 2 callersMethodcommitMarkingCamera
(String username)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:365
↓ 2 callersMethoddrawScores
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:203
↓ 2 callersMethodgetDistance
Returns distance in meters between two GPS coordinates This implementation of the Haversine formula gratefully taken from Stack Overflow: https://stac
website/location.rb:36
↓ 2 callersMethodinit
()
website/log.rb:14
↓ 2 callersMethodipInRange?
Returns whether an IP address is close enough to a latitude longitude that it's feasible their location is correct.
website/location.rb:21
↓ 2 callersMethodloadPins
(filename)
website/map.rb:134
↓ 2 callersMethodpulse
(Context c)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Vibrate.java:20
↓ 2 callersMethodrateExceeded?
Returns if a mark should be blocked because the IP Address was abusive
website/ratelimit.rb:79
↓ 2 callersMethodrecenterMap
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:278
↓ 2 callersMethodsetMapTheme
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:234
↓ 2 callersMethodsetMapTracking
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:252
↓ 1 callersMethodaddAccount
Adds an account to the database, and locks the file so we cannot add multiple accounts at the same time and corrupt the database
website/auth.rb:42
↓ 1 callersMethodaddCamera
(username)
website/scores.rb:71
↓ 1 callersMethodaddPin
If there are no pins close by then add a new one, otherwise verify the existing pin at that location
website/map.rb:201
↓ 1 callersMethodaddVerification
(username)
website/scores.rb:100
↓ 1 callersMethodbackupPins
This is the only regularly called external method. It backs up pins each hour and rotates backups when appropriate.
website/backup.rb:168
↓ 1 callersMethodcorrectLogin?
(username)
website/auth.rb:26
↓ 1 callersMethodcreateDatabase
website/auth.rb:33
↓ 1 callersMethoddeprecatePins
Triggers a removal of all old pins Should be run periodically to purge outdated data
website/map.rb:254
↓ 1 callersMethodexportPinsCSV
(filename)
website/export.rb:14
↓ 1 callersMethodgetCameraIcon
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Images.java:27
↓ 1 callersMethodgetInfoWindowHandler
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:156
↓ 1 callersMethodgetPins
For now we ignore the radius. Later we can use it as an upper bound and ignore pins that are too far away for the user to care For now we'll just retu
website/map.rb:180
↓ 1 callersMethodgetQuery
(List<AbstractMap.SimpleEntry> params)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/UnmarkPin.java:98
↓ 1 callersMethodgetQuery
(List<AbstractMap.SimpleEntry> params)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MarkOrVerifyPin.java:97
↓ 1 callersMethodgetSecret
website/state.rb:174
↓ 1 callersMethodgetStatusBarHeight
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:492
↓ 1 callersMethodgetThemePreference
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:220
↓ 1 callersMethodgetTrackingPreference
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:227
↓ 1 callersMethodgetUserScore
Returns a Points object or nil if user doesn't exist
website/scores.rb:59
↓ 1 callersMethodgetVerificationTimestamps
Return timestamps from every verification
website/map.rb:67
↓ 1 callersMethodhandleResponse
(String response, final Context context, final Activity activity)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/UnmarkPin.java:119
↓ 1 callersMethodhandleResponse
(String response, final Context context, final Activity activity)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MarkOrVerifyPin.java:118
↓ 1 callersMethodinit
(Context c)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Images.java:23
↓ 1 callersMethodonLocationChanged
(Location loc)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/GPS.java:33
↓ 1 callersMethodparseDownload
(String data)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Score.java:125
↓ 1 callersMethodparsePin
(PinData p, String pinString)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/DownloadPinsTask.java:35
↓ 1 callersMethodpurgeDebugVerifies
Removes any verifications by debug accounts. This is useful for situations where we *must* test on production servers, such as getting Apple testers t
website/map.rb:102
↓ 1 callersMethodpurgeOldVerifies
Removes older verifications, so that forgotten pins will slowly fade away Basically we check if the timestamp is older than an arbitrary number of day
website/map.rb:88
↓ 1 callersMethodpurgeRecords
Remove all records old enough that they don't matter. What "matters" is defined by some constants, but it's around "IP records for the last five minut
website/ratelimit.rb:87
↓ 1 callersFunctionrender
()
website/camimage.py:32
↓ 1 callersMethodrenderPins
(final PinData p)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/DownloadPinsTask.java:59
↓ 1 callersMethodsavePin
(p)
website/map.rb:146
↓ 1 callersMethodstartWatchdog
website/state.rb:154
↓ 1 callersMethodstopLocationUpdates
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:560
↓ 1 callersMethodunverify
Attempts to remove any verifications by a particular user returns true if any verifications removed, false otherwise
website/map.rb:53
↓ 1 callersMethodunverifyPin
Searches for pins near the desired location, asks them to unverify the given username. Stops after one success. Returns true if unverification complet
website/map.rb:225
↓ 1 callersMethodverify
A new user wants to verify this pin! See if they already have. If new verification then add them and return true. If already verified then do nothing
website/map.rb:36
MethodApplicationTest
()
Android/app/src/androidTest/java/org/daylightingsociety/wherearetheeyes/ApplicationTest.java:10
MethodGPS
(MapView m)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/GPS.java:27
MethodImages
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Images.java:19
MethodInfoWindowTipView
(Context context, AttributeSet attrs)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/InfoWindowTipView.java:57
MethodMarkData
(String u, Location l, Context c, Activity a)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MarkData.java:20
MethodPinData
(HashMap<LatLng, Integer> p, MapView m, Location l)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/PinData.java:23
MethodScore
(Context c, TextView _cameraScore, TextView _verificationScore)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Score.java:38
MethodVibrate
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Vibrate.java:16
Methodaddition_isCorrect
()
Android/app/src/test/java/org/daylightingsociety/wherearetheeyes/ExampleUnitTest.java:11
Methodalert
(msg)
website/log.rb:19
MethodbackupCycle
website/state.rb:109
MethodcreateDailyFolder
(time)
website/backup.rb:55
MethodcreateHourlyFolder
(time)
website/backup.rb:39
MethodcreateMonthlyFolder
(time)
website/backup.rb:65
MethodcreateNewSnapshot
(time)
website/backup.rb:76
MethoddeprecateCycle
website/state.rb:95
MethoddoInBackground
(MarkData... params)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/UnmarkPin.java:34
MethoddoInBackground
(PinData[] params)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/DownloadPinsTask.java:101
MethoddoInBackground
(MarkData... params)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MarkOrVerifyPin.java:34
MethodexportCycle
website/state.rb:137
Methodfilter
(CharSequence source, int start, int end, Spanned dest, int dstart, int
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/SettingsActivity.java:32
MethodgetCamerasMarked
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Score.java:77
MethodgetCoordinatesOfIP
Returns (latitude, longitude) if address is valid Returns (nil, nil) if we can't resolve it
website/location.rb:57
MethodgetInfoWindow
(final Marker marker)
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/MainActivity.java:158
MethodgetVerifications
()
Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/Score.java:81
MethodgetZoneFile
(latitude, longitude)
website/map.rb:126
MethodhashUser
Hides usernames so we can check if a user has verified a particular pin We use SHA2 here for performance. It's already an O(n) operation to check if t
website/map.rb:78
MethodhashUsername
(username, salt)
website/scores.rb:54
Methodinit
website/backup.rb:21
Methodinit
Creates a new blank score database if none exists
website/scores.rb:41
Methodinit
Set up empty databases if they don't exist yet
website/ratelimit.rb:17
Methodinit
website/location.rb:15
Methodinit
website/state.rb:21
next →1–100 of 145, ranked by callers