
android
文章平均质量分 50
律随心动
有了新的想法,开始实现,时刻提醒自己
展开
-
Android bootchart 分析启动性能工具使用
bootchart 可为整个系统提供所有进程的 CPU 和 I/O 负载细分。该工具不需要重建系统映像,可以用作进入 systrace 之前的快速健全性检查。原创 2024-05-08 10:23:27 · 848 阅读 · 0 评论 -
Android 之contacts provider
Contacts ProviderThe Contacts Provider is a powerful and flexible Android component that manages the device's central repository of data about people. The Contacts Provider is the source of data you see in the device's contacts application, and you can a原创 2020-06-20 08:12:51 · 2672 阅读 · 0 评论 -
Android 之 Bluetooth 框架
Android 之 Bluetooth 框架Bluetooth 框架结构图在新的android 版本中, 将蓝牙功能从单一的由蓝牙service/apk 完成,变更为由多部分完成蓝牙功能,使得接口更加的统一。新的改变点层次接口上:系统升级8.1之后,增加了HAL 层Service 实现,一改bluedroid 加载vendor 的架构而是改为:libbluetoothHAL ---...原创 2020-04-30 22:26:32 · 2120 阅读 · 0 评论 -
AIDL 调用过程详解
目的:不同进程间的的IPC 通信代码示例:/* * Copyright (C) 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance wit原创 2017-07-07 17:31:46 · 828 阅读 · 0 评论 -
bluedroid 之OSI ------ Thread
ThreadThread 中包括完整的消息队列 线程创建同步 消息回调处理 thread 的实现依赖如下模块:reactor -> 利用epoll实现的消息收发机制 semaphore -> 线程创建同步 fixed_queue -> 消息队列(也利用semaphone 进行同步) Thread 的创建过程:thread_t* thread_n...原创 2018-10-07 22:44:18 · 797 阅读 · 1 评论 -
bluedroid 之OSI ---- reactor
2. ReactorReactor 英文意思: 反应器,反应堆此处的reactor 是作为thread 的执行者,封装了event 接收,以及消息分发reactor_t* reactor_new(void) { reactor_t* ret = (reactor_t*)osi_calloc(sizeof(reactor_t)); ret->epoll_fd = INV...原创 2018-10-08 22:31:17 · 700 阅读 · 0 评论 -
bluedroid 之OSI ---- allocator
allocator, allocation_trackerallocator 和allocation_tracker 提供一种内存跟踪的手段主要应用场景: 内存是否被使用越界 是否有内存未被释放实现方法: (1)分配的内存被记录在allocations (map 类型)中 map<void*, allocation_t*> allo...原创 2018-10-09 23:18:46 · 364 阅读 · 1 评论