Classes and Methods

Index structure

  • package name
    • <public unless noted> ClassName.java
      • Constructor if not empty
      • <public/private> <object returned> methodName(arguments)
      • subClass
        • subClass method(arguments)
________________________________________________________________________________________________
  • command_files
    • Command
      • <getter and setter for each command element>
      • public String get<element value>()
      • public void set<a defined element>(String <the element value>)
    • CommandInfo
      • public Command getCommandByName(String name)
      • public Command getCommandById(String id)
    • CommandReflection
      • public boolean byName(String cmdName)
      • public boolean byId(String cmdId)
      • public String getPrep()
      • public String doRun(String pcol)
      • public String doPost(String pcol)
      • public void makeCommands(boolean log)
      • private void makeCmds(boolean log, String[] cmds)
      • private Command makeCommand(String pkgName)
    • StaticValues
      • private StaticValues() {} //private constructor prevents new instantiation
  • commands_builtin
  • command_support
    • BrowserActivity
      • public void connectToPage()
      • public void actionPerformed(ActionEvent e)
    • CommandUserAction
      • public CommandUserAction(String method)
      • public void fileOp()
    • DeviceLocation
      • public interface LocationCallback
      • public static void requestLocation(final Context context, final LocationCallback callback)
      • private static boolean isLocationEnabled(Context context)
    • FileSelectActivity
      • public void makeSelectFileGui()
      • private void showFiles()
      • public void actionPerformed(ActionEvent e)
      • private void fileTransfer()
      • private void fileDelete()
      • public List<String> getFileList(String dir)
      • public String getDirectoryPath(String dir)
      • private void dirSelected()
      • private void clearText()
      • private void onBroadcast(final String m)
      • private boolean fileListValid(String fileString)
      • private void cleanUI()
      • private void textAppend(String s)
      • private void btnsDisable()
      • private void btnsEnable()
      • private void restoreRunningGUI()
    • FileStreamClient
      • public void client(String host, int port, String direction, final ClientStreamResult callback)
      • public interface ClientStreamResult
      • public void readFileWriteSocket()
      • public void readSocketWriteFile()
    • FileStreamServer
      • public void server(int port, String direction, final ServerStreamResult callback)
      • public interface ServerStreamResult
      • public void readSocketWriteFile()
      • public void readFileWriteSocket()
    • SpeechOutActivity
      • public void speechOut (final String sayIt)
    • VoiceControlActivity
      • public void onActivityResult(int requestCode, int resultCode, Intent data)
      • private String findColor(String s)
      • private String findCommand(String s)
      • private void sayit(String text)
  • crypto
    • AES_CBC
      • public String cryptoTest(String payload)
      • public String encrypt(String httpPayload, String b64iv)
      • public String decrypt(String encrypted, String b64iv)
      • public String makeKey()
      • <Methods for test/debug only>
      • private String encrypt(String httpPayload, String sKey, String b64iv)
      • public String decrypt(String encrypted, String sKey, String b64iv)
      • private void print_key_iv(byte[] aes_key, byte[] aes_iv, String from)
      • public void testCrypto()
  • databaseOps
    • DbHelper
      • Connection connectToDataBase() throws SQLException
      • public String createDatabase()
    • DbInfo
      • public DbInfo() throws SQLException
      • public void insertSensorData(String date, String devName, String data) throws SQLException
      • public ResultSet rawQuery(String sqlCmd) throws Exception
      • public String getDeviceSensorData(String devName) throws SQLException
      • public List<SensorData> getDeviceSensorRows(String devName) throws SQLException
      • private void closeAll() throws SQLException
    • DbSchema
      • private DbSchema() {} //private constructor prevents new instantiation
    • LineChart
      • private LineChart(List<Double> values)
      • protected void paintComponent(Graphics g)
      • private double getMinValue()
      • private double getMaxValue()
      • public void showDatabase(String cmdResp, String dOf, String dOn)
    • SensorData
      • public String getmDate()
      • public void setmDate(String mDate)
      • public String getmDevName()
      • public void setmDevName(String mDevName)
      • public String getmData()
      • public void setmData(String mData)
  • device_files
    • Device
      • <getter and setter for each device element>
      • public String get<element value>()
      • public void set<a defined element>(String <the element value>)
    • DeviceInfo
      • public Device getDeviceByName(String name)
      • public Device getDeviceById(String id)
      • public Device getDeviceByIP(String address)
    • DeviceUtils
      • public void makeDevices() throws IOException
      • public String nextDevId()
      • public String deviceToCsv(Device d)
      • public Device csvToDevice(String csv)
      • public boolean deviceChanged() throws IOException
      • public Device thisDeviceNow(Device device)
      • public boolean devHasInet(Device d)
      • public boolean devOnLan(Device d)
      • public boolean devIsMobile(Device d)
      • public boolean devIsHome(Device d)
      • public boolean devIsStatic(Device d)
      • public boolean devIsLanHome(Device d)
      • public boolean devIsLanAway(Device d)
      • public boolean isDevJar(Device d)
      • public boolean isDevApk(Device d)
      • public boolean isDevBin(Device d)
      • public boolean isDevIpa(Device d)
      • public String setBit(String devstat, int pos)
      • public String clrBit(String devstat, int pos)
      • private boolean isBitSet(String devstat, int pos)
      • public void logDevStatus(Device d)
  • galixi_server_parser
    • GalixiServer implements Runnable
      • public GalixiServer(int port, int poolSize) throws IOException
      • public void startServer()
      • public boolean isAlive()
      • private void stopServer()
      • private void shutdownAndAwaitTermination(ExecutorService pool)
      • public void run()
      • class ServerHandler implements Runnable
        • ServerHandler(Socket socket)
        • public void run()
        • private void serverReply(String[] cmdGlxy)
        • private void securityFail(String message)
        • private void closeReader()
    • GalixiPcol
      • public GalixiPcol(@Nonnull Command cmd, @Nonnull Device toDev, @Nonnull String pLoad)
      • public GalixiPcol(@Nonnull Command cmd, @Nonnull Device toDev, @Nonnull String pLoad, @Nonnull String foot)
      • <getter and setter for each element>
      • public static String getCommandFromString(String s)
      • public static String getFromdevFromString(String s)
      • public static String getTodevFromString(String s)
      • public static String getPlenFromString(String s)
      • public static String getPayloadFromString(String s)
      • public static String getFootFromString(String s)
      • public String toString() - NOTE: this toString() overrides Object.toString()
      • public GalixiPcol pcolFromString(String s) - Uses private method pcolFromStrings to verify each element. Returns null if fail.
      • private GalixiPcol pcolFromStrings(String cmd, String fromdev, String todev, String pldlen, String payload, String foot) throws NebulaException
      • public void logPcol(String tag)
    • GalixiParser
      • public interface ParserResult
      • void parser(final String glxi, final ParserResult callback)
      • private void doCommand(String cmdid)
    • GalixiReroute
      • void reroutePost(final String glxPcol, final Socket socket, final boolean usesCrypto)
      • private String rerouteMjpegStream(Device localToDev, String localReply)
      • void rerouteGet(final List<String> request, final String devTo, final Socket socket)
      • private String sendGet(String addrPort) throws Exception
      • private class ConnectThread implements Runnable
        • public void run()
      • public class RrStreamThread implements Runnable
        • RrStreamThread(Socket rd_socket, Socket wr_socket)
        • public void run()
  • localBroadcast
    • BroadcastOps
      • public void subscribe(String channelName, Object subscriber)
      • public void unsubscribe(Object subscriber, String channelName)
      • public void publish(String channelName, String message)
      • <T> void deliverMessage(T subscriber, Method method, String message)
    • NebulaBroadcast
      • static void init()
    • OnBroadcast public @interface OnBroadcast
  • mjpeg_stream
    • MjpegClientActivity
      • public void makeVideoGui()
      • private void stopVideo()
      • private class ConnectThread implements Runnable
      • public void run()
      • public class ClientThread implements Runnable
      • ClientThread(Socket socket)
      • public void run()
      • private BufferedImage rotateImage(BufferedImage img, double angle)
      • protected void paintComponent(Graphics g)
    • MjpegServerActivity
      • private void onBroadcast(final String s)
      • private void closer()
      • private Camera getCameraInstance(int cameraID)
      • public class ServerStreamManager implements Runnable
        • ServerStreamManager()
        • public void run()
      • public class MjpegStreamThread implements Runnable
        • MjpegStreamThread(Socket s)
        • public void run()
      • private void sleepHere(int time)
    • ServerSurface
      • public ServerSurface(Context context)
      • public ServerSurface(Context context, Camera camera)
      • public void surfaceCreated(SurfaceHolder holder)
      • public void surfaceDestroyed(SurfaceHolder holder)
      • public void surfaceChanged(SurfaceHolder holder, int format, int w, int h)
      • public void onPreviewFrame(byte[] data, Camera camera)
    • VerifyCamera
      • public String verifyCamera(Context context, String facing)
  • networking
    • NetworkChanged
      • public void startScheduleTask()
      • private void checkNetworkForChange()
      • public void stopNetTest()
    • NetworkConditions
      • public void checkNetwork(boolean log)
      • public String getLocalIpAddress()
      • private String getPublicIP()
      • private String httpPubIP() throws IOException
      • private boolean pingGoogle()
    • SendCommand
      • public static int getNetConMode()
      • public void smsOp(Command command, Device devTo, String pload)
      • public String clientOp(Command command, Device devTo, String pload)
      • public String[] rerouteOp(String commandId, String fromDevId, String toDevId, String pload)
      • public String installOp(String commandId, String addrPort)
      • private String send(final String glxPcol)
      • private String sendHttp(String to_url, String method, String payload) throws IOException
      • public String commandSend()
  • sms_files
    • EmailCredentials
      • public EmailCredentials(Context context) //Builds AlertDialog
      • private void logCreds()
      • public String mobileConnection()
    • SmsBroadcastReceiver extends BroadcastReceiver
      • public void onReceive(final Context context, Intent intent)
    • SmsClient
      • public SmsClient(final Device device, final String glxyCmd)
      • public void smsUserClient()
      • public void smsGmailClient()
      • private void sendMessage(Session session)
      • private void checkForResponse()
    • SmsProcessorActivity extends Activity
      • protected void onCreate(Bundle savedInstanceState) //No user screen, SMS logic in onCreate
      • private String decryptSms (String sms)
      • private boolean commandTest(String glxPayload)
      • private void testDevOp(char devop, Device d)
      • private void SMSfail(String reason)
  • startup_files
    • Alert
      • public Alert(boolean fatal, String message)
      • private void alertAbandon(String message)
      • private void alertWarning(String message)
      • private void addComponents(Container frame, String message)
      • public void actionPerformed(ActionEvent e)
    • Installation
      • void makeInstallGui()
      • private void textAppend(String s)
      • public void actionPerformed(ActionEvent e)
      • private void makeThisDevice()
      • private boolean getDevice1ip()
      • private boolean makeDatabaseAndDevices(String rawDB)
      • private boolean createVPNfiles()
      • private boolean createFileXferDirs()
      • private boolean writeVPNfiles()
      • private void startOver()
    • Running
      • public void makeRunningGui()
      • private void serverStart()
      • private boolean serverThreadRunning()
      • private void commandSend()
      • private static void txtAppend(String message)
      • private void clearText()
      • public static void updateUI()
      • private static void setSendBtnText()
      • private void testThis()
    • Startup
      • public void startup()
  • Utils
    • FileUtils
      • public void writeFile(String fileName, String data) throws IOException
      • public String readFile(String fileName) throws IOException
      • public void appendFile(String fileName, String data) throws IOException
      • public void deleteDevByName(String name) throws IOException
      • public void modifyDeviceInFile(String devCsv) throws IOException
      • public String databaseToString()
      • public String getFileChecksum(String filePath)
      • private String getChecksum(MessageDigest digest, File file) throws IOException
      • public String testVPNfiles(boolean log)
      • public void clearAppData()
      • private boolean removeDirectory(File directory)
    • NebLog
      • public static void a(String tag, String message)
      • public static void d(String tag, String message)
      • public static void e(String tag, String message)
      • public static void w(String tag, String message)
    • NebulaException extends Exception
      • public NebulaException(String errMsg)
      • super(errMsg)
    • Utils
      • public String HexStringFromInt(int i)
      • public int HexStringToInt(String s)
      • public String[] runExecCommand(String exCmd, long timeout)
      • private static class ProcTimer extends Thread
        • private ProcTimer(Process process)
        • public void run()
      • public String DateTime()
      • public boolean portNotValid(final String portnum)
      • public boolean isIPv4Address(final String input)
      • private boolean isIPv6StdAddress(final String input)
      • private boolean isIPv6HexCompressedAddress(final String input)
      • public boolean isIPv6Address(final String input)
      • public boolean isAddrLAN(String addr)
      • public boolean isAddrStatic(String addr)

Main //Only class outside a package