Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mmm-rain
AndroidUtilCode
提交
ccd17839
A
AndroidUtilCode
项目概览
mmm-rain
/
AndroidUtilCode
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
AndroidUtilCode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ccd17839
编写于
4月 10, 2020
作者:
B
Blankj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
see 04/10 log
上级
5e1e82da
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
3 deletion
+3
-3
feature/utilcode/pkg/src/main/java/com/blankj/utilcode/pkg/feature/file/FileActivity.kt
...java/com/blankj/utilcode/pkg/feature/file/FileActivity.kt
+2
-2
lib/utilcode/src/test/java/com/blankj/utilcode/util/TimeUtilsTest.java
...src/test/java/com/blankj/utilcode/util/TimeUtilsTest.java
+1
-1
未找到文件。
feature/utilcode/pkg/src/main/java/com/blankj/utilcode/pkg/feature/file/FileActivity.kt
浏览文件 @
ccd17839
...
...
@@ -42,13 +42,13 @@ class FileActivity : CommonActivity() {
CommonItemTitle
(
"isFileExists: "
+
PathUtils
.
getExternalAppFilesPath
(),
""
+
FileUtils
.
isFileExists
(
PathUtils
.
getExternalAppFilesPath
())),
CommonItemTitle
(
"isFileExists: "
+
PathUtils
.
getExternalStoragePath
(),
""
+
FileUtils
.
isFileExists
(
PathUtils
.
getExternalStoragePath
())),
CommonItemTitle
(
"isFileExists: "
+
PathUtils
.
getDownloadCachePath
(),
""
+
FileUtils
.
isFileExists
(
PathUtils
.
getDownloadCachePath
())),
CommonItemTitle
(
"isFileExists: "
+
PathUtils
.
getExternalDownloadsPath
(),
""
+
FileUtils
.
isFileExists
(
PathUtils
.
getExternalDownloadsPath
()
+
"/"
+
"app-release.apk1"
)),
CommonItemTitle
(
"isFileExists: "
+
PathUtils
.
getExternalDownloadsPath
(),
""
+
FileUtils
.
isFileExists
(
PathUtils
.
getExternalDownloadsPath
())),
CommonItemTitle
(
"isFileExists: "
+
PathUtils
.
getInternalAppFilesPath
(),
""
+
FileUtils
.
isFileExists
(
File
(
PathUtils
.
getInternalAppFilesPath
()))),
CommonItemTitle
(
"isFileExists: "
+
PathUtils
.
getExternalAppFilesPath
(),
""
+
FileUtils
.
isFileExists
(
File
(
PathUtils
.
getExternalAppFilesPath
()))),
CommonItemTitle
(
"isFileExists: "
+
PathUtils
.
getExternalStoragePath
(),
""
+
FileUtils
.
isFileExists
(
File
(
PathUtils
.
getExternalStoragePath
()))),
CommonItemTitle
(
"isFileExists: "
+
PathUtils
.
getDownloadCachePath
(),
""
+
FileUtils
.
isFileExists
(
File
(
PathUtils
.
getDownloadCachePath
()))),
CommonItemTitle
(
"isFileExists: "
+
PathUtils
.
getExternalDownloadsPath
(),
""
+
FileUtils
.
isFileExists
(
File
(
PathUtils
.
getExternalDownloadsPath
()
+
"/"
+
"app-release.apk1"
)))
CommonItemTitle
(
"isFileExists: "
+
PathUtils
.
getExternalDownloadsPath
(),
""
+
FileUtils
.
isFileExists
(
File
(
PathUtils
.
getExternalDownloadsPath
())))
)
}
...
...
lib/utilcode/src/test/java/com/blankj/utilcode/util/TimeUtilsTest.java
浏览文件 @
ccd17839
...
...
@@ -36,7 +36,7 @@ public class TimeUtilsTest extends BaseTest {
private
final
Date
tomorrowTimeDate
=
new
Date
(
tomorrowTimeMillis
);
private
final
String
tomorrowTimeString
=
defaultFormat
.
format
(
tomorrowTimeDate
);
private
final
String
tomorrowTimeStringFormat
=
mFormat
.
format
(
tomorrowTimeDate
);
private
final
long
delta
=
1
0
;
// 允许误差 10ms
private
final
long
delta
=
2
0
;
// 允许误差 10ms
@Test
public
void
millis2String
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录