Skip navigation links
A C D E F G H I L M N O P R S T U V 

A

AndroidMainThread - Class in com.github.pedrovgs.lynx.model
MainThread implementation based on Android Handler and Looper classes.
AndroidMainThread() - Constructor for class com.github.pedrovgs.lynx.model.AndroidMainThread
 

C

clear() - Method in class com.github.pedrovgs.lynx.LynxView
Removes all the traces rendered in the ListView.
clear() - Method in interface com.github.pedrovgs.lynx.presenter.LynxPresenter.View
 
clone() - Method in class com.github.pedrovgs.lynx.LynxConfig
 
clone() - Method in class com.github.pedrovgs.lynx.model.Logcat
 
com.github.pedrovgs.lynx - package com.github.pedrovgs.lynx
 
com.github.pedrovgs.lynx.exception - package com.github.pedrovgs.lynx.exception
 
com.github.pedrovgs.lynx.model - package com.github.pedrovgs.lynx.model
 
com.github.pedrovgs.lynx.presenter - package com.github.pedrovgs.lynx.presenter
 
com.github.pedrovgs.lynx.renderer - package com.github.pedrovgs.lynx.renderer
 

D

disableAutoScroll() - Method in class com.github.pedrovgs.lynx.LynxView
 
disableAutoScroll() - Method in interface com.github.pedrovgs.lynx.presenter.LynxPresenter.View
 

E

enableAutoScroll() - Method in class com.github.pedrovgs.lynx.LynxView
 
enableAutoScroll() - Method in interface com.github.pedrovgs.lynx.presenter.LynxPresenter.View
 
equals(Object) - Method in class com.github.pedrovgs.lynx.LynxConfig
 
equals(Object) - Method in class com.github.pedrovgs.lynx.model.Trace
 

F

fromString(String) - Static method in class com.github.pedrovgs.lynx.model.Trace
Factory method used to create a Trace instance from a String.

G

getConfig() - Method in class com.github.pedrovgs.lynx.model.Lynx
Returns a copy of the current LynxConfig object.
getCurrentTimeMillis() - Method in class com.github.pedrovgs.lynx.model.TimeProvider
 
getCurrentTraces() - Method in class com.github.pedrovgs.lynx.presenter.LynxPresenter
Returns a list of the current traces stored in this presenter.
getFilter() - Method in class com.github.pedrovgs.lynx.LynxConfig
 
getFilterTraceLevel() - Method in class com.github.pedrovgs.lynx.LynxConfig
 
getIntent(Context) - Static method in class com.github.pedrovgs.lynx.LynxActivity
Generates an Intent to start LynxActivity with a default LynxConfig object as configuration.
getIntent(Context, LynxConfig) - Static method in class com.github.pedrovgs.lynx.LynxActivity
Generates an Intent to start LynxActivity with a LynxConfig configuration passed as parameter.
getLevel() - Method in class com.github.pedrovgs.lynx.model.Trace
 
getListener() - Method in class com.github.pedrovgs.lynx.model.Logcat
Obtains the current Logcat listener.
getLynxConfig() - Method in class com.github.pedrovgs.lynx.LynxView
Returns the current LynxConfig object used.
getMaxNumberOfTracesToShow() - Method in class com.github.pedrovgs.lynx.LynxConfig
 
getMessage() - Method in class com.github.pedrovgs.lynx.model.Trace
 
getPrototypeClass(Trace) - Method in class com.github.pedrovgs.lynx.renderer.TraceRendererBuilder
 
getSamplingRate() - Method in class com.github.pedrovgs.lynx.LynxConfig
 
getTextSizeInPx() - Method in class com.github.pedrovgs.lynx.LynxConfig
 
getTraceLevel(char) - Static method in enum com.github.pedrovgs.lynx.model.TraceLevel
 
getValue() - Method in enum com.github.pedrovgs.lynx.model.TraceLevel
 

H

hasFilter() - Method in class com.github.pedrovgs.lynx.LynxConfig
 
hashCode() - Method in class com.github.pedrovgs.lynx.LynxConfig
 
hashCode() - Method in class com.github.pedrovgs.lynx.model.Trace
 
hasTextSizeInPx() - Method in class com.github.pedrovgs.lynx.LynxConfig
 

I

IllegalTraceException - Exception in com.github.pedrovgs.lynx.exception
Custom exception created to notify when a Trace object is created with an invalid source.
IllegalTraceException(String) - Constructor for exception com.github.pedrovgs.lynx.exception.IllegalTraceException
 
