MCPcopy Create free account

hub / github.com/cundong/ZhihuPaper / functions

Functions449 in github.com/cundong/ZhihuPaper

↓ 1 callersMethodupdateNewsList
(int type, String key, String content)
src/com/cundong/izhihu/db/NewsDataSource.java:49
↓ 1 callersMethodw
log.d
src/com/cundong/izhihu/util/Logger.java:129
↓ 1 callersMethodwriteFile
write file @param filePath @param content @param append is append, if true, write to the end of file, else clear content of file and write into it @r
src/com/cundong/izhihu/util/FileUtils.java:103
↓ 1 callersFunctionz
(t)
assets/www/zepto.min.js:2
MethodAsyncTaskResult
(MyAsyncTask task, Data... data)
src/com/cundong/izhihu/task/MyAsyncTask.java:499
MethodBaseFragment
()
src/com/cundong/izhihu/fragment/BaseFragment.java:20
MethodBaseGetContentTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/BaseGetContentTask.java:30
MethodBaseGetNewsTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/BaseGetNewsTask.java:31
MethodDatabaseHelper
(Context context)
src/com/cundong/izhihu/db/DatabaseHelper.java:53
MethodDetailImageDownloadTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/DetailImageDownloadTask.java:27
MethodGetLatestNewsTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/GetLatestNewsTask.java:22
MethodGetMoreNewsTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/fragment/NewsListFragment.java:160
MethodGetNewsDetailTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/GetNewsDetailTask.java:20
MethodHttpClientUtils
()
src/com/cundong/izhihu/http/HttpClientUtils.java:92
MethodImageToGalleryTask
(Activity instance)
src/com/cundong/izhihu/task/ImageToGalleryTask.java:24
MethodJavaScriptObject
(Activity instance)
src/com/cundong/izhihu/fragment/NewsDetailFragment.java:467
MethodLogger
()
src/com/cundong/izhihu/util/Logger.java:20
MethodMultiViewTypeBaseAdapter
(Context context, ArrayList<T> list)
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:17
MethodMyAsyncTask
Creates a new asynchronous task. This constructor must be invoked on the UI thread.
src/com/cundong/izhihu/task/MyAsyncTask.java:139
MethodNewsAdapter
(Context context, ArrayList<NewsEntity> list)
src/com/cundong/izhihu/adapter/NewsAdapter.java:63
MethodNewsDataSource
(DatabaseHelper dbHelper)
src/com/cundong/izhihu/db/NewsDataSource.java:31
MethodNewsFavoriteDataSource
(DatabaseHelper dbHelper)
src/com/cundong/izhihu/db/NewsFavoriteDataSource.java:30
MethodNewsReadDataSource
(DatabaseHelper dbHelper)
src/com/cundong/izhihu/db/NewsReadDataSource.java:23
MethodOfflineDownloadTask
(Context context, ResponseListener listener)
src/com/cundong/izhihu/task/OfflineDownloadTask.java:39
MethodSetReadFlagTask
(NewsEntity newsEntity)
src/com/cundong/izhihu/fragment/NewsListFragment.java:346
MethodStringToString
字符串的转义(处理特殊字符) @param input @return
src/com/cundong/izhihu/util/StringUtils.java:206
MethodTrustAllSSLSocketFactory
(KeyStore truststore)
src/com/cundong/izhihu/http/TrustAllSSLSocketFactory.java:25
MethodViewHolder
(View convertView)
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:78
MethodZhihuException
(String msg)
src/com/cundong/izhihu/exception/ZhihuException.java:28
MethodZhihuIOException
(String msg)
src/com/cundong/izhihu/exception/ZhihuIOException.java:17
MethodZhihuOtherException
(String msg)
src/com/cundong/izhihu/exception/ZhihuOtherException.java:17
MethodaddDistinctEntry
add distinct entry to list @param <V> @param sourceList @param entry @return if entry already exist in sourceList, return false, else add it
src/com/cundong/izhihu/util/ListUtils.java:165
MethodaddDistinctList
add all distinct entry to list1 from list2 @param <V> @param sourceList @param entryList @return the count of entries be added
src/com/cundong/izhihu/util/ListUtils.java:178
MethodaddListNotNullValue
add not null entry to list @param sourceList @param value @return <ul> <li>if sourceList is null, return false</li> <li>if value is n
src/com/cundong/izhihu/util/ListUtils.java:229
MethodcheckClientTrusted
(java.security.cert.X509Certificate[] chain, String authType)
src/com/cundong/izhihu/http/TrustAllSSLSocketFactory.java:34
MethodcheckIsContentSame
(String oldContent, String newContent)
src/com/cundong/izhihu/task/BaseGetContentTask.java:62
MethodcheckServerTrusted
(java.security.cert.X509Certificate[] chain, String authType)
src/com/cundong/izhihu/http/TrustAllSSLSocketFactory.java:39
Methodcompare
compare two object <ul> <strong>About result</strong> <li>if v1 > v2, return 1</li> <li>if v1 = v2, return 0</li> <li>if v1 < v2, return -1</li> </ul>
src/com/cundong/izhihu/util/ObjectUtils.java:100
MethodcopyFile
copy file @param sourceFilePath @param destFilePath @return @throws RuntimeException if an error occurs while operator FileOutputStream
src/com/cundong/izhihu/util/FileUtils.java:272
MethodcreateSocket
(Socket socket, String host, int port, boolean autoClose)
src/com/cundong/izhihu/http/TrustAllSSLSocketFactory.java:48
MethoddecodeUrl
将用&号链接的URL参数转换成key-value形式。 @param s @return
src/com/cundong/izhihu/http/UrlUtils.java:84
MethoddeleteFile
delete file or directory <ul> <li>if path is null or empty, return true</li> <li>if path not exist, return true</li> <li>if path exist, delete recursi
src/com/cundong/izhihu/util/FileUtils.java:534
MethoddialogBuilder
(Activity instance, String title, String positiveText, String negativeText, int layoutId, final Dialog
src/com/cundong/izhihu/util/DialogUtils.java:18
MethoddispatchTouchEvent
(MotionEvent ev)
src/com/cundong/izhihu/activity/NewsDetailActivity.java:236
MethoddistinctList
remove duplicate entries in list @param <V> @param sourceList @return the count of entries be removed
src/com/cundong/izhihu/util/ListUtils.java:199
MethoddoInBackground
(String... params)
src/com/cundong/izhihu/activity/FavoriteActivity.java:183
MethoddoInBackground
(Void... params)
src/com/cundong/izhihu/activity/NewsDetailActivity.java:301
MethoddoInBackground
(String... params)
src/com/cundong/izhihu/task/ImageToGalleryTask.java:45
MethoddoInBackground
(String... params)
src/com/cundong/izhihu/task/GetNewsDetailTask.java:24
MethoddoInBackground
(String... params)
src/com/cundong/izhihu/task/DetailImageDownloadTask.java:31
MethoddoInBackground
(String... params)
src/com/cundong/izhihu/task/GetLatestNewsTask.java:26
MethoddoInBackground
(String... params)
src/com/cundong/izhihu/task/OfflineDownloadTask.java:43
MethoddoInBackground
(String... params)
src/com/cundong/izhihu/fragment/NewsListFragment.java:122
MethoddoInBackground
(String... params)
src/com/cundong/izhihu/fragment/NewsListFragment.java:164
MethoddoInBackground
(String... params)
src/com/cundong/izhihu/fragment/NewsListFragment.java:350
MethoddoInBackground
(String... params)
src/com/cundong/izhihu/fragment/NewsDetailFragment.java:305
MethoddoRefresh
()
src/com/cundong/izhihu/fragment/NewsListFragment.java:296
MethoddoRefresh
()
src/com/cundong/izhihu/fragment/NewsDetailFragment.java:176
Methoddone
()
src/com/cundong/izhihu/task/MyAsyncTask.java:150
MethodencodeUrl
对字符串中的中文进行编码 @param inputUrl @return
src/com/cundong/izhihu/util/StringUtils.java:330
Methoderror
log.error
src/com/cundong/izhihu/util/Logger.java:103
Methodexecute
(final Runnable r)
src/com/cundong/izhihu/task/MyAsyncTask.java:81
MethodgetAcceptedIssuers
()
src/com/cundong/izhihu/http/TrustAllSSLSocketFactory.java:30
MethodgetCurrentMonth
()
src/com/cundong/izhihu/util/DateUtils.java:119
MethodgetCurrentTime
获取当前时间 @return
src/com/cundong/izhihu/util/DateUtils.java:61
MethodgetDataSource
()
src/com/cundong/izhihu/task/BaseGetContentTask.java:75
MethodgetDiff
获取两个日期之间的差值 @param date1 @param date2 @return
src/com/cundong/izhihu/util/DateUtils.java:310
MethodgetErrorCode
()
src/com/cundong/izhihu/exception/ZhihuException.java:36
MethodgetExternalFileDir
获取扩展存储file的绝对路径 返回:sdcard/Android/data/{package_name}/files/ @param context @return
src/com/cundong/izhihu/util/SDCardUtils.java:38
MethodgetFileExtension
get suffix of file from path <pre> getFileExtension(null) = "" getFileExtension("") = "" getFileExte
src/com/cundong/izhihu/util/FileUtils.java:442
MethodgetFileNameWithoutExtension
get file name from path, not include suffix <pre> getFileNameWithoutExtension(null) = null getFileNameWithoutExtension("")
src/com/cundong/izhihu/util/FileUtils.java:342
MethodgetFloat
get float preferences @param context @param key The name of the preference to retrieve @param defaultValue Value to return if t
src/com/cundong/izhihu/util/PreferencesUtils.java:173
MethodgetFragment
()
src/com/cundong/izhihu/activity/BaseActivity.java:56
MethodgetIMEI
IMEI号、MAC地址,在有些手机上竟然是动态的!! 修改逻辑: IMEI号、MAC地址,都改为取两遍,如果两次获取的不同,则不使用,改为使用一个randomUUID(该ID生成之后存在本地) 获得手机IMEI 获取串号失败,则使用MAC地址代替,再失败,则返回随机UUID deviceId = U
src/com/cundong/izhihu/util/PhoneUtils.java:47
MethodgetIPAddress
获取手机IP地址 获取失败,返回"127.0.0.1" @return
src/com/cundong/izhihu/util/PhoneUtils.java:113
MethodgetInt
get int preferences @param context @param key The name of the preference to retrieve @param defaultValue Value to return if thi
src/com/cundong/izhihu/util/PreferencesUtils.java:87
MethodgetItemResourceId
该方法需要子类实现,需要根据type返回item布局的resource id @param type @return
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:61
MethodgetItemView
使用该getItemView方法替换原来的getView方法中部分功能,需要子类实现 @param position @param convertView @param holder @param type @return
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:72
MethodgetLast
@see {@link ArrayUtils#getLast(Object[], Object, Object, boolean)} defaultValue is null, isCircle is true
src/com/cundong/izhihu/util/ListUtils.java:238
MethodgetMobileInfo
获取手机设备描述(包括品牌、型号等) @param @return
src/com/cundong/izhihu/util/PhoneUtils.java:202
MethodgetMobileNumber
获取手机号码 @param mContext @return
src/com/cundong/izhihu/util/PhoneUtils.java:182
MethodgetNewsList
(String key)
src/com/cundong/izhihu/db/NewsDataSource.java:99
MethodgetNext
@see {@link ArrayUtils#getNext(Object[], Object, Object, boolean)} defaultValue is null, isCircle is true
src/com/cundong/izhihu/util/ListUtils.java:248
MethodgetNotNull
若输入为null,则返回空字符串;否则返回字符串自身 @param @return
src/com/cundong/izhihu/util/StringUtils.java:52
MethodgetSDKVersion
最低支持的SDK版本 @return
src/com/cundong/izhihu/util/PhoneUtils.java:140
MethodgetScreenWidth
获取屏幕宽度 @param instance
src/com/cundong/izhihu/util/PhoneUtils.java:224
MethodgetSize
get size of list <pre> getSize(null) = 0; getSize({}) = 0; getSize({1}) = 1; </pre> @param <V> @param sourceList @return if list is n
src/com/cundong/izhihu/util/ListUtils.java:30
MethodgetStatus
Returns the current status of this task. @return The current status.
src/com/cundong/izhihu/task/MyAsyncTask.java:191
MethodgetStatusBarHeight
获取状态栏高度 ldpi=.75, mdpi=1, hdpi=1.5, xhdpi=2
src/com/cundong/izhihu/util/PhoneUtils.java:213
MethodgetTimestamp
字符串转换时间戳 @param str @return
src/com/cundong/izhihu/util/DateUtils.java:216
MethodgetUrl
(String url)
src/com/cundong/izhihu/task/BaseGetContentTask.java:71
MethodgetUrlKey
将用户请求的url转化为key值,通过这个key值,可以读取数据库中的缓存数据 注意:需要清除url中的token,这样token即使变化了,也能读取到缓存 @param url @return
src/com/cundong/izhihu/http/UrlUtils.java:27
MethodgetView
(int resId)
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:82
MethodgetViewTypeCount
()
src/com/cundong/izhihu/adapter/MultiViewTypeBaseAdapter.java:50
MethodgetViewTypeCount
()
src/com/cundong/izhihu/adapter/NewsAdapter.java:122
MethodhandleMessage
(Message msg)
src/com/cundong/izhihu/task/MyAsyncTask.java:474
Functioni
()
assets/www/zepto.min.js:2
Functionimg_replace
(source, replaceSource)
assets/www/img_replace.js:1
Functionimg_replace_all
()
assets/www/img_replace.js:19
Functionimg_replace_by_url
(url)
assets/www/img_replace.js:7
← previousnext →201–300 of 449, ranked by callers