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

专题探索网站开发教学模式的结构深圳做网站建设比较好的公司

专题探索网站开发教学模式的结构,深圳做网站建设比较好的公司,wordpress软件最低要求,太原网站制作定制开发由于Android4.4系统上去掉了ro.sf.hwrotation属性的支持#xff0c;因为不能使用之前的方法进行屏幕旋转了。暂时没有找到相应的属性和后门#xff0c;于是自己写了一个屏幕旋转的临时代码#xff0c;后面找到更好的方法后再替换。具体代码如下#xff1a;~/framework/nati…由于Android4.4系统上去掉了ro.sf.hwrotation属性的支持因为不能使用之前的方法进行屏幕旋转了。暂时没有找到相应的属性和后门于是自己写了一个屏幕旋转的临时代码后面找到更好的方法后再替换。具体代码如下~/framework/native/services/surfaceflinger/DisplayDevice.cppuint32_t DisplayDevice::getOrientationTransform() const {...if (property_get(persist.sys.hwrotation, property, NULL) 0) {switch (atoi(property)) {case 90:transform Transform::ROT_90;break;case 270:transform Transform::ROT_270;break;}}return transform;}status_t DisplayDevice::orientationToTransfrom(int orientation, int w, int h, Transform* tr){...if (property_get(persist.sys.hwrotation, property, NULL) 0) {switch (atoi(property)) {case 90:flags Transform::ROT_90;break;case 270:flags Transform::ROT_270;break;}}tr-set(flags, w, h);return NO_ERROR;}void DisplayDevice::setProjection(int orientation,const Rect newViewport, const Rect newFrame) {...if (!frame.isValid()) {if (property_get(persist.sys.hwrotation, property, NULL) 0) {switch (atoi(property)) {case 90:case 270:frame Rect(h, w);break;default:frame Rect(w, h);break;}} elseframe Rect(w, h);} else {...}}~/framework/base/services/input/InputReader.cppvoid TouchInputMapper::configureSurface(nsecs_t when, bool* outResetNeeded) {...if (property_get(persist.sys.hwrotation, property, NULL) 0) {switch (atoi(property)) {case 90:mSurfaceOrientation DISPLAY_ORIENTATION_90;break;case 270:mSurfaceOrientation DISPLAY_ORIENTATION_270;break;}}switch (mSurfaceOrientation) {case DISPLAY_ORIENTATION_90:case DISPLAY_ORIENTATION_270:}~/framework/native/services/surfaceflinger/SurfaceFlinger.cppstatus_t SurfaceFlinger::getDisplayInfo(const sp display, DisplayInfo* info) {...info-w hwc.getWidth(type);info-h hwc.getHeight(type);if (property_get(persist.sys.hwrotation, property, NULL) 0) {switch (atoi(property)) {case 90:case 270:if (type ! DisplayDevice::DISPLAY_EXTERNAL) {info-w hwc.getHeight(type);info-h hwc.getWidth(type);}break;default:break;}}info-xdpi xdpi;info-ydpi ydpi;info-fps float(1e9 / hwc.getRefreshPeriod(type));...}void SurfaceFlinger::onInitializeDisplays() {...d.orientation DisplayState::eOrientationDefault;char property[PROPERTY_VALUE_MAX];if (property_get(persist.sys.hwrotation, property, NULL) 0){switch (atoi(property)) {case 0:d.orientation DisplayState::eOrientationDefault;break;case 90:d.orientation DisplayState::eOrientation90;break;case 180:d.orientation DisplayState::eOrientation180;break;case 270:d.orientation DisplayState::eOrientation270;break;default:d.orientation DisplayState::eOrientationDefault;break;}} else {d.orientation DisplayState::eOrientationDefault;}d.frame.makeInvalid();d.viewport.makeInvalid();}~/framework/base/services/java/com/android/server/wm/WindowManagerService.javaboolean updateOrientationFromAppTokensLocked(boolean inTransaction) {...if (req ! mForcedAppOrientation) {if (0.equals(SystemProperties.get(persist.sys.hwrotation, 0)))req ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT;else if (90.equals(SystemProperties.get(persist.sys.hwrotation, 0)))req ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE;else if (180.equals(SystemProperties.get(persist.sys.hwrotation, 0)))req ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;else if (270.equals(SystemProperties.get(persist.sys.hwrotation, 0)))req ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;elsereq ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;}...}
http://www.sadfv.cn/news/7603/

相关文章:

  • 怎么注册一个网站做色流wordpress编辑文字内容
  • 网站设计师与网站开发工程师广告推广网站
  • 如何推广手机网站自动化东莞网站建设
  • 什么叫网站前台wordpress 发卡插件
  • wap网站使用微信登陆wordpress 多图
  • 网站建设合同书保密条款阳信做网站
  • 做网站最低多少钱个体做敦煌网站怎么样
  • 高安建站公司青岛专业网站建设推广报价
  • 正定网站建设建设网站的意义知乎
  • jsp书城网站开发制作网页怎样添加背景音乐
  • 设计网站主页要多少钱wordpress 开发 论坛
  • 济宁北湖建设集团网站网站中的文字滑动怎么做的
  • 免费正能量不良网站推荐wordpress转成繁体
  • 网站设计分析案例百度权重是怎么来的
  • 钓鱼网站制作教程视频怎么快速建网站教程
  • 英文网站建设 淮安重庆自有网站推广
  • 怎么做国际货运代理外贸网站合肥房产网签备案查询系统
  • 免费php网站开发模板网站建设玖金手指谷哥二八
  • 市面上有什么搭建网站工作室软件设计工资一般多少
  • 静态网站建设的主要技术wordpress youku videos
  • 深圳网站设计的公司产品网络营销方案
  • 淘客网站cms怎么做wordpress 做下载网
  • 猪八戒做网站要多少钱网站运营的具体工作包括哪些
  • 可以自学网站开发百度大数据中心
  • pc网站转wap网站制作企业网站公司排名
  • 襄阳教育云平台网站建设沧州关键词排名按天收费
  • 旅游网站建设ppt模板暴风seo论坛
  • 泉州网站建设公司首选做二手机网站
  • 简单的网站作业360建筑网官网招聘
  • 温岭市建设规划局网站仙游网站建设