摘要: 原文: https://so.gushiwen.cn/guwen/bookv_46653FD803893E4FFC81BE0103BC7896.aspx 片段: 景公问政孔子,孔子曰:“君君,臣臣,父父,子子。”景公曰:“善哉!信如君不君,臣不臣,父不父,子不子,虽有粟,吾岂得而食诸!”他日又复问政 阅读全文
posted @ 2023-05-15 09:24 f9q 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 1.相关文档 https://refactoring.guru/design-patterns/visitor https://www.tutorialspoint.com/design_pattern/visitor_pattern.htm 2. 为什么要用访问者模式,解决了什么问题 2.1 问题 阅读全文
posted @ 2022-04-03 23:16 f9q 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 本文两部分: 1.使用现成插件包配置Kotlin 2.手动配置Kotlin 1.准备工具 用来编译运行kotlin代码,只看代码,可跳过此步。 1.1 下载JetBrains kotlin编译器 https://github.com/JetBrains/kotlin/releases 找到最新版本下 阅读全文
posted @ 2022-01-19 18:16 f9q 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 【原文】 宣室求贤访逐臣,贾生才调更无伦。 可怜夜半虚前席,不问苍生问鬼神。 【注释】 贾生:指贾谊(前200—前168),西汉著名的政论家、文学家。宣室:汉代长安城中未央宫前殿的正室。 阅读全文
posted @ 2021-12-18 12:56 f9q 阅读(813) 评论(0) 推荐(0) 编辑
摘要: 1.官方文档 mockit官网 https://site.mockito.org mockit api https://javadoc.io/doc/org.mockito/mockito-core/latest/index.html mockit源码 https://github.com/mock 阅读全文
posted @ 2021-12-11 22:34 f9q 阅读(1476) 评论(0) 推荐(0) 编辑
摘要: 1.官方文档 android 文档 https://developer.android.google.cn/training/testing/unit-testing/instrumented-unit-tests?hl=zh-cn 示例 https://github.com/android/tes 阅读全文
posted @ 2021-10-18 09:18 f9q 阅读(660) 评论(0) 推荐(0) 编辑
摘要: 1.官方文档 https://developer.android.google.cn/training/testing/unit-testing?hl=zh-cn https://github.com/android/testing-samples/tree/master/unit/BasicUni 阅读全文
posted @ 2021-10-10 23:22 f9q 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 单元测试不适用于测试复杂的界面交互事件。后者应改用界面测试框架。 1.官方文档 https://developer.android.google.cn/training/testing/unit-testing?hl=zh-cn https://github.com/android/testing- 阅读全文
posted @ 2021-10-08 19:29 f9q 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1.官方文档 android https https://developer.android.google.cn/training/articles/security-ssl android 配置ca https://developer.android.google.cn/training/arti 阅读全文
posted @ 2021-10-02 10:48 f9q 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1.简介 官方文档 SSL https://www.ssl.com/faqs/faq-what-is-ssl/ TLS https://datatracker.ietf.org/group/tls/documents/ https://datatracker.ietf.org/doc/html/rf 阅读全文
posted @ 2021-09-24 17:38 f9q 阅读(1011) 评论(0) 推荐(1) 编辑
摘要: 1.官方文档 官网 https://www.openssl.org/ Compilation and Installation https://wiki.openssl.org/index.php/Compilation_and_Installation android building https 阅读全文
posted @ 2021-07-25 22:34 f9q 阅读(803) 评论(0) 推荐(0) 编辑
摘要: 1.文档 1.1 curl官方文档 curl 官网 https://curl.se/ curl 代码 https://github.com/curl/curl 编译android so https://curl.se/docs/install.html Android小节 https://githu 阅读全文
posted @ 2021-07-16 15:07 f9q 阅读(867) 评论(0) 推荐(0) 编辑
摘要: 1.官方文档 https://source.android.google.cn/devices/tech/debug https://source.android.google.cn/devices/tech/debug/native-crash 2.死亡报告文件 2.1 示例 在目录 /data/ 阅读全文
posted @ 2021-07-06 16:59 f9q 阅读(5074) 评论(0) 推荐(1) 编辑
摘要: 1.架构 1.1 架构 1.2 native层 1.3 内核层 2. 使用方法 一个进程得到另一个进程的binder后,就可以通过这个binder给对方发消息。通常通过服务组件得到binder. 2.1 发送方:IBinder.transact() 1 /** 2 * Perform a gener 阅读全文
posted @ 2021-04-23 18:39 f9q 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1.官方文档 https://developer.android.google.cn/ndk/guides/stable_apis https://developer.android.google.cn/ndk/reference 2.简表 libc/libm/libdl C 库 - libc++_ 阅读全文
posted @ 2021-04-04 21:01 f9q 阅读(1152) 评论(0) 推荐(0) 编辑