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

什么平台可以做网站推广作品集如何制作

什么平台可以做网站推广,作品集如何制作,电子工程师,wordpress获取小工具本篇博客是记录自己解决开机动画与系统方向不一致方案代码#xff0c;思路#xff1a;在系统参数根目录自定义persist.sys.hwrotationxrd0来作为动画方向#xff0c;当修改系统方向时同时修改这个参数#xff0c;当系统启动加载动画时在根据这个来旋转动画方式以保证动画方…本篇博客是记录自己解决开机动画与系统方向不一致方案代码思路在系统参数根目录自定义persist.sys.hwrotationxrd0来作为动画方向当修改系统方向时同时修改这个参数当系统启动加载动画时在根据这个来旋转动画方式以保证动画方式与系统方式一致。 实现步骤如下 一、在rk3288\device\rockchip\rk3288\system.prop 内创建persist.sys.hwrotationxrd0 与屏幕主屏默认方式一致 二、在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;spSurfaceControl control session()-createSurface(String8(BootAnimation),(orient 1 || orient3) ?dinfo.h:dinfo.w,(orient 1 || orient3) ?dinfo.w:dinfo.h, PIXEL_FORMAT_RGB_565);// spSurfaceControl 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 dont 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://www.tj-hxxt.cn/news/225024.html

相关文章:

  • 南昌建设厅网站网站建设费用上海
  • 浏览不良网站会被网警抓吗什么软件可以看到街景
  • 大连淘宝网站建设搜索引擎优化工具
  • 18款禁用网站app破解版智加设计
  • 制作网站的手机软件平台管理系统登录
  • 建网站 3年服务器西安网站设计西安搜推宝
  • 网站模板修改教程南宁企业网站建设
  • 卖域名做非法网站企业微信管理软件
  • 哪里有网站建设项目网站建设付费项目
  • 湘潭企业网站建设百度一下你就知道了百度一下
  • 找做仿网站怎么补网站漏洞
  • 用php做的网站必备那些文件专业网站建设是哪家便宜
  • 开源cms建站WordPress文章过滤
  • 建个站的网站打不开辛集做网站公司
  • 哪些购物网站做的比较简洁有品质wordpress弹窗
  • 湘潭市 网站建设如何做双语网站
  • 网站营销单页怎么设计方案招投标网站开发费用
  • 诚讯通网站网站的建设
  • 西安营销网站建设公司做网站彩票代理多少钱啊
  • 手机网站怎么做域名解析广州英文建站公司
  • 扁平化手机网站模板陕西省平安建设网站
  • 专业的网站开发公司电话上海做网站天锐
  • 装潢公司网站源码php封面设计用什么软件做
  • 网站建设 案例展示网站原型怎么做
  • 网站建设预计资金投入天美传媒传媒官网免费下载
  • 廊坊网站搜索优化百度搜索引擎怎么做
  • 广州网站建设菲利宾手机百度下载安装
  • 长春做高端网站公司营销推广内容
  • 那个网站做图片比较赚钱售后好的品牌策划公司
  • 黑龙江省住房和建设厅网站首页洛阳理工学院教务管理系统