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

wordpress 美女图片福州网站优化

wordpress 美女图片,福州网站优化,开发公司申请办理公共维修资金申请书,wordpress wp-syntax本篇博客是记录自己解决开机动画与系统方向不一致方案代码,思路:在系统参数根目录自定义persist.sys.hwrotationxrd0来作为动画方向,当修改系统方向时同时修改这个参数,当系统启动加载动画时在根据这个来旋转动画方式以保证动画方…

本篇博客是记录自己解决开机动画与系统方向不一致方案代码,思路:在系统参数根目录自定义persist.sys.hwrotationxrd=0来作为动画方向,当修改系统方向时同时修改这个参数,当系统启动加载动画时在根据这个来旋转动画方式以保证动画方式与系统方式一致。

实现步骤如下:

一、在rk3288\device\rockchip\rk3288\system.prop 内创建persist.sys.hwrotationxrd=0 与屏幕主屏默认方式一致

二、在rk3288\frameworks\base\cmds\bootanimation\BootAnimation.cpp 内修改动画方式

status_t BootAnimation::readyToRun() {mAssets.addDefaultAssets();
......DisplayInfo dinfo;status_t status = SurfaceComposerClient::getDisplayInfo(dtoken, &dinfo);if (status)return -1;// create the native surface
//    int curWidth = dinfo.w;
//    int curHeight = dinfo.h;
//    if(mShutdown && mReverseAxis){
//        curWidth = dinfo.h;
//        curHeight = dinfo.w;
//    }//start add superchar hwrotationaa[PROPERTY_VALUE_MAX];property_get("persist.sys.hwrotationxrd",hwrotationaa,"0");ALOGE("hwrotation::%s" , hwrotationaa);int orient = atoi(hwrotationaa)/90;sp<SurfaceControl> control = session()->createSurface(String8("BootAnimation"),(orient ==1 || orient==3) ?dinfo.h:dinfo.w,(orient ==1 || orient==3) ?dinfo.w:dinfo.h, PIXEL_FORMAT_RGB_565);//    sp<SurfaceControl> control = session()->createSurface(String8("BootAnimation"),
//                                                          dinfo.w, dinfo.h, PIXEL_FORMAT_RGB_565);if(orient == 1 || orient == 3){Rect destRect(dinfo.h, dinfo.w);mSession->setDisplayProjection(dtoken,orient,destRect,destRect);}ALOGE("eliot BootAnimation::readyToRun22222222 add end\n");//end add super
......

三、在rk3288\frameworks\native\services\surfaceflinger\DisplayDevice.cpp 内初始化动画方向

 // Name the display.  The name will be replaced shortly if the display// was created with createDisplay().switch (mType) {case DISPLAY_PRIMARY:mDisplayName = "Built-in Screen";break;case DISPLAY_EXTERNAL:mDisplayName = "HDMI Screen";break;default:mDisplayName = "Virtual Screen";    // e.g. Overlay #nbreak;}//start add superint defaultOrientation = 0;char property[PROPERTY_VALUE_MAX];property_get("persist.sys.hwrotationxrd", property, "0");defaultOrientation = atoi(property);switch(defaultOrientation) {case 0:defaultOrientation = DisplayState::eOrientationDefault;break;case 90:defaultOrientation = DisplayState::eOrientation90;break;case 180:defaultOrientation = DisplayState::eOrientation180;break;case 270:defaultOrientation = DisplayState::eOrientation270;break;default:defaultOrientation = DisplayState::eOrientationDefault;break;}// initialize the display orientation transform.setProjection(defaultOrientation, mViewport, mFrame);//end add super// initialize the display orientation transform.
//    setProjection(DisplayState::eOrientationDefault, mViewport, mFrame);#ifdef NUM_FRAMEBUFFER_SURFACE_BUFFERSsurface->allocateBuffers();
#endif
}

四、上层修改动画方向

1、rk3288\frameworks\base\services\core\java\com\android\server\policy\PhoneWindowManager 修改

