当前位置: 首页 > news >正文

网站上做百度广告赚钱么免费公司网站如何建立设计

网站上做百度广告赚钱么,免费公司网站如何建立设计,微信开发社区平台,如何查网站是哪个公司做的文章目录 Android 开机动画的启动过程BootAnimation(基于Android10.0.0-r41)1.开机动画的启动过程概述2.为什么设置了属性之后就会播放#xff1f; Android 开机动画的启动过程BootAnimation(基于Android10.0.0-r41) 1.开机动画的启动过程概述 下面就是BootAnimation的重要部… 文章目录 Android 开机动画的启动过程BootAnimation(基于Android10.0.0-r41)1.开机动画的启动过程概述2.为什么设置了属性之后就会播放 Android 开机动画的启动过程BootAnimation(基于Android10.0.0-r41) 1.开机动画的启动过程概述 下面就是BootAnimation的重要部分。 开机动画主要跟三个东西有关系 bootanimation surfaceflinger init 查看下Android.bp编译文件cc_binary就是我们编译出来的可执行文件 最终的输出路径是在 系统启动的第一个进程是initinit进程会根据init.rc配置启动surfaceflinger进程。就是下面这个.rc进程 但是此时的Bootanim.rc不会启动。是disabled。 一般一个进程启动了都会有一个对应的main方法。 路径frameworks/native/services/surfaceflinger int main(int, char**) {signal(SIGPIPE, SIG_IGN);hardware::configureRpcThreadpool(1 /* maxThreads */,false /* callerWillJoin */);startGraphicsAllocatorService();// When SF is launched in its own process, limit the number of// binder threads to 4.ProcessState::self()-setThreadPoolMaxThreadCount(4);// start the thread poolspProcessState ps(ProcessState::self());ps-startThreadPool();// instantiate surfaceflinger//创建对象spSurfaceFlinger flinger surfaceflinger::createSurfaceFlinger();setpriority(PRIO_PROCESS, 0, PRIORITY_URGENT_DISPLAY);set_sched_policy(0, SP_FOREGROUND);// Put most SurfaceFlinger threads in the system-background cpuset// Keeps us from unnecessarily using big cores// Do this after the binder thread pool initif (cpusets_enabled()) set_cpuset_policy(0, SP_SYSTEM);// initialize before clients can connect//执行init方法flinger-init();// publish surface flingerspIServiceManager sm(defaultServiceManager());sm-addService(String16(SurfaceFlinger::getServiceName()), flinger, false,IServiceManager::DUMP_FLAG_PRIORITY_CRITICAL | IServiceManager::DUMP_FLAG_PROTO);startDisplayService(); // dependency on SF getting registered abovestruct sched_param param {0};param.sched_priority 2;if (sched_setscheduler(0, SCHED_FIFO, param) ! 0) {ALOGE(Couldnt set SCHED_FIFO);}// run surface flinger in this thread//执行run方法flinger-run();return 0; } 首先进入init方法 开启一个线程Start()之后这个线程就运行起来了。 线程run起来 bootanim设置属性控制bootanim的一个服务要启动起来就是这里设置属性之后就会起来了就开始播放开机动画。 property_set(service.bootanim.exit, 0);// Start BootAnimation if not startedproperty_set(ctl.start, bootanim);2.为什么设置了属性之后就会播放 /system/core/init.cpp 启动属性服务 跨进程通信CreateSocket void StartPropertyService(Epoll* epoll) {selinux_callback cb;cb.func_audit SelinuxAuditCallback;selinux_set_callback(SELINUX_CB_AUDIT, cb);property_set(ro.property_service.version, 2);//获取fdproperty_set_fd CreateSocket(PROP_SERVICE_NAME, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK,false, 0666, 0, 0, nullptr);if (property_set_fd -1) {PLOG(FATAL) start_property_service socket creation failed;}//监听fd句柄listen(property_set_fd, 8);if (auto result epoll-RegisterHandler(property_set_fd, handle_property_set_fd); !result) {PLOG(FATAL) result.error();} }回调方法handle_property_set_fd然后调用下面这个方法 然后进到HandleControlMessage此时我们发现这个方法不知道是哪个头文件引入进来的所以得搜索一下。 递归搜索当前目录以及子目录。 grep HandleControlMessage ./ -rn通过名字查找服务也就是前面设置的属性值bootanim 找到对应的map根据msg获取服务的状态是什么样子的然后根据name名字去找到对应设置的服务。 绘制图像需要依赖surfaceflinger来绘制所以开机动画是在surfaceflinger之后启动的。 init启动。surfaceflinger进程的init执行然后StartPropetySetThread线程的启动然后再通知init进程启动开机动画进程然后是bootanimation的main方法执行
http://www.dnsts.com.cn/news/70652.html

相关文章:

  • 城乡建设厅官方网站个人建立网站后怎么盈利
  • 网站维护广州建网站网站公司开发
  • 南宁网站建设蓝云黑龙江微信网站开发
  • 阿里云需要网站建设方案书使页面具有动态效果的网站建设技术是
  • 用动易建设网站网站动态链接做Seo怎么办
  • 长治房产网站建设腾讯企业网页设计
  • 广州白云机场网站建设买域名的网站有哪些
  • 一流的江苏网站建设买一个域名多少钱一个
  • wordpress文章特效插件肇庆seo网络推广
  • 晋州有做网站的吗深圳的小型网络公司
  • ps做网站主页图片咸宁网站建设价格
  • 我的世界怎么做充值点卷网站wordpress linux 权限
  • 东莞做网站哪家好wordpress大访问量
  • 用jsp做网站网站建设合同简单模板
  • 深圳建设交易中心网站网站 黑白
  • 高端建设网站公司哪家好wordpress码支付个人免签
  • 乌兰浩特网站开发seo优化步骤
  • 商品网站建设实验记录wordpress 图片放大插件
  • 一般做网站需要的js有哪些上传网站到空间
  • 网站规划建设论文杭州网站制作公司网站
  • 网站开发交流平台专业企业展馆展厅设计
  • 建设部网站业绩如何录入智能网站推广软件
  • 怎么样让网站做的大气河南省村镇建设处网站
  • 企业网站规划原则建设网站建设的目标
  • 网站备案审核流程wordpress scandir
  • 企业网站的设计与实现论文ps网站轮播图怎么做
  • 网站建设销售员工作内容做社交网站怎么赚钱
  • page做网站提供网站建设制作
  • 太原网站建设培训班网站的建站过程
  • 四川建设厅网站招聘太原区域调整最新消息