A B C D E F G H I J K L M N O P R S T U V W 

S

saveCache(String, SimpleCache<K, V>) - Static method in class cn.trinea.android.common.service.impl.SimpleCache
save cache to file, the data of CacheObject should can be serializabled
saveDataToDb(Context, String) - Method in class cn.trinea.android.common.service.impl.ImageCache
delete all rows in db whose tag is same to tag at first, and insert all data in this cache to db Attentions: If tag is null or empty, throws exception Will delete all rows in db whose tag is same to tag at first You can use ImageCache.initData(Context, String) or ImageCache.loadDataFromDb(Context, String) to init data when app start
saveDataToDb(Context, String) - Method in class cn.trinea.android.common.service.impl.ImageSDCardCache
delete all rows in db whose tag is same to tag at first, and insert all data in imageSDCardCache to db Attentions: If tag is null or empty, throws exception Will delete all rows in db whose tag is same to tag at first You can use ImageSDCardCache.initData(Context, String) or ImageSDCardCache.loadDataFromDb(Context, String) to init data when app start
saveDataToDb(Context, ImageSDCardCache, String) - Static method in class cn.trinea.android.common.service.impl.ImageSDCardCache
delete all rows in db whose tag is same to tag at first, and insert all data in imageSDCardCache to db Attentions: If imageSDCardCache is null, throws exception If tag is null or empty, throws exception Will delete all rows in db whose tag is same to tag at first You can use ImageSDCardCache.initData(Context, String) or ImageSDCardCache.loadDataFromDb(Context, ImageSDCardCache, String) to init data when app start
scaleImage(Bitmap, float, float) - Static method in class cn.trinea.android.common.util.ImageUtils
scale image
scaleImageTo(Bitmap, int, int) - Static method in class cn.trinea.android.common.util.ImageUtils
scale image
ScreenUtils - Class in cn.trinea.android.common.util
ScreenUtils() - Constructor for class cn.trinea.android.common.util.ScreenUtils
 
scrollTo(int) - Method in class cn.trinea.android.common.view.HorizontalListView
 
serialization(String, Object) - Static method in class cn.trinea.android.common.util.SerializeUtils
serialize to file
SerializeUtils - Class in cn.trinea.android.common.util
Serialize Utils
SerializeUtils() - Constructor for class cn.trinea.android.common.util.SerializeUtils
 
setAbsListViewHeightBasedOnChildren(AbsListView) - Static method in class cn.trinea.android.common.util.ViewUtils
set AbsListView height which is calculated by getAbsListViewHeightBasedOnChildren(AbsListView)
setAdapter(ListAdapter) - Method in class cn.trinea.android.common.view.DropDownListView
 
setAdapter(ListAdapter) - Method in class cn.trinea.android.common.view.HorizontalListView
 
setAllowedNetworkTypes(int) - Method in class cn.trinea.android.common.service.impl.ImageCache
 
setAllowedNetworkTypes(int) - Method in class cn.trinea.android.common.service.impl.PreloadDataCache
Restrict the types of networks over which this data can get.
setAutoLoadOnBottom(boolean) - Method in class cn.trinea.android.common.view.DropDownListView
set whether auto load when on bottom
setBackwardCacheNumber(int) - Method in class cn.trinea.android.common.service.impl.ImageCache
 
setBackwardCacheNumber(int) - Method in class cn.trinea.android.common.service.impl.PreloadDataCache
set count for preload backward, default is PreloadDataCache.DEFAULT_BACKWARD_CACHE_NUMBER
setCacheFolder(String) - Method in class cn.trinea.android.common.service.impl.ImageCache
set cache folder path which be used when saving images, default is ImageCache.DEFAULT_CACHE_FOLDER
setCacheFolder(String) - Method in class cn.trinea.android.common.service.impl.ImageSDCardCache
set cache folder path which be used when saving images, default is ImageSDCardCache.DEFAULT_CACHE_FOLDER
setCacheFullRemoveType(CacheFullRemoveType<V>) - Method in class cn.trinea.android.common.service.impl.SimpleCache
set remove type when cache is full
setCacheFullRemoveTypeOfSecondaryCache(CacheFullRemoveType<String>) - Method in class cn.trinea.android.common.service.impl.ImageCache
set remove type when secondary cache is full
setCheckNetwork(boolean) - Method in class cn.trinea.android.common.service.impl.ImageCache
 