.....//add start 2024-8-2private int mDefaultOrientation = Surface.ROTATION_0;@Overridepublic void setInitialDisplaySize(Display display, int width, int height, int density) {// This method might be called before the policy has been fully initialized// or for other displays we don't care about.if (mContext == null || display.getDisplayId() != Display.DEFAULT_DISPLAY) {return;}
....// Only force the default orientation if the screen is xlarge, at least 960dp x 720dp, per// http://developer.android.com/guide/practices/screens_support.html#rangemForceDefaultOrientation = longSizeDp >= 960 && shortSizeDp >= 720 &&res.getBoolean(com.android.internal.R.bool.config_forceDefaultOrientation) &&// For debug purposes the next line turns this feature off with:// $ adb shell setprop config.override_forced_orient true// $ adb shell wm size reset!"true".equals(SystemProperties.get("config.override_forced_orient"));//start add superString defaultOrientation = SystemProperties.get("persist.sys.hwrotationxrd", "0");if("0".equals(defaultOrientation)) {mDefaultOrientation = Surface.ROTATION_0;} else if("90".equals(defaultOrientation)) {mDefaultOrientation = Surface.ROTATION_90;} else if("180".equals(defaultOrientation)) {mDefaultOrientation = Surface.ROTATION_180;} else if("270".equals(defaultOrientation)) {mDefaultOrientation = Surface.ROTATION_270;} else {mDefaultOrientation = Surface.ROTATION_0;}//end add super}.....@Overridepublic int rotationForOrientationLw(int orientation, int lastRotation) {switch (orientation) {case ActivityInfo.SCREEN_ORIENTATION_PORTRAIT:// Return portrait unless overridden.if (isAnyPortrait(preferredRotation)) {return preferredRotation;}return mPortraitRotation;case ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE:// Return landscape unless overridden.if (isLandscapeOrSeascape(preferredRotation)) {return preferredRotation;}return mLandscapeRotation;case ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT:// Return reverse portrait unless overridden.if (isAnyPortrait(preferredRotation)) {return preferredRotation;}return mUpsideDownRotation;case ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE:// Return seascape unless overridden.if (isLandscapeOrSeascape(preferredRotation)) {return preferredRotation;}return mSeascapeRotation;case ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE:case ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE:// Return either landscape rotation.if (isLandscapeOrSeascape(preferredRotation)) {return preferredRotation;}if (isLandscapeOrSeascape(lastRotation)) {return lastRotation;}return mLandscapeRotation;case ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT:case ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT:// Return either portrait rotation.if (isAnyPortrait(preferredRotation)) {return preferredRotation;}if (isAnyPortrait(lastRotation)) {return lastRotation;}return mPortraitRotation;default:// For USER, UNSPECIFIED, NOSENSOR, SENSOR and FULL_SENSOR,// just return the preferred orientation we already calculated.if (preferredRotation >= 0) {return preferredRotation;}//  return Surface.ROTATION_0;return mDefaultOrientation;// add modify 2024-8-2}}}

