Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JavaNoober/Light
/ functions
Functions
262 in github.com/JavaNoober/Light
⨍
Functions
262
◇
Types & classes
115
↓ 49 callers
Method
getInstance
()
light/src/main/java/com/light/body/Light.java:36
↓ 37 callers
Method
compress
(String outPath)
light/src/main/java/com/light/core/listener/ICompressProxy.java:11
↓ 31 callers
Method
compressImage
(Object imageSource, CompressArgs compressArgs, String outPath)
light/src/main/java/com/light/body/Light.java:161
↓ 24 callers
Method
write
(int b)
light/src/main/java/com/light/core/cache/DiskLruCache.java:706
↓ 23 callers
Method
e
(String tag, String msg)
light/src/main/java/com/light/core/Utils/L.java:14
↓ 23 callers
Method
getHeight
()
light/src/main/java/com/light/body/CompressArgs.java:37
↓ 23 callers
Method
getWidth
()
light/src/main/java/com/light/body/CompressArgs.java:33
↓ 16 callers
Method
close
Closes this cache. Stored values will remain on the filesystem.
light/src/main/java/com/light/core/cache/DiskLruCache.java:617
↓ 16 callers
Method
toString
()
light/src/main/java/com/light/core/cache/StrictLineReader.java:133
↓ 15 callers
Method
getCompressProxy
(CompressFactory.Compress compressCategory, Object imageSource)
light/src/main/java/com/light/body/ArgumentsAdapter.java:25
↓ 13 callers
Method
getConfig
()
light/src/main/java/com/light/body/Light.java:60
↓ 11 callers
Method
build
()
light/src/main/java/com/light/proxy/UriCompressProxy.java:116
↓ 11 callers
Method
compressArgs
(CompressArgs compressArgs)
light/src/main/java/com/light/proxy/UriCompressProxy.java:106
↓ 11 callers
Method
downloadImage
(boolean openDiskCache, String url, OnCompressFinishListener callback)
light/src/main/java/com/light/core/Utils/http/HttpDownLoader.java:30
↓ 11 callers
Method
getInstance
()
light/src/main/java/com/light/body/LightCache.java:18
↓ 10 callers
Method
getResources
()
light/src/main/java/com/light/body/Light.java:71
↓ 9 callers
Method
isIgnoreSize
()
light/src/main/java/com/light/body/CompressArgs.java:45
↓ 8 callers
Method
bitmap
(Bitmap bitmap)
light/src/main/java/com/light/proxy/BitmapCompressProxy.java:70
↓ 8 callers
Method
getMaxWidth
()
light/src/main/java/com/light/body/LightConfig.java:60
↓ 7 callers
Method
delete
Closes the cache and deletes all of its stored values. This will delete all files in the cache directory including files that weren't created by the c
light/src/main/java/com/light/core/cache/DiskLruCache.java:643
↓ 7 callers
Method
getSchemeOrNull
@param uri uri to extract scheme from, possibly null. @return null if uri is null, result of uri.getScheme() otherwise.
light/src/main/java/com/light/core/Utils/UriParser.java:129
↓ 6 callers
Method
get
(String key)
light/src/main/java/com/light/body/LightCache.java:49
↓ 6 callers
Method
getAbsPath
(final Uri srcUri)
light/src/main/java/com/light/core/Utils/UriParser.java:147
↓ 6 callers
Method
getConfig
()
light/src/main/java/com/light/body/CompressArgs.java:61
↓ 6 callers
Method
getContext
()
light/src/main/java/com/light/body/Light.java:67
↓ 6 callers
Method
getMaxHeight
()
light/src/main/java/com/light/body/LightConfig.java:64
↓ 6 callers
Method
isNetworkUri
/ Check if uri represents network resource. @param uri uri to check. @return true if uri's scheme is equal to "http" or "https".
light/src/main/java/com/light/core/Utils/UriParser.java:64
↓ 6 callers
Method
readLine
Reads the next line. A line ends with {@code "\n"} or {@code "\r\n"}, this end of line marker is not included in the result. @return the next line fr
light/src/main/java/com/light/core/cache/StrictLineReader.java:109
↓ 6 callers
Method
size
Returns the number of bytes currently being used to store the values in this cache. This may be greater than the max size if a background deletion is
light/src/main/java/com/light/core/cache/DiskLruCache.java:495
↓ 5 callers
Method
deleteIfExists
(File file)
light/src/main/java/com/light/core/cache/DiskLruCache.java:375
↓ 5 callers
Method
getCleanFile
(int i)
light/src/main/java/com/light/core/cache/DiskLruCache.java:919
↓ 5 callers
Method
getDefaultArgs
()
light/src/main/java/com/light/body/CompressArgs.java:25
↓ 5 callers
Method
getDefaultQuality
()
light/src/main/java/com/light/body/LightConfig.java:76
↓ 5 callers
Method
getScale
(int width, int height, int currentWidth, int currentHeight)
light/src/main/java/com/light/core/Utils/MatrixUtil.java:261
↓ 5 callers
Method
i
(String tag, String msg)
light/src/main/java/com/light/core/Utils/L.java:34
↓ 5 callers
Method
path
(String path)
light/src/main/java/com/light/proxy/FileCompressProxy.java:136
↓ 5 callers
Method
recycle
(boolean recycle)
light/src/main/java/com/light/core/Utils/MatrixUtil.java:160
↓ 5 callers
Method
remove
Drops the entry for {@code key} if it exists and can be removed. Entries actively being edited cannot be removed. @return true if an entry was remove
light/src/main/java/com/light/core/cache/DiskLruCache.java:570
↓ 5 callers
Method
save
(String key, byte[] bytes)
light/src/main/java/com/light/body/LightCache.java:38
↓ 5 callers
Method
scale
(float scaleX, float scaleY)
light/src/main/java/com/light/core/Utils/MatrixUtil.java:65
↓ 4 callers
Method
abort
Aborts this edit. This releases the edit lock so another edit may be started on the same key.
light/src/main/java/com/light/core/cache/DiskLruCache.java:820
↓ 4 callers
Method
build
()
light/src/main/java/com/light/body/CompressArgs.java:120
↓ 4 callers
Method
checkNotClosed
()
light/src/main/java/com/light/core/cache/DiskLruCache.java:603
↓ 4 callers
Method
closeQuietly
(/*Auto*/Closeable closeable)
light/src/main/java/com/light/core/cache/Util.java:53
↓ 4 callers
Method
compress2Bitmap
(Bitmap bitmap, int width, int height, Bitmap.Config config)
light/src/main/java/com/light/core/listener/ICompressEngine.java:14
↓ 4 callers
Method
compress2File
(Bitmap bitmap, String outputPath, int quality)
light/src/main/java/com/light/core/listener/ICompressEngine.java:22
↓ 4 callers
Method
compressBitmap
(Bitmap bit, String fileName)
light/src/main/java/com/light/compress/LightCompressCore.java:23
↓ 4 callers
Method
getDirtyFile
(int i)
light/src/main/java/com/light/core/cache/DiskLruCache.java:923
↓ 4 callers
Method
getInputStream
Returns the unbuffered stream with the value for {@code index}.
light/src/main/java/com/light/core/cache/DiskLruCache.java:684
↓ 4 callers
Method
getMemorySize
(Bitmap bitmap)
light/src/main/java/com/light/core/Utils/MemoryComputeUtil.java:15
↓ 4 callers
Method
getOutputRootDir
()
light/src/main/java/com/light/body/LightConfig.java:56
↓ 4 callers
Method
getPathFromContentUri
(final Uri srcUri)
light/src/main/java/com/light/core/Utils/UriParser.java:152
↓ 4 callers
Method
height
(int height)
light/src/main/java/com/light/body/LightBuilder.java:57
↓ 4 callers
Method
isAutoRecycle
()
light/src/main/java/com/light/body/LightConfig.java:100
↓ 4 callers
Method
isAutoRotation
()
light/src/main/java/com/light/body/LightConfig.java:92
↓ 4 callers
Method
journalRebuildRequired
We only rebuild the journal when it will halve the size of the journal and eliminate at least 2000 ops.
light/src/main/java/com/light/core/cache/DiskLruCache.java:558
↓ 4 callers
Method
onError
(Throwable throwable)
light/src/main/java/com/light/core/listener/OnCompressFinishListener.java:11
↓ 4 callers
Method
preRotate
(float preRotate)
light/src/main/java/com/light/core/Utils/MatrixUtil.java:93
↓ 4 callers
Method
renameTo
(File from, File to, boolean deleteDestination)
light/src/main/java/com/light/core/cache/DiskLruCache.java:381
↓ 4 callers
Method
width
(int width)
light/src/main/java/com/light/body/LightBuilder.java:52
↓ 3 callers
Method
autoRotation
(boolean autoRotation)
light/src/main/java/com/light/body/LightBuilder.java:72
↓ 3 callers
Method
completeEdit
(Editor editor, boolean success)
light/src/main/java/com/light/core/cache/DiskLruCache.java:499
↓ 3 callers
Method
computeSampleSize
(BitmapFactory.Options options, int minSideLength, int maxNumOfPixels)
light/src/main/java/com/light/core/Utils/SimpleSizeCompute.java:10
↓ 3 callers
Method
createCompress
(Compress compressCategory, CompressArgs compressArgs, Object object)
light/src/main/java/com/light/proxy/CompressFactory.java:20
↓ 3 callers
Method
flush
Force buffered operations to the filesystem.
light/src/main/java/com/light/core/cache/DiskLruCache.java:610
↓ 3 callers
Method
get
Returns a snapshot of the entry named {@code key}, or null if it doesn't exist is not currently readable. If a value is returned, it is moved to the h
light/src/main/java/com/light/core/cache/DiskLruCache.java:395
↓ 3 callers
Method
get
()
light/src/main/java/com/light/core/Utils/ContextUtil.java:14
↓ 3 callers
Method
getCompressFileSize
()
light/src/main/java/com/light/body/LightConfig.java:52
↓ 3 callers
Method
getQuality
()
light/src/main/java/com/light/body/CompressArgs.java:41
↓ 3 callers
Method
isNeedIgnoreSize
()
light/src/main/java/com/light/body/LightConfig.java:84
↓ 3 callers
Method
onFinish
(byte[] bytes)
light/src/main/java/com/light/core/listener/OnCompressFinishListener.java:9
↓ 3 callers
Method
rebuildJournal
Creates a new journal that omits redundant information. This replaces the current journal if it exists.
light/src/main/java/com/light/core/cache/DiskLruCache.java:336
↓ 3 callers
Method
showImg
(Uri uri)
app/src/main/java/com/light/example/NetActivity.java:98
↓ 3 callers
Method
trimToSize
()
light/src/main/java/com/light/core/cache/DiskLruCache.java:631
↓ 3 callers
Method
validateKey
(String key)
light/src/main/java/com/light/core/cache/DiskLruCache.java:648
↓ 2 callers
Method
autoRecycle
(boolean autoRecycle)
light/src/main/java/com/light/body/LightBuilder.java:77
↓ 2 callers
Method
bitmapConfig
(Bitmap.Config config)
light/src/main/java/com/light/body/CompressArgs.java:115
↓ 2 callers
Method
build
()
light/src/main/java/com/light/core/Utils/MatrixUtil.java:165
↓ 2 callers
Method
build
()
light/src/main/java/com/light/proxy/FileCompressProxy.java:146
↓ 2 callers
Method
compress
(Bitmap bitmap, String outfile, int quality, Bitmap.CompressFormat format)
light/src/main/java/com/light/compress/NativeCompressCore.java:20
↓ 2 callers
Method
copyFile
(File source, File dest)
light/src/main/java/com/light/core/Utils/FileUtils.java:18
↓ 2 callers
Method
d
(String tag, String msg)
light/src/main/java/com/light/core/Utils/L.java:19
↓ 2 callers
Method
edit
Returns an editor for the entry named {@code key}, or null if another edit is in progress.
light/src/main/java/com/light/core/cache/DiskLruCache.java:440
↓ 2 callers
Method
fillBuf
Reads new input data into the buffer. Call only with pos == end or end == -1, depending on the desired outcome if the function throws.
light/src/main/java/com/light/core/cache/StrictLineReader.java:171
↓ 2 callers
Method
getBitmapConfig
()
light/src/main/java/com/light/body/LightConfig.java:108
↓ 2 callers
Method
getBitmapDegree
@param imagePath @return degree of image
light/src/main/java/com/light/core/Utils/DegreeHelper.java:19
↓ 2 callers
Method
getLengths
()
light/src/main/java/com/light/core/cache/DiskLruCache.java:892
↓ 2 callers
Method
getPathFromFileUri
(final Uri srcUri)
light/src/main/java/com/light/core/Utils/UriParser.java:143
↓ 2 callers
Method
getScreenHeight
(Context context)
light/src/main/java/com/light/core/Utils/DisplayUtil.java:49
↓ 2 callers
Method
getScreenWidth
(Context context)
light/src/main/java/com/light/core/Utils/DisplayUtil.java:44
↓ 2 callers
Method
hashKeyForDisk
(String key)
light/src/main/java/com/light/core/cache/CacheKey.java:8
↓ 2 callers
Method
ignoreSize
(boolean ignoreSize)
light/src/main/java/com/light/body/LightBuilder.java:67
↓ 2 callers
Method
inputStreamToString
(InputStream in)
light/src/main/java/com/light/core/cache/DiskLruCache.java:656
↓ 2 callers
Method
invalidLengths
(String[] strings)
light/src/main/java/com/light/core/cache/DiskLruCache.java:915
↓ 2 callers
Method
isLocalAnroidResourceUri
(Uri uri)
light/src/main/java/com/light/core/Utils/UriParser.java:113
↓ 2 callers
Method
isLocalContentUri
Check if uri represents local content. @param uri uri to check. @return true if uri's scheme is equal to "content".
light/src/main/java/com/light/core/Utils/UriParser.java:86
↓ 2 callers
Method
isLocalFileUri
Check if uri represents local file. @param uri uri to check. @return true if uri's scheme is equal to "file".
light/src/main/java/com/light/core/Utils/UriParser.java:75
↓ 2 callers
Method
newOutputStream
Returns a new unbuffered output stream to write the value at {@code index}. If the underlying output stream encounters errors when writing to the file
light/src/main/java/com/light/core/cache/DiskLruCache.java:760
↓ 2 callers
Method
obtainHttpURLConnection
(Uri uri, int maxRedirects)
light/src/main/java/com/light/core/Utils/http/HttpDownLoader.java:119
↓ 2 callers
Method
postRotate
(float postDegrees)
light/src/main/java/com/light/core/Utils/MatrixUtil.java:88
next →
1–100 of 262, ranked by callers