public class WifiDirectCalibrationFragment extends android.app.Fragment implements FileListener, SleepListener
Modifier and Type | Class and Description |
---|---|
class |
WifiDirectCalibrationFragment.CalibrationMessageAdapter
ArrayAdapter to manage the messages that are displayed in different colors depending
on how the message start (blue if the message start with - , red if it begin by warning ect...
|
static interface |
WifiDirectCalibrationFragment.MessageTarget
interface dertermining the target
|
Modifier and Type | Field and Description |
---|---|
boolean |
canCalibrate
determine if the device can calibrate
|
boolean |
hasAlreadyFinishedRecording
is set to true as soon as we stop recording locally
|
android.widget.RadioGroup |
rgApproach
radio group
|
android.widget.RadioButton |
robust_calibrate_radio
radio buttons to determine which type of calibration should be performed with regards to their performance
|
android.widget.RadioButton |
simple_calibrate_radio
radio buttons to determine which type of calibration should be performed with regards to their performance
|
java.util.List<FileTransferManager> |
tcptransferManagerList
list of socket manager used to commmunicate with other devices
|
Constructor and Description |
---|
WifiDirectCalibrationFragment() |
Modifier and Type | Method and Description |
---|---|
void |
clientSendSound()
Send the sound (the dvice is a client and not the wifi direct AP)
so the sound should be sent to the ap
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
View creation
|
void |
pushMessage(java.lang.String readMessage) |
void |
scheduleRecord(Meet meet,
long synchronised_when)
schedule the sound recording that has to be performed locally
|
void |
sendAnotherCalibration()
start another calibration
|
void |
sendHelloandConnexion()
send a message identifying the device and send the connexion graph
|
void |
sendOnlyConnexions()
Send a message containing only the connexion graph
|
long |
sendSchedulingInfo(int sec,
long offsetms)
send the order to start recording into sec seconds and return the date when it is scheduled
|
void |
setdiscoveryActivity(WiFiServiceDiscoveryActivity obj)
init method
|
void |
setTCPTransferManager(FileTransferManager obj)
init the transffer manager
|
void |
someoneReportedAwake()
is called when the sound has to be recorded, it starts recording the sound
|
void |
someoneReportedFileChange(int type)
is called when the recorded sound has been stored in a file, then the file is sent
|
void |
synchroniseSoundWithAP()
Synchronise the sound with the sound that has been provided by te ap
|
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroy, onDestroyOptionsMenu, onDestroyView, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, onTrimMemory, onViewCreated, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
public java.util.List<FileTransferManager> tcptransferManagerList
public boolean hasAlreadyFinishedRecording
public boolean canCalibrate
public android.widget.RadioGroup rgApproach
public android.widget.RadioButton simple_calibrate_radio
public android.widget.RadioButton robust_calibrate_radio
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
onCreateView
in class android.app.Fragment
public void sendHelloandConnexion()
public void sendOnlyConnexions()
public void sendAnotherCalibration()
public long sendSchedulingInfo(int sec, long offsetms)
sec
- delay used before recordingoffsetms
- delay offset before recordingpublic void scheduleRecord(Meet meet, long synchronised_when)
meet
- meeting informationsynchronised_when
- when to recordpublic void someoneReportedFileChange(int type)
someoneReportedFileChange
in interface FileListener
type
- public void clientSendSound()
public void synchroniseSoundWithAP()
public void someoneReportedAwake()
someoneReportedAwake
in interface SleepListener
public void setdiscoveryActivity(WiFiServiceDiscoveryActivity obj)
obj
- discovery activitypublic void setTCPTransferManager(FileTransferManager obj)
obj
- file transfer managerpublic void pushMessage(java.lang.String readMessage)