init() - Method in class com.github.pedrovgs.lynx.LynxShakeDetector
Starts listening shakes to open LynxActivity if a shake is detected and if the ShakeDetector is enabled, with a default Lynx configuration.
init(LynxConfig) - Method in class com.github.pedrovgs.lynx.LynxShakeDetector
Starts listening shakes to open LynxActivity if a shake is detected and if the ShakeDetector is enabled.

L

Logcat - Class in com.github.pedrovgs.lynx.model
Logcat abstraction created to be able to read from the device log output.
Logcat() - Constructor for class com.github.pedrovgs.lynx.model.Logcat
 
Lynx - Class in com.github.pedrovgs.lynx.model
Main business logic class for this project.
Lynx(Logcat, MainThread, TimeProvider) - Constructor for class com.github.pedrovgs.lynx.model.Lynx
 
Lynx.Listener - Interface in com.github.pedrovgs.lynx.model
 
LynxActivity - Class in com.github.pedrovgs.lynx
Activity created to show a LynxView with "match_parent" configuration for LynxView "layout_height" and "layout_width" attributes.
LynxActivity() - Constructor for class com.github.pedrovgs.lynx.LynxActivity
 
LynxConfig - Class in com.github.pedrovgs.lynx
Lynx configuration parameters used to open main activity.
LynxConfig() - Constructor for class com.github.pedrovgs.lynx.LynxConfig
 
LynxPresenter - Class in com.github.pedrovgs.lynx.presenter
Presenter created to decouple Lynx library view implementations from Lynx model.
LynxPresenter(Lynx, LynxPresenter.View, int) - Constructor for class com.github.pedrovgs.lynx.presenter.LynxPresenter
 
LynxPresenter.View - Interface in com.github.pedrovgs.lynx.presenter
 
LynxShakeDetector - Class in com.github.pedrovgs.lynx
Identifies when the user has shaken the device to open LynxActivity.
LynxShakeDetector(Context) - Constructor for class com.github.pedrovgs.lynx.LynxShakeDetector
 
LynxView - Class in com.github.pedrovgs.lynx
Main library view.
LynxView(Context) - Constructor for class com.github.pedrovgs.lynx.LynxView
 
LynxView(Context, AttributeSet) - Constructor for class com.github.pedrovgs.lynx.LynxView
 
LynxView(Context, AttributeSet, int) - Constructor for class com.github.pedrovgs.lynx.LynxView
 

M

MainThread - Interface in com.github.pedrovgs.lynx.model
Abstraction created to represent the application main thread.
MIN_TRACE_SIZE - Static variable in class com.github.pedrovgs.lynx.model.Trace
 

N

notifyShareTracesFailed() - Method in class com.github.pedrovgs.lynx.LynxView
 
notifyShareTracesFailed() - Method in interface com.github.pedrovgs.lynx.presenter.LynxPresenter.View
 

O

onAttachedToWindow() - Method in class com.github.pedrovgs.lynx.LynxView
Initializes LynxPresenter if LynxView is visible when is attached to the window.
onCreate(Bundle) - Method in class com.github.pedrovgs.lynx.LynxActivity
 
onDestroy() - Method in class com.github.pedrovgs.lynx.LynxActivity
 
onDetachedFromWindow() - Method in class com.github.pedrovgs.lynx.LynxView
Stops LynxPresenter when LynxView is detached from the window.
onNewTraces(List<Trace>) - Method in interface com.github.pedrovgs.lynx.model.Lynx.Listener
 
onNewTraces(List<Trace>) - Method in class com.github.pedrovgs.lynx.presenter.LynxPresenter
Given a list of Trace objects to show, updates the buffer of traces and refresh the view.
onScrollToPosition(int) - Method in class com.github.pedrovgs.lynx.presenter.LynxPresenter
Based on the int passed as parameter changes auto scroll feature configuration to enable/disabled.
onShareButtonClicked() - Method in class com.github.pedrovgs.lynx.presenter.LynxPresenter
Generates a plain representation of all the Trace objects this presenter has stored and share them to other applications.
onVisibilityChanged(View, int) - Method in class com.github.pedrovgs.lynx.LynxView
Initializes or stops LynxPresenter based on visibility changes.

P

pause() - Method in class com.github.pedrovgs.lynx.presenter.LynxPresenter
Stops presenter lifecycle if it was previously initialized.
post(Runnable) - Method in class com.github.pedrovgs.lynx.model.AndroidMainThread
 
post(Runnable) - Method in interface com.github.pedrovgs.lynx.model.MainThread
 

R

