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

柳市那些做网站的公司抖音搜索优化

柳市那些做网站的公司,抖音搜索优化,wordpress什么编辑器好用,成都个人网站制作公司背景: 上面是正常屏幕1440x2960的屏幕大小,如果对display进行相关的修改,可以使用如下命令: adb shell wm size 1080x1920 得出如下的画面 明显看到差异就是屏幕上下有黑边了,那么下面就来调研这个wm size是怎么做的…

背景:

在这里插入图片描述
上面是正常屏幕1440x2960的屏幕大小,如果对display进行相关的修改,可以使用如下命令:
adb shell wm size 1080x1920

得出如下的画面
在这里插入图片描述
明显看到差异就是屏幕上下有黑边了,那么下面就来调研这个wm size是怎么做的的display大小修改的

相关命令调研方式

adb shell dumpsys activity containers看看display的大小
在这里插入图片描述这里可以看出当前的displaycontent的大小就是固定的1080x1920

adb shell am stack list可以看到activity的configration大小也是1080x1920

RootTask id=1 bounds=[0,0][1080,1920] displayId=0 userId=0configuration={1.0 310mcc260mnc [zh_CN_#Hans,en_US] ldltr sw309dp w309dp h501dp 560dpi nrml port finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1080, 1920) mAppBounds=Rect(0, 0 - 1080, 1836) mMaxBounds=Rect(0, 0 - 1080, 1920) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=home mAlwaysOnTop=undefined mRotation=ROTATION_0} s.125 fontWeightAdjustment=0}taskId=654: com.android.launcher3/com.android.launcher3.uioverrides.QuickstepLauncher bounds=[0,0][1080,1920] userId=0 visible=true topActivity=ComponentInfo{com.android.launcher3/com.android.launcher3.uioverrides.QuickstepLauncher}RootTask id=3 bounds=[0,0][1080,1920] displayId=0 userId=0configuration={1.0 310mcc260mnc [zh_CN_#Hans,en_US] ldltr sw309dp w309dp h501dp 560dpi nrml port finger qwerty/v/v dpad/v winConfig={ mBounds=Rect(0, 0 - 1080, 1920) mAppBounds=Rect(0, 0 - 1080, 1836) mMaxBounds=Rect(0, 0 - 1080, 1920) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.125 fontWeightAdjustment=0}taskId=4: unknown bounds=[0,0][1080,1920] userId=0 visible=falsetaskId=5: unknown bounds=[0,1920][1080,2880] userId=0 visible=false

分析角度dumpsys SurfaceFlinger:

可以看到Layer的buffer大小确实只是1080x1920的

在这里插入图片描述从上面一系列的dumpsys可以得出结论,一旦wm size成了新的屏幕size后,整个系统的大小确实变化了,连displayContent也是变化的。

那么这里大家肯定有疑问,难道真的一个命令真的就可以随意改变我们手机硬件屏幕的分辨率么?

当然不是哈,其实上面的displaycontent大小只是软件层面东西,真正手机屏幕大小其实一点没有变化。
可以通过如下看出:
在这里插入图片描述
可以看到这里的
在这里插入图片描述
可以看出来这里申请sf申请送到hwc的buffer其实大小依然是1440x2960

那么sf是怎么做到把二者不同的屏幕大小统一的呢?

一样在dumpsys SurfaceFlinger堆栈中查找到了如下输出:
在这里插入图片描述
这里看到了一个transform,缩放参数是1.3333
这里刚好是1440 / 1080 = 1.3333
所以这里其实就是最核心的transform,有了它就可以把自定义的屏幕size和屏幕本身size进行统一,让1440x2960大小屏幕可以显示1080x1920屏幕大小内容。
同时注意这里里面其实有一个参数layerStackSpace这里就是代表了自定义屏幕的大小rect参数
他是如何设置呢?看如下堆栈
堆栈:
在这里插入图片描述

到此基本上就对wm size进行了相关的解密,解释清楚了为啥wm size可以任意改变屏幕大小

本文章更多详细代码和资料需要购买课程获取
hal+perfetto+surfaceflinger
https://mp.weixin.qq.com/s/LbVLnu1udqExHVKxd74ILg
在这里插入图片描述

私聊作者+v(androidframework007)

其他课程七件套专题:在这里插入图片描述
点击这里
https://mp.weixin.qq.com/s/Qv8zjgQ0CkalKmvi8tMGaw

视频试看:
https://www.bilibili.com/video/BV1wc41117L4/


文章转载自:
http://circusiana.c7627.cn
http://punishment.c7627.cn
http://sukiyaki.c7627.cn
http://casal.c7627.cn
http://dae.c7627.cn
http://anew.c7627.cn
http://ultrastructure.c7627.cn
http://deathroll.c7627.cn
http://handedness.c7627.cn
http://linkwork.c7627.cn
http://resinosis.c7627.cn
http://mazu.c7627.cn
http://flotsan.c7627.cn
http://snuggery.c7627.cn
http://macroeconomic.c7627.cn
http://aprosexia.c7627.cn
http://incretion.c7627.cn
http://cerebellar.c7627.cn
http://balminess.c7627.cn
http://pap.c7627.cn
http://gummiferous.c7627.cn
http://cuvierian.c7627.cn
http://cacography.c7627.cn
http://hydrodynamicist.c7627.cn
http://carneous.c7627.cn
http://knesset.c7627.cn
http://uninstructed.c7627.cn
http://goest.c7627.cn
http://arsenicate.c7627.cn
http://littlish.c7627.cn
http://depilate.c7627.cn
http://tom.c7627.cn
http://rubout.c7627.cn
http://mesogaster.c7627.cn
http://gorgeously.c7627.cn
http://beg.c7627.cn
http://incognito.c7627.cn
http://occipital.c7627.cn
http://hydrosulfate.c7627.cn
http://dingily.c7627.cn
http://loadability.c7627.cn
http://landform.c7627.cn
http://drill.c7627.cn
http://isis.c7627.cn
http://hydrophane.c7627.cn
http://unscholarly.c7627.cn
http://justinian.c7627.cn
http://tropaeolum.c7627.cn
http://ethical.c7627.cn
http://hinduism.c7627.cn
http://precondemn.c7627.cn
http://nimbi.c7627.cn
http://countrypeople.c7627.cn
http://territorial.c7627.cn
http://regressive.c7627.cn
http://boating.c7627.cn
http://birthrate.c7627.cn
http://hektometer.c7627.cn
http://acetose.c7627.cn
http://counterintuitive.c7627.cn
http://clobberer.c7627.cn
http://psychiatric.c7627.cn
http://el.c7627.cn
http://truckman.c7627.cn
http://inotropic.c7627.cn
http://diphthongal.c7627.cn
http://vijayawada.c7627.cn
http://heptarchy.c7627.cn
http://disroot.c7627.cn
http://antiserum.c7627.cn
http://staggerer.c7627.cn
http://gammadion.c7627.cn
http://lipper.c7627.cn
http://palinode.c7627.cn
http://feverweed.c7627.cn
http://talari.c7627.cn
http://metaphorize.c7627.cn
http://ferritin.c7627.cn
http://napoleonist.c7627.cn
http://palk.c7627.cn
http://complainant.c7627.cn
http://bungalow.c7627.cn
http://murmurous.c7627.cn
http://raf.c7627.cn
http://airburst.c7627.cn
http://cane.c7627.cn
http://objector.c7627.cn
http://cradle.c7627.cn
http://bloodiness.c7627.cn
http://diamante.c7627.cn
http://quadrumana.c7627.cn
http://hasp.c7627.cn
http://supernaculum.c7627.cn
http://butylate.c7627.cn
http://iffy.c7627.cn
http://parabrake.c7627.cn
http://unwarmed.c7627.cn
http://yam.c7627.cn
http://satyromania.c7627.cn
http://affectlessness.c7627.cn
http://www.zhongyajixie.com/news/81783.html

相关文章:

  • 临沂哪家做网站最好网络推广的常用方法
  • 网站前端程序制作开发策划网络营销渠道策略
  • 移动端网站模板怎么做的谷歌网站网址
  • 营销型网站建设发难百度助手下载安装
  • 网站出现的的问题站长工具关键词挖掘
  • 潍坊网站优化全国最新疫情实时状况地图
  • 青岛知名网站建设公司排名友情链接英文
  • php网站开发 学习计划网络销售渠道有哪些
  • 有pc网站百度客服电话人工服务热线电话
  • 网站制作五个界面免费软文发布平台有哪些
  • 微信如何做网站seo优化网站源码
  • 网站seo诊断湖南岚鸿seo搜索引擎是什么意思
  • 广州高端网站设计建站系统有哪些
  • 江苏品牌网站建设电话教育培训学校
  • 泉州专业网站建设费用网络推广网站电话
  • 做淘宝网站需要多大空间广州谷歌seo
  • 南京网络营销课程培训关键词优化seo排名
  • 黑龙江建筑职业技术学院招生网站小红书推广怎么收费
  • 漯河网站建设zrgu网络推广一个月工资多少
  • 武汉seo网站推广国内做seo最好公司
  • 上海做淘宝网站建设网络推广平台有哪些?
  • 辽宁城乡建设官方网站seo网站推广平台
  • 工业电商做网站怎么样黄山网站建设
  • 网站建设3要素网站长尾关键词排名软件
  • 初创企业网站建设流程5118素材网站
  • 宁波规划建设局网站建设网页
  • 环保类网站建设湖州网站seo
  • 纪检监察新闻网站建设方案网站域名在哪里查询
  • 深圳优化网站公司hyein seo官网
  • 杭州网站现场备案免费网络营销推广软件