Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JimSeker/bluetooth
/ functions
Functions
314 in github.com/JimSeker/bluetooth
⨍
Functions
314
◇
Types & classes
52
↓ 30 callers
Method
mkmsg
(String str)
eclipse/blueToothDemo/src/edu/cs4730/btDemo/blueToothDemo.java:76
↓ 20 callers
Method
logthis
(String item)
blueToothDemo/app/src/main/java/edu/cs4730/btDemo/Client_Fragment.java:213
↓ 17 callers
Method
logthis
helper method to send strings to both the logcat and to a textview call logger.
AndroidBeaconLibraryDemo/app/src/main/java/edu/cs4730/androidbeaconlibrary/MainActivity.java:169
↓ 17 callers
Method
logthis
(String item)
blueToothDemo/app/src/main/java/edu/cs4730/btDemo/Server_Fragment.java:142
↓ 16 callers
Method
mkmsg
(String str)
eclipse/blueToothDemo/src/edu/cs4730/btDemo/Client_Fragment.java:51
↓ 16 callers
Method
sendmsg
simple method to send messages to the handler.
BLEscannerDemo/app/src/main/java/edu/cs4730/blescannerdemo/GattFragment.java:76
↓ 15 callers
Method
logthis
helper method to send strings to both the logcat and to a textview call logger.
AndroidBeaconLibraryDemo2/app/src/main/java/edu/cs4730/androidbeaconlibrarydemo2/MainActivity.java:146
↓ 14 callers
Method
mkmsg
(String str)
eclipse/blueToothDemo/src/edu/cs4730/btDemo/Server_Fragment.java:74
↓ 12 callers
Method
logthis
(String msg)
BluetoothLEperipheral/app/src/main/java/edu/cs4730/bluetoothleperipheral/MainActivity.java:117
↓ 12 callers
Method
logthis
(String msg)
blueToothDemo/app/src/main/java/edu/cs4730/btDemo/Help_Fragment.java:75
↓ 9 callers
Method
logthis
(String msg)
BLEscannerDemo/app/src/main/java/edu/cs4730/blescannerdemo/Help_Fragment.java:179
↓ 9 callers
Method
logthis
(String msg)
BluetoothLEDemo/app/src/main/java/edu/cs4730/bluetoothledemo/HelpFragment.java:120
↓ 8 callers
Method
logthis
(String msg)
BluetoothLEDemo/app/src/main/java/edu/cs4730/bluetoothledemo/DiscoverFragment.java:147
↓ 8 callers
Method
mkmsg
(String msg)
eclipse/blueToothDemo/src/edu/cs4730/btDemo/Help_Fragment.java:56
↓ 7 callers
Method
onResume
Tell the V9 input manager that it should start polling for disconnected devices. You can call this during onResume in your activity, although you migh
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerCompat.java:89
↓ 7 callers
Method
start
()
BLEscannerDemo/app/src/main/java/edu/cs4730/blescannerdemo/GattFragment.java:90
↓ 6 callers
Method
getCenteredAxis
(MotionEvent event, InputDevice device, int axis, int historyPos)
controller/app/src/main/java/com/example/controllersample/GameView.java:465
↓ 6 callers
Method
getShipForId
Uses the device descriptor to try to assign the same color to the same joystick. If there are two joysticks of the same type connected over USB, or th
controller/app/src/main/java/com/example/controllersample/GameView.java:249
↓ 5 callers
Method
setData
(List<BluetoothDevice> list)
BLEscannerDemo/app/src/main/java/edu/cs4730/blescannerdemo/myArrayAdapter.java:33
↓ 4 callers
Method
blend
(float alpha, int from, int to)
controller/app/src/main/java/com/example/controllersample/GameView.java:454
↓ 4 callers
Method
destroy
()
controller/app/src/main/java/com/example/controllersample/GameView.java:1034
↓ 4 callers
Method
setHeadingX
Sets the X component of the joystick heading value, defined by the platform as being from -1.0 (left) to 1.0 (right). This function is generally used
controller/app/src/main/java/com/example/controllersample/GameView.java:886
↓ 4 callers
Method
setHeadingY
Sets the Y component of the joystick heading value, defined by the platform as being from -1.0 (top) to 1.0 (bottom). This function is generally used
controller/app/src/main/java/com/example/controllersample/GameView.java:899
↓ 4 callers
Method
setVelocity
(float x, float y)
controller/app/src/main/java/com/example/controllersample/GameView.java:514
↓ 4 callers
Method
step
(float tau)
controller/app/src/main/java/com/example/controllersample/GameView.java:1006
↓ 3 callers
Method
logthis
(String msg)
BluetoothLEDemo/app/src/main/java/edu/cs4730/bluetoothledemo/AdvertiseFragment.java:118
↓ 3 callers
Method
polarX
(float radius)
controller/app/src/main/java/com/example/controllersample/GameView.java:938
↓ 3 callers
Method
polarY
(float radius)
controller/app/src/main/java/com/example/controllersample/GameView.java:942
↓ 3 callers
Method
pythag
(float x, float y)
controller/app/src/main/java/com/example/controllersample/GameView.java:450
↓ 3 callers
Method
setPaintARGBBlend
(Paint paint, float alpha, int a1, int r1, int g1, int b1, int a2, int r2, int g2, int
controller/app/src/main/java/com/example/controllersample/GameView.java:458
↓ 3 callers
Method
setPosition
(float x, float y)
controller/app/src/main/java/com/example/controllersample/GameView.java:509
↓ 3 callers
Method
setSize
(float size)
controller/app/src/main/java/com/example/controllersample/GameView.java:519
↓ 3 callers
Method
step
(long currentStepTime)
controller/app/src/main/java/com/example/controllersample/GameView.java:321
↓ 3 callers
Method
updateHeading
Converts the heading values from joystick devices to the polar representation of the heading angle if the magnitude of the heading is significant (> 0
controller/app/src/main/java/com/example/controllersample/GameView.java:923
↓ 2 callers
Method
collidesWith
(Sprite other)
controller/app/src/main/java/com/example/controllersample/GameView.java:531
↓ 2 callers
Method
distanceTo
(float x, float y)
controller/app/src/main/java/com/example/controllersample/GameView.java:523
↓ 2 callers
Method
getColor
()
controller/app/src/main/java/com/example/controllersample/GameView.java:1045
↓ 2 callers
Method
getInputDevice
Gets information about the input device with the specified id. @param id The device id @return The input device or null if not found
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerCompat.java:32
↓ 2 callers
Method
getInputDeviceIds
Gets the ids of all input devices in the system. @return The input device ids.
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerCompat.java:39
↓ 2 callers
Method
getVibrator
Gets the vibrator from the controller if it is present. Note that it would be easy to get the system vibrator here if the controller one is not presen
controller/app/src/main/java/com/example/controllersample/GameView.java:793
↓ 2 callers
Method
isFireKey
Any gamepad button + the spacebar or DPAD_CENTER will be used as the fire key. @param keyCode @return true of it's a fire key.
controller/app/src/main/java/com/example/controllersample/GameView.java:491
↓ 2 callers
Method
logthis
(String msg)
BLEscannerDemo/app/src/main/java/edu/cs4730/blescannerdemo/ListenerFragment.java:173
↓ 2 callers
Method
notifyListeners
(int why, int deviceId)
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerV9.java:132
↓ 2 callers
Method
onButtonSelected
Callback for when an item has been selected.
eclipse/blueToothDemo/src/edu/cs4730/btDemo/Help_Fragment.java:40
↓ 2 callers
Method
onGenericMotionEvent
Pass the motion events to the InputManagerCompat. This is used to optimize for polling for controllers. If you do not pass these events in, polling wi
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerCompat.java:73
↓ 2 callers
Method
onInputDeviceAdded
Called whenever the input manager detects that a device has been added. This will only be called in the V9 version when a motion event is detected. @
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerCompat.java:99
↓ 2 callers
Method
onInputDeviceChanged
Called whenever the properties of an input device have changed since they were last queried. This will not be called for the V9 version of the API. @
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerCompat.java:108
↓ 2 callers
Method
onInputDeviceRemoved
Called whenever the input manager detects that a device has been removed. For the V9 version, this can take some time depending on the poll rate. @pa
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerCompat.java:117
↓ 2 callers
Method
processJoystickInput
The ship directly handles joystick input. @param event @param historyPos
controller/app/src/main/java/com/example/controllersample/GameView.java:822
↓ 2 callers
Method
querypaired
()
eclipse/blueToothDemo/src/edu/cs4730/btDemo/Help_Fragment.java:88
↓ 2 callers
Method
querypaired
This method will query the bluetooth device and ask for a list of all paired devices. It will then display to the screen the name of the device and t
blueToothDemo/app/src/main/java/edu/cs4730/btDemo/Help_Fragment.java:106
↓ 2 callers
Method
registerInputDeviceListener
Registers an input device listener to receive notifications about when input devices are added, removed or changed. @param listener The listener to r
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerCompat.java:50
↓ 2 callers
Method
setHeading
Sets the heading as floating point values returned by a joystick. These values are normalized by the Android platform to be from -1.0 (left, top) to 1
controller/app/src/main/java/com/example/controllersample/GameView.java:912
↓ 2 callers
Method
setInputDevice
Set the game controller to be used to control the ship. @param dev the input device that will be controlling the ship
controller/app/src/main/java/com/example/controllersample/GameView.java:874
↓ 2 callers
Method
startbt
()
BLEscannerDemo/app/src/main/java/edu/cs4730/blescannerdemo/Help_Fragment.java:90
↓ 2 callers
Method
startbt
()
BluetoothLEDemo/app/src/main/java/edu/cs4730/bluetoothledemo/HelpFragment.java:75
↓ 2 callers
Method
startbt
()
blueToothDemo/app/src/main/java/edu/cs4730/btDemo/Help_Fragment.java:82
↓ 2 callers
Method
startexample
()
AndroidBeaconLibraryDemo/app/src/main/java/edu/cs4730/androidbeaconlibrary/MainActivity.java:105
↓ 2 callers
Method
startexample
Setup and start the observers here.
AndroidBeaconLibraryDemo2/app/src/main/java/edu/cs4730/androidbeaconlibrarydemo2/MainActivity.java:165
↓ 2 callers
Method
vibrateController
(int time)
controller/app/src/main/java/com/example/controllersample/GameView.java:802
↓ 2 callers
Method
wrapAtPlayfieldBoundary
()
controller/app/src/main/java/com/example/controllersample/GameView.java:593
↓ 1 callers
Method
accelerate
Uses the heading magnitude and direction to change the acceleration of the ship. In theory, this should be scaled according to the elapsed time. @par
controller/app/src/main/java/com/example/controllersample/GameView.java:993
↓ 1 callers
Method
advertise
()
BluetoothLEperipheral/app/src/main/java/edu/cs4730/bluetoothleperipheral/MainActivity.java:122
↓ 1 callers
Method
allPermissionsGranted
()
BLEscannerDemo/app/src/main/java/edu/cs4730/blescannerdemo/Help_Fragment.java:149
↓ 1 callers
Method
allPermissionsGranted
()
BluetoothLEperipheral/app/src/main/java/edu/cs4730/bluetoothleperipheral/MainActivity.java:232
↓ 1 callers
Method
allPermissionsGranted
()
AndroidBeaconLibraryDemo/app/src/main/java/edu/cs4730/androidbeaconlibrary/MainActivity.java:186
↓ 1 callers
Method
allPermissionsGranted
()
BluetoothLEDemo/app/src/main/java/edu/cs4730/bluetoothledemo/HelpFragment.java:136
↓ 1 callers
Method
allPermissionsGranted
()
blueToothDemo/app/src/main/java/edu/cs4730/btDemo/Help_Fragment.java:160
↓ 1 callers
Method
allPermissionsGranted
()
AndroidBeaconLibraryDemo2/app/src/main/java/edu/cs4730/androidbeaconlibrarydemo2/MainActivity.java:210
↓ 1 callers
Method
animateFrame
()
controller/app/src/main/java/com/example/controllersample/GameView.java:315
↓ 1 callers
Method
discover
()
BluetoothLEperipheral/app/src/main/java/edu/cs4730/bluetoothleperipheral/MainActivity.java:197
↓ 1 callers
Method
draw
(Canvas canvas)
controller/app/src/main/java/com/example/controllersample/GameView.java:1015
↓ 1 callers
Method
draw
(Canvas canvas)
controller/app/src/main/java/com/example/controllersample/GameView.java:1070
↓ 1 callers
Method
draw
(Canvas canvas)
controller/app/src/main/java/com/example/controllersample/GameView.java:1108
↓ 1 callers
Method
findControllersAndAttachShips
()
controller/app/src/main/java/com/example/controllersample/GameView.java:113
↓ 1 callers
Method
fire
()
controller/app/src/main/java/com/example/controllersample/GameView.java:737
↓ 1 callers
Method
getBeaconlist
()
AndroidBeaconLibraryDemo2/app/src/main/java/edu/cs4730/androidbeaconlibrarydemo2/myViewModel.java:39
↓ 1 callers
Method
getBulletInitialX
Gets the initial x coordinate for the bullet. @return the x coordinate of the bullet adjusted for the position and direction of the ship
controller/app/src/main/java/com/example/controllersample/GameView.java:952
↓ 1 callers
Method
getBulletInitialY
Gets the initial y coordinate for the bullet. @return the y coordinate of the bullet adjusted for the position and direction of the ship
controller/app/src/main/java/com/example/controllersample/GameView.java:962
↓ 1 callers
Method
getBulletVelocityX
Returns the bullet speed X component @return adjusted X component bullet speed for the velocity and direction of the ship
controller/app/src/main/java/com/example/controllersample/GameView.java:982
↓ 1 callers
Method
getBulletVelocityY
Returns the bullet speed Y component. @return adjusted Y component bullet speed for the velocity and direction of the ship
controller/app/src/main/java/com/example/controllersample/GameView.java:972
↓ 1 callers
Method
getDestroyAnimCycles
Returns the number of cycles to play the destruction animation. A destruction animation has a duration and a number of cycles to play it for, so we ca
controller/app/src/main/java/com/example/controllersample/GameView.java:584
↓ 1 callers
Method
getDestroyAnimDuration
Returns the duration of the destruction animation of the sprite in seconds. @return the float duration in seconds of the destruction animation
controller/app/src/main/java/com/example/controllersample/GameView.java:574
↓ 1 callers
Method
getDeviceEvent
(int messageType, int id, InputDeviceListener listener)
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerV9.java:154
↓ 1 callers
Method
getGameControllerIds
()
ControllerSimpleDemo/app/src/main/java/edu/cs4730/controllersimpledemo/MainActivity.java:143
↓ 1 callers
Method
getInputDeviceIds
()
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerV9.java:102
↓ 1 callers
Method
getInputManager
Constructs and returns a compatible InputManger @param context the Context that will be used to get the system service from @return a comp
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerCompat.java:132
↓ 1 callers
Method
getItemLD
()
AndroidBeaconLibraryDemo2/app/src/main/java/edu/cs4730/androidbeaconlibrarydemo2/myViewModel.java:25
↓ 1 callers
Method
getNextShipColor
Returns the next ship color in the sequence. Very simple. Does not in any way guarantee that there are not multiple ships with the same color on the s
controller/app/src/main/java/com/example/controllersample/GameView.java:625
↓ 1 callers
Method
isDestroyed
()
controller/app/src/main/java/com/example/controllersample/GameView.java:538
↓ 1 callers
Method
isOutsidePlayfield
()
controller/app/src/main/java/com/example/controllersample/GameView.java:586
↓ 1 callers
Method
logthis
(String msg)
BLEscannerDemo/app/src/main/java/edu/cs4730/blescannerdemo/GattFragment.java:166
↓ 1 callers
Method
onButtonSelected
(int id)
BLEscannerDemo/app/src/main/java/edu/cs4730/blescannerdemo/Help_Fragment.java:49
↓ 1 callers
Method
onDeviceSelected
Callback for when an item has been selected.
BLEscannerDemo/app/src/main/java/edu/cs4730/blescannerdemo/ListenerFragment.java:63
↓ 1 callers
Method
onGenericMotionEvent
(MotionEvent event)
controller/app/src/main/java/com/example/controllersample/GameView.java:855
↓ 1 callers
Method
onKeyDown
(int keyCode, KeyEvent event)
controller/app/src/main/java/com/example/controllersample/GameView.java:748
↓ 1 callers
Method
onKeyUp
(int keyCode, KeyEvent event)
controller/app/src/main/java/com/example/controllersample/GameView.java:698
↓ 1 callers
Method
onPause
Tell the V9 input manager that it should stop polling for disconnected devices. You can call this during onPause in your activity, although you might
controller/app/src/main/java/com/example/inputmanagercompat/InputManagerCompat.java:81
↓ 1 callers
Method
querypaired
()
eclipse/blueToothDemo/src/edu/cs4730/btDemo/Client_Fragment.java:99
↓ 1 callers
Method
querypaired
()
eclipse/blueToothDemo/src/edu/cs4730/btDemo/blueToothDemo.java:102
next →
1–100 of 314, ranked by callers