setCheckNetwork(boolean) - Method in class cn.trinea.android.common.service.impl.PreloadDataCache
set whether to check the network at first when get data, used when PreloadDataCache.checkIsNetworkTypeAllowed()
setCompressListener(ImageCache.CompressListener) - Method in class cn.trinea.android.common.service.impl.ImageCache
set compressListener Attentions: if this function is set, the function #setCompressSize(String) is not work
setCompressSize(int) - Method in class cn.trinea.android.common.service.impl.ImageCache
set image compress scale Attentions: if ImageCache.setCompressListener(CompressListener) is set, this function is not work
setConnectTimeout(int) - Method in class cn.trinea.android.common.entity.HttpRequest
 
setContext(Context) - Method in class cn.trinea.android.common.service.impl.ImageCache
 
setContext(Context) - Method in class cn.trinea.android.common.service.impl.PreloadDataCache
setData(V) - Method in class cn.trinea.android.common.entity.CacheObject
Set data
setDropDownStyle(boolean) - Method in class cn.trinea.android.common.view.DropDownListView
 
setEnterTime(long) - Method in class cn.trinea.android.common.entity.CacheObject
Set time first put into cache, in mills
setExpired(boolean) - Method in class cn.trinea.android.common.entity.CacheObject
Set whether has expired, default is false
setExpiredTime(long) - Method in class cn.trinea.android.common.entity.HttpResponse
set expired time in millis
setFileExtension(String) - Method in class cn.trinea.android.common.service.impl.FileNameRuleImageUrl
 
setFileNameRule(FileNameRule) - Method in class cn.trinea.android.common.service.impl.ImageCache
set file name rule which be used when saving images, default is FileNameRuleImageUrl
setFileNameRule(FileNameRule) - Method in class cn.trinea.android.common.service.impl.ImageSDCardCache
set file name rule which be used when saving images, default is FileNameRuleImageUrl
setFooterDefaultText(String) - Method in class cn.trinea.android.common.view.DropDownListView
set footer default text, default is R.string.drop_down_list_footer_default_text
setFooterLoadingText(String) - Method in class cn.trinea.android.common.view.DropDownListView
set footer loading text, default is R.string.drop_down_list_footer_loading_text
setFooterNoMoreText(String) - Method in class cn.trinea.android.common.view.DropDownListView
set footer no more text, default is R.string.drop_down_list_footer_no_more_text
setForever(boolean) - Method in class cn.trinea.android.common.entity.CacheObject
Set whether is valid forever, default is false
setForwardCacheNumber(int) - Method in class cn.trinea.android.common.service.impl.ImageCache
 
setForwardCacheNumber(int) - Method in class cn.trinea.android.common.service.impl.PreloadDataCache
set count for preload forward, default is PreloadDataCache.DEFAULT_FORWARD_CACHE_NUMBER
setHasMore(boolean) - Method in class cn.trinea.android.common.view.DropDownListView
set whether has more. if hasMore is false, onBottm will not be called when listView scroll to bottom
setHeaderDefaultText(String) - Method in class cn.trinea.android.common.view.DropDownListView
set header default text, default is R.string.drop_down_list_header_default_text
setHeaderLoadingText(String) - Method in class cn.trinea.android.common.view.DropDownListView
set header loading text, default is R.string.drop_down_list_header_loading_text
setHeaderPaddingTopRate(float) - Method in class cn.trinea.android.common.view.DropDownListView
set rate about drop down distance and header padding top when drop down
setHeaderPullText(String) - Method in class cn.trinea.android.common.view.DropDownListView
set header pull text, default is R.string.drop_down_list_header_pull_text
setHeaderReleaseMinDistance(int) - Method in class cn.trinea.android.common.view.DropDownListView
set min distance which header can release to loading
setHeaderReleaseText(String) - Method in class cn.trinea.android.common.view.DropDownListView
set header release text, default is R.string.drop_down_list_header_release_text
setHeaderSecondText(CharSequence) - Method in class cn.trinea.android.common.view.DropDownListView
set header second text
setHttpReadTimeOut(int) - Method in class cn.trinea.android.common.service.impl.ImageCache
set http read image time out of secondary cache, if less than 0, not set. default is not set, in mills
setHttpReadTimeOut(int) - Method in class cn.trinea.android.common.service.impl.ImageMemoryCache
set http read image time out, if less than 0, not set. default is not set, in mills
setHttpReadTimeOut(int) - Method in class cn.trinea.android.common.service.impl.ImageSDCardCache
set http read image time out, if less than 0, not set. default is not set, in mills
setInCache(boolean) - Method in class cn.trinea.android.common.entity.HttpResponse
set isInCache, this is a client mark, whethero is in client cache
setLastUsedTime(long) - Method in class cn.trinea.android.common.entity.CacheObject
Set time last used(got), in mills
setListViewHeightBasedOnChildren(ListView) - Static method in class cn.trinea.android.common.util.ViewUtils
set ListView height which is calculated by getListViewHeightBasedOnChildren(ListView)
setMessage(String) - Method in class cn.trinea.android.common.entity.PatchResult
set message
setNotiClass(String) - Method in class cn.trinea.android.common.util.DownloadManagerPro.RequestPro
set noti class, only init once
setNotiExtras(String) - Method in class cn.trinea.android.common.util.DownloadManagerPro.RequestPro
set noti extras, only init once
setOnBorderListener(BorderScrollView.OnBorderListener) - Method in class cn.trinea.android.common.view.BorderScrollView
 