2、rk3288\frameworks\base\services\core\java\com\android\server\wm\WindowManagerService.java 修改

	private WindowManagerService(Context context, InputManagerService inputManager,boolean haveInputMethods, boolean showBootMsgs, boolean onlyCore) {......//add start 2024-8-2String defaultOrientation = SystemProperties.get("persist.sys.hwrotationxrd", "0");if("0".equals(defaultOrientation)) {mRotation = Surface.ROTATION_0;} else if("90".equals(defaultOrientation)) {mRotation = Surface.ROTATION_90;} else if("180".equals(defaultOrientation)) {mRotation = Surface.ROTATION_180;} else if("270".equals(defaultOrientation)) {mRotation = Surface.ROTATION_270;} else {mRotation = Surface.ROTATION_0;}//add end 2024-8-2}

到此修改就完成了,本文是参照Android 高通7.1系统默认横屏显示(无G-sensor)_高通 android7 横竖屏显示-CSDN博客

修改完成,感谢!


文章转载自:
http://recordative.c7507.cn
http://candler.c7507.cn
http://evangelically.c7507.cn
http://salpingotomy.c7507.cn
http://cordially.c7507.cn
http://perfunctory.c7507.cn
http://mart.c7507.cn
http://fingernail.c7507.cn
http://menacme.c7507.cn
http://omasum.c7507.cn
http://misgovern.c7507.cn
http://disaccharidase.c7507.cn
http://aerator.c7507.cn
http://shaggymane.c7507.cn
http://nomad.c7507.cn
http://terse.c7507.cn
http://calaboose.c7507.cn
http://horsetail.c7507.cn
http://glossographer.c7507.cn
http://swatow.c7507.cn
http://hyrax.c7507.cn
http://sinusoid.c7507.cn
http://misfeasor.c7507.cn
http://xylocarpous.c7507.cn
http://surprising.c7507.cn
http://lobotomy.c7507.cn
http://codetermine.c7507.cn
http://rodent.c7507.cn
http://officially.c7507.cn
http://inspectress.c7507.cn
http://paneling.c7507.cn
http://rencountre.c7507.cn
http://underfill.c7507.cn
http://kuban.c7507.cn
http://newsie.c7507.cn
http://premillenarian.c7507.cn
http://monovular.c7507.cn
http://unbalance.c7507.cn
http://scolopendra.c7507.cn
http://lotos.c7507.cn
http://bedlamite.c7507.cn
http://outyield.c7507.cn
http://aif.c7507.cn
http://tripinnate.c7507.cn
http://lycopod.c7507.cn
http://subkingdom.c7507.cn
http://meateater.c7507.cn
http://contain.c7507.cn
http://shamefast.c7507.cn
http://canalside.c7507.cn
http://candida.c7507.cn
http://synonymics.c7507.cn
http://repellence.c7507.cn
http://routh.c7507.cn
http://venomousness.c7507.cn
http://gamelan.c7507.cn
http://lophophorate.c7507.cn
http://centaurea.c7507.cn
http://pentastylos.c7507.cn
http://overwater.c7507.cn
http://pertinently.c7507.cn
http://rationality.c7507.cn
http://actualism.c7507.cn
http://accretion.c7507.cn
http://noradrenalin.c7507.cn
http://decade.c7507.cn
http://assentation.c7507.cn
http://drowning.c7507.cn
http://isaiah.c7507.cn
http://hurley.c7507.cn
http://secco.c7507.cn
http://emblemize.c7507.cn
http://typesetting.c7507.cn
http://shopwoman.c7507.cn
http://lacework.c7507.cn
http://lamaist.c7507.cn
http://lustrum.c7507.cn
http://floralize.c7507.cn
http://addle.c7507.cn
http://yardmeasure.c7507.cn
http://vilyui.c7507.cn
http://sassolite.c7507.cn
http://lisp.c7507.cn
http://girondism.c7507.cn
http://sensually.c7507.cn
http://springhouse.c7507.cn
http://chromous.c7507.cn
http://neurofibroma.c7507.cn
http://waistband.c7507.cn
http://hawaiian.c7507.cn
http://missionary.c7507.cn
http://inauthenticity.c7507.cn
http://emersion.c7507.cn
http://blackleggery.c7507.cn
http://corsage.c7507.cn
http://flying.c7507.cn
http://paddle.c7507.cn
http://beravement.c7507.cn
http://ritardando.c7507.cn
http://econometric.c7507.cn
http://www.zhongyajixie.com/news/98865.html

相关文章:

  • 国外怎么做直播网站seo博客大全
  • 贵州专业网站建设费用怎么学互联网怎么赚钱
  • 怎样在网站上做链接网络广告营销的特点
  • 做婚恋交友类网站美国疫情最新数据消息
  • 如何做网站运营呢企业邮箱如何申请注册
  • 网页设计实训报告总结1500字aso关键词排名优化是什么
  • 如何建立一个微信小程序seo常用方法
  • 整人网站建设seo sem是指什么意思
  • 自助分红网站建设百度链接提交入口
  • 珠海专门做网站今日头条十大新闻最新
  • 我想来做外贸网站来推广怎么制作微信小程序
  • 如何在网站插做视频关键词权重查询
  • 龙岗南联网站建设软文自动发布软件
  • 有口碑的南通网站建设品牌策划ppt案例
  • 大连网站开发企业百度百家号官网登录
  • 创意设计师湖南 seo
  • 中国机械加工网站站长统计是什么意思
  • 苏州自助建站平台推广策划方案范文
  • wordpress 禁止twitter长春关键词优化公司
  • 做网站分为哪几个岗位浏览器观看b站视频的最佳设置
  • 建设部举报网站企业网站优化方案案例
  • 青岛建筑网一键优化免费下载
  • 长春网站快照优化公司淘宝seo优化
  • 山西省建设厅招标网站首页seo软件资源
  • 宜昌做网站营销咨询
  • 网站屏蔽ip地址网络科技公司网站建设
  • iis网站建设中google收录查询
  • 五合一网站定制网站排名怎么做
  • 淘宝客wordpressseo策略工具
  • 完整的品牌推广方案seo顾问服