registerListener(Lynx.Listener) - Method in class com.github.pedrovgs.lynx.model.Lynx
Adds a Listener to the listeners collection to be notified with new Trace objects.
restart() - Method in class com.github.pedrovgs.lynx.model.Lynx
Stops the configured Logcat dependency and creates a clone to restart using Logcat and LogcatListener configured previously.
resume() - Method in class com.github.pedrovgs.lynx.presenter.LynxPresenter
Initializes presenter lifecycle if it wasn't initialized before.
run() - Method in class com.github.pedrovgs.lynx.model.Logcat
Starts reading traces from the application logcat and notifying listeners if needed.

S

setConfig(LynxConfig) - Method in class com.github.pedrovgs.lynx.model.Lynx
Indicates a custom LynxConfig object.
setFilter(String) - Method in class com.github.pedrovgs.lynx.LynxConfig
 
setFilterTraceLevel(TraceLevel) - Method in class com.github.pedrovgs.lynx.LynxConfig
 
setListener(Logcat.Listener) - Method in class com.github.pedrovgs.lynx.model.Logcat
Configures a listener to be notified with new traces read from the application logcat.
setLynxConfig(LynxConfig) - Method in class com.github.pedrovgs.lynx.LynxView
Given a valid LynxConfig object update all the dependencies to apply this new configuration.
setLynxConfig(LynxConfig) - Method in class com.github.pedrovgs.lynx.presenter.LynxPresenter
Updates and applies a new lynx configuration based on the LynxConfig object passed as parameter.
setMaxNumberOfTracesToShow(int) - Method in class com.github.pedrovgs.lynx.LynxConfig
 
setSamplingRate(int) - Method in class com.github.pedrovgs.lynx.LynxConfig
 
setTextSizeInPx(float) - Method in class com.github.pedrovgs.lynx.LynxConfig
 
shareTraces(String) - Method in class com.github.pedrovgs.lynx.LynxView
Uses an intent to share content and given one String with all the information related to the List of traces shares this information with other applications.
shareTraces(String) - Method in interface com.github.pedrovgs.lynx.presenter.LynxPresenter.View
 
showTraces(List<Trace>, int) - Method in class com.github.pedrovgs.lynx.LynxView
Given a List<Trace> updates the ListView adapter with this information and keeps the scroll position if needed.
showTraces(List<Trace>, int) - Method in interface com.github.pedrovgs.lynx.presenter.LynxPresenter.View
 
startReading() - Method in class com.github.pedrovgs.lynx.model.Lynx
Configures a Logcat.Listener and initialize Logcat dependency to read traces from the OS log.
stopReading() - Method in class com.github.pedrovgs.lynx.model.Logcat
Stops reading from the application logcat and notifying listeners.
stopReading() - Method in class com.github.pedrovgs.lynx.model.Lynx
Stops Logcat dependency to stop receiving logcat traces.

T

TimeProvider - Class in com.github.pedrovgs.lynx.model
Class created to add testability in terms of time usage.
TimeProvider() - Constructor for class com.github.pedrovgs.lynx.model.TimeProvider
 
toString() - Method in class com.github.pedrovgs.lynx.LynxConfig
 
toString() - Method in class com.github.pedrovgs.lynx.model.Trace
 
Trace - Class in com.github.pedrovgs.lynx.model
Logcat trace representation.
Trace(TraceLevel, String) - Constructor for class com.github.pedrovgs.lynx.model.Trace
 
TRACE_LEVEL_INDEX - Static variable in class com.github.pedrovgs.lynx.model.Trace
 
TraceLevel - Enum in com.github.pedrovgs.lynx.model
Logcat trace levels used to indicate the trace importance.
TraceRendererBuilder - Class in com.github.pedrovgs.lynx.renderer
Renderer builder implementation created to return Renderer<Trace> instances based on the trace level.
TraceRendererBuilder(LynxConfig) - Constructor for class com.github.pedrovgs.lynx.renderer.TraceRendererBuilder
 

U

unregisterListener(Lynx.Listener) - Method in class com.github.pedrovgs.lynx.model.Lynx
Removes a Listener to the listeners collection.
updateFilter(String) - Method in class com.github.pedrovgs.lynx.presenter.LynxPresenter
Updates the filter used to know which Trace objects we have to show in the UI.
updateFilterTraceLevel(TraceLevel) - Method in class com.github.pedrovgs.lynx.presenter.LynxPresenter
 

V

valueOf(String) - Static method in enum com.github.pedrovgs.lynx.model.TraceLevel
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.pedrovgs.lynx.model.TraceLevel
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E F G H I L M N O P R S T U V 
Skip navigation links