setOnBottomListener(OnClickListener) - Method in class cn.trinea.android.common.view.DropDownListView
 
setOnBottomStyle(boolean) - Method in class cn.trinea.android.common.view.DropDownListView
 
setOnDropDownListener(DropDownListView.OnDropDownListener) - Method in class cn.trinea.android.common.view.DropDownListView
 
setOnGetDataListener(PreloadDataCache.OnGetDataListener<K, V>) - Method in class cn.trinea.android.common.service.impl.PreloadDataCache
set get data listener, this cache will get data and preload data by it
setOnGetImageListenerOfPrimaryCache(PreloadDataCache.OnGetDataListener<String, Bitmap>) - Method in class cn.trinea.android.common.service.impl.ImageCache
set get data listener of primary cache, primary cache will get data and preload data by it
setOnGetImageListenerOfSecondaryCache(PreloadDataCache.OnGetDataListener<String, String>) - Method in class cn.trinea.android.common.service.impl.ImageCache
set get data listener of secondary cache, secondary cache will get data and preload data by it
setOnImageCallbackListener(ImageMemoryCache.OnImageCallbackListener) - Method in class cn.trinea.android.common.service.impl.ImageMemoryCache
set callback interface when getting image
setOnImageSDCallbackListener(ImageSDCardCache.OnImageSDCallbackListener) - Method in class cn.trinea.android.common.service.impl.ImageSDCardCache
set callback interface when getting image
setOnItemClickListener(AdapterView.OnItemClickListener) - Method in class cn.trinea.android.common.view.HorizontalListView
 
setOnItemLongClickListener(AdapterView.OnItemLongClickListener) - Method in class cn.trinea.android.common.view.HorizontalListView
 
setOnItemSelectedListener(AdapterView.OnItemSelectedListener) - Method in class cn.trinea.android.common.view.HorizontalListView
 
setOnScrollListener(AbsListView.OnScrollListener) - Method in class cn.trinea.android.common.view.DropDownListView
 
setOpenWaitingQueue(boolean) - Method in class cn.trinea.android.common.service.impl.ImageMemoryCache
set whether open waiting queue, default is true.
setOpenWaitingQueue(boolean) - Method in class cn.trinea.android.common.service.impl.ImageSDCardCache
set whether open waiting queue, default is true.
setParasMap(Map<String, String>) - Method in class cn.trinea.android.common.entity.HttpRequest
set paras map
setPriority(int) - Method in class cn.trinea.android.common.entity.CacheObject
Set priority, default is zero
setReadTimeout(int) - Method in class cn.trinea.android.common.entity.HttpRequest
 
setRequestProperties(Map<String, String>) - Method in class cn.trinea.android.common.entity.HttpRequest
 
