Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cundong/ZhihuPaper
/ functions
Functions
449 in github.com/cundong/ZhihuPaper
⨍
Functions
449
◇
Types & classes
78
↓ 62 callers
Method
isEmpty
is null or its size is 0 <pre> isEmpty(null) = true; isEmpty({}) = true; isEmpty({1}) = false; </pre> @param <V> @param sourceList @r
src/com/cundong/izhihu/util/ListUtils.java:47
↓ 36 callers
Method
get
Waits if necessary for the computation to complete, and then retrieves its result. @return The computed result. @throws CancellationException If the
src/com/cundong/izhihu/task/MyAsyncTask.java:334
↓ 36 callers
Method
toString
InputStream转为字符串 @param in @return
src/com/cundong/izhihu/util/StringUtils.java:315
↓ 34 callers
Method
call
()
src/com/cundong/izhihu/task/MyAsyncTask.java:141
↓ 28 callers
Method
close
(InputStream in)
src/com/cundong/izhihu/util/StreamUtils.java:43
↓ 25 callers
Method
e
log.e
src/com/cundong/izhihu/util/Logger.java:93
↓ 24 callers
Method
getString
get string preferences @param context @param key The name of the preference to retrieve @param defaultValue Value to return if
src/com/cundong/izhihu/util/PreferencesUtils.java:44
↓ 17 callers
Method
executeOnExecutor
Executes the task with the specified parameters. The task returns itself (this) so that the caller can keep a reference to it. <p/> <p>This method is
src/com/cundong/izhihu/task/MyAsyncTask.java:412
↓ 15 callers
Method
split
根据指定分隔符分割字符串,返回结果数组。<br> 处理规则:<br> 若输入为null,则返回null;<br> 否则若输入为空字符串,则返回空数组;<br> 否则若分隔符为null或空字符串,则返回包含原字符串本身的数组;<br> @param input 输入字符串 @p
src/com/cundong/izhihu/util/StringUtils.java:85
↓ 13 callers
Method
getBoolean
get boolean preferences @param context @param key The name of the preference to retrieve @param defaultValue Value to return if
src/com/cundong/izhihu/util/PreferencesUtils.java:216
↓ 13 callers
Method
getEntity
解析一个字符串,得到BaseEntity对象 @param content @param clazz @return
src/com/cundong/izhihu/util/GsonUtils.java:39
↓ 13 callers
Method
getInstance
(Context context)
src/com/cundong/izhihu/db/DatabaseHelper.java:57
↓ 11 callers
Method
getLogger
()
src/com/cundong/izhihu/util/Logger.java:24
↓ 11 callers
Function
l
(t)
assets/www/zepto.min.js:2
↓ 11 callers
Method
onPostExecute
(String content)
src/com/cundong/izhihu/task/ResponseListener.java:13
↓ 10 callers
Method
onFail
(Exception e)
src/com/cundong/izhihu/task/ResponseListener.java:17
↓ 9 callers
Function
$
(t)
assets/www/zepto.min.js:2
↓ 9 callers
Function
J
(t,e,n,i)
assets/www/zepto.min.js:2
↓ 9 callers
Method
execute
Executes the task with the specified parameters. The task returns itself (this) so that the caller can keep a reference to it. <p/> <p>Note: this func
src/com/cundong/izhihu/task/MyAsyncTask.java:379
↓ 9 callers
Method
getInstance
(Context context)
src/com/cundong/izhihu/http/HttpClientUtils.java:96
↓ 9 callers
Function
h
(t,e,n,i)
assets/www/zepto.min.js:2
↓ 9 callers
Function
o
(t)
assets/www/zepto.min.js:2
↓ 8 callers
Method
getCount
()
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:33
↓ 8 callers
Method
onComplete
请求正常完成 @param response
src/com/cundong/izhihu/http/ResponseListener.java:13
↓ 7 callers
Function
W
(e,n)
assets/www/zepto.min.js:2
↓ 7 callers
Function
Z
(t)
assets/www/zepto.min.js:2
↓ 7 callers
Method
d
log.d
src/com/cundong/izhihu/util/Logger.java:83
↓ 7 callers
Method
getView
(int position, View convertView, ViewGroup parent)
src/com/cundong/izhihu/adapter/NewsAdapter.java:165
↓ 6 callers
Function
D
(t)
assets/www/zepto.min.js:2
↓ 6 callers
Method
encodeUrl
将Key-value转换成用&号链接的URL查询参数形式。 @param parameters @return
src/com/cundong/izhihu/http/UrlUtils.java:50
↓ 6 callers
Method
finish
(Result result)
src/com/cundong/izhihu/task/MyAsyncTask.java:464
↓ 6 callers
Method
getDataSource
()
src/com/cundong/izhihu/task/BaseGetNewsTask.java:76
↓ 6 callers
Method
getNewsFavoriteDataSource
()
src/com/cundong/izhihu/ZhihuApplication.java:66
↓ 6 callers
Method
putString
put string preferences @param context @param key The name of the preference to modify @param value The new value for the prefer
src/com/cundong/izhihu/util/PreferencesUtils.java:21
↓ 6 callers
Function
v
(e,i,r,o,a,u,f)
assets/www/zepto.min.js:2
↓ 5 callers
Function
F
(t)
assets/www/zepto.min.js:2
↓ 5 callers
Method
createMessage
(String msg)
src/com/cundong/izhihu/util/Logger.java:54
↓ 5 callers
Method
getContent
(String key)
src/com/cundong/izhihu/db/NewsDataSource.java:85
↓ 5 callers
Method
getItemId
(int position)
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:45
↓ 5 callers
Method
getUrl
(String url)
src/com/cundong/izhihu/task/BaseGetNewsTask.java:72
↓ 5 callers
Function
j
(e,i)
assets/www/zepto.min.js:2
↓ 5 callers
Method
onPreExecute
()
src/com/cundong/izhihu/task/ResponseListener.java:11
↓ 5 callers
Method
putBoolean
put boolean preferences @param context @param key The name of the preference to modify @param value The new value for the prefe
src/com/cundong/izhihu/util/PreferencesUtils.java:193
↓ 5 callers
Method
str2Date
字符串转换成日期 如果转换格式为空,则利用默认格式进行转换操作 @param str 字符串 @param format 日期格式 @return 日期 @throws java.text.ParseException
src/com/cundong/izhihu/util/DateUtils.java:283
↓ 4 callers
Function
B
(t,e)
assets/www/zepto.min.js:2
↓ 4 callers
Function
L
(t)
assets/www/zepto.min.js:2
↓ 4 callers
Function
R
(t)
assets/www/zepto.min.js:2
↓ 4 callers
Function
T
(t)
assets/www/zepto.min.js:2
↓ 4 callers
Function
_
(t)
assets/www/zepto.min.js:2
↓ 4 callers
Function
g
(t)
assets/www/zepto.min.js:2
↓ 4 callers
Method
getApplicationName
(Context context)
src/com/cundong/izhihu/util/PhoneUtils.java:161
↓ 4 callers
Method
getCurrentDate
获取今天的日期,格式为:yyyy/MM/dd @return
src/com/cundong/izhihu/util/DateUtils.java:73
↓ 4 callers
Method
getDataSource
()
src/com/cundong/izhihu/ZhihuApplication.java:58
↓ 4 callers
Method
getNetType
获取当前网络状态 返回2代表wifi,1代表2G/3G @param paramContext @return
src/com/cundong/izhihu/util/NetWorkHelper.java:44
↓ 4 callers
Method
insertOrUpdateNewsList
(int type, String key, String content)
src/com/cundong/izhihu/db/NewsDataSource.java:58
↓ 4 callers
Method
isBlank
判断给定字符串是否空白串。<br> 空白串是指由空格、制表符、回车符、换行符组成的字符串<br> 若输入字符串为null或空字符串,返回true @param input @return boolean
src/com/cundong/izhihu/util/StringUtils.java:33
↓ 4 callers
Method
isCancelled
Returns <tt>true</tt> if this task was cancelled after it completed normally. If you are calling {@link #cancel(boolean)} on the task, the value retur
src/com/cundong/izhihu/task/MyAsyncTask.java:289
↓ 4 callers
Method
join
join list to string, separator is "," <pre> join(null) = ""; join({}) = ""; join({a,b}) = "a,b"; </pre> @param list @return jo
src/com/cundong/izhihu/util/ListUtils.java:99
↓ 4 callers
Function
m
(t,e)
assets/www/zepto.min.js:2
↓ 4 callers
Method
makeDirs
Creates the directory named by the trailing filename of this file, including the complete directory path required to create this directory. <br/> <br/
src/com/cundong/izhihu/util/FileUtils.java:474
↓ 4 callers
Method
setAdapter
(ArrayList<NewsEntity> newsList)
src/com/cundong/izhihu/fragment/NewsListFragment.java:105
↓ 4 callers
Method
setListShown
(boolean isListViewShown)
src/com/cundong/izhihu/fragment/NewsListFragment.java:114
↓ 4 callers
Method
setReadStatus4NewsList
为newsList设置已读、未读标示 @param newsList
src/com/cundong/izhihu/util/ZhihuUtils.java:97
↓ 4 callers
Method
setWebViewShown
(boolean shown)
src/com/cundong/izhihu/fragment/NewsDetailFragment.java:171
↓ 4 callers
Method
updateData
(ArrayList<T> list)
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:28
↓ 4 callers
Function
y
(t,e,n,i,r)
assets/www/zepto.min.js:2
↓ 3 callers
Function
M
(t)
assets/www/zepto.min.js:2
↓ 3 callers
Function
X
(t,e,n)
assets/www/zepto.min.js:2
↓ 3 callers
Method
checkIsContentSame
(String oldContent, String newContent)
src/com/cundong/izhihu/task/BaseGetNewsTask.java:63
↓ 3 callers
Method
deleteFromFavorite
(String newsId)
src/com/cundong/izhihu/db/NewsFavoriteDataSource.java:136
↓ 3 callers
Method
getCacheImgFilePath
根据一个图片的url获取其在本机缓存中的存储url from: https://avatars3.githubusercontent.com/u/3348483 to: /storage/emulated/0/Android/data/com.cundong.izhihu/cache/f72a03
src/com/cundong/izhihu/util/ZhihuUtils.java:86
↓ 3 callers
Method
getExternalCacheDir
获取扩展存储cache的绝对路径 返回:sdcard/Android/data/{package_name}/cache/ @param context @return
src/com/cundong/izhihu/util/SDCardUtils.java:50
↓ 3 callers
Method
getItemResourceId
(int type)
src/com/cundong/izhihu/adapter/NewsAdapter.java:151
↓ 3 callers
Method
getItemView
(int position, View convertView, ViewHolder holder, int type)
src/com/cundong/izhihu/adapter/NewsAdapter.java:214
↓ 3 callers
Method
getLong
get long preferences @param context @param key The name of the preference to retrieve @param defaultValue Value to return if th
src/com/cundong/izhihu/util/PreferencesUtils.java:130
↓ 3 callers
Method
i
log.i
src/com/cundong/izhihu/util/Logger.java:63
↓ 3 callers
Method
init
@hide Used to force static handler to be created.
src/com/cundong/izhihu/task/MyAsyncTask.java:125
↓ 3 callers
Method
isEquals
compare two object @param actual @param expected @return <ul> <li>if both are null, return true</li> <li>return actual.{@link Object#
src/com/cundong/izhihu/util/ObjectUtils.java:20
↓ 3 callers
Method
isMobile
判断是不是2/3G网络状态 @param paramContext @return
src/com/cundong/izhihu/util/NetWorkHelper.java:26
↓ 3 callers
Function
p
(t)
assets/www/zepto.min.js:2
↓ 3 callers
Method
putLong
put long preferences @param context @param key The name of the preference to modify @param value The new value for the preferen
src/com/cundong/izhihu/util/PreferencesUtils.java:107
↓ 3 callers
Method
setTag
(String tag)
src/com/cundong/izhihu/util/Logger.java:136
↓ 3 callers
Method
trim
截取字符串末尾空格 @param input @return
src/com/cundong/izhihu/util/StringUtils.java:66
↓ 3 callers
Method
updateCreateMenu
()
src/com/cundong/izhihu/activity/NewsDetailActivity.java:207
↓ 3 callers
Function
w
(t,e)
assets/www/zepto.min.js:2
↓ 2 callers
Function
H
(t,e)
assets/www/zepto.min.js:2
↓ 2 callers
Function
V
(t)
assets/www/zepto.min.js:2
↓ 2 callers
Function
c
(e)
assets/www/zepto.min.js:2
↓ 2 callers
Method
clear
clear the preferences @param context @param preferenceName
src/com/cundong/izhihu/util/PreferencesUtils.java:231
↓ 2 callers
Method
copy
(final InputStream in, final OutputStream out)
src/com/cundong/izhihu/util/StreamUtils.java:34
↓ 2 callers
Method
cursorToNewsList
(Cursor cursor)
src/com/cundong/izhihu/db/NewsDataSource.java:110
↓ 2 callers
Function
d
(t)
assets/www/zepto.min.js:2
↓ 2 callers
Method
dealException
(Exception e)
src/com/cundong/izhihu/fragment/BaseFragment.java:108
↓ 2 callers
Method
encrypt
(String source)
src/com/cundong/izhihu/util/MD5Util.java:14
↓ 2 callers
Method
get
get请求 @param context @param url @param params @param responseListener
src/com/cundong/izhihu/http/HttpClientUtils.java:240
↓ 2 callers
Method
getExternalDir
( Context context, String type )
src/com/cundong/izhihu/util/SDCardUtils.java:55
↓ 2 callers
Method
getFileName
get file name from path, include suffix <pre> getFileName(null) = null getFileName("") = "" getFileN
src/com/cundong/izhihu/util/FileUtils.java:379
↓ 2 callers
Method
getFileSize
get file size <ul> <li>if path is null or empty, return -1</li> <li>if path exist and it is a file, return file size, else return -1</li> <ul> @param
src/com/cundong/izhihu/util/FileUtils.java:569
↓ 2 callers
Method
getFormatTimeDate
(String pubtime, String inputFormat, String outFormat)
src/com/cundong/izhihu/util/DateUtils.java:145
↓ 2 callers
Method
getFunctionName
()
src/com/cundong/izhihu/util/Logger.java:28
next →
1–100 of 449, ranked by callers