Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SimCoderYoutube/UberClone
/ functions
Functions
355 in github.com/SimCoderYoutube/UberClone
⨍
Functions
355
◇
Types & classes
38
↓ 48 callers
Method
getCoordinates
()
android/app/src/main/java/com/simcoder/uber/Objects/LocationObject.java:31
↓ 30 callers
Method
getDriver
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:340
↓ 26 callers
Method
getId
()
android/app/src/main/java/com/simcoder/uber/Objects/CardObject.java:69
↓ 25 callers
Method
getName
()
android/app/src/main/java/com/simcoder/uber/Objects/CardObject.java:61
↓ 15 callers
Method
getDestination
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:368
↓ 13 callers
Method
parseData
Parse the Datasnapshot retrieved from the database and puts it into a RideObject @param dataSnapshot - datasnapshot of the ride
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:108
↓ 12 callers
Method
getPickup
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:354
↓ 8 callers
Method
bringBottomSheetDown
Handles hiding the bottom sheet with animation. Also takes care of hiding or showing the elements in it depending on the current state of the request.
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:397
↓ 8 callers
Method
getEnded
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:398
↓ 8 callers
Method
getProfileImage
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:166
↓ 7 callers
Method
generateBitmap
(Context context, String location, String duration)
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:918
↓ 7 callers
Method
getCancelled
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:435
↓ 7 callers
Method
getCustomer
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:347
↓ 6 callers
Method
getRideRef
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:439
↓ 5 callers
Method
getData
Get the info of the driver and update the payout amount displayed to the driver
android/app/src/main/java/com/simcoder/uber/Payment/PayoutActivity.java:89
↓ 5 callers
Method
getState
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:457
↓ 5 callers
Method
onCreate
(Bundle savedInstanceState)
android/app/src/main/java/com/simcoder/uber/Login/MenuFragment.java:49
↓ 5 callers
Method
setName
(String name)
android/app/src/main/java/com/simcoder/uber/Objects/CardObject.java:37
↓ 4 callers
Method
cancelRide
Called when a drive is meant to be cancelled
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:281
↓ 4 callers
Method
endRide
End Ride by removing all of the active listeners, returning all of the values to the default state and clearing the map from markers
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:741
↓ 4 callers
Method
endRide
End Ride by removing all of the active listeners, returning all of the values to the default state and clearing the map from markers
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:683
↓ 4 callers
Method
getPhone
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:106
↓ 4 callers
Method
getService
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:90
↓ 3 callers
Method
MapAnimator
Remove route polylines from the map
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:1258
↓ 3 callers
Method
clone
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:461
↓ 3 callers
Method
disconnectDriver
Disconnects driver, putting to sleep the code that fetches current location
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:862
↓ 3 callers
Method
erasePolylines
Remove route polylines from the map
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:877
↓ 3 callers
Method
fetchCardsList
Get the list of cards the Customer has available in the stripe dash. The returned object is a json so this function does the parse and saves it into a
android/app/src/main/java/com/simcoder/uber/Payment/PaymentUtils.java:60
↓ 3 callers
Method
getCar
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:422
↓ 3 callers
Method
getDate
Parse a timestamp in to a date of the type MM-dd-yyyy, hh:mm @return parsed timestamp
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:270
↓ 3 callers
Method
getDriversAround
Displays drivers around the user's current location and updates them in real time.
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:1035
↓ 3 callers
Method
getTimePassed
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:449
↓ 3 callers
Method
getTypeList
Returns array list with all of the driver rides available for this application. @param activity - activity that called this function @return typeArray
android/app/src/main/java/com/simcoder/uber/Utils/Utils.java:33
↓ 3 callers
Method
initPlacesAutocomplete
Init Places according the updated google api and listen for user inputs, when a user chooses a place change the values of destination and destinationL
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:466
↓ 3 callers
Method
onResult
(ArrayList<CardObject> cardArrayList)
android/app/src/main/java/com/simcoder/uber/Payment/PaymentUtils.java:35
↓ 3 callers
Method
setDestination
(LocationObject destination)
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:371
↓ 3 callers
Method
setPickup
(LocationObject pickup)
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:357
↓ 2 callers
Method
bringBottomSheetUp
Handles showing the bottom sheet with animation.
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:384
↓ 2 callers
Method
checkDriverLastUpdated
Checks if driver has not been updated in a while, if it has been more than x time since the driver location was last updated then remove it from the d
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:1127
↓ 2 callers
Method
checkLocationPermission
Get permissions for our app if they didn't previously exist. requestCode: the number assigned to the request that we've made. Each | re
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:806
↓ 2 callers
Method
checkNoType
checks if both types have not been fetched meaning the DetailsActivity must be called
android/app/src/main/java/com/simcoder/uber/Login/LauncherActivity.java:101
↓ 2 callers
Method
connectDriver
Connects driver, waking up the code that fetches current location
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:850
↓ 2 callers
Method
getId
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:394
↓ 2 callers
Method
getNameDash
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:130
↓ 2 callers
Method
getNotificationKey
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:202
↓ 2 callers
Method
getPriceString
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:430
↓ 2 callers
Method
getProfileImage
()
android/app/src/main/java/com/simcoder/uber/Objects/CustomerObject.java:91
↓ 2 callers
Method
getRating
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:426
↓ 2 callers
Method
getRequestsAround
Get Closest Rider by getting all the requests available within a radius of MAX_SEARCH_DISTANCE and around the driver current location. If a request is
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:484
↓ 2 callers
Method
getRouteToMarker
Get Route from pickup to destination, showing the route to the user
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:1169
↓ 2 callers
Method
getRouteToMarker
Get Route from pickup to destination, showing the route to the user @param destination - LatLng of the location to go to
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:634
↓ 2 callers
Method
getSelectedItem
()
android/app/src/main/java/com/simcoder/uber/Adapters/TypeAdapter.java:75
↓ 2 callers
Method
getTypeById
get type object that is in the arrayList with a certain id @param activity - activity that called this function @param id - id of the object to find @
android/app/src/main/java/com/simcoder/uber/Utils/Utils.java:61
↓ 2 callers
Method
getUserInformation
Fetches other user information and populates the relevant design elements @param otherUserDriverOrCustomer - String "customer" or "driver" @param othe
android/app/src/main/java/com/simcoder/uber/History/HistorySingleActivity.java:194
↓ 2 callers
Method
logOut
()
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:837
↓ 2 callers
Method
openMaps
Open a maps application to show the driver the route between the pickup point and destination. It tries to first open waze, if it fails it will try to
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:268
↓ 2 callers
Method
requestListener
Listener for the current request.
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:569
↓ 2 callers
Method
requestListener
Listener for the request the driver is currently assigned to.
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:601
↓ 2 callers
Method
setCoordinates
(LatLng coordinates)
android/app/src/main/java/com/simcoder/uber/Objects/LocationObject.java:34
↓ 2 callers
Method
setCurrent
(LocationObject current)
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:364
↓ 2 callers
Method
setLocation
(LocationObject mLocation)
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:186
↓ 2 callers
Method
setMapLocation
Sets markers of pickup and destination to the holder's map
android/app/src/main/java/com/simcoder/uber/Adapters/HistoryAdapter.java:127
↓ 2 callers
Method
setSelectedItem
(TypeObject selectedItem)
android/app/src/main/java/com/simcoder/uber/Adapters/TypeAdapter.java:79
↓ 2 callers
Method
startApis
starts up onesignal and stripe apis @param type - type of the user (customer, driver)
android/app/src/main/java/com/simcoder/uber/Login/LauncherActivity.java:115
↓ 1 callers
Method
bindView
Bind view to holder, setting the text to the design elements @param pos
android/app/src/main/java/com/simcoder/uber/Adapters/HistoryAdapter.java:151
↓ 1 callers
Method
checkLocationPermission
Get permissions for our app if they didn't previously exist. requestCode -> the number assigned to the request that we've made. Each request has it's
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:900
↓ 1 callers
Method
checkRequestState
Use the mCurrentRide variable to check which is the current state of it and do all The necessary work according to that state.
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:446
↓ 1 callers
Method
checkRide
Checks if user is able to place a ride request @return -1 if not able and 0 otherwise
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:86
↓ 1 callers
Method
checkUserAccType
Check user account type, either customer or driver. If it doesn't have a type then start the DetailsActivity for the user to be able to pick one.
android/app/src/main/java/com/simcoder/uber/Login/LauncherActivity.java:54
↓ 1 callers
Method
confirmDriver
Called when a driver wants to accept a customer request
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:295
↓ 1 callers
Method
confirmEntry
()
android/app/src/main/java/com/simcoder/uber/Driver/DriverChooseTypeActivity.java:74
↓ 1 callers
Method
disconnectDriver
Disconnects driver by removing the driversWorking driver id from the database
android/app/src/main/java/com/simcoder/uber/Utils/onAppKilled.java:20
↓ 1 callers
Method
displayCustomerRelatedObjects
Displays the elements that are only available to the customer: - Rating bar - pay button
android/app/src/main/java/com/simcoder/uber/History/HistorySingleActivity.java:171
↓ 1 callers
Method
erasePolylines
Remove route polylines from the map
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:1186
↓ 1 callers
Method
fetchLocationName
This function returns the name of location given the coordinates of said location
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:869
↓ 1 callers
Method
firebaseAuthWithGoogle
login with the google credential if the account does not exist it will be automatically created @param credential - google auth credential
android/app/src/main/java/com/simcoder/uber/Login/MenuFragment.java:129
↓ 1 callers
Method
forgotPassword
Sends an email to the email that's on the email input for the user to reset the password
android/app/src/main/java/com/simcoder/uber/Login/LoginFragment.java:60
↓ 1 callers
Method
getActive
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:198
↓ 1 callers
Method
getAmount
()
android/app/src/main/java/com/simcoder/uber/Objects/PayoutObject.java:58
↓ 1 callers
Method
getAssignedCustomerInfo
Fetch assigned customer's info and display it in the Bottom sheet
android/app/src/main/java/com/simcoder/uber/Driver/DriverMapActivity.java:649
↓ 1 callers
Method
getBrand
()
android/app/src/main/java/com/simcoder/uber/Objects/CardObject.java:57
↓ 1 callers
Method
getCalculatedRideDistance
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:443
↓ 1 callers
Method
getCalculatedTime
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:453
↓ 1 callers
Method
getCancelledType
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:402
↓ 1 callers
Method
getCarDash
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:142
↓ 1 callers
Method
getConnect
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:210
↓ 1 callers
Method
getDefaultCard
()
android/app/src/main/java/com/simcoder/uber/Objects/CardObject.java:65
↓ 1 callers
Method
getDriverInfo
Get all the user information that we can get from the user's database.
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:695
↓ 1 callers
Method
getDriverLocation
()
android/app/src/main/java/com/simcoder/uber/Customer/CustomerMapActivity.java:635
↓ 1 callers
Method
getDriverRatingString
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:157
↓ 1 callers
Method
getDuration
()
android/app/src/main/java/com/simcoder/uber/Objects/RideObject.java:468
↓ 1 callers
Method
getExpMonth
()
android/app/src/main/java/com/simcoder/uber/Objects/CardObject.java:45
↓ 1 callers
Method
getExpYear
()
android/app/src/main/java/com/simcoder/uber/Objects/CardObject.java:49
↓ 1 callers
Method
getId
()
android/app/src/main/java/com/simcoder/uber/Objects/PayoutObject.java:50
↓ 1 callers
Method
getImage
()
android/app/src/main/java/com/simcoder/uber/Objects/TypeObject.java:34
↓ 1 callers
Method
getLastDigits
()
android/app/src/main/java/com/simcoder/uber/Objects/CardObject.java:53
↓ 1 callers
Method
getLicense
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:118
↓ 1 callers
Method
getLicenseDash
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:148
↓ 1 callers
Method
getLocation
()
android/app/src/main/java/com/simcoder/uber/Objects/DriverObject.java:182
↓ 1 callers
Method
getName
()
android/app/src/main/java/com/simcoder/uber/Objects/CustomerObject.java:75
next →
1–100 of 355, ranked by callers