setRequestProperties(Map<String, String>) - Method in class cn.trinea.android.common.service.impl.ImageCache
set http request properties If image is from the different server, setRequestProperty("Connection", "false") is recommended.
setRequestProperties(Map<String, String>) - Method in class cn.trinea.android.common.service.impl.ImageMemoryCache
set http request properties If image is from the different server, setRequestProperty("Connection", "false") is recommended.
setRequestProperties(Map<String, String>) - Method in class cn.trinea.android.common.service.impl.ImageSDCardCache
set http request properties If image is from the different server, setRequestProperty("Connection", "false") is recommended.
setRequestProperty(String, String) - Method in class cn.trinea.android.common.entity.HttpRequest
 
setRequestProperty(String, String) - Method in class cn.trinea.android.common.service.impl.ImageCache
Sets the value of the http request header field
setRequestProperty(String, String) - Method in class cn.trinea.android.common.service.impl.ImageMemoryCache
Sets the value of the http request header field
setRequestProperty(String, String) - Method in class cn.trinea.android.common.service.impl.ImageSDCardCache
Sets the value of the http request header field
setResponseBody(String) - Method in class cn.trinea.android.common.entity.HttpResponse
 
setResponseCode(int) - Method in class cn.trinea.android.common.entity.HttpResponse
 
setResponseHeader(String, String) - Method in class cn.trinea.android.common.entity.HttpResponse
set response header
setResponseHeaders(Map<String, Object>) - Method in class cn.trinea.android.common.entity.HttpResponse
 
setSearchViewOnClickListener(View, OnClickListener) - Static method in class cn.trinea.android.common.util.ViewUtils
set SearchView OnClickListener
setSecondPositionVisible() - Method in class cn.trinea.android.common.view.DropDownListView
set second position visible(index is 1), because first position is header layout
setSelection(int) - Method in class cn.trinea.android.common.view.HorizontalListView
 
setShowFooterProgressBar(boolean) - Method in class cn.trinea.android.common.view.DropDownListView
set whether show footer loading progress bar when loading
setShowFooterWhenNoMore(boolean) - Method in class cn.trinea.android.common.view.DropDownListView
set isShowFooterWhenNoMore
setStatus(int) - Method in class cn.trinea.android.common.entity.PatchResult
set status
setType(int) - Method in class cn.trinea.android.common.entity.HttpResponse
set type type to mark this response, default is 0, cannot be smaller than 0.
setUrl(String) - Method in class cn.trinea.android.common.entity.HttpResponse
 
setURLConnection(Map<String, String>, HttpURLConnection) - Static method in class cn.trinea.android.common.util.HttpUtils
set HttpURLConnection property
setUsedCount(long) - Method in class cn.trinea.android.common.entity.CacheObject
Set used(got) count
setUserAgent(String) - Method in class cn.trinea.android.common.entity.HttpRequest
setValidTime(long) - Method in class cn.trinea.android.common.service.impl.SimpleCache
set valid time of elements in cache, in mills
setViewHeight(View, int) - Static method in class cn.trinea.android.common.util.ViewUtils
set view height
ShellUtils - Class in cn.trinea.android.common.util
ShellUtils() - Constructor for class cn.trinea.android.common.util.ShellUtils
 
ShellUtils.CommandResult - Class in cn.trinea.android.common.util
result of command ShellUtils.CommandResult.result means result of command, 0 means normal, else means error, same to excute in linux shell ShellUtils.CommandResult.successMsg means success message of command result ShellUtils.CommandResult.errorMsg means error message of command result
ShellUtils.CommandResult(int) - Constructor for class cn.trinea.android.common.util.ShellUtils.CommandResult
 
ShellUtils.CommandResult(int, String, String) - Constructor for class cn.trinea.android.common.util.ShellUtils.CommandResult
 
show(Context, int) - Static method in class cn.trinea.android.common.util.ToastUtils
 
show(Context, int, int) - Static method in class cn.trinea.android.common.util.ToastUtils
 
show(Context, CharSequence) - Static method in class cn.trinea.android.common.util.ToastUtils
 
show(Context, CharSequence, int) - Static method in class cn.trinea.android.common.util.ToastUtils
 
show(Context, int, Object...) - Static method in class cn.trinea.android.common.util.ToastUtils
 
show(Context, String, Object...) - Static method in class cn.trinea.android.common.util.ToastUtils
 
show(Context, int, int, Object...) - Static method in class cn.trinea.android.common.util.ToastUtils
 
show(Context, String, int, Object...) - Static method in class cn.trinea.android.common.util.ToastUtils
 
shuffle(Object[]) - Static method in class cn.trinea.android.common.util.RandomUtils
Shuffling algorithm, Randomly permutes the specified array using a default source of randomness
shuffle(Object[], int) - Static method in class cn.trinea.android.common.util.RandomUtils
Shuffling algorithm, Randomly permutes the specified array
shuffle(int[]) - Static method in class cn.trinea.android.common.util.RandomUtils
Shuffling algorithm, Randomly permutes the specified int array using a default source of randomness
shuffle(int[], int) - Static method in class cn.trinea.android.common.util.RandomUtils
Shuffling algorithm, Randomly permutes the specified int array
shutdownNow() - Method in class cn.trinea.android.common.service.impl.ImageCache
 
shutdownNow() - Method in class cn.trinea.android.common.service.impl.ImageMemoryCache
 
shutdownNow() - Method in class cn.trinea.android.common.service.impl.ImageSDCardCache
 
shutdownNow() - Method in class cn.trinea.android.common.service.impl.PreloadDataCache
 
SimpleCache<K,V> - Class in cn.trinea.android.common.service.impl
Simple Cache
Usage Use one of constructors below to construct cache SimpleCache.setCacheFullRemoveType(CacheFullRemoveType) set remove type when cache is full SimpleCache.setValidTime(long) set valid time of elements in cache, in mills SimpleCache.put(Object, CacheObject) or SimpleCache.put(Object, Object) put element SimpleCache.get(Object) get element SimpleCache.loadCache(String) restore cache from file SimpleCache.saveCache(String, SimpleCache) save cache to file Constructor SimpleCache.SimpleCache() SimpleCache.SimpleCache(int) SimpleCache.loadCache(String) restore cache from file About hit and miss of the cache SimpleCache.getHitRate() get hit rate of the cache SimpleCache.getHitCount() get hit count of the cache SimpleCache.getMissCount() get miss count of the cache About size of cache SimpleCache.getMaxSize() get the maximum capacity of the cache SimpleCache.getSize() get the number of elements in the cache valid Other interfaces same to Map
SimpleCache() - Constructor for class cn.trinea.android.common.service.impl.SimpleCache
Maximum size of the cache is SimpleCache.DEFAULT_MAX_SIZE Elements of the cache will not invalid, can set by SimpleCache.setValidTime(long) Remove type is RemoveTypeEnterTimeFirst when cache is full
SimpleCache(int) - Constructor for class cn.trinea.android.common.service.impl.SimpleCache
Elements of the cache will not invalid, can set by SimpleCache.setValidTime(long) Remove type is RemoveTypeEnterTimeFirst when cache is full
SizeUtils - Class in cn.trinea.android.common.util
SizeUtils
SizeUtils() - Constructor for class cn.trinea.android.common.util.SizeUtils
 
SlideOnePageGallery - Class in cn.trinea.android.common.view
SlideOnePageGallery, only slide one page every slide
SlideOnePageGallery(Context, AttributeSet, int) - Constructor for class cn.trinea.android.common.view.SlideOnePageGallery
 
SlideOnePageGallery(Context, AttributeSet) - Constructor for class cn.trinea.android.common.view.SlideOnePageGallery
 
SlideOnePageGallery(Context) - Constructor for class cn.trinea.android.common.view.SlideOnePageGallery
 
SqliteUtils - Class in cn.trinea.android.common.util
SqliteUtils
startInstalledAppDetails(Context, String) - Static method in class cn.trinea.android.common.util.PackageUtils
start InstalledAppDetails Activity
StringUtils - Class in cn.trinea.android.common.util
String Utils
StringUtils() - Constructor for class cn.trinea.android.common.util.StringUtils
 
successMsg - Variable in class cn.trinea.android.common.util.ShellUtils.CommandResult
success message of command result
SystemUtils - Class in cn.trinea.android.common.util
SystemUtils
SystemUtils() - Constructor for class cn.trinea.android.common.util.SystemUtils
 
A B C D E F G H I J K L M N O P R